From 10b0d73144fe9e3a763a24b49b65db71e3355e28 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 17 Oct 2026 03:38:52 -0500 Subject: [PATCH 01/53] fix(site) Raise the documented tmux minimum to 3.3a why: The libtmux ports, MCP servers and workspace builders now support tmux 3.3a and newer, judged by the connected daemon. Pages, example prerequisites and port install notes still said 3.2 or 3.2a, so a reader on 3.2a would follow instructions the libraries refuse. what: - Move every "tmux 3.2 or newer" and "3.2a or newer" statement in the shared and per-port content to 3.3a, including the JVM "3.2a through 3.7c" range and Ruby's "3.3 or newer" so 3.3 no longer reads as supported - Update the generated example introductions, home quickstart prerequisites and the Julia install note to the same floor - State on each workspace compatibility page and the MCP entry pages that a daemon older than 3.3a is refused before any effect - Add a tmux support guide that gives the version rules and links from the guides index - Leave historical records alone: manual archives for 3.2a, example runs on 3.2a and 3.7c, and tmux facts such as the 3.2 hook origin Port guides and API data under site/src/data come from pinned port revisions and change when those ports publish their own floor. Verified: gen-mentions output is unchanged; test results follow. --- .../api-model/src/languages/jvm-examples.ts | 2 +- .../workspace/guides/installation.md | 10 +--- site/src/content/docs/concepts/queries.md | 2 +- .../concepts/server-session-window-pane.md | 2 +- site/src/content/docs/concepts/transports.md | 2 +- site/src/content/docs/concepts/workspaces.md | 2 +- .../docs/examples/attach-and-send-keys.md | 2 +- .../docs/examples/capture-pane-output.md | 2 +- .../docs/examples/workspace-from-file.md | 2 +- .../content/docs/guides/attaching-to-tmux.md | 2 +- .../content/docs/guides/capturing-output.md | 2 +- .../content/docs/guides/getting-started.md | 2 +- site/src/content/docs/guides/index.md | 3 ++ .../docs/guides/querying-and-filtering.md | 2 +- site/src/content/docs/guides/sending-keys.md | 2 +- .../docs/guides/testing-with-libtmux.md | 2 +- site/src/content/docs/guides/tmux-support.md | 48 +++++++++++++++++++ .../workspace/reference/compatibility.md | 2 +- .../cxx/workspace/reference/compatibility.md | 2 +- site/src/content/docs/ports/go/mcp/index.md | 2 +- .../go/workspace/reference/compatibility.md | 2 +- .../ports/java/guides/attaching-to-tmux.md | 2 +- .../content/docs/ports/java/mcp/examples.md | 2 +- .../src/content/docs/ports/java/mcp/guides.md | 2 +- .../java/workspace/reference/compatibility.md | 2 +- .../docs/ports/kotlin/concepts/queries.md | 2 +- .../concepts/server-session-window-pane.md | 2 +- .../docs/ports/kotlin/concepts/transports.md | 2 +- .../docs/ports/kotlin/concepts/workspaces.md | 2 +- .../ports/kotlin/guides/attaching-to-tmux.md | 2 +- .../content/docs/ports/py/concepts/queries.md | 4 +- .../docs/ports/py/guides/attaching-to-tmux.md | 2 +- site/src/content/docs/ports/py/mcp/guides.md | 2 +- site/src/content/docs/ports/py/mcp/index.md | 2 +- .../docs/ports/py/topics/options-and-hooks.md | 4 +- .../content/docs/ports/py/workspace/guides.md | 2 +- .../py/workspace/reference/compatibility.md | 2 +- site/src/content/docs/ports/rs/mcp/index.md | 2 +- .../rs/workspace/reference/compatibility.md | 2 +- .../src/content/docs/ports/ruby/mcp/guides.md | 2 +- site/src/content/docs/ports/ruby/mcp/index.md | 2 +- .../docs/ports/scala/concepts/queries.md | 2 +- .../concepts/server-session-window-pane.md | 2 +- .../docs/ports/scala/concepts/transports.md | 2 +- .../docs/ports/scala/concepts/workspaces.md | 2 +- .../ports/scala/guides/attaching-to-tmux.md | 2 +- .../workspace/reference/compatibility.md | 2 +- .../ts/workspace/reference/compatibility.md | 2 +- site/src/content/docs/topics/architecture.md | 2 +- .../content/docs/topics/context-managers.md | 2 +- site/src/content/docs/topics/environment.md | 2 +- .../docs/topics/errors-and-exceptions.md | 2 +- site/src/content/docs/topics/format-tokens.md | 2 +- .../content/docs/topics/options-and-hooks.md | 2 +- .../content/docs/topics/pane-interaction.md | 2 +- .../content/docs/topics/socket-and-servers.md | 2 +- site/src/content/docs/topics/traversal.md | 2 +- .../content/docs/topics/waiting-and-retry.md | 2 +- site/src/data/home-examples.json | 2 +- site/src/lib/ports.ts | 2 +- site/test/browse-cards.test.ts | 2 +- 61 files changed, 113 insertions(+), 68 deletions(-) create mode 100644 site/src/content/docs/guides/tmux-support.md diff --git a/packages/api-model/src/languages/jvm-examples.ts b/packages/api-model/src/languages/jvm-examples.ts index eac0579f6..0030a846c 100644 --- a/packages/api-model/src/languages/jvm-examples.ts +++ b/packages/api-model/src/languages/jvm-examples.ts @@ -76,7 +76,7 @@ export function attachCompleteJvmExamples( } const blocks: NonNullable = [{ lang: 'console', - intro: `${program.description.replace(/\n/g, ' ')} Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:`, + intro: `${program.description.replace(/\n/g, ' ')} Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:`, code: `$ git clone https://github.com/${source.repo}.git libtmux-source && \\\n git -C libtmux-source checkout ${source.revision}\n`, }] for (const file of files) blocks.push({ diff --git a/site/src/content/_workspace-shared/workspace/guides/installation.md b/site/src/content/_workspace-shared/workspace/guides/installation.md index f5eb92b4a..6b2c49550 100644 --- a/site/src/content/_workspace-shared/workspace/guides/installation.md +++ b/site/src/content/_workspace-shared/workspace/guides/installation.md @@ -11,7 +11,7 @@ title: Install and load a workspace The runnable terminal loader is the separate Python application tmuxp. Its -documented prerequisites are Python 3.10 or newer and tmux 3.2 or newer. Install +documented prerequisites are Python 3.10 or newer and tmux 3.3a or newer. Install it in an isolated tool environment with uv: ```console $ uv tool install tmuxp @@ -69,13 +69,7 @@ $ tmux -L workspace-guide kill-session -t '=workspace-guide' Build the documented `tmux-workspace` revision, then load a small session on a -private socket. - -Use a Unix shell with tmux 3.3a or newer on `PATH`. - - -Use a Unix shell with tmux 3.2a or newer on `PATH`. - +private socket. Use a Unix shell with tmux 3.3a or newer on `PATH`. ## Build the command diff --git a/site/src/content/docs/concepts/queries.md b/site/src/content/docs/concepts/queries.md index 27dd44dad..b4a2aa2fb 100644 --- a/site/src/content/docs/concepts/queries.md +++ b/site/src/content/docs/concepts/queries.md @@ -18,7 +18,7 @@ rows; an empty listing is a successful command. ## Match names and choose fields -Save this complete script as `queries.sh`. It requires tmux 3.2a or newer and +Save this complete script as `queries.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a private server, runs the queries, and stops that server on exit. diff --git a/site/src/content/docs/concepts/server-session-window-pane.md b/site/src/content/docs/concepts/server-session-window-pane.md index 4644cf13b..0ea4f550e 100644 --- a/site/src/content/docs/concepts/server-session-window-pane.md +++ b/site/src/content/docs/concepts/server-session-window-pane.md @@ -47,7 +47,7 @@ one server lifetime: another server using the same socket path can reuse IDs. The [target syntax](/tmux/latest/manual/full/#COMMANDS) describes how commands resolve IDs, names, and indexes. -Save this complete script as `hierarchy.sh`. It requires tmux 3.2a or newer +Save this complete script as `hierarchy.sh`. It requires tmux 3.3a or newer and a POSIX shell. It renames a session and a window, checks their IDs, and links the window into another session on its private server. diff --git a/site/src/content/docs/concepts/transports.md b/site/src/content/docs/concepts/transports.md index 8872412e9..89844052f 100644 --- a/site/src/content/docs/concepts/transports.md +++ b/site/src/content/docs/concepts/transports.md @@ -22,7 +22,7 @@ reports replies and events on standard output. ## Group commands and open control mode -Save this complete script as `transports.sh`. It requires tmux 3.2a or newer +Save this complete script as `transports.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a private server with a command group, sends commands through a control client, and cleans up the server. diff --git a/site/src/content/docs/concepts/workspaces.md b/site/src/content/docs/concepts/workspaces.md index b08d0ecf3..976c69582 100644 --- a/site/src/content/docs/concepts/workspaces.md +++ b/site/src/content/docs/concepts/workspaces.md @@ -19,7 +19,7 @@ programs running. ## Build a pane layout -Save this complete script as `layout.sh`. It requires tmux 3.2a or newer and +Save this complete script as `layout.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a three-pane editor window and a one-pane logs window on a private server, then stops that server on exit. diff --git a/site/src/content/docs/examples/attach-and-send-keys.md b/site/src/content/docs/examples/attach-and-send-keys.md index 033af8148..83e55ea09 100644 --- a/site/src/content/docs/examples/attach-and-send-keys.md +++ b/site/src/content/docs/examples/attach-and-send-keys.md @@ -13,7 +13,7 @@ A script can drive a shell it never shows. It starts a detached session, types into the pane with `send-keys`, and reads the screen back with `capture-pane`. The steps below add one command each. Every block is a range of lines from the finished `send-command.sh`, so each step shows code that runs. [The complete -script](#the-complete-script) follows the last step. It needs tmux 3.2a or +script](#the-complete-script) follows the last step. It needs tmux 3.3a or newer and a POSIX shell. ## 1. Choose a private socket diff --git a/site/src/content/docs/examples/capture-pane-output.md b/site/src/content/docs/examples/capture-pane-output.md index f129593bb..a56c0d0c3 100644 --- a/site/src/content/docs/examples/capture-pane-output.md +++ b/site/src/content/docs/examples/capture-pane-output.md @@ -14,7 +14,7 @@ its result are separate operations: the pane's shell may still be processing input when the first capture runs. The steps below build `capture.sh` around that gap. It sends a command, captures the screen until one complete line appears, and removes its server. [The complete script](#the-complete-script) -follows the last step. It requires tmux 3.2 or newer and `sleep` with +follows the last step. It requires tmux 3.3a or newer and `sleep` with fractional seconds. ## 1. Choose a private socket diff --git a/site/src/content/docs/examples/workspace-from-file.md b/site/src/content/docs/examples/workspace-from-file.md index a6ed71bd7..7223535f1 100644 --- a/site/src/content/docs/examples/workspace-from-file.md +++ b/site/src/content/docs/examples/workspace-from-file.md @@ -12,7 +12,7 @@ tableOfContents: true A tmux command file can create a session, arrange its windows, and split its panes. This example builds two windows with three panes, prints their names and pane counts, then removes its private server. The first four steps write -the command file, and the last four load and inspect it. It requires tmux 3.2 +the command file, and the last four load and inspect it. It requires tmux 3.3a or newer and a POSIX shell. ## 1. Create a detached session diff --git a/site/src/content/docs/guides/attaching-to-tmux.md b/site/src/content/docs/guides/attaching-to-tmux.md index 3af1aac06..b3732e87b 100644 --- a/site/src/content/docs/guides/attaching-to-tmux.md +++ b/site/src/content/docs/guides/attaching-to-tmux.md @@ -69,7 +69,7 @@ its name. Each command stays in the calling shell; no terminal is attached. It stops its own server on success or failure. Save it as `connect.sh` and run `sh connect.sh`, or paste the whole block into -a POSIX shell. It requires tmux 3.2a or newer. +a POSIX shell. It requires tmux 3.3a or newer. ```sh title="connect.sh" ( diff --git a/site/src/content/docs/guides/capturing-output.md b/site/src/content/docs/guides/capturing-output.md index a2718162c..cb101df0f 100644 --- a/site/src/content/docs/guides/capturing-output.md +++ b/site/src/content/docs/guides/capturing-output.md @@ -19,7 +19,7 @@ This example forces output into scrollback: it prints 40 numbered lines in a pane with 10 rows. A normal capture shows the last screenful. Adding `-S -` also retrieves earlier lines, including `row-1`. -Save the script as `history.sh`. It needs tmux 3.2a or newer, a POSIX shell and +Save the script as `history.sh`. It needs tmux 3.3a or newer, a POSIX shell and fractional `sleep` support. ```sh title="history.sh" diff --git a/site/src/content/docs/guides/getting-started.md b/site/src/content/docs/guides/getting-started.md index 0b74a5115..58c41f170 100644 --- a/site/src/content/docs/guides/getting-started.md +++ b/site/src/content/docs/guides/getting-started.md @@ -15,7 +15,7 @@ same tmux objects that the language libraries control. ## Install tmux Install tmux with your platform's package manager. These examples require tmux -3.2a or newer and a POSIX shell. Confirm the installed version: +3.3a or newer and a POSIX shell. Confirm the installed version: ```console $ tmux -V diff --git a/site/src/content/docs/guides/index.md b/site/src/content/docs/guides/index.md index f9b4351f4..b0c677a71 100644 --- a/site/src/content/docs/guides/index.md +++ b/site/src/content/docs/guides/index.md @@ -33,6 +33,9 @@ cards: - label: Testing href: testing-with-libtmux/ body: Use isolated tmux servers and manage test cleanup. + - label: tmux support + href: tmux-support/ + body: Find the tmux release every port requires and how an older daemon is refused. --- Use these guides to run tmux tasks from a terminal or a shell script. Start diff --git a/site/src/content/docs/guides/querying-and-filtering.md b/site/src/content/docs/guides/querying-and-filtering.md index b1fa6c319..2498a5dec 100644 --- a/site/src/content/docs/guides/querying-and-filtering.md +++ b/site/src/content/docs/guides/querying-and-filtering.md @@ -21,7 +21,7 @@ Prefix a session target with `=` to require an exact name. `has-session` reports whether it exists; it does not return a pane. This script selects panes in `work` and rejects both zero matches and multiple matches before using an ID. -Save the complete script as `query.sh`. It requires tmux 3.2a or newer and a +Save the complete script as `query.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates and cleans up its own server. ```sh title="query.sh" diff --git a/site/src/content/docs/guides/sending-keys.md b/site/src/content/docs/guides/sending-keys.md index 4e1c7704d..0b98c6bbf 100644 --- a/site/src/content/docs/guides/sending-keys.md +++ b/site/src/content/docs/guides/sending-keys.md @@ -17,7 +17,7 @@ separate operations. This complete script types the word `Enter` into a pane running `cat`, then presses the Enter key. Neither command starts an interactive tmux client. -Save it as `send.sh` and run it in a POSIX shell with tmux 3.2a or newer and +Save it as `send.sh` and run it in a POSIX shell with tmux 3.3a or newer and fractional `sleep` support. ```sh title="send.sh" diff --git a/site/src/content/docs/guides/testing-with-libtmux.md b/site/src/content/docs/guides/testing-with-libtmux.md index c281d43d9..1b3b03684 100644 --- a/site/src/content/docs/guides/testing-with-libtmux.md +++ b/site/src/content/docs/guides/testing-with-libtmux.md @@ -16,7 +16,7 @@ a test run separate from your interactive sessions. ## Run an isolated test This complete shell test creates a session and a window, checks their names, -and prints `tmux fixture passed` on success. It requires tmux 3.2a or newer and +and prints `tmux fixture passed` on success. It requires tmux 3.3a or newer and a POSIX shell. Save it as `test-tmux.sh`. ```sh title="test-tmux.sh" diff --git a/site/src/content/docs/guides/tmux-support.md b/site/src/content/docs/guides/tmux-support.md new file mode 100644 index 000000000..1d7c9b117 --- /dev/null +++ b/site/src/content/docs/guides/tmux-support.md @@ -0,0 +1,48 @@ +--- +supportedPorts: [] +title: tmux support +description: The tmux release every libtmux port requires and how a library refuses an older daemon. +sidebar: + label: tmux support + group: Guides + order: 8 +tableOfContents: true +--- + +Every libtmux port, the MCP servers and the workspace builders support tmux +3.3a and newer. A daemon older than 3.3a is refused before the requested +operation has any effect. + +## The core minimum + +The minimum for ordinary reads, writes, batches, raw commands, workspace +loading and MCP tools is tmux 3.3a. Releases compare in full, including patch +letters, so 3.3 is below the minimum and 3.3a is the first supported release. +A development build such as `next-3.9` ranks below the release it precedes, and +a release candidate ranks below its release. A version the library cannot +read is refused, not assumed to be new enough. + +Libraries judge the daemon that answers on the selected socket, not the `tmux` +executable that sends the command. The two can differ, for example when a +newer client binary talks to a server started by an older one. The rules are: + +- An existing server is checked by the version it reports. A newer client + binary does not authorize an older daemon. +- With no server on the socket, the library validates the executable that + would start one. +- A server that restarts on the same socket is checked again before ordinary + operations use it. +- Typed methods, raw commands, command batches, workspace loading and MCP + tools all pass the same check. A lenient listing call reports the refusal + instead of returning an empty list. +- The refusal raises the port's version error and happens before the command + runs, so a refused call leaves no session, window, option or buffer behind. + +Running `tmux -V` or `tmux -h` on an older executable still works; see the +[command reference](/tmux/latest/manual/full/#COMMANDS). Their output does not +authorize later operations. + +The check assumes tmux's built-in commands keep their meaning. A +[`command-alias`](/tmux/latest/manual/full/#OPTIONS) that redefines a built-in command the library uses to +identify or guard the daemon is outside this guarantee, as are the contents +of user-written aliases and shell programs a library only forwards. diff --git a/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md b/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md index 39993b7aa..94546b660 100644 --- a/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the .NET command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md b/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md index 8772061c9..de70d083f 100644 --- a/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the C++ command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/go/mcp/index.md b/site/src/content/docs/ports/go/mcp/index.md index b4669ed1b..cdbcf6543 100644 --- a/site/src/content/docs/ports/go/mcp/index.md +++ b/site/src/content/docs/ports/go/mcp/index.md @@ -26,7 +26,7 @@ is a separate Go module that exposes tmux through MCP. Its executable is `libtmux-mcp`. Installing the core tmux module does not install this server or its protocol dependencies. -The server requires Go 1.26 or newer to build and tmux 3.3a or newer to run. +The server requires Go 1.26 or newer to build and tmux 3.3a or newer to run. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). The MCP client launches `libtmux-mcp` and exchanges messages over stdin and stdout. The server selects one tmux endpoint and its offered tools at startup. Reconnect after changing that configuration. diff --git a/site/src/content/docs/ports/go/workspace/reference/compatibility.md b/site/src/content/docs/ports/go/workspace/reference/compatibility.md index 3375bb96b..eabae1d35 100644 --- a/site/src/content/docs/ports/go/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/go/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Go command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/java/guides/attaching-to-tmux.md b/site/src/content/docs/ports/java/guides/attaching-to-tmux.md index eaf698352..3f52fa373 100644 --- a/site/src/content/docs/ports/java/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/java/guides/attaching-to-tmux.md @@ -56,7 +56,7 @@ public final class Connect { ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with JDK 25.0.3, library bytecode target Java 21. diff --git a/site/src/content/docs/ports/java/mcp/examples.md b/site/src/content/docs/ports/java/mcp/examples.md index 8fd619e9f..c69fd5ce9 100644 --- a/site/src/content/docs/ports/java/mcp/examples.md +++ b/site/src/content/docs/ports/java/mcp/examples.md @@ -19,7 +19,7 @@ For a client configured to launch the server itself, use the ## Create the project -Use JDK 25, Git, tmux 3.2a or newer, and a Unix host with `env -u`. Create an +Use JDK 25, Git, tmux 3.3a or newer, and a Unix host with `env -u`. Create an empty project and fetch the source revision used by this example: ```console diff --git a/site/src/content/docs/ports/java/mcp/guides.md b/site/src/content/docs/ports/java/mcp/guides.md index 53d9708ec..2b6ecb55d 100644 --- a/site/src/content/docs/ports/java/mcp/guides.md +++ b/site/src/content/docs/ports/java/mcp/guides.md @@ -15,7 +15,7 @@ private server when the MCP process exits. ## Build the launcher -Use JDK 25, Git, and tmux 3.2a or newer on a Unix host. Create an empty directory: +Use JDK 25, Git, and tmux 3.3a or newer on a Unix host. Create an empty directory: ```console $ mkdir java-mcp-client && cd java-mcp-client diff --git a/site/src/content/docs/ports/java/workspace/reference/compatibility.md b/site/src/content/docs/ports/java/workspace/reference/compatibility.md index cb3958bb7..f87e9921d 100644 --- a/site/src/content/docs/ports/java/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/java/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Java command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.2a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/kotlin/concepts/queries.md b/site/src/content/docs/ports/kotlin/concepts/queries.md index 12cdb13e1..f08f9de67 100644 --- a/site/src/content/docs/ports/kotlin/concepts/queries.md +++ b/site/src/content/docs/ports/kotlin/concepts/queries.md @@ -16,7 +16,7 @@ Filter captured objects in Kotlin, handle result counts explicitly, and match se ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md b/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md index c310a42c9..bafdad26e 100644 --- a/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md +++ b/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md @@ -18,7 +18,7 @@ A session holds window placements; a window holds panes. A linked window can app ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/concepts/transports.md b/site/src/content/docs/ports/kotlin/concepts/transports.md index 665791ab0..8f3cef7a3 100644 --- a/site/src/content/docs/ports/kotlin/concepts/transports.md +++ b/site/src/content/docs/ports/kotlin/concepts/transports.md @@ -16,7 +16,7 @@ Choose command calls for bounded operations and a control connection when you ne ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/concepts/workspaces.md b/site/src/content/docs/ports/kotlin/concepts/workspaces.md index c272442b2..37697a1ed 100644 --- a/site/src/content/docs/ports/kotlin/concepts/workspaces.md +++ b/site/src/content/docs/ports/kotlin/concepts/workspaces.md @@ -14,7 +14,7 @@ Build a tmux layout from Kotlin by creating a window, splitting a pane and selec ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md b/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md index a0dfc8686..2b1b0aa5f 100644 --- a/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md @@ -52,7 +52,7 @@ fun main() = runBlocking { ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with JDK 25.0.3, Kotlin 2.4.10. diff --git a/site/src/content/docs/ports/py/concepts/queries.md b/site/src/content/docs/ports/py/concepts/queries.md index 27598bf25..b2c096437 100644 --- a/site/src/content/docs/ports/py/concepts/queries.md +++ b/site/src/content/docs/ports/py/concepts/queries.md @@ -56,8 +56,8 @@ to the server instead, so libtmux builds objects only for the matches: >>> server.search_sessions(filter='#{==:#{session_name},alpha-1}') ``` -Python-side lookups work with the library's supported tmux versions. The tmux -filter grammar requires tmux 3.2 or newer. An unknown format token expands to an +Python-side lookups work with the library's supported tmux versions, and the +tmux filter grammar is available on all of them. An unknown format token expands to an empty value, so a malformed filter can look like a valid filter with no matches. If `search_*()` unexpectedly returns no results, try `#{m:*,#{session_name}}` to check that the session data is available. diff --git a/site/src/content/docs/ports/py/guides/attaching-to-tmux.md b/site/src/content/docs/ports/py/guides/attaching-to-tmux.md index 4a007a2c0..d7f0624ff 100644 --- a/site/src/content/docs/ports/py/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/py/guides/attaching-to-tmux.md @@ -38,7 +38,7 @@ print(session.session_name) ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with Python 3.14.6. diff --git a/site/src/content/docs/ports/py/mcp/guides.md b/site/src/content/docs/ports/py/mcp/guides.md index 72925dd3f..3985fe063 100644 --- a/site/src/content/docs/ports/py/mcp/guides.md +++ b/site/src/content/docs/ports/py/mcp/guides.md @@ -10,7 +10,7 @@ sidebar: --- Configure the client to launch `libtmux-mcp` with a named tmux socket. -Install [uv](https://docs.astral.sh/uv/) first, and make tmux 3.2a or newer +Install [uv](https://docs.astral.sh/uv/) first, and make tmux 3.3a or newer available in the environment the client passes to the server. ## Launch the server diff --git a/site/src/content/docs/ports/py/mcp/index.md b/site/src/content/docs/ports/py/mcp/index.md index 7c724af94..176a0870b 100644 --- a/site/src/content/docs/ports/py/mcp/index.md +++ b/site/src/content/docs/ports/py/mcp/index.md @@ -13,7 +13,7 @@ run commands, and wait for their results. The distribution and executable are `libtmux-mcp`; Python imports use `libtmux_mcp`. The server runs over standard input and output. It requires Python 3.10 or -newer and tmux 3.2a or newer. Its default toolsets are `inspect`, `manage`, +newer and tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). Its default toolsets are `inspect`, `manage`, and `execute`; deletion tools require an explicit selection. ## Start here diff --git a/site/src/content/docs/ports/py/topics/options-and-hooks.md b/site/src/content/docs/ports/py/topics/options-and-hooks.md index 44c04cfda..aea739c2b 100644 --- a/site/src/content/docs/ports/py/topics/options-and-hooks.md +++ b/site/src/content/docs/ports/py/topics/options-and-hooks.md @@ -82,8 +82,8 @@ The compatibility notes list these tmux requirements: | Feature | Minimum tmux | |---------|-------------| -| All options/hooks features | 3.2+ | -| Window/pane hook *scope flags* (`-w`, `-p`) accepted | 3.2+; see the supported-scope caveat above | +| All options/hooks features | 3.3a+ | +| Window/pane hook *scope flags* (`-w`, `-p`) accepted | 3.3a+; see the supported-scope caveat above | | `client-active`, `window-resized` hooks | 3.3+ | | `pane-title-changed` hook | 3.2+ | diff --git a/site/src/content/docs/ports/py/workspace/guides.md b/site/src/content/docs/ports/py/workspace/guides.md index 0eab3f88e..b52c391c5 100644 --- a/site/src/content/docs/ports/py/workspace/guides.md +++ b/site/src/content/docs/ports/py/workspace/guides.md @@ -9,7 +9,7 @@ sidebar: tableOfContents: true --- -Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.2 or newer +Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.3a or newer available on the host: ```console diff --git a/site/src/content/docs/ports/py/workspace/reference/compatibility.md b/site/src/content/docs/ports/py/workspace/reference/compatibility.md index fa6b4a74f..b6d202e71 100644 --- a/site/src/content/docs/ports/py/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/py/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true These pages document tmuxp 1.74.0 at the source revision linked below. Install tmuxp in its own Python environment and let its dependency resolver select a compatible libtmux release. The walkthroughs use Python 3.10 or newer and -tmux 3.2a or newer. +tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Configuration and extensions diff --git a/site/src/content/docs/ports/rs/mcp/index.md b/site/src/content/docs/ports/rs/mcp/index.md index d5e8a13fe..bd0a139df 100644 --- a/site/src/content/docs/ports/rs/mcp/index.md +++ b/site/src/content/docs/ports/rs/mcp/index.md @@ -12,7 +12,7 @@ sidebar: terminal capture, command execution, bounded waits, and a static capability resource. -Building requires Rust 1.88 or newer. Running requires tmux 3.3a or newer. +Building requires Rust 1.88 or newer. Running requires tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). Toolsets select inspection, management, execution, and teardown. Read `tmux://capabilities` for the effective startup selection. diff --git a/site/src/content/docs/ports/rs/workspace/reference/compatibility.md b/site/src/content/docs/ports/rs/workspace/reference/compatibility.md index c04c8b6d2..c55377497 100644 --- a/site/src/content/docs/ports/rs/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/rs/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Rust command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/ruby/mcp/guides.md b/site/src/content/docs/ports/ruby/mcp/guides.md index bcc7b376d..ce04ea07a 100644 --- a/site/src/content/docs/ports/ruby/mcp/guides.md +++ b/site/src/content/docs/ports/ruby/mcp/guides.md @@ -39,7 +39,7 @@ When launching the installed `libtmux-mcp` executable directly, pass `--enable-tool tmux_capture` or `--enable-tool tmux_wait` as command arguments. `tmux_wait` can observe screen text or a process exit. Strong process tracking -requires tmux 3.3 or newer and a supported native identity backend. A refusal +requires tmux 3.3a or newer and a supported native identity backend. A refusal means the required evidence is unavailable; it is not a successful wait. See the [tool reference](../tools/) for arguments and results. diff --git a/site/src/content/docs/ports/ruby/mcp/index.md b/site/src/content/docs/ports/ruby/mcp/index.md index 3a531c9c0..111a384c0 100644 --- a/site/src/content/docs/ports/ruby/mcp/index.md +++ b/site/src/content/docs/ports/ruby/mcp/index.md @@ -27,6 +27,6 @@ calling an undisclosed name. - [Language API](./reference/) documents the Ruby embedding surface. The server requires Ruby 3.3 or newer. Strong process tracking for waits and -authored runs requires tmux 3.3 or newer plus native process identity support. +authored runs requires tmux 3.3a or newer plus native process identity support. The [MCP server guide](./source-guide/) is staged from the same revision as the generated reference. diff --git a/site/src/content/docs/ports/scala/concepts/queries.md b/site/src/content/docs/ports/scala/concepts/queries.md index f9d7b4678..595cf5ec1 100644 --- a/site/src/content/docs/ports/scala/concepts/queries.md +++ b/site/src/content/docs/ports/scala/concepts/queries.md @@ -16,7 +16,7 @@ Filter captured objects in Scala, handle result counts explicitly, and match ses ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md b/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md index 59ab9d550..508bcecea 100644 --- a/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md +++ b/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md @@ -18,7 +18,7 @@ A session holds window placements; a window holds panes. A linked window can app ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/concepts/transports.md b/site/src/content/docs/ports/scala/concepts/transports.md index 1e1b6ec89..a85027ad9 100644 --- a/site/src/content/docs/ports/scala/concepts/transports.md +++ b/site/src/content/docs/ports/scala/concepts/transports.md @@ -16,7 +16,7 @@ The direct [`Server`](../../reference/io-github-libtmux-scaladsl-server/) API bl ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/concepts/workspaces.md b/site/src/content/docs/ports/scala/concepts/workspaces.md index 5b4fe5825..72900c360 100644 --- a/site/src/content/docs/ports/scala/concepts/workspaces.md +++ b/site/src/content/docs/ports/scala/concepts/workspaces.md @@ -14,7 +14,7 @@ Build a tmux layout from Scala by creating a window, splitting a pane and select ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md b/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md index c22bb1017..b8403244b 100644 --- a/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md @@ -52,7 +52,7 @@ object Connect { ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with JDK 25.0.3, Scala 3.9.0. diff --git a/site/src/content/docs/ports/swift/workspace/reference/compatibility.md b/site/src/content/docs/ports/swift/workspace/reference/compatibility.md index cfe1f09b8..6ea4a1e20 100644 --- a/site/src/content/docs/ports/swift/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/swift/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Swift command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/ts/workspace/reference/compatibility.md b/site/src/content/docs/ports/ts/workspace/reference/compatibility.md index cc4f09989..aa32fabb1 100644 --- a/site/src/content/docs/ports/ts/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/ts/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the TypeScript command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/topics/architecture.md b/site/src/content/docs/topics/architecture.md index 5b21d0024..d052c2fcb 100644 --- a/site/src/content/docs/topics/architecture.md +++ b/site/src/content/docs/topics/architecture.md @@ -16,7 +16,7 @@ server. A command client can exit while the server and pane programs continue. ## Observe the server across client commands -Save this complete script as `architecture.sh`. It requires tmux 3.2a or +Save this complete script as `architecture.sh`. It requires tmux 3.3a or newer and a POSIX shell. It starts a private server, reads it through separate clients, and verifies that its session survives with no attached clients. diff --git a/site/src/content/docs/topics/context-managers.md b/site/src/content/docs/topics/context-managers.md index 3d1a49edd..5536acfc6 100644 --- a/site/src/content/docs/topics/context-managers.md +++ b/site/src/content/docs/topics/context-managers.md @@ -22,7 +22,7 @@ panes, and every session link to that window. [`kill-session`](/tmux/latest/manual/kill-session/) destroys the session and its window links. A window linked to another surviving session can remain. -Save this complete script as `cleanup.sh`. It requires tmux 3.2a or newer and +Save this complete script as `cleanup.sh`. It requires tmux 3.3a or newer and a POSIX shell. It removes a temporary pane, window, and session while keeping an independent session on the same private server. diff --git a/site/src/content/docs/topics/environment.md b/site/src/content/docs/topics/environment.md index a08f457d0..276edf8b5 100644 --- a/site/src/content/docs/topics/environment.md +++ b/site/src/content/docs/topics/environment.md @@ -16,7 +16,7 @@ processes. It does not change the environment of processes already running. ## Set defaults and a one-pane override -Save this complete script as `environment.sh`. It requires tmux 3.2a or newer +Save this complete script as `environment.sh`. It requires tmux 3.3a or newer and a POSIX shell. It inspects global and session values, launches new panes, and checks the environment each process receives on a private server. diff --git a/site/src/content/docs/topics/errors-and-exceptions.md b/site/src/content/docs/topics/errors-and-exceptions.md index 6c91d8831..2c6dd4c9e 100644 --- a/site/src/content/docs/topics/errors-and-exceptions.md +++ b/site/src/content/docs/topics/errors-and-exceptions.md @@ -16,7 +16,7 @@ can be handled as a branch in a shell script. ## Check absence and partial work -Save this complete script as `failures.sh`. It requires tmux 3.2a or newer +Save this complete script as `failures.sh`. It requires tmux 3.3a or newer and a POSIX shell. It checks a missing session, deliberately fails a grouped command, and inspects what remains on its private server. diff --git a/site/src/content/docs/topics/format-tokens.md b/site/src/content/docs/topics/format-tokens.md index 3b3d12b30..fd45b46fc 100644 --- a/site/src/content/docs/topics/format-tokens.md +++ b/site/src/content/docs/topics/format-tokens.md @@ -16,7 +16,7 @@ expansion and listing commands' `-F` flag to choose fields for each row. ## Read fields from a pane -Save this complete script as `formats.sh`. It requires tmux 3.2a or newer and +Save this complete script as `formats.sh`. It requires tmux 3.3a or newer and a POSIX shell. It reads the context of a private pane, evaluates a conditional, and checks the format inventory before cleaning up. diff --git a/site/src/content/docs/topics/options-and-hooks.md b/site/src/content/docs/topics/options-and-hooks.md index 12c987424..050023c7e 100644 --- a/site/src/content/docs/topics/options-and-hooks.md +++ b/site/src/content/docs/topics/options-and-hooks.md @@ -16,7 +16,7 @@ different effects. ## Set options and observe an event -Save this complete script as `options.sh`. It requires tmux 3.2a or newer and +Save this complete script as `options.sh`. It requires tmux 3.3a or newer and a POSIX shell. It checks a global default and local overrides, then registers and removes a session hook on its private server. diff --git a/site/src/content/docs/topics/pane-interaction.md b/site/src/content/docs/topics/pane-interaction.md index 44d1631d9..5c8bc2d1c 100644 --- a/site/src/content/docs/topics/pane-interaction.md +++ b/site/src/content/docs/topics/pane-interaction.md @@ -16,7 +16,7 @@ and observing its result as separate operations. ## Send a command and capture its result -Save this complete script as `pane-io.sh`. It requires tmux 3.2a or newer and +Save this complete script as `pane-io.sh`. It requires tmux 3.3a or newer and a POSIX shell. It starts a shell with an empty prompt, sends a command, polls for both result lines, and cleans up its private server. diff --git a/site/src/content/docs/topics/socket-and-servers.md b/site/src/content/docs/topics/socket-and-servers.md index 345dc7e8b..00838a677 100644 --- a/site/src/content/docs/topics/socket-and-servers.md +++ b/site/src/content/docs/topics/socket-and-servers.md @@ -20,7 +20,7 @@ an explicit socket path; when supplied, it takes precedence over `-L`. Without an explicit selection, a client inside tmux can use the server recorded in `TMUX`; an outside client uses the default socket. -Save this complete script as `sockets.sh`. It requires tmux 3.2a or newer and +Save this complete script as `sockets.sh`. It requires tmux 3.3a or newer and a POSIX shell. It starts two private servers with the same session name, changes one, and verifies that the other is unaffected. diff --git a/site/src/content/docs/topics/traversal.md b/site/src/content/docs/topics/traversal.md index 432d5d509..4822bea8e 100644 --- a/site/src/content/docs/topics/traversal.md +++ b/site/src/content/docs/topics/traversal.md @@ -16,7 +16,7 @@ address those objects. ## Read a hierarchy with a shared window -Save this complete script as `traversal.sh`. It requires tmux 3.2a or newer +Save this complete script as `traversal.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a shared window on a private server and checks both listing-row counts and unique pane counts. diff --git a/site/src/content/docs/topics/waiting-and-retry.md b/site/src/content/docs/topics/waiting-and-retry.md index 76037055d..48aac41fb 100644 --- a/site/src/content/docs/topics/waiting-and-retry.md +++ b/site/src/content/docs/topics/waiting-and-retry.md @@ -16,7 +16,7 @@ cooperate, or poll an observable condition with a deadline. ## Signal completion and bound the wait -Save this complete script as `waiting.sh`. It requires tmux 3.2a or newer, +Save this complete script as `waiting.sh`. It requires tmux 3.3a or newer, a POSIX shell, and the GNU coreutils `timeout` command. It starts a producer on a private server, waits for its signal, checks a deadline, and releases a cooperative lock before cleanup. diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 24d28a1a6..33bba2b83 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -18,7 +18,7 @@ "code": "from __future__ import annotations\n\nfrom pathlib import Path\nimport shutil\nimport tempfile\nimport time\n\nimport libtmux\n\ndirectory = Path(tempfile.mkdtemp(prefix=\"libtmux-py-home-\"))\nsocket = directory / \"tmux.sock\"\nserver = libtmux.Server(socket_path=socket, config_file=\"/dev/null\")\n\ntry:\n session = server.new_session(session_name=\"demo\")\n window = session.active_window\n assert window is not None\n pane = window.split(shell=\"sh\")\n\n pane.send_keys(\"printf '\\\\nHello world\\\\n'\", enter=True)\n\n deadline = time.monotonic() + 5\n while \"Hello world\" not in pane.capture_pane():\n if time.monotonic() >= deadline:\n raise TimeoutError(\"The pane did not print Hello world\")\n time.sleep(0.02)\n\n print(\"Hello world\")\nexcept Exception as error:\n raise RuntimeError(\"tmux quickstart failed\") from error\nfinally:\n if socket.exists():\n server.kill()\n shutil.rmtree(directory)\n" } ], - "prerequisites": "POSIX shell, Git, tmux 3.2a or newer, Python 3.14.6 and uv (tested 0.12.0).", + "prerequisites": "POSIX shell, Git, tmux 3.3a or newer, Python 3.14.6 and uv (tested 0.12.0).", "commands": [ "git init -q source\ngit -C source fetch -q --depth=1 \\\n https://github.com/tmux-python/libtmux.git \\\n 9fdd083a8181a827889337b63cd4e6daea661a8c\ngit -C source checkout -q --detach FETCH_HEAD\nuv venv .venv\nuv pip install --python .venv/bin/python ./source", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\n.venv/bin/python quickstart.py" diff --git a/site/src/lib/ports.ts b/site/src/lib/ports.ts index f24343670..39f25d928 100644 --- a/site/src/lib/ports.ts +++ b/site/src/lib/ports.ts @@ -648,7 +648,7 @@ const CORE_PORTS: readonly Port[] = [ // Unselected source installs follow the default branch. git: { code: 'using Pkg\nPkg.add(PackageSpec(url="https://github.com/libtmux/libtmux-julia.git", rev="master"))', lang: 'julia' }, }, - installNote: 'Requires Julia 1.13.1 and tmux 3.7c or newer. JSON layouts require tmux 3.8. Companion packages install from the same revision as the core.', + installNote: 'Requires Julia 1.13.1 and tmux 3.3a or newer. JSON layouts require tmux 3.8. Companion packages install from the same revision as the core.', }, { slug: 'elixir', diff --git a/site/test/browse-cards.test.ts b/site/test/browse-cards.test.ts index 15a32a85d..4a399e962 100644 --- a/site/test/browse-cards.test.ts +++ b/site/test/browse-cards.test.ts @@ -28,7 +28,7 @@ const cards = (section: string, port?: string) => describe('shared browse cards', () => { it.each([ - ['guides', 6], ['concepts', 4], ['topics', 10], ['examples', 3], + ['guides', 7], ['concepts', 4], ['topics', 10], ['examples', 3], ] as const)('keeps the %s destinations in shared and native version mounts', (section, count) => { const shared = cards(section) expect(shared).toHaveLength(count) From 8f8c38edc85a5fa7e65ed1268be9c1193d28fc3a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 17 Oct 2026 03:40:00 -0500 Subject: [PATCH 02/53] test(site) Check that tmux minimum statements name 3.3a why: Scattered "tmux X or newer" statements across content, example prerequisites and install notes had no check, so a page could keep an old floor after the support contract moved. what: - Scan the content, home quickstart data, port install notes and example introductions for "tmux X or newer", "tmux X+" and "tmux X through Y" and require X to be 3.3a - Skip facts about tmux itself, which follow "on", and staged port guides, which carry the pinned port's own floor - Reword the legacy 88-colour flag note so it states a tmux fact and not a minimum Verified: the check passes; restoring one "tmux 3.2a or newer" line in topics/traversal.md makes it fail naming that file, and restoring the line makes it pass. --- .../_workspace-shared/workspace/cli/load.md | 2 +- site/test/tmux-minimum.test.ts | 63 +++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 site/test/tmux-minimum.test.ts diff --git a/site/src/content/_workspace-shared/workspace/cli/load.md b/site/src/content/_workspace-shared/workspace/cli/load.md index 19528fe54..d38a023c0 100644 --- a/site/src/content/_workspace-shared/workspace/cli/load.md +++ b/site/src/content/_workspace-shared/workspace/cli/load.md @@ -66,7 +66,7 @@ settings](../../configuration/environment/) for environment bindings and | `-d` | flag; False | load the session without attaching it | | `-a`, `--append` | flag; False | load workspace, appending windows to the current session | | `-2` | flag; None | force tmux to assume the terminal supports 256 colours. | -| `-8` | flag; None | legacy 88-colour flag; unsupported by tmux 3.2a+ | +| `-8` | flag; None | legacy 88-colour flag; unsupported since tmux 3.2a | | `--log-file` | value; None | file to log errors/output to | | `--progress-format` | value; None | Spinner line format: preset name (default, minimal, window, pane, verbose) or a format string with tokens {session}, {window}, {progress}, {window_progress}, {pane_progress}, etc. Env: TMUXP_PROGRESS_FORMAT | | `--progress-lines` | value; None | Number of script-output lines shown in the spinner panel (default: 3). 0 hides the panel entirely (script output goes to stdout). -1 shows unlimited lines (capped to terminal height). Env: TMUXP_PROGRESS_LINES | diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts new file mode 100644 index 000000000..a1311601b --- /dev/null +++ b/site/test/tmux-minimum.test.ts @@ -0,0 +1,63 @@ +import { readFileSync, readdirSync } from 'node:fs' +import { dirname, join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { describe, expect, it } from 'vitest' + +/** + * Every statement of a tmux minimum names the core floor. + * + * A requirement phrased "tmux X or newer", "tmux X+" or "tmux X through Y" + * is a support promise. These pages, example prerequisites and install notes + * must agree with the floor in the core tmux support contract. Facts about + * tmux itself, such as the release that added a format field, use other + * phrasing, or follow "on", and are not matched. Staged port guides come from + * pinned port revisions and carry their own floor. + */ +const FLOOR = '3.3a' +const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') +const RANGES = [ + 'site/src/content', + 'site/src/data/home-examples.json', + 'site/src/lib/ports.ts', + 'packages/api-model/src/languages', +] + +function files(path: string): string[] { + const absolute = join(ROOT, path) + let entries + try { entries = readdirSync(absolute, { withFileTypes: true }) } catch { return [path] } + return entries.flatMap((entry) => files(join(path, entry.name))) +} + +/** A minimum promise: the version after "tmux" is followed by a floor phrase. */ +export function minimums(text: string): string[] { + const found: string[] = [] + const pattern = /(? { + it('recognizes each phrasing of a minimum', () => { + expect(minimums('Use tmux 3.2a or newer.')).toEqual(['3.2a']) + expect(minimums('Use tmux 3.2\nor newer.')).toEqual(['3.2']) + expect(minimums('Use tmux 3.2a through 3.7c.')).toEqual(['3.2a']) + expect(minimums('tmux 3.2a+ is a target')).toEqual(['3.2a']) + expect(minimums('A field present on tmux 3.3 or\nnewer is optional.')).toEqual([]) + expect(minimums('The example ran on tmux 3.2a and 3.7c.')).toEqual([]) + }) + + it('names the core floor everywhere a minimum is stated', () => { + const stale: string[] = [] + let seen = 0 + for (const path of RANGES.flatMap(files)) { + if (!/\.(md|mdx|json|ts)$/.test(path) || path.includes('/_staged/')) continue + for (const version of minimums(readFileSync(join(ROOT, path), 'utf8'))) { + seen += 1 + if (version !== FLOOR) stale.push(`${path}: tmux ${version}`) + } + } + expect(seen).toBeGreaterThan(50) + expect(stale).toEqual([]) + }) +}) From ad364579b9eaac2f4b3e443be1df7501be3fb57a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 17 Oct 2026 11:33:51 -0500 Subject: [PATCH 03/53] fix(site) Link port pages to the shared tmux support guide why: The assembled-site link check failed on PR #150 with 11 broken links. Port pages linked `/guides/tmux-support/`, which resolves inside each port's own docs (`/en//latest/guides/tmux-support/`), and no port has its own copy of that guide. Shared guides are served under `/en/tmux/guides/`, which existing port pages reach by relative path. what: - Point the workspace compatibility pages at `../../../../../tmux/guides/tmux-support/` - Point the Python, Go and Rust MCP entry pages at `../../../tmux/guides/tmux-support/` --- .../docs/ports/csharp/workspace/reference/compatibility.md | 2 +- .../content/docs/ports/cxx/workspace/reference/compatibility.md | 2 +- site/src/content/docs/ports/go/mcp/index.md | 2 +- .../content/docs/ports/go/workspace/reference/compatibility.md | 2 +- .../docs/ports/java/workspace/reference/compatibility.md | 2 +- site/src/content/docs/ports/py/mcp/index.md | 2 +- .../content/docs/ports/py/workspace/reference/compatibility.md | 2 +- site/src/content/docs/ports/rs/mcp/index.md | 2 +- .../content/docs/ports/rs/workspace/reference/compatibility.md | 2 +- .../docs/ports/swift/workspace/reference/compatibility.md | 2 +- .../content/docs/ports/ts/workspace/reference/compatibility.md | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md b/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md index 94546b660..f15329f99 100644 --- a/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the .NET command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md b/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md index de70d083f..07be32990 100644 --- a/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the C++ command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/go/mcp/index.md b/site/src/content/docs/ports/go/mcp/index.md index cdbcf6543..cfd2ce0bf 100644 --- a/site/src/content/docs/ports/go/mcp/index.md +++ b/site/src/content/docs/ports/go/mcp/index.md @@ -26,7 +26,7 @@ is a separate Go module that exposes tmux through MCP. Its executable is `libtmux-mcp`. Installing the core tmux module does not install this server or its protocol dependencies. -The server requires Go 1.26 or newer to build and tmux 3.3a or newer to run. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +The server requires Go 1.26 or newer to build and tmux 3.3a or newer to run. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../tmux/guides/tmux-support/). The MCP client launches `libtmux-mcp` and exchanges messages over stdin and stdout. The server selects one tmux endpoint and its offered tools at startup. Reconnect after changing that configuration. diff --git a/site/src/content/docs/ports/go/workspace/reference/compatibility.md b/site/src/content/docs/ports/go/workspace/reference/compatibility.md index eabae1d35..8a1cda596 100644 --- a/site/src/content/docs/ports/go/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/go/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Go command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/java/workspace/reference/compatibility.md b/site/src/content/docs/ports/java/workspace/reference/compatibility.md index f87e9921d..6dea7e6a2 100644 --- a/site/src/content/docs/ports/java/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/java/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Java command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/py/mcp/index.md b/site/src/content/docs/ports/py/mcp/index.md index 176a0870b..0279535d7 100644 --- a/site/src/content/docs/ports/py/mcp/index.md +++ b/site/src/content/docs/ports/py/mcp/index.md @@ -13,7 +13,7 @@ run commands, and wait for their results. The distribution and executable are `libtmux-mcp`; Python imports use `libtmux_mcp`. The server runs over standard input and output. It requires Python 3.10 or -newer and tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). Its default toolsets are `inspect`, `manage`, +newer and tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../tmux/guides/tmux-support/). Its default toolsets are `inspect`, `manage`, and `execute`; deletion tools require an explicit selection. ## Start here diff --git a/site/src/content/docs/ports/py/workspace/reference/compatibility.md b/site/src/content/docs/ports/py/workspace/reference/compatibility.md index b6d202e71..7d0735957 100644 --- a/site/src/content/docs/ports/py/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/py/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true These pages document tmuxp 1.74.0 at the source revision linked below. Install tmuxp in its own Python environment and let its dependency resolver select a compatible libtmux release. The walkthroughs use Python 3.10 or newer and -tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Configuration and extensions diff --git a/site/src/content/docs/ports/rs/mcp/index.md b/site/src/content/docs/ports/rs/mcp/index.md index bd0a139df..be7a05d69 100644 --- a/site/src/content/docs/ports/rs/mcp/index.md +++ b/site/src/content/docs/ports/rs/mcp/index.md @@ -12,7 +12,7 @@ sidebar: terminal capture, command execution, bounded waits, and a static capability resource. -Building requires Rust 1.88 or newer. Running requires tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +Building requires Rust 1.88 or newer. Running requires tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../tmux/guides/tmux-support/). Toolsets select inspection, management, execution, and teardown. Read `tmux://capabilities` for the effective startup selection. diff --git a/site/src/content/docs/ports/rs/workspace/reference/compatibility.md b/site/src/content/docs/ports/rs/workspace/reference/compatibility.md index c55377497..9370a113d 100644 --- a/site/src/content/docs/ports/rs/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/rs/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Rust command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/swift/workspace/reference/compatibility.md b/site/src/content/docs/ports/swift/workspace/reference/compatibility.md index 6ea4a1e20..32d608cf0 100644 --- a/site/src/content/docs/ports/swift/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/swift/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Swift command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/ts/workspace/reference/compatibility.md b/site/src/content/docs/ports/ts/workspace/reference/compatibility.md index aa32fabb1..4d13beb11 100644 --- a/site/src/content/docs/ports/ts/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/ts/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the TypeScript command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](/guides/tmux-support/). +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution From 151eac033bf93b973d0288d0929f010eb40fc38d Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 17 Oct 2026 13:24:56 -0500 Subject: [PATCH 04/53] chore(just) Clean ignored build output why: .gitignore already names rebuildable output. A shell rm list drifts across Windows and Unix, and git clean -x keeps only positive -e patterns, so a negated .env exclude still deletes .env. what: - Add clean and clean-dry with git clean -fdX, keeping .env - Add nuke with git clean -fdx and a confirm prompt, naming .env so it stays --- justfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 000000000..a5c2edf2c --- /dev/null +++ b/justfile @@ -0,0 +1,23 @@ +# Remove ignored build output. .gitignore decides what that is. +# https://just.systems/ + +# List available commands +default: + @just --list + +# Remove ignored build artifacts and caches. Untracked files and .env stay. +[group: 'clean'] +clean: + git clean -fdX -e '!.env' -e '!.env.*' + +# Preview what clean will delete. +[group: 'clean'] +clean-dry: + git clean -ndX -e '!.env' -e '!.env.*' + +# Remove ignored and untracked files. .env and .env.* stay. +# git clean -x ignores .gitignore and only preserves -e patterns, so .env is named here rather than negated. +[group: 'clean'] +[confirm("This will delete all untracked and ignored files. Continue?")] +nuke: + git clean -fdx -e '.env' -e '.env.*' From 2a662970ed97f9fccacb4b804214fce8216c178d Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 19 Oct 2026 20:20:39 -0500 Subject: [PATCH 05/53] feat(scripts[tmux-usage]) Record which library methods send a tmux command why: A tmux command page linked one library symbol per language, picked from the concept map. That listed methods that only read a snapshot and missed the ones that run the command. Which symbol runs list-panes, and at which scope, is a fact of each port's source, and the API models carry only the first line of a declaration, not its body. what: - Scan each port's source at the revision its API model was extracted from, with tree-sitter (ruby and lua join the grammar table) and a text scan for Julia, and keep every command-name literal with the flags written beside it; docstrings, default values, error messages and the Windows-only branch of the C++ port are not sends - Credit the public symbol whose own body holds the literal, or the one that calls the private helper that does; leave out a helper that many public symbols call or that lists at several scopes - Check reviewed claims for the sends a scan cannot see (a command named by a template, a scope carried by a typed argument, a snapshot call, a wrapper over another port) line by line against the pinned source, so generation fails when one stops holding - Give list-panes its server, session and window scopes and C functions, checked against the call edges of both pinned tmux models and the guard before each call - Write site/src/data/tmux-usage/.json for list-panes, run gen-tmux-usage --check in the medium loop and its negative check in the publication audit Verified: gen-tmux-usage --check --source regenerates all fifteen ports byte for byte from the checkouts. The derivation tests fail when the default-value, neighbour-flag, _WIN32, fan-out, one-hop and scope rules are broken one at a time, and pass with them restored. --- packages/api-model/src/parser.ts | 2 + scripts/README.md | 32 ++ scripts/gen-tmux-usage.mjs | 260 ++++++++++++++++ scripts/gen-tmux-usage.negative.mjs | 85 ++++++ scripts/lib/tmux-usage-derive.mjs | 208 +++++++++++++ scripts/lib/tmux-usage-scan.mjs | 358 +++++++++++++++++++++++ scripts/lib/tmux-usage-scopes.mjs | 55 ++++ scripts/test-all.sh | 9 + scripts/test-loop.mjs | 1 + scripts/tmux-usage/claims.json | 116 ++++++++ site/src/data/tmux-usage/csharp.json | 97 ++++++ site/src/data/tmux-usage/cxx.json | 38 +++ site/src/data/tmux-usage/fsharp.json | 10 + site/src/data/tmux-usage/go.json | 57 ++++ site/src/data/tmux-usage/java.json | 111 +++++++ site/src/data/tmux-usage/julia.json | 23 ++ site/src/data/tmux-usage/kotlin.json | 10 + site/src/data/tmux-usage/lua.json | 24 ++ site/src/data/tmux-usage/powershell.json | 49 ++++ site/src/data/tmux-usage/py.json | 74 +++++ site/src/data/tmux-usage/rs.json | 56 ++++ site/src/data/tmux-usage/ruby.json | 44 +++ site/src/data/tmux-usage/scala.json | 10 + site/src/data/tmux-usage/scopes.json | 12 + site/src/data/tmux-usage/swift.json | 29 ++ site/src/data/tmux-usage/ts.json | 25 ++ site/test/tmux-usage-derive.test.ts | 245 ++++++++++++++++ 27 files changed, 2040 insertions(+) create mode 100644 scripts/gen-tmux-usage.mjs create mode 100644 scripts/gen-tmux-usage.negative.mjs create mode 100644 scripts/lib/tmux-usage-derive.mjs create mode 100644 scripts/lib/tmux-usage-scan.mjs create mode 100644 scripts/lib/tmux-usage-scopes.mjs create mode 100644 scripts/tmux-usage/claims.json create mode 100644 site/src/data/tmux-usage/csharp.json create mode 100644 site/src/data/tmux-usage/cxx.json create mode 100644 site/src/data/tmux-usage/fsharp.json create mode 100644 site/src/data/tmux-usage/go.json create mode 100644 site/src/data/tmux-usage/java.json create mode 100644 site/src/data/tmux-usage/julia.json create mode 100644 site/src/data/tmux-usage/kotlin.json create mode 100644 site/src/data/tmux-usage/lua.json create mode 100644 site/src/data/tmux-usage/powershell.json create mode 100644 site/src/data/tmux-usage/py.json create mode 100644 site/src/data/tmux-usage/rs.json create mode 100644 site/src/data/tmux-usage/ruby.json create mode 100644 site/src/data/tmux-usage/scala.json create mode 100644 site/src/data/tmux-usage/scopes.json create mode 100644 site/src/data/tmux-usage/swift.json create mode 100644 site/src/data/tmux-usage/ts.json create mode 100644 site/test/tmux-usage-derive.test.ts diff --git a/packages/api-model/src/parser.ts b/packages/api-model/src/parser.ts index 9bb441248..2fec1d696 100644 --- a/packages/api-model/src/parser.ts +++ b/packages/api-model/src/parser.ts @@ -31,6 +31,8 @@ const GRAMMAR = { swift: 'swift', kotlin: 'kotlin', scala: 'scala', + ruby: 'ruby', + lua: 'lua', } as const export type GrammarName = keyof typeof GRAMMAR diff --git a/scripts/README.md b/scripts/README.md index afebf4608..a950b89ac 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -165,6 +165,38 @@ $ node scripts/gen-tmux-catalog.mjs --check --source ~/study/c/tmux `gen-tmux-catalog.negative.mjs` proves the check fails on stale data. +### Which library methods send a tmux command + +`gen-tmux-usage.mjs` records, per port, the public symbols whose source sends +each tmux command and at which scope, in `site/src/data/tmux-usage/.json`. +It reads each port's source at the revision its API model was extracted from, +through the port checkouts named in `ports.ts` or +`LIBTMUX_DOCS_CHECKOUT_`. A symbol is credited when a command-name +literal, with the flags beside it, sits in its own body or in one private +helper it calls. A command named by a template, a scope carried by a typed +argument, or a call into a snapshot is a reviewed claim in +`scripts/tmux-usage/claims.json`; each claim cites the lines that make it true +and generation fails when one no longer holds. The commands covered are +`COMMANDS` in the script; `site/src/data/tmux-usage/scopes.json` gives a +command its scopes and C functions, checked against both pinned C models. + +```console +$ node scripts/gen-tmux-usage.mjs +``` + +Verify the committed data. Without `--source` this checks shape and revisions; +with it, the script regenerates from the checkouts and fails when the data is +stale. `--report` lists the sends that no public symbol was credited with, and +`--commands a,b` (or `all`) records other commands, which is how a command is +added to the pages. + +```console +$ node scripts/gen-tmux-usage.mjs --check --source +``` + +`gen-tmux-usage.negative.mjs` proves the check fails on each kind of stale +data. + ### Site checks Four scripts assert things the build itself cannot notice. None of them needs diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs new file mode 100644 index 000000000..f9179eac5 --- /dev/null +++ b/scripts/gen-tmux-usage.mjs @@ -0,0 +1,260 @@ +#!/usr/bin/env node +/** + * Record which public symbols of each library send each tmux command. + * + * Every port's source is read at the revision its API model was extracted + * from. A send site is a command-name literal in code, with the flags written + * beside it; the scope those flags select decides which of the command's C + * functions the symbol answers. Sends a scan cannot see (a command named by a + * template, a scope passed as a typed argument) are reviewed claims in + * `scripts/tmux-usage/claims.json`; each one must still be true of the pinned + * source or generation fails. + * + * The result is `site/src/data/tmux-usage/.json`, keyed by public symbol. + * + * gen-tmux-usage.mjs regenerate from the port checkouts + * gen-tmux-usage.mjs --check verify shape and revision binding, no checkout + * gen-tmux-usage.mjs --check --source also regenerate and compare + * gen-tmux-usage.mjs --report list the sends no public symbol was credited with + * gen-tmux-usage.mjs --data read and write another copy of the data directory + * gen-tmux-usage.mjs --commands a,b record these commands (or `all`) instead of COMMANDS + */ +import { spawnSync } from 'node:child_process' +import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' +import { homedir } from 'node:os' +import { dirname, join, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' +import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' +import { deriveUsage, verifyClaims } from './lib/tmux-usage-derive.mjs' +import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' + +const root = resolve(dirname(fileURLToPath(import.meta.url)), '..') +const dataDir = join(root, 'site/src/data') +const defaultUsageDir = join(dataDir, 'tmux-usage') +const claimsPath = join(root, 'scripts/tmux-usage/claims.json') +export const SCHEMA_VERSION = 1 +/** The commands whose usage is recorded; the rollout adds names here. */ +export const COMMANDS = ['list-panes'] + +const args = process.argv.slice(2) +const option = (name) => args[args.indexOf(name) + 1] +const check = args.includes('--check') +const regenerate = !check || args.includes('--source') +const usageDir = args.includes('--data') ? resolve(option('--data')) : defaultUsageDir + +// The Swift grammar is a very large WASM module; V8's optimizing tier runs out of memory compiling it. +if (regenerate && !process.execArgv.includes('--liftoff-only') && import.meta.url === `file://${process.argv[1]}`) { + const child = spawnSync(process.execPath, ['--liftoff-only', ...process.argv.slice(1)], { stdio: 'inherit' }) + process.exit(child.status ?? 1) +} + +const readJson = (path) => JSON.parse(readFileSync(path, 'utf8')) +const expand = (path) => (path.startsWith('~/') ? join(homedir(), path.slice(2)) : path) +const manualCommands = () => [...new Set(readJson(join(dataDir, 'tmux/versions.json')).versions.flatMap(({ version }) => + readJson(join(dataDir, `tmux/${version}.json`)).commands.map((command) => command.name)))].sort() +const commandsToRecord = !args.includes('--commands') ? COMMANDS + : option('--commands') === 'all' ? manualCommands() : option('--commands').split(',') + +function git(checkout, ...gitArgs) { + const result = spawnSync('git', ['-C', checkout, ...gitArgs], { maxBuffer: 1 << 30 }) + if (result.status !== 0) throw new Error(`git ${gitArgs.join(' ')} in ${checkout}: ${result.stderr}`) + return result.stdout +} + +/** Every file of the revision that is library source, keyed by path. */ +function librarySources(checkout, revision, grammar) { + const listing = git(checkout, 'ls-tree', '-r', revision).toString('utf8').split('\n').filter(Boolean) + .map((line) => { const [meta, path] = line.split('\t'); return { sha: meta.split(' ')[2], path } }) + .filter((entry) => isLibrarySource(entry.path, grammar)) + const blobs = spawnSync('git', ['-C', checkout, 'cat-file', '--batch'], { input: `${listing.map((entry) => entry.sha).join('\n')}\n`, maxBuffer: 1 << 30 }).stdout + const files = new Map() + let position = 0 + for (const entry of listing) { + const newline = blobs.indexOf(10, position) + const size = Number(blobs.subarray(position, newline).toString().split(' ')[2]) + files.set(entry.path, blobs.subarray(newline + 1, newline + 1 + size).toString('utf8')) + position = newline + 1 + size + 1 + } + return files +} + +/** The tmux commands and aliases a literal may spell, from every pinned manual. */ +function knownCommands() { + const names = new Set() + for (const version of readJson(join(dataDir, 'tmux/versions.json')).versions) { + for (const command of readJson(join(dataDir, `tmux/${version.version}.json`)).commands) { + names.add(command.name) + if (command.alias) names.add(command.alias) + } + } + return names +} + +const sortKeys = (value) => Array.isArray(value) ? value.map(sortKeys) + : value && typeof value === 'object' ? Object.fromEntries(Object.entries(value).sort(([a], [b]) => a.localeCompare(b)).map(([key, item]) => [key, sortKeys(item)])) : value + +/** A consumer example declares symbols of its own that the library does not. */ +const EXAMPLES = /(?:^|\/)(?:examples?|tests?|benchmarks?|docs?)\// + +/** Callable public symbols, in the shape the derivation reads. */ +function publicSymbols(model) { + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + return model.symbols + .filter((symbol) => symbol.apiScope !== 'internal' && symbol.source?.file && !EXAMPLES.test(symbol.source.file) + && ['function', 'method', 'property', 'attribute'].includes(symbol.kind)) + .map((symbol) => ({ + id: symbol.publicId ?? symbol.id, + name: symbol.name, + qualified: symbol.qualifiedName, + parentName: symbol.parent ? byId.get(symbol.parent)?.name : undefined, + file: symbol.source.file, + line: symbol.source.line ?? 0, + overloaded: symbol.modifiers?.includes('overload'), + })) +} + +export function portDocument(port, model, found, commands) { + const symbols = {} + for (const entry of found) { + ;(symbols[entry.symbol] ??= []).push({ + command: entry.command, scope: entry.scope, evidence: entry.evidence, + ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.via ? { via: entry.via } : {}), + }) + } + for (const list of Object.values(symbols)) list.sort((a, b) => a.command.localeCompare(b.command) || String(a.scope).localeCompare(String(b.scope))) + return sortKeys({ schemaVersion: SCHEMA_VERSION, port, repo: model.repo, revision: model.revision, commands: [...commands].sort(), symbols }) +} + +async function derivePort({ port, model, commands, scopes, claims, checkout, known, report, sends }) { + const grammar = GRAMMARS[port] + const symbols = publicSymbols(model) + const functions = [] + const types = [] + const sources = grammar ? librarySources(checkout, model.revision, grammar) : new Map() + const wanted = new Set(commands) + for (const [path, text] of sources) { + const scanned = await scanSource({ grammar, text, commands: wanted, known }) + for (const fn of scanned.functions) functions.push({ ...fn, file: path }) + for (const type of scanned.types) types.push({ ...type, file: path }) + } + const cache = new Map() + const readSource = (path) => { + if (sources.has(path)) return sources.get(path) + if (!cache.has(path)) { + const result = spawnSync('git', ['-C', checkout, 'show', `${model.revision}:${path}`], { maxBuffer: 1 << 28 }) + cache.set(path, result.status === 0 ? result.stdout.toString('utf8') : undefined) + } + return cache.get(path) + } + const found = new Map() + const problems = [] + for (const command of commands) { + const spec = scopes.commands[command] && { scopes: libraryScopes(scopes.commands[command]) } + const derived = deriveUsage({ command, spec, functions, symbols }) + const reviewed = verifyClaims({ + claims: claims.filter((claim) => claim.port === port && claim.command === command), spec, functions, types, symbols, readSource, sends, + }) + problems.push(...reviewed.problems) + for (const entry of [...derived.entries, ...reviewed.entries]) { + const key = `${entry.symbol}\0${entry.command}\0${entry.scope}` + if (!found.has(key) || found.get(key).hops > entry.hops) found.set(key, entry) + } + for (const item of derived.unresolved) report.push(`${port} ${command}: ${item.file}:${item.line} in ${item.function}: ${item.reason}`) + } + return { found: [...found.values()], problems } +} + +/** Ports that have a model, in the order the site lists them. */ +async function portsWithModels() { + const { PORTS } = await import(`file://${join(root, 'site/src/lib/ports.ts')}`) + return PORTS.filter((port) => existsSync(join(dataDir, `api/${port.slug}.json`))) +} + +function checkoutFor(port) { + const override = process.env[`LIBTMUX_DOCS_CHECKOUT_${port.slug.toUpperCase()}`] + return expand(override || port.checkout) +} + +/** What a committed file must satisfy without any checkout. */ +export function documentProblems(document, model, scopes, commands) { + const problems = [] + if (document.schemaVersion !== SCHEMA_VERSION) problems.push(`schemaVersion ${document.schemaVersion}`) + if (document.revision !== model.revision) problems.push(`records ${document.revision}, but the API model is at ${model.revision}`) + if (JSON.stringify(document.commands) !== JSON.stringify([...commands].sort())) problems.push(`covers ${JSON.stringify(document.commands)}, expected ${JSON.stringify([...commands].sort())}`) + const ids = new Set(model.symbols.map((symbol) => symbol.publicId ?? symbol.id)) + for (const [symbol, uses] of Object.entries(document.symbols)) { + if (!ids.has(symbol)) problems.push(`${symbol}: not a symbol of the API model`) + for (const use of uses) { + const scoped = scopes.commands[use.command]?.scopes + if (!commands.includes(use.command)) problems.push(`${symbol}: ${use.command} is not a recorded command`) + if (scoped ? !scoped.some((scope) => scope.id === use.scope) : use.scope !== null) problems.push(`${symbol}: ${use.scope} is not a scope of ${use.command}`) + if (!use.evidence?.length || use.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: evidence must be file:line`) + } + } + return problems +} + +export async function main() { + const scopes = readJson(join(usageDir, 'scopes.json')) + const claims = existsSync(claimsPath) ? readJson(claimsPath).claims : [] + const ports = await portsWithModels() + const report = [] + const failures = [] + const known = regenerate ? knownCommands() : new Set() + mkdirSync(usageDir, { recursive: true }) + + for (const command of commandsToRecord) { + if (!scopes.commands[command]) continue + const versions = readJson(join(dataDir, 'tmux/versions.json')).versions + const tmuxCheckout = process.env.LIBTMUX_DOCS_CHECKOUT_TMUX && expand(process.env.LIBTMUX_DOCS_CHECKOUT_TMUX) + for (const { version } of versions) { + const model = readJson(join(dataDir, `tmux/api/${version}.json`)) + const read = tmuxCheckout && existsSync(tmuxCheckout) + ? (file) => spawnSync('git', ['-C', tmuxCheckout, 'show', `${model.revision}:${file}`], { maxBuffer: 1 << 26 }).stdout.toString('utf8') : undefined + for (const problem of scopeProblems(scopes.commands[command], model, command, read)) failures.push(`tmux ${version}: ${problem}`) + } + } + + /** A wrapper's claim stands on its parent library's own result, so parents run first. */ + const byPort = new Map() + const sends = (port, symbol, command, scope) => byPort.get(port)?.some((entry) => entry.symbol === symbol && entry.command === command && entry.scope === scope) ?? false + const ordered = [...ports].sort((a, b) => Number(Boolean(a.parentLibrary)) - Number(Boolean(b.parentLibrary))) + .sort((a, b) => Number(claims.some((claim) => claim.port === a.slug && claim.via)) - Number(claims.some((claim) => claim.port === b.slug && claim.via))) + let compared = 0 + for (const port of ordered) { + const model = readJson(join(dataDir, `api/${port.slug}.json`)) + const path = join(usageDir, `${port.slug}.json`) + if (check) { + if (!existsSync(path)) { failures.push(`${port.slug}: no ${path}`); continue } + const committed = readJson(path) + for (const problem of documentProblems(committed, model, scopes, commandsToRecord)) failures.push(`${port.slug}: ${problem}`) + if (!args.includes('--source')) continue + } + const checkout = checkoutFor(port) + if (!existsSync(join(checkout, '.git')) && !existsSync(join(checkout, 'HEAD'))) { + if (check) { console.log(`gen-tmux-usage: ${port.slug}: no checkout at ${checkout}; skipped regeneration`); continue } + throw new Error(`${port.slug}: no checkout at ${checkout}; set LIBTMUX_DOCS_CHECKOUT_${port.slug.toUpperCase()}`) + } + const { found, problems } = await derivePort({ port: port.slug, model, commands: commandsToRecord, scopes, claims, checkout, known, report, sends }) + byPort.set(port.slug, found) + failures.push(...problems) + const document = portDocument(port.slug, model, found, commandsToRecord) + const text = `${JSON.stringify(document, null, 2)}\n` + if (check) { + if (text !== readFileSync(path, 'utf8')) failures.push(`${port.slug}: stale; run node scripts/gen-tmux-usage.mjs`) + compared++ + } else { + writeFileSync(path, text) + console.log(`gen-tmux-usage: ${port.slug}: ${Object.keys(document.symbols).length} symbols at ${model.revision.slice(0, 8)}`) + } + } + if (args.includes('--report')) console.log(report.join('\n')) + if (failures.length) { + console.error(failures.map((failure) => `gen-tmux-usage: ${failure}`).join('\n')) + process.exitCode = 1 + return + } + if (check) console.log(`gen-tmux-usage: ${ports.length} ports fresh${compared ? ` (${compared} regenerated and compared)` : ' (shape and revisions only; pass --source to regenerate)'}`) +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) await main() diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs new file mode 100644 index 000000000..890c4fa43 --- /dev/null +++ b/scripts/gen-tmux-usage.negative.mjs @@ -0,0 +1,85 @@ +#!/usr/bin/env node +/* + * Proof that `gen-tmux-usage.mjs --check` fails on usage data that no longer + * fits the API models. + * + * The control is the committed data, because a check that always failed would + * satisfy every other case. Each case is a different way to be stale: a + * revision that moved on, a symbol the model dropped, a scope the command does + * not have, evidence that is not a line, and a port whose file went missing. + */ +import { cpSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { dirname, join } from 'node:path' +import { execFileSync } from 'node:child_process' +import { fileURLToPath } from 'node:url' + +const here = dirname(fileURLToPath(import.meta.url)) +const script = join(here, 'gen-tmux-usage.mjs') +const committed = join(here, '..', 'site/src/data/tmux-usage') + +function run(dir) { + try { + return { code: 0, out: execFileSync('node', [script, '--check', '--data', dir], { encoding: 'utf8', stdio: 'pipe' }) } + } catch (error) { + return { code: error.status, out: `${error.stdout ?? ''}${error.stderr ?? ''}` } + } +} + +const dirs = [] +function fixture() { + const dir = mkdtempSync(join(tmpdir(), 'gen-tmux-usage-')) + cpSync(committed, dir, { recursive: true }) + dirs.push(dir) + return dir +} + +function edit(dir, port, change) { + const file = join(dir, `${port}.json`) + const document = JSON.parse(readFileSync(file, 'utf8')) + change(document) + writeFileSync(file, `${JSON.stringify(document, null, 2)}\n`) +} + +let failures = 0 +const check = (name, ok, detail) => { + if (ok) console.log(`ok ${name}`) + else { console.error(`FAIL ${name} - ${detail}`); failures += 1 } +} +const first = (document) => Object.entries(document.symbols)[0] + +const control = run(fixture()) +check('the committed data passes', control.code === 0, control.out) + +const moved = fixture() +edit(moved, 'py', (document) => { document.revision = '0'.repeat(40) }) +const movedRun = run(moved) +check('a revision that moved on fails', movedRun.code !== 0 && /py: records 0{40}/.test(movedRun.out), movedRun.out) + +const dropped = fixture() +edit(dropped, 'go', (document) => { document.symbols['tmux.Server.NoSuchMethod'] = first(document)[1] }) +const droppedRun = run(dropped) +check('a symbol the model lacks fails', droppedRun.code !== 0 && /go: tmux.Server.NoSuchMethod: not a symbol of the API model/.test(droppedRun.out), droppedRun.out) + +const scoped = fixture() +edit(scoped, 'csharp', (document) => { first(document)[1][0].scope = 'pane' }) +const scopedRun = run(scoped) +check('a scope the command lacks fails', scopedRun.code !== 0 && /pane is not a scope of list-panes/.test(scopedRun.out), scopedRun.out) + +const evidence = fixture() +edit(evidence, 'swift', (document) => { first(document)[1][0].evidence = ['Sources/LibTmux/Server.swift'] }) +const evidenceRun = run(evidence) +check('evidence that is not a line fails', evidenceRun.code !== 0 && /swift: .*evidence must be file:line/.test(evidenceRun.out), evidenceRun.out) + +const missing = fixture() +rmSync(join(missing, 'rs.json')) +const missingRun = run(missing) +check('a port without a file fails', missingRun.code !== 0 && /rs: no /.test(missingRun.out), missingRun.out) + +const unrecorded = fixture() +edit(unrecorded, 'ruby', (document) => { first(document)[1][0].command = 'kill-pane' }) +const unrecordedRun = run(unrecorded) +check('a command the file does not cover fails', unrecordedRun.code !== 0 && /kill-pane is not a recorded command/.test(unrecordedRun.out), unrecordedRun.out) + +for (const dir of dirs) rmSync(dir, { recursive: true, force: true }) +if (failures) process.exit(1) diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs new file mode 100644 index 000000000..f5ffb78d6 --- /dev/null +++ b/scripts/lib/tmux-usage-derive.mjs @@ -0,0 +1,208 @@ +/** + * Decide which public symbols send a tmux command, and at which scope. + * + * A symbol sends a command when a send site sits in its own body or in a + * private helper it calls. The walk goes up the callers of a helper and stops + * at the first public symbol on each path, so a method that only reads what + * another public method captured is not credited with the capture. + */ + +/** Calls between a send site and the public symbol that wraps it. */ +export const MAX_HOPS = 1 + +/** + * A helper that this many public symbols call is infrastructure, such as a + * refresh after every mutation, and crediting each caller would list methods + * whose purpose is another command. + */ +export const MAX_SHARED_BY = 4 + +/** The scope a site's flags select, `null` for a command without scopes, `unknown` when no flag settles it. */ +export function classify(spec, flags) { + if (!spec?.scopes) return null + for (const scope of spec.scopes) if ([...scope.flags].every((flag) => flags.includes(flag))) return scope.id + return 'unknown' +} + +/** `panes(where:)`, `Server.panes` and `Server#list_panes` all name their last identifier. */ +export function bareName(name) { + return name.replace(/\(.*$/s, '').split(/[.:#\\]+/).filter(Boolean).at(-1) ?? name +} + +/** + * @typedef {import('./tmux-usage-scan.mjs').ScannedFunction & { file: string }} LocatedFunction + * @typedef {{ id: string, name: string, qualified?: string, parentName?: string, file: string, line: number, overloaded?: boolean }} UsageSymbol + * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], hops: number }} UsageEntry + * @typedef {{ file: string, line: number, function: string, reason: string }} Unresolved + */ + +/** + * The functions that are each public symbol's own definition, overloads included. + * @param {LocatedFunction[]} functions + * @param {UsageSymbol[]} symbols + * @returns {Map} + */ +export function definitionsOf(functions, symbols) { + const byFile = Map.groupBy(functions, (fn) => fn.file) + const byName = Map.groupBy(functions, (fn) => fn.name) + const definitions = new Map() + for (const symbol of symbols) { + const name = bareName(symbol.name) + const inFile = (byFile.get(symbol.file) ?? []).filter((fn) => fn.name === name) + let hits = inFile.filter((fn) => symbol.line >= fn.start && symbol.line <= fn.nameLine) + if (!hits.length) hits = inFile.filter((fn) => symbol.line >= fn.start && symbol.line <= fn.end) + if (hits.length && symbol.overloaded) hits = inFile.filter((fn) => hits.some((hit) => hit.owner === fn.owner)) + const owner = symbol.parentName && bareName(symbol.parentName) + // A type annotation can sit apart from the function it describes, in the same file. + if (!hits.length && owner) hits = inFile.filter((fn) => fn.owner === owner) + // A declaration in a header is defined in another file under the same type name. + if (!hits.length && owner && !inFile.length) { + hits = (byName.get(name) ?? []).filter((fn) => fn.owner === owner + && (fn.namespace === undefined || symbol.qualified === undefined || symbol.qualified === `${fn.namespace}::${owner}::${name}`)) + } + for (const fn of hits) definitions.set(fn, [...(definitions.get(fn) ?? []), symbol]) + } + // Several declarations can share one definition's name; the header named like the source file owns it. + const stem = (path) => path.replace(/^.*\//, '').replace(/\.[^.]+$/, '') + for (const [fn, owned] of definitions) { + const matching = owned.filter((symbol) => symbol.file !== fn.file && stem(symbol.file) === stem(fn.file)) + if (owned.length > 1 && matching.length) definitions.set(fn, owned.filter((symbol) => symbol.file === fn.file || matching.includes(symbol))) + } + return definitions +} + +/** + * @param {{ command: string, spec?: { scopes?: { id: string, flags: string }[] }, functions: LocatedFunction[], symbols: UsageSymbol[] }} input + * @returns {{ entries: UsageEntry[], unresolved: Unresolved[] }} + */ +export function deriveUsage({ command, spec, functions, symbols }) { + const byName = Map.groupBy(functions, (fn) => fn.name) + const definitions = definitionsOf(functions, symbols) + + const callersOf = (fn) => { + const callers = (functions.filter((other) => other !== fn && other.calls.has(fn.name))) + const sameFile = callers.filter((other) => other.file === fn.file) + if (sameFile.length) return sameFile + return (byName.get(fn.name) ?? []).length === 1 ? callers : [] + } + + /** Public symbols reached from `fn`, each with the call sites walked to reach it. */ + const reach = (fn, trail, depth) => { + const own = definitions.get(fn) + if (own) return own.map((symbol) => ({ symbol, trail })) + if (depth >= MAX_HOPS) return [] + return callersOf(fn).flatMap((caller) => reach(caller, [...trail, `${caller.file}:${caller.calls.get(fn.name)}`], depth + 1)) + } + + const entries = new Map() + const unresolved = [] + for (const fn of functions) { + const sites = fn.sites.filter((site) => site.command === command) + if (!sites.length) continue + const scoped = sites.map((site) => ({ site, scope: classify(spec, site.flags) })) + for (const { site, scope } of scoped) { + if (scope === 'unknown') { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: 'no scope flag beside the command' }) + } + } + const known = scoped.filter(({ scope }) => scope !== 'unknown') + const isPublic = definitions.has(fn) + // A helper that lists at several scopes cannot say which one its caller wants. + const ambiguous = !isPublic && new Set(known.map(({ scope }) => scope)).size > 1 + if (ambiguous) { + unresolved.push({ file: fn.file, line: known[0].site.line, function: fn.name, reason: 'a shared helper lists at several scopes' }) + continue + } + for (const { site, scope } of known) { + const reached = reach(fn, [], 0) + if (!reached.length) { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: 'no public symbol reaches it' }) + continue + } + if (!isPublic && new Set(reached.map(({ symbol }) => symbol.id)).size > MAX_SHARED_BY) { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: `a helper shared by ${new Set(reached.map(({ symbol }) => symbol.id)).size} public symbols` }) + continue + } + for (const { symbol, trail } of reached) { + const key = `${symbol.id}\0${scope}` + const entry = { symbol: symbol.id, command, scope, evidence: [`${fn.file}:${site.line}`, ...trail.toReversed()], hops: trail.length } + if (!entries.has(key) || entries.get(key).hops > entry.hops) entries.set(key, entry) + } + } + } + return { + entries: [...entries.values()].sort((a, b) => a.symbol.localeCompare(b.symbol) || String(a.scope).localeCompare(String(b.scope))), + unresolved, + } +} + +/** + * Reviewed claims for the sends a scan cannot see: a command named by a + * template, a scope carried by a typed argument, or a call into a snapshot. + * Each claim cites the lines that make it true, and the line text must still + * say so at the pinned revision. + * + * A wrapper's claim can name the library symbol it calls, `via`, and then + * stands only while that symbol sends the command at the same scope. + * + * @typedef {{ at: string, has?: string[], in?: string }} Evidence + * @typedef {{ port: string, symbol: string, command: string, scope: string | null, evidence: Evidence[], via?: { port: string, symbol: string } }} Claim + * @param {{ + * claims: Claim[], + * spec?: { scopes?: { id: string }[] }, + * functions: LocatedFunction[], + * types: { file: string, name?: string, start: number, end: number }[], + * symbols: UsageSymbol[], + * readSource: (path: string) => string | undefined, + * sends?: (port: string, symbol: string, command: string, scope: string | null) => boolean, + * }} input + * @returns {{ entries: UsageEntry[], problems: string[] }} + */ +export function verifyClaims({ claims, spec, functions, types, symbols, readSource, sends = () => false }) { + const definitions = definitionsOf(functions, symbols) + const bySymbol = new Map(symbols.map((symbol) => [symbol.id, symbol])) + const entries = [] + const problems = [] + for (const claim of claims) { + const label = `${claim.port}: ${claim.symbol} ${claim.command} ${claim.scope}` + const fail = (message) => problems.push(`${label}: ${message}`) + const symbol = bySymbol.get(claim.symbol) + if (!symbol) { fail('no such public symbol in the API model'); continue } + if (spec?.scopes ? !spec.scopes.some((scope) => scope.id === claim.scope) : claim.scope !== null) { + fail('not a scope of this command') + continue + } + if (!claim.evidence?.length) { fail('cites no evidence'); continue } + let anchored = false + let broken = false + for (const item of claim.evidence) { + const [file, line] = [item.at.slice(0, item.at.lastIndexOf(':')), Number(item.at.slice(item.at.lastIndexOf(':') + 1))] + const text = readSource(file) + const sourceLine = text?.split('\n')[line - 1] + if (sourceLine === undefined) { fail(`${item.at} is not a line of the pinned source`); broken = true; continue } + for (const needle of item.has ?? []) { + if (!sourceLine.includes(needle)) { fail(`${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } + } + if (item.in !== undefined) { + if (item.in !== claim.symbol) { fail(`${item.at} anchors to ${item.in}, not the claimed symbol`); broken = true; continue } + const inside = [...definitions].some(([fn, owned]) => owned.includes(symbol) && fn.file === file && line >= fn.start && line <= fn.end) + || (![...definitions.values()].some((owned) => owned.includes(symbol)) + && types.some((type) => type.file === file && symbol.file === file && symbol.line >= type.start && symbol.line <= type.end && line >= type.start && line <= type.end)) + if (inside) anchored = true + else { fail(`${item.at} is outside the body of ${claim.symbol}`); broken = true } + } + } + if (!broken && !anchored) { fail('no evidence line is anchored in the symbol with "in"'); broken = true } + if (!broken && claim.via && !sends(claim.via.port, claim.via.symbol, claim.command, claim.scope)) { + fail(`${claim.via.port} ${claim.via.symbol} does not send ${claim.command} at that scope`) + broken = true + } + if (!broken) { + entries.push({ + symbol: claim.symbol, command: claim.command, scope: claim.scope, evidence: claim.evidence.map((item) => item.at), + hops: claim.evidence.length - 1, reviewed: true, ...(claim.via ? { via: claim.via } : {}), + }) + } + } + return { entries, problems } +} diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs new file mode 100644 index 000000000..075515e0b --- /dev/null +++ b/scripts/lib/tmux-usage-scan.mjs @@ -0,0 +1,358 @@ +/** + * Find where a library's source sends a tmux command. + * + * A send site is a string literal that spells a command name, in code rather + * than in a comment or a docstring. The scan attributes each site to the + * innermost named function around it and keeps the flag literals that travel + * with the command, because the flags choose the scope tmux lists. + */ +import { parserFor } from '../../packages/api-model/src/parser.ts' + +/** Port to the tree-sitter grammar that reads its source. PowerShell cmdlets are C#. */ +export const GRAMMARS = { + py: 'python', ts: 'typescript', rs: 'rust', go: 'go', java: 'java', kotlin: 'kotlin', scala: 'scala', + csharp: 'csharp', powershell: 'csharp', cxx: 'cpp', swift: 'swift', ruby: 'ruby', lua: 'lua', julia: 'julia', +} + +/** Source extensions per grammar, minus declaration-only files. */ +export const EXTENSIONS = { + python: /\.py$/, typescript: /(? EXTENSIONS[grammar].test(path) && !NOT_LIBRARY.test(path) + +const FUNCTIONS = { + python: ['function_definition'], + typescript: ['method_definition', 'function_declaration', 'generator_function_declaration', 'function_expression', 'arrow_function'], + rust: ['function_item'], + go: ['function_declaration', 'method_declaration'], + java: ['method_declaration', 'constructor_declaration'], + kotlin: ['function_declaration', 'property_declaration', 'secondary_constructor'], + scala: ['function_definition', 'function_declaration', 'val_definition', 'var_definition'], + csharp: ['method_declaration', 'constructor_declaration', 'local_function_statement', 'property_declaration', 'accessor_declaration', 'indexer_declaration', 'operator_declaration'], + cpp: ['function_definition'], + swift: ['function_declaration', 'init_declaration', 'property_declaration', 'subscript_declaration'], + ruby: ['method', 'singleton_method'], + lua: ['function_definition_statement', 'local_function_definition_statement'], +} + +/** Declarations that own functions, named so a method can be told from a same-named one elsewhere. */ +const OWNERS = { + python: ['class_definition'], + typescript: ['class_declaration', 'abstract_class_declaration', 'interface_declaration', 'class'], + rust: ['impl_item', 'trait_item'], + go: [], + java: ['class_declaration', 'interface_declaration', 'enum_declaration', 'record_declaration'], + kotlin: ['class_declaration', 'object_declaration'], + scala: ['class_definition', 'object_definition', 'trait_definition'], + csharp: ['class_declaration', 'struct_declaration', 'interface_declaration', 'record_declaration', 'record_struct_declaration'], + cpp: ['class_specifier', 'struct_specifier', 'namespace_definition'], + swift: ['class_declaration', 'protocol_declaration'], + ruby: ['class', 'module'], + lua: [], +} + +const STRINGS = { + python: ['string'], typescript: ['string', 'template_string'], rust: ['string_literal', 'raw_string_literal'], + go: ['interpreted_string_literal', 'raw_string_literal'], java: ['string_literal'], kotlin: ['string_literal'], + scala: ['string'], csharp: ['string_literal', 'verbatim_string_literal', 'raw_string_literal'], cpp: ['string_literal', 'raw_string_literal'], + swift: ['line_string_literal', 'multi_line_string_literal', 'raw_string_literal'], ruby: ['string'], lua: ['string'], +} + +const CALLS = { + python: ['call'], typescript: ['call_expression'], rust: ['call_expression', 'macro_invocation'], go: ['call_expression'], + java: ['method_invocation', 'object_creation_expression'], kotlin: ['call_expression'], scala: ['call_expression'], + csharp: ['invocation_expression', 'object_creation_expression'], cpp: ['call_expression'], swift: ['call_expression'], + ruby: ['call'], lua: ['call'], +} + +/** + * Nodes between a command literal and the statement that holds it. Climbing + * through them reaches the whole argument list, array, tuple or table the + * flags travel in, and stops at the statement. + */ +const WRAPPERS = new Set([ + 'argument_list', 'arguments', 'argument', 'value_arguments', 'value_argument', 'call_suffix', 'keyword_argument', + 'array', 'list', 'tuple', 'initializer_list', 'collection_expression', 'array_literal', 'array_creation_expression', + 'implicit_array_creation_expression', 'tuple_expression', 'bracketed_argument_list', 'element_binding_expression', + 'object', 'pair', 'literal_value', 'literal_element', 'keyed_element', 'composite_literal', 'table', 'table_constructor', + 'field', 'field_list', 'expression_list', 'parenthesized_expression', 'array_initializer', 'object_creation_expression', + 'implicit_object_creation_expression', 'initializer_expression', 'new_expression', 'collection_literal', 'dictionary_literal', + 'element_access_expression', 'subscript_expression', 'type_arguments', 'as_expression', 'satisfies_expression', + 'method_invocation', 'invocation_expression', 'call_expression', 'call', 'macro_invocation', 'token_tree', + 'reference_expression', 'borrow_expression', 'unary_expression', 'prefix_expression', 'generic_function', 'field_expression', + 'member_access_expression', 'navigation_expression', 'navigation_suffix', 'selector_expression', 'member_expression', + 'attribute', 'binary_expression', 'string_concatenation', 'interpolated_string_expression', +]) + +/** A node that starts a new function-like scope; strings inside it do not describe the call around it. */ +const isScope = (grammar, node) => FUNCTIONS[grammar].includes(node.type) || /lambda|closure|function_expression|arrow_function|func_literal|anonymous_function|block$/.test(node.type) + +/** + * A branch compiled only for Windows runs against psmux, not tmux. The C++ + * port keeps the two behind `_WIN32`, and the tmux path is the other branch. + */ +function onWindowsOnlyPath(node) { + for (let child = node, cursor = node.parent; cursor; child = cursor, cursor = cursor.parent) { + if (cursor.type !== 'preproc_if' && cursor.type !== 'preproc_ifdef') continue + const condition = cursor.childForFieldName('condition')?.text ?? cursor.childForFieldName('name')?.text ?? '' + if (!/_WIN32/.test(condition)) continue + const alternative = cursor.childForFieldName('alternative') + const inAlternative = alternative && child.id === alternative.id + const windowsFirst = !/!\s*defined|ifndef/.test(`${cursor.type === 'preproc_ifdef' ? cursor.text.slice(0, 8) : ''}${condition}`) + if (windowsFirst !== Boolean(inAlternative)) return true + } + return false +} + +const QUOTE = /^[A-Za-z@$#]*("""|'''|"|'|`|\[=*\[)([\s\S]*?)(?:"""|'''|"|'|`|\]=*\])$/ + +/** The text between a string literal's quotes, or nothing when the node is not quoted text. */ +export function stringValue(node) { + return QUOTE.exec(node.text)?.[2] +} + +const FLAG = /^-[A-Za-z]+$/ + +/** Letters of every flag a string spells: `-a`, `-st`, or the flags inside `list-panes -a -F x`. */ +function flagsIn(value) { + const letters = new Set() + for (const token of value.split(/\s+/)) if (FLAG.test(token)) for (const letter of token.slice(1)) letters.add(letter) + return letters +} + +function lastIdentifier(text) { + const match = /([A-Za-z_][\w-]*)\s*(?:<[^()]*>)?\s*[!?]?$/.exec(text.replace(/\([\s\S]*$/, '')) + return match?.[1] +} + +/** Names the node declares, with the owner chain that qualifies it. */ +function declaredName(grammar, node) { + const field = node.childForFieldName('name') + if (field && grammar === 'lua') { + const parts = field.text.split(/[.:]/) + return { name: parts.at(-1), owner: parts.length > 1 ? parts.at(-2) : undefined } + } + if (field) return { name: lastIdentifier(field.text) ?? field.text } + const named = (type) => node.namedChildren.find((child) => child.type === type) + if (grammar === 'cpp') { + let declarator = node.childForFieldName('declarator') + while (declarator && declarator.type !== 'qualified_identifier' && declarator.type !== 'identifier' && declarator.type !== 'field_identifier') { + declarator = declarator.childForFieldName('declarator') ?? declarator.namedChildren[0] + } + if (!declarator) return undefined + const parts = declarator.text.split('::') + return { name: parts.at(-1), owner: parts.at(-2), scope: parts.slice(0, -2) } + } + if (grammar === 'kotlin' || grammar === 'swift') { + const direct = named('simple_identifier') + if (direct) return { name: direct.text } + const pattern = named('variable_declaration') ?? named('pattern') + const inner = pattern?.namedChildren.find((child) => child.type === 'simple_identifier') + return inner ? { name: inner.text } : undefined + } + if (grammar === 'scala') { + const direct = named('identifier') + if (direct) return { name: direct.text } + const pattern = node.childForFieldName('pattern') + return pattern ? { name: pattern.text } : undefined + } + if (grammar === 'lua') { + const path = named('variable') ?? named('identifier') + if (!path) return undefined + const parts = path.text.split(/[.:]/) + return { name: parts.at(-1), owner: parts.length > 1 ? parts.at(-2) : undefined } + } + if (grammar === 'go') return undefined + if (grammar === 'typescript' && node.type === 'arrow_function') { + const holder = node.parent + const label = holder?.childForFieldName('name') + return label ? { name: label.text } : undefined + } + return undefined +} + +/** What a call invokes: the last identifier of its callee, which is all a one-hop follow needs. */ +function calleeOf(grammar, node) { + if (node.type === 'object_creation_expression') return node.childForFieldName('type')?.text + const callee = node.childForFieldName('function') ?? node.childForFieldName('name') ?? node.childForFieldName('method') + ?? node.namedChildren[0] + if (!callee) return undefined + if (grammar === 'java' && node.type === 'method_invocation') return node.childForFieldName('name')?.text + if (grammar === 'ruby') return node.childForFieldName('method')?.text + return lastIdentifier(callee.text) +} + +const ownerName = (grammar, node) => { + if (grammar === 'rust' && node.type === 'impl_item') return lastIdentifier(node.childForFieldName('type')?.text ?? '') + const name = node.childForFieldName('name') ?? node.namedChildren.find((child) => /identifier/.test(child.type)) + return name ? lastIdentifier(name.text) : undefined +} + +const row = (node) => node.startPosition.row + 1 + +/** + * Julia has no grammar here, so a function is found by its text: a `function` + * line, and the `end` that closes it at the same indentation. A docstring + * directly above belongs to it. Sends in Julia are reviewed claims, so only + * the extents are needed. + */ +function scanJulia(text) { + const lines = text.split('\n') + const functions = [] + for (let index = 0; index < lines.length; index++) { + const match = /^(\s*)function\s+(?:[A-Za-z_]\w*\.)*([A-Za-z_][\w!]*)\s*(?:\{[^}]*\})?\s*\(/.exec(lines[index]) + if (!match) continue + const closer = new RegExp(`^${match[1]}end\\b`) + let end = index + for (let next = index + 1; next < lines.length; next++) if (closer.test(lines[next])) { end = next; break } + let start = index + if (lines[index - 1]?.trim() === '"""') { + let opener = index - 2 + while (opener >= 0 && lines[opener].trim() !== '"""') opener-- + if (opener >= 0) start = opener + } + functions.push({ name: match[2], start: start + 1, nameLine: index + 1, end: end + 1, kind: 'function', sites: [], calls: new Map() }) + } + return { functions, types: [], orphans: [] } +} + +/** A default value or type literal in a signature is not a call. */ +const PARAMETERS = /^(?:parameters?|formal_parameters?|parameter_list|function_value_parameters|class_parameters?|default_parameter|typed_default_parameter|optional_parameter|required_parameter|type_annotation|type_alias_declaration|type_arguments|type)$/ +function inSignature(node) { + for (let cursor = node.parent; cursor; cursor = cursor.parent) { + if (PARAMETERS.test(cursor.type)) return true + if (/(?:^|_)(?:block|body|statement_block|compound_statement|declaration_list)$/.test(cursor.type)) return false + } + return false +} + +/** + * Every named function of a file with the command sites and calls inside it. + * + * @param {{ grammar: string, text: string, commands: ReadonlySet, known: ReadonlySet }} input + * `commands` are the names to find; `known` are all tmux command names, so + * a list that holds a different command is not read as this command's flags. + * @returns {Promise<{ functions: ScannedFunction[], types: { name?: string, start: number, end: number }[], orphans: Site[] }>} + * `types` are the declarations that own functions, so a claim can anchor to + * a class; `orphans` are the sites outside any named function. + */ +export async function scanSource({ grammar, text, commands, known }) { + if (grammar === 'julia') return scanJulia(text) + const parser = await parserFor(grammar) + // The Swift grammar predates typed throws; blanking the type keeps every line and column. + const tree = parser.parse(grammar === 'swift' ? text.replace(/\bthrows[ \t]*\([ \t]*[\w.]+[ \t]*\)/g, (match) => 'throws'.padEnd(match.length)) : text) + const functions = [] + const types = [] + const orphans = [] + const stack = [] + const owners = [] + const namespaces = [] + const FN = new Set(FUNCTIONS[grammar]) + const OWN = new Set(OWNERS[grammar]) + const STR = new Set(STRINGS[grammar]) + const CALL = new Set(CALLS[grammar]) + const isCommandLiteral = (node) => { + if (!STR.has(node.type) || node.parent?.type === 'expression_statement') return undefined + const value = stringValue(node) + if (value === undefined) return undefined + // A whole command line starts with the name and goes on with flags; a sentence that starts with one is an error message. + const [head, next] = value.split(/\s+/) + return known.has(head) && (next === undefined || next.startsWith('-')) ? { command: head, value } : undefined + } + + /** The widest enclosing group that holds no other command, and the flags written inside it. */ + const flagsAround = (literal, command) => { + let unit = literal + for (let cursor = literal.parent; cursor && WRAPPERS.has(cursor.type); cursor = cursor.parent) { + const others = cursor.descendantsOfType(STRINGS[grammar]).some((other) => { + const found = isCommandLiteral(other) + return found && found.command !== command + }) + if (others) break + unit = cursor + } + const flags = new Set() + const visit = (node) => { + if (STR.has(node.type)) { + const value = stringValue(node) + if (value !== undefined) for (const letter of flagsIn(value)) flags.add(letter) + return + } + for (const child of node.namedChildren) if (node === unit || !isScope(grammar, child)) visit(child) + } + visit(unit) + return { flags, unit } + } + + const walk = (node) => { + let pushed = false + let owned = false + let namespaced = false + if (OWN.has(node.type)) { + const name = ownerName(grammar, node) + if (node.type === 'namespace_definition') { + namespaces.push(name) + namespaced = true + } else { + owners.push(name) + owned = true + types.push({ name, start: row(node), end: node.endPosition.row + 1 }) + } + } + if (grammar === 'go' && node.type === 'method_declaration') { + const receiver = node.childForFieldName('receiver')?.text + const name = node.childForFieldName('name')?.text + const type = receiver && /([A-Za-z_]\w*)\s*\)?$/.exec(receiver.replace(/\[.*\]/, ''))?.[1] + if (name) { pushFunction(name, type); pushed = true } + } else if (grammar === 'go' && node.type === 'function_declaration') { + pushFunction(node.childForFieldName('name').text, undefined) + pushed = true + } else if (FN.has(node.type)) { + const declared = declaredName(grammar, node) + if (declared?.name) { pushFunction(declared.name, declared.owner, declared.scope); pushed = true } + } + + function pushFunction(name, owner, scope = []) { + const wrapper = node.parent && ['decorated_definition', 'export_statement'].includes(node.parent.type) ? node.parent : node + const fn = { + name, owner: owner ?? owners.filter(Boolean).at(-1), start: row(wrapper), nameLine: row(node.childForFieldName('name') ?? node), + end: node.endPosition.row + 1, kind: node.type, sites: [], calls: new Map(), + // A namespace opened by a macro is invisible here, so an empty chain is unknown, not global. + ...([...namespaces.filter(Boolean), ...scope].length ? { namespace: [...namespaces.filter(Boolean), ...scope].join('::') } : {}), + } + functions.push(fn) + stack.push(fn) + } + + const literal = commands.size && isCommandLiteral(node) + if (literal && commands.has(literal.command) && !inSignature(node) && !onWindowsOnlyPath(node)) { + const { flags } = flagsAround(node, literal.command) + const site = { command: literal.command, line: row(node), flags: [...flags].sort().join('') } + ;(stack.at(-1)?.sites ?? orphans).push(site) + } + if (CALL.has(node.type) && stack.length) { + const callee = calleeOf(grammar, node) + if (callee && !stack.at(-1).calls.has(callee)) stack.at(-1).calls.set(callee, row(node)) + } + for (const child of node.namedChildren) walk(child) + if (pushed) stack.pop() + if (owned) owners.pop() + if (namespaced) namespaces.pop() + } + walk(tree.rootNode) + tree.delete() + return { functions, types, orphans } +} + +/** + * @typedef {{ name: string, owner?: string, start: number, nameLine: number, end: number, kind: string, sites: Site[], calls: Map, namespace?: string }} ScannedFunction + * @typedef {{ command: string, line: number, flags: string }} Site + */ diff --git a/scripts/lib/tmux-usage-scopes.mjs b/scripts/lib/tmux-usage-scopes.mjs new file mode 100644 index 000000000..ea6fa4908 --- /dev/null +++ b/scripts/lib/tmux-usage-scopes.mjs @@ -0,0 +1,55 @@ +/** + * The scopes tmux gives one command, read from its C dispatch. + * + * `list-panes` lists the server with `-a`, a session with `-s`, and otherwise + * the target window. Each scope has a C function, so a libtmux method that + * sends the command at a scope can be linked to that function and back. + */ + +/** The flags a library call must spell to count as a scope: the C flag, or the target flag of the default scope. */ +export function libraryScopes(entry) { + return entry.scopes.map((scope) => ({ id: scope.id, flags: scope.flag || scope.target || '' })) +} + +/** + * The flag that guards the call on `line` (1-based) of a tmux source file: + * `a` for `if (args_has(args, 'a'))`, an empty string for a bare `else`. + * Anything else is not a dispatch this table can describe. + */ +export function guardFlag(source, line) { + const lines = source.split('\n') + for (let index = line - 2; index >= Math.max(0, line - 3); index--) { + const text = lines[index] + if (/^\s*$/.test(text)) continue + const flag = /args_has\(\s*args\s*,\s*'(\w)'\s*\)/.exec(text) + if (flag) return flag[1] + if (/^\s*(?:\}\s*)?else\s*(?:\{\s*)?$/.test(text)) return '' + return undefined + } + return undefined +} + +/** + * Problems with one command's scope table against one release's C model. + * @param {{ scopes: { id: string, flag: string, function: string }[] }} entry + * @param {{ commands: { name: string, callback: string }[], symbols: { id: string, name: string, references?: { target: string, kind: string, sites?: { file: string, line: number }[] }[] }[] }} model + * @param {string} command + * @param {(file: string) => string | undefined} [readSource] The release's C source, when a checkout is at hand. + */ +export function scopeProblems(entry, model, command, readSource) { + const problems = [] + const registered = model.commands.find((candidate) => candidate.name === command) + const exec = registered && model.symbols.find((symbol) => symbol.id === registered.callback) + if (!exec) return [`${command}: no registered callback`] + for (const scope of entry.scopes) { + const target = model.symbols.find((symbol) => symbol.name === scope.function && symbol.id.startsWith('c:function:')) + const call = target && exec.references?.find((reference) => reference.kind === 'call' && reference.target === target.id) + if (!call) { problems.push(`${command}: ${exec.name} does not call ${scope.function}`); continue } + const site = call.sites?.[0] + const source = site && readSource?.(site.file) + if (source === undefined || !site) continue + const flag = guardFlag(source, site.line) + if (flag !== scope.flag) problems.push(`${command}: ${scope.function} is called under ${flag === undefined ? 'no readable guard' : `'${flag}'`}, not '${scope.flag}'`) + } + return problems +} diff --git a/scripts/test-all.sh b/scripts/test-all.sh index 05f906ff2..51fce25dc 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -151,6 +151,15 @@ fi step 'tmux catalog (negative)' node scripts/gen-tmux-catalog.negative.mjs +# Which library symbols send which tmux command is read from each port's +# source at the revision its API model was extracted from. Without the port +# checkouts this verifies shape and revisions; with them it regenerates too. +step 'tmux library usage' +node scripts/gen-tmux-usage.mjs --check --source + +step 'tmux library usage (negative)' +node scripts/gen-tmux-usage.negative.mjs + step 'shell port table' node scripts/gen-shell-ports.mjs --check diff --git a/scripts/test-loop.mjs b/scripts/test-loop.mjs index 2287147b9..a1da48243 100644 --- a/scripts/test-loop.mjs +++ b/scripts/test-loop.mjs @@ -77,6 +77,7 @@ try { node('scripts/gen-mentions.mjs', '--check'), node('scripts/gen-workspace-entities.mjs', '--check'), node('scripts/gen-tmux-catalog.mjs', '--check'), + node('scripts/gen-tmux-usage.mjs', '--check'), node('scripts/gen-shell-ports.mjs', '--check'), node('scripts/gen-brand-css.mjs', '--check'), ) diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json new file mode 100644 index 000000000..f73555d69 --- /dev/null +++ b/scripts/tmux-usage/claims.json @@ -0,0 +1,116 @@ +{ + "schemaVersion": 1, + "claims": [ + { + "port": "rs", "symbol": "server.Server.panes", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "crates/libtmux/src/internal/listing.rs:204", "has": ["LIST_COMMAND: &str = \"list-panes\""] }, + { "at": "crates/libtmux/src/internal/listing.rs:58", "has": ["Self::Server", ".arg(\"-a\")"] }, + { "at": "crates/libtmux/src/server/discovery.rs:41", "has": ["listing::panes", "Scope::Server"], "in": "server.Server.panes" } + ] + }, + { + "port": "rs", "symbol": "session.Session.panes", "command": "list-panes", "scope": "session", + "evidence": [ + { "at": "crates/libtmux/src/internal/listing.rs:204", "has": ["LIST_COMMAND: &str = \"list-panes\""] }, + { "at": "crates/libtmux/src/internal/listing.rs:60", "has": ["Self::SessionTarget", ".arg(\"-s\")"] }, + { "at": "crates/libtmux/src/session.rs:440", "has": ["listing::panes", "Scope::SessionTarget"], "in": "session.Session.panes" } + ] + }, + { + "port": "rs", "symbol": "window.Window.panes", "command": "list-panes", "scope": "window", + "evidence": [ + { "at": "crates/libtmux/src/internal/listing.rs:204", "has": ["LIST_COMMAND: &str = \"list-panes\""] }, + { "at": "crates/libtmux/src/internal/listing.rs:59", "has": ["Self::Target", ".arg(\"-t\")"] }, + { "at": "crates/libtmux/src/window/navigation.rs:23", "has": ["listing::panes", "Scope::Target"], "in": "window.Window.panes" } + ] + }, + { + "port": "ts", "symbol": "server.Server.snapshot", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "packages/libtmux/src/_internal/operations/acquire.ts:27", "has": ["\"list-panes\"", "[\"-a\"]"] }, + { "at": "packages/libtmux/src/_internal/operations/acquire.ts:90", "has": ["ACQUISITION_LISTINGS"] }, + { "at": "packages/libtmux/src/_internal/operations/acquire.ts:126", "has": ["acquireServerGraphAttempt"] }, + { "at": "packages/libtmux/src/_internal/operations/snapshot.ts:42", "has": ["acquireServerGraph"] }, + { "at": "packages/libtmux/src/server.ts:533", "has": ["buildServerSnapshot"], "in": "server.Server.snapshot" } + ] + }, + { + "port": "ruby", "symbol": "LibTmux::Server#list_panes", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "gems/libtmux/lib/libtmux/server.rb:470", "has": ["\"list-#{kind}s\""] }, + { "at": "gems/libtmux/lib/libtmux/server.rb:163", "has": ["list_entities(:pane", "[\"-a\"]"], "in": "LibTmux::Server#list_panes" } + ] + }, + { + "port": "ruby", "symbol": "LibTmux::Session#list_panes", "command": "list-panes", "scope": "session", + "evidence": [ + { "at": "gems/libtmux/lib/libtmux/server.rb:470", "has": ["\"list-#{kind}s\""] }, + { "at": "gems/libtmux/lib/libtmux/entity.rb:113", "has": [":list_entities, :pane", "[\"-s\", \"-t\""], "in": "LibTmux::Session#list_panes" } + ] + }, + { + "port": "ruby", "symbol": "LibTmux::Window#list_panes", "command": "list-panes", "scope": "window", + "evidence": [ + { "at": "gems/libtmux/lib/libtmux/server.rb:470", "has": ["\"list-#{kind}s\""] }, + { "at": "gems/libtmux/lib/libtmux/entity.rb:123", "has": [":list_entities, :pane", "[\"-t\""], "in": "LibTmux::Window#list_panes" } + ] + }, + { + "port": "lua", "symbol": "libtmux.Server:snapshot", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "lua/libtmux/_internal/server.lua:22", "has": ["\"list-panes\"", "\"-a\""] }, + { "at": "lua/libtmux/_internal/server.lua:177", "has": ["ipairs(specs)"] }, + { "at": "lua/libtmux/_internal/server.lua:309", "has": ["acquire("] }, + { "at": "lua/libtmux/_internal/server.lua:432", "has": ["capture("], "in": "libtmux.Server:snapshot" } + ] + }, + { + "port": "java", "symbol": "io.github.libtmux.Server.Server.snapshot", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", "has": ["\"list-panes\"", "\"-a\""] }, + { "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", "has": ["capture(process)"] }, + { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:878", "has": ["capture.attempt()"], "in": "io.github.libtmux.Server.Server.snapshot" } + ] + }, + { + "port": "csharp", "symbol": "LibTmux.Server.CaptureSnapshotAsync", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:120", "has": ["\"list-panes\"", "[\"-a\""] }, + { "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", "has": ["ReadRowsAsync"] }, + { "at": "src/LibTmux/Server.Snapshots.cs:119", "has": [".ReadAsync(live, depth, sessionFilter"] }, + { "at": "src/LibTmux/Server.Snapshots.cs:98", "has": ["CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null"] }, + { "at": "src/LibTmux/Server.Snapshots.cs:91", "has": ["CaptureSnapshotAsync(depth, TimeProvider.System"], "in": "LibTmux.Server.CaptureSnapshotAsync" } + ] + }, + { + "port": "powershell", "symbol": "LibTmux\\Get-TmuxPane", "command": "list-panes", "scope": "window", + "via": { "port": "csharp", "symbol": "LibTmux.Window.GetPanesAsync" }, + "evidence": [ + { "at": "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:43", "has": ["Window!.GetPanesAsync"], "in": "LibTmux\\Get-TmuxPane" } + ] + }, + { + "port": "powershell", "symbol": "LibTmux\\Get-TmuxPane", "command": "list-panes", "scope": "session", + "via": { "port": "csharp", "symbol": "LibTmux.Session.GetPanesAsync" }, + "evidence": [ + { "at": "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:46", "has": ["Session!.GetPanesAsync"], "in": "LibTmux\\Get-TmuxPane" } + ] + }, + { + "port": "powershell", "symbol": "LibTmux\\Get-TmuxPane", "command": "list-panes", "scope": "server", + "via": { "port": "csharp", "symbol": "LibTmux.Server.CaptureSnapshotAsync" }, + "evidence": [ + { "at": "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:49", "has": ["Server!.CaptureSnapshotAsync(SnapshotDepth.Panes"], "in": "LibTmux\\Get-TmuxPane" } + ] + }, + { + "port": "julia", "symbol": "LibTmux.snapshot", "command": "list-panes", "scope": "server", + "evidence": [ + { "at": "src/acquisition.jl:120", "has": ["\"list-panes\""] }, + { "at": "src/acquisition.jl:125", "has": ["args=(\"-a\",)"] }, + { "at": "src/acquisition.jl:231", "has": ["_capture_graph_rows("], "in": "LibTmux.snapshot" } + ] + } + ] +} diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json new file mode 100644 index 000000000..68796074f --- /dev/null +++ b/site/src/data/tmux-usage/csharp.json @@ -0,0 +1,97 @@ +{ + "commands": [ + "list-panes" + ], + "port": "csharp", + "repo": "libtmux/libtmux-dotnet", + "revision": "ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc", + "schemaVersion": 1, + "symbols": { + "LibTmux.Server.CaptureSnapshotAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Server.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Server.Collections.cs:72" + ], + "scope": "server" + } + ], + "LibTmux.Server.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:51" + ], + "scope": "server" + } + ], + "LibTmux.Session.GetActivePaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Relations.cs:184" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], + "scope": "session" + } + ], + "LibTmux.Session.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:239" + ], + "scope": "session" + } + ], + "LibTmux.Window.GetActivePaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:141" + ], + "scope": "window" + } + ], + "LibTmux.Window.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123" + ], + "scope": "window" + } + ], + "LibTmux.Window.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Panes.cs:298" + ], + "scope": "window" + } + ] + } +} diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json new file mode 100644 index 000000000..544d1371f --- /dev/null +++ b/site/src/data/tmux-usage/cxx.json @@ -0,0 +1,38 @@ +{ + "commands": [ + "list-panes" + ], + "port": "cxx", + "repo": "libtmux/libtmux-cxx", + "revision": "3f93b021cb51e8349bfb9cecc6fd4091f6e79a0f", + "schemaVersion": 1, + "symbols": { + "libtmux::Server::panes": [ + { + "command": "list-panes", + "evidence": [ + "src/server.cpp:873" + ], + "scope": "server" + } + ], + "libtmux::Session::panes": [ + { + "command": "list-panes", + "evidence": [ + "src/entities.cpp:269" + ], + "scope": "session" + } + ], + "libtmux::Window::panes": [ + { + "command": "list-panes", + "evidence": [ + "src/entities.cpp:561" + ], + "scope": "window" + } + ] + } +} diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json new file mode 100644 index 000000000..011e8a9bc --- /dev/null +++ b/site/src/data/tmux-usage/fsharp.json @@ -0,0 +1,10 @@ +{ + "commands": [ + "list-panes" + ], + "port": "fsharp", + "repo": "libtmux/libtmux-dotnet", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "schemaVersion": 1, + "symbols": {} +} diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json new file mode 100644 index 000000000..bc14775b6 --- /dev/null +++ b/site/src/data/tmux-usage/go.json @@ -0,0 +1,57 @@ +{ + "commands": [ + "list-panes" + ], + "port": "go", + "repo": "libtmux/libtmux-go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "schemaVersion": 1, + "symbols": { + "tmux.Pane.Select": [ + { + "command": "list-panes", + "evidence": [ + "tmux/lookup.go:371", + "tmux/window_pane_topology.go:199" + ], + "scope": "window" + } + ], + "tmux.Server.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:79" + ], + "scope": "server" + } + ], + "tmux.Server.Snapshot": [ + { + "command": "list-panes", + "evidence": [ + "tmux/snapshot_capture.go:45" + ], + "scope": "server" + } + ], + "tmux.Session.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:129" + ], + "scope": "session" + } + ], + "tmux.Window.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:154" + ], + "scope": "window" + } + ] + } +} diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json new file mode 100644 index 000000000..a0bdfc016 --- /dev/null +++ b/site/src/data/tmux-usage/java.json @@ -0,0 +1,111 @@ +{ + "commands": [ + "list-panes" + ], + "port": "java", + "repo": "libtmux/libtmux-java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "schemaVersion": 1, + "symbols": { + "io.github.libtmux.Pane.Pane.sendKeys": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "scope": "window" + } + ], + "io.github.libtmux.Pane.Pane.sendLiteral": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "scope": "window" + } + ], + "io.github.libtmux.Server.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "scope": "server" + } + ], + "io.github.libtmux.Server.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "scope": "server" + } + ], + "io.github.libtmux.Server.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "reviewed": true, + "scope": "server" + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" + ], + "scope": "server" + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" + ], + "scope": "server" + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" + ], + "scope": "server" + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" + ], + "scope": "server" + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" + ], + "scope": "server" + } + ] + } +} diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json new file mode 100644 index 000000000..4285fef58 --- /dev/null +++ b/site/src/data/tmux-usage/julia.json @@ -0,0 +1,23 @@ +{ + "commands": [ + "list-panes" + ], + "port": "julia", + "repo": "libtmux/libtmux-julia", + "revision": "f3da513be1225d36d5854cd8db5972c01857578e", + "schemaVersion": 1, + "symbols": { + "LibTmux.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "src/acquisition.jl:120", + "src/acquisition.jl:125", + "src/acquisition.jl:231" + ], + "reviewed": true, + "scope": "server" + } + ] + } +} diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json new file mode 100644 index 000000000..4e3bb306f --- /dev/null +++ b/site/src/data/tmux-usage/kotlin.json @@ -0,0 +1,10 @@ +{ + "commands": [ + "list-panes" + ], + "port": "kotlin", + "repo": "libtmux/libtmux-java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "schemaVersion": 1, + "symbols": {} +} diff --git a/site/src/data/tmux-usage/lua.json b/site/src/data/tmux-usage/lua.json new file mode 100644 index 000000000..270917fcb --- /dev/null +++ b/site/src/data/tmux-usage/lua.json @@ -0,0 +1,24 @@ +{ + "commands": [ + "list-panes" + ], + "port": "lua", + "repo": "libtmux/libtmux-lua", + "revision": "0395620d362ef75c74cd488f9577afda68922586", + "schemaVersion": 1, + "symbols": { + "libtmux.Server:snapshot": [ + { + "command": "list-panes", + "evidence": [ + "lua/libtmux/_internal/server.lua:22", + "lua/libtmux/_internal/server.lua:177", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": "server" + } + ] + } +} diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json new file mode 100644 index 000000000..5f978ac20 --- /dev/null +++ b/site/src/data/tmux-usage/powershell.json @@ -0,0 +1,49 @@ +{ + "commands": [ + "list-panes" + ], + "port": "powershell", + "repo": "libtmux/libtmux-powershell", + "revision": "b06c64f844f3173de66b187eaeaf3915814318c6", + "schemaVersion": 1, + "symbols": { + "LibTmux\\Get-TmuxPane": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:49" + ], + "reviewed": true, + "scope": "server", + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + } + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:46" + ], + "reviewed": true, + "scope": "session", + "via": { + "port": "csharp", + "symbol": "LibTmux.Session.GetPanesAsync" + } + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:43" + ], + "reviewed": true, + "scope": "window", + "via": { + "port": "csharp", + "symbol": "LibTmux.Window.GetPanesAsync" + } + } + ] + } +} diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json new file mode 100644 index 000000000..994379feb --- /dev/null +++ b/site/src/data/tmux-usage/py.json @@ -0,0 +1,74 @@ +{ + "commands": [ + "list-panes" + ], + "port": "py", + "repo": "tmux-python/libtmux", + "revision": "8e0ce38400618bd783e6276270dd7f5d8cb283ea", + "schemaVersion": 1, + "symbols": { + "libtmux.Pane.from_pane_id": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/pane.py:227" + ], + "scope": "window" + } + ], + "libtmux.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/server.py:2463" + ], + "scope": "server" + } + ], + "libtmux.Server.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/server.py:2671" + ], + "scope": "server" + } + ], + "libtmux.Session.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/session.py:302" + ], + "scope": "session" + } + ], + "libtmux.Session.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/session.py:412" + ], + "scope": "session" + } + ], + "libtmux.Window.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/window.py:401" + ], + "scope": "window" + } + ], + "libtmux.Window.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/window.py:456" + ], + "scope": "window" + } + ] + } +} diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json new file mode 100644 index 000000000..43425207d --- /dev/null +++ b/site/src/data/tmux-usage/rs.json @@ -0,0 +1,56 @@ +{ + "commands": [ + "list-panes" + ], + "port": "rs", + "repo": "libtmux/libtmux-rs", + "revision": "a6fc2a65674177b92b17fa380757155d2ba150fd", + "schemaVersion": 1, + "symbols": { + "control.ControlSender.watch_only": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/control.rs:1077" + ], + "scope": "session" + } + ], + "server.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:58", + "crates/libtmux/src/server/discovery.rs:41" + ], + "reviewed": true, + "scope": "server" + } + ], + "session.Session.panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:60", + "crates/libtmux/src/session.rs:440" + ], + "reviewed": true, + "scope": "session" + } + ], + "window.Window.panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/window/navigation.rs:23" + ], + "reviewed": true, + "scope": "window" + } + ] + } +} diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json new file mode 100644 index 000000000..b17839239 --- /dev/null +++ b/site/src/data/tmux-usage/ruby.json @@ -0,0 +1,44 @@ +{ + "commands": [ + "list-panes" + ], + "port": "ruby", + "repo": "libtmux/libtmux-ruby", + "revision": "9b1545562a112353c2c893a1d3e8c0d9b4b51f8d", + "schemaVersion": 1, + "symbols": { + "LibTmux::Server#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:163" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Session#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/entity.rb:113" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux::Window#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/entity.rb:123" + ], + "reviewed": true, + "scope": "window" + } + ] + } +} diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json new file mode 100644 index 000000000..9dd5a101d --- /dev/null +++ b/site/src/data/tmux-usage/scala.json @@ -0,0 +1,10 @@ +{ + "commands": [ + "list-panes" + ], + "port": "scala", + "repo": "libtmux/libtmux-java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "schemaVersion": 1, + "symbols": {} +} diff --git a/site/src/data/tmux-usage/scopes.json b/site/src/data/tmux-usage/scopes.json new file mode 100644 index 000000000..b229ae3a5 --- /dev/null +++ b/site/src/data/tmux-usage/scopes.json @@ -0,0 +1,12 @@ +{ + "schemaVersion": 1, + "commands": { + "list-panes": { + "scopes": [ + { "id": "server", "label": "Server", "flag": "a", "function": "cmd_list_panes_server" }, + { "id": "session", "label": "Session", "flag": "s", "function": "cmd_list_panes_session" }, + { "id": "window", "label": "Window", "flag": "", "target": "t", "function": "cmd_list_panes_window" } + ] + } + } +} diff --git a/site/src/data/tmux-usage/swift.json b/site/src/data/tmux-usage/swift.json new file mode 100644 index 000000000..5a557efd3 --- /dev/null +++ b/site/src/data/tmux-usage/swift.json @@ -0,0 +1,29 @@ +{ + "commands": [ + "list-panes" + ], + "port": "swift", + "repo": "libtmux/libtmux-swift", + "revision": "7993e7044347629b08020e9b02ae8bcffa0e5898", + "schemaVersion": 1, + "symbols": { + "Server.panes()": [ + { + "command": "list-panes", + "evidence": [ + "Sources/LibTmux/Server.swift:285" + ], + "scope": "server" + } + ], + "Server.panes(where:)": [ + { + "command": "list-panes", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:80" + ], + "scope": "server" + } + ] + } +} diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json new file mode 100644 index 000000000..62531b515 --- /dev/null +++ b/site/src/data/tmux-usage/ts.json @@ -0,0 +1,25 @@ +{ + "commands": [ + "list-panes" + ], + "port": "ts", + "repo": "libtmux/libtmux-ts", + "revision": "46cccfef2a546de55ce8b308249b8c76339089a0", + "schemaVersion": 1, + "symbols": { + "server.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "packages/libtmux/src/_internal/operations/acquire.ts:27", + "packages/libtmux/src/_internal/operations/acquire.ts:90", + "packages/libtmux/src/_internal/operations/acquire.ts:126", + "packages/libtmux/src/_internal/operations/snapshot.ts:42", + "packages/libtmux/src/server.ts:533" + ], + "reviewed": true, + "scope": "server" + } + ] + } +} diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts new file mode 100644 index 000000000..b6d2c6265 --- /dev/null +++ b/site/test/tmux-usage-derive.test.ts @@ -0,0 +1,245 @@ +import { readFileSync } from 'node:fs' +import { describe, expect, it } from 'vitest' +import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' +import { MAX_SHARED_BY, classify, definitionsOf, deriveUsage, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { guardFlag, libraryScopes, scopeProblems } from '../../scripts/lib/tmux-usage-scopes.mjs' + +const known = new Set(['list-panes', 'list-windows', 'list-sessions', 'new-window']) +const scan = (grammar: string, text: string, command = 'list-panes') => scanSource({ grammar, text, commands: new Set([command]), known }) +const scopes = readFileSync(new URL('../src/data/tmux-usage/scopes.json', import.meta.url), 'utf8') +const spec = { scopes: libraryScopes(JSON.parse(scopes).commands['list-panes']) } + +describe('scanning a send site', () => { + it('reads the flags written beside the command and ignores a docstring and a default value', async () => { + const { functions } = await scan('python', [ + 'class Session:', + ' @property', + ' def panes(self):', + ' """Runs list-panes with -a."""', + ' return fetch(list_cmd="list-panes", list_extra_args=["-s", "-t", self.id])', + '', + ' def windows(self):', + ' return fetch(list_cmd="list-windows", list_extra_args=["-t", self.id])', + '', + ' def refresh(self, list_cmd: str = "list-panes"):', + ' return None', + '', + ].join('\n')) + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(byName.panes.sites).toEqual([{ command: 'list-panes', line: 5, flags: 'st' }]) + // The control: a different command in the same class, and a default value, are not sends. + expect(byName.windows.sites).toEqual([]) + expect(byName.refresh.sites).toEqual([]) + }) + + it('reads a command line that starts with the command, and not a message that mentions it', async () => { + const { functions } = await scan('python', [ + 'def run(self):', + ' self.cmd("list-panes -a -F x")', + ' raise Unsupported("list-panes state")', + ' raise Unsupported("list-panes")', + '', + ].join('\n')) + expect(functions[0].sites.map((site) => [site.line, site.flags])).toEqual([[2, 'Fa'], [4, '']]) + }) + + it('does not lend a neighbouring command its flags', async () => { + const { functions } = await scan('python', [ + 'def capture():', + ' return [("list-windows", "-a"), ("list-panes", "-t", "x")]', + '', + ].join('\n')) + expect(functions[0].sites.map((site) => site.flags)).toEqual(['t']) + }) + + it('drops the Windows-only branch of a C++ method, which talks to psmux and not tmux', async () => { + const { functions } = await scan('cpp', [ + 'int Server::panes() {', + '#if defined(_WIN32)', + ' return run({"list-panes", "-s", "-t", ":"});', + '#else', + ' return run({"list-panes", "-a"});', + '#endif', + '}', + '', + ].join('\n')) + expect(functions[0]).toMatchObject({ name: 'panes', owner: 'Server' }) + expect(functions[0].sites).toEqual([{ command: 'list-panes', line: 5, flags: 'a' }]) + }) + + it('names a Lua method by its table', async () => { + const { functions } = await scan('lua', 'function Server:snapshot(options)\n return run({ "list-panes", "-a" })\nend\n') + expect(functions).toMatchObject([{ name: 'snapshot', owner: 'Server' }]) + expect(functions[0].sites[0].flags).toBe('a') + }) + + it('keeps a site outside any function apart, so a module constant is not credited to a neighbour', async () => { + const { functions, orphans } = await scan('python', 'LISTINGS = [("list-panes", "-a")]\n\ndef other():\n return 1\n') + expect(orphans).toEqual([{ command: 'list-panes', line: 1, flags: 'a' }]) + expect(functions[0].sites).toEqual([]) + }) +}) + +const located = (over: Record) => ({ + file: 'lib.py', name: 'f', owner: undefined, start: 1, nameLine: 1, end: 3, kind: 'function_definition', sites: [], calls: new Map(), ...over, +}) as Parameters[0]['functions'][number] +const site = (flags: string, line = 2) => ({ command: 'list-panes', line, flags }) +const symbol = (name: string, line: number, over: Record = {}) => ({ id: `S.${name}`, name, file: 'lib.py', line, ...over }) + +describe('deciding which symbol sends a command', () => { + it('maps a method that sends with -s to the session scope and a method that sends nothing to nothing', () => { + const functions = [ + located({ name: 'panes', start: 1, nameLine: 1, end: 3, sites: [site('st', 2)] }), + located({ name: 'windows', start: 5, nameLine: 5, end: 7 }), + ] + const { entries, unresolved } = deriveUsage({ command: 'list-panes', spec, functions, symbols: [symbol('panes', 1), symbol('windows', 5)] }) + expect(entries).toEqual([{ symbol: 'S.panes', command: 'list-panes', scope: 'session', evidence: ['lib.py:2'], hops: 0 }]) + expect(unresolved).toEqual([]) + }) + + it('selects the scope by the flag: -a before -s before a target, and none when no flag settles it', () => { + expect(classify(spec, 'aF')).toBe('server') + expect(classify(spec, 'st')).toBe('session') + expect(classify(spec, 't')).toBe('window') + // A command with no flag at all may take its scope from somewhere else, so it stays unlinked. + expect(classify(spec, 'F')).toBe('unknown') + expect(classify(undefined, 'a')).toBeNull() + }) + + it('credits the public caller of a private helper once, with both lines as evidence', () => { + const functions = [ + located({ name: '_list', start: 10, nameLine: 10, end: 14, sites: [site('a', 12)] }), + located({ name: 'everything', start: 1, nameLine: 1, end: 4, calls: new Map([['_list', 3]]) }), + ] + const { entries } = deriveUsage({ command: 'list-panes', spec, functions, symbols: [symbol('everything', 1)] }) + expect(entries).toEqual([{ symbol: 'S.everything', command: 'list-panes', scope: 'server', evidence: ['lib.py:12', 'lib.py:3'], hops: 1 }]) + }) + + it('does not credit a method that only calls another public sender', () => { + const functions = [ + located({ name: 'snapshot', start: 1, nameLine: 1, end: 3, sites: [site('a', 2)] }), + located({ name: 'panes', start: 5, nameLine: 5, end: 7, calls: new Map([['snapshot', 6]]) }), + ] + const { entries } = deriveUsage({ command: 'list-panes', spec, functions, symbols: [symbol('snapshot', 1), symbol('panes', 5)] }) + expect(entries.map((entry) => entry.symbol)).toEqual(['S.snapshot']) + }) + + it('leaves a helper that lists at several scopes to its claims, because a caller cannot choose', () => { + const functions = [ + located({ name: '_command', start: 10, nameLine: 10, end: 16, sites: [site('t', 11), site('st', 12), site('a', 13)] }), + located({ name: 'panes', start: 1, nameLine: 1, end: 4, calls: new Map([['_command', 3]]) }), + ] + const { entries, unresolved } = deriveUsage({ command: 'list-panes', spec, functions, symbols: [symbol('panes', 1)] }) + expect(entries).toEqual([]) + expect(unresolved.map((item) => item.reason)).toEqual(['a shared helper lists at several scopes']) + }) + + it('leaves a helper that many public methods call alone, because it is not what they are for', () => { + const callers = Array.from({ length: MAX_SHARED_BY + 1 }, (_, index) => + located({ name: `op${index}`, start: 20 + index * 3, nameLine: 20 + index * 3, end: 22 + index * 3, calls: new Map([['_refresh', 21 + index * 3]]) })) + const functions = [located({ name: '_refresh', start: 10, nameLine: 10, end: 14, sites: [site('t', 12)] }), ...callers] + const symbols = callers.map((fn) => symbol(fn.name, fn.start)) + const { entries, unresolved } = deriveUsage({ command: 'list-panes', spec, functions, symbols }) + expect(entries).toEqual([]) + expect(unresolved[0].reason).toMatch(/shared by 5 public symbols/) + }) + + it('finds a C++ definition from the header that declares it, and not from a same-named type', () => { + const functions = [located({ file: 'src/entities.cpp', name: 'panes', owner: 'Window', start: 5, nameLine: 5, end: 9, sites: [site('t', 7)] })] + const symbols = [ + { id: 'a::Window::panes', name: 'panes', qualified: 'a::Window::panes', parentName: 'a::Window', file: 'include/a/entities.hpp', line: 40 }, + { id: 'a::workspace::Window::panes', name: 'panes', qualified: 'a::workspace::Window::panes', parentName: 'a::workspace::Window', file: 'examples/workspace.hpp', line: 9 }, + ] + const owned = [...definitionsOf(functions, symbols).values()].flat().map((entry) => entry.id) + expect(owned).toEqual(['a::Window::panes']) + }) +}) + +describe('reviewed claims', () => { + const source = [ + 'impl Server {', + ' pub async fn panes(&self) {', + ' listing::panes(&self.core, Scope::Server).await', + ' }', + '}', + 'match self { Self::Server => command.arg("-a") }', + ].join('\n') + const functions = [located({ file: 'server.rs', name: 'panes', owner: 'Server', start: 2, nameLine: 2, end: 4 })] + const symbols = [{ id: 'server.Server.panes', name: 'panes', parentName: 'Server', file: 'server.rs', line: 2 }] + const claim = (over: Record = {}) => ({ + port: 'rs', symbol: 'server.Server.panes', command: 'list-panes', scope: 'server', + evidence: [ + { at: 'server.rs:6', has: ['Self::Server', '.arg("-a")'] }, + { at: 'server.rs:3', has: ['listing::panes', 'Scope::Server'], in: 'server.Server.panes' }, + ], + ...over, + }) + const verify = (claims: unknown[], sends?: () => boolean) => verifyClaims({ + claims: claims as Parameters[0]['claims'], spec, functions, types: [], symbols, + readSource: (path: string) => (path === 'server.rs' ? source : undefined), sends, + }) + + it('accepts a claim whose lines still say what it says, anchored in the symbol', () => { + expect(verify([claim()])).toEqual({ + problems: [], + entries: [{ symbol: 'server.Server.panes', command: 'list-panes', scope: 'server', evidence: ['server.rs:6', 'server.rs:3'], hops: 1, reviewed: true }], + }) + }) + + it.each([ + ['a line that no longer holds the text', { evidence: [{ at: 'server.rs:6', has: ['.arg("-s")'] }, { at: 'server.rs:3', in: 'server.Server.panes' }] }, /does not contain/], + ['a line past the end of the file', { evidence: [{ at: 'server.rs:99' }, { at: 'server.rs:3', in: 'server.Server.panes' }] }, /not a line of the pinned source/], + ['a line outside the symbol body', { evidence: [{ at: 'server.rs:6', in: 'server.Server.panes' }] }, /outside the body/], + ['no line anchored in the symbol', { evidence: [{ at: 'server.rs:3' }] }, /no evidence line is anchored/], + ['a symbol the model does not have', { symbol: 'server.Server.gone' }, /no such public symbol/], + ['a scope the command does not have', { scope: 'pane' }, /not a scope of this command/], + ['no evidence', { evidence: [] }, /cites no evidence/], + ])('rejects %s', (_name, over, message) => { + const { entries, problems } = verify([claim(over)]) + expect(entries).toEqual([]) + expect(problems.join('\n')).toMatch(message) + }) + + it('stands on a library symbol only while that symbol sends the command at that scope', () => { + const wrapped = claim({ via: { port: 'csharp', symbol: 'LibTmux.Server.GetPanesAsync' } }) + expect(verify([wrapped], () => true).problems).toEqual([]) + expect(verify([wrapped], () => false).problems.join('\n')).toMatch(/does not send list-panes at that scope/) + }) +}) + +describe('the scope table against tmux', () => { + const entry = JSON.parse(scopes).commands['list-panes'] + const source = [ + 'static enum cmd_retval', 'cmd_list_panes_exec(struct cmd *self, struct cmdq_item *item)', '{', + "\tif (args_has(args, 'a'))", '\t\tcmd_list_panes_server(self, item);', "\telse if (args_has(args, 's'))", + '\t\tcmd_list_panes_session(self, s, item, 1);', '\telse', '\t\tcmd_list_panes_window(self, s, wl, item, 0);', + ].join('\n') + const call = (name: string, line: number) => ({ target: `c:function:x.c:${name}`, kind: 'call', sites: [{ file: 'x.c', line }] }) + const model = { + commands: [{ name: 'list-panes', callback: 'c:function:x.c:cmd_list_panes_exec' }], + symbols: [ + { id: 'c:function:x.c:cmd_list_panes_exec', name: 'cmd_list_panes_exec', references: [call('cmd_list_panes_server', 5), call('cmd_list_panes_session', 7), call('cmd_list_panes_window', 9)] }, + ...['server', 'session', 'window'].map((scope) => ({ id: `c:function:x.c:cmd_list_panes_${scope}`, name: `cmd_list_panes_${scope}` })), + ], + } + const read = (file: string) => (file === 'x.c' ? source : undefined) + + it('reads the flag that guards each call', () => { + expect([5, 7, 9].map((line) => guardFlag(source, line))).toEqual(['a', 's', '']) + expect(guardFlag('foo();\nbar();\n', 2)).toBeUndefined() + }) + + it('accepts the table that matches the dispatch and rejects one that does not', () => { + expect(scopeProblems(entry, model, 'list-panes', read)).toEqual([]) + const swapped = { scopes: entry.scopes.map((scope: { id: string }) => scope.id === 'server' ? { ...scope, flag: 's' } : scope) } + expect(scopeProblems(swapped, model, 'list-panes', read)).toEqual(["list-panes: cmd_list_panes_server is called under 'a', not 's'"]) + expect(scopeProblems(entry, model, 'list-panes', () => source.replace("if (args_has(args, 'a'))", 'if (flag)'))[0]).toMatch(/no readable guard/) + }) + + it.each(['3.7c', '3.2a'])('matches the C dispatch of tmux %s', (version) => { + const real = JSON.parse(readFileSync(new URL(`../src/data/tmux/api/${version}.json`, import.meta.url), 'utf8')) + expect(scopeProblems(entry, real, 'list-panes')).toEqual([]) + const gone = { scopes: entry.scopes.map((scope: { id: string }) => scope.id === 'server' ? { ...scope, function: 'cmd_list_panes_gone' } : scope) } + expect(scopeProblems(gone, real, 'list-panes').join('\n')).toMatch(/does not call cmd_list_panes_gone/) + }) +}) From 326f9ade16ae41d13a77bab233764b253496d7b1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 19 Oct 2026 20:24:31 -0500 Subject: [PATCH 06/53] feat(site[tmux-usage]) Link list-panes and its C functions to its senders why: The list-panes manual page listed one library method per language and the C pages listed none, so a reader of cmd_list_panes_session could not reach Session.panes, and Server.panes had no path to the code it ends in. The concept map also named methods that only read a snapshot, such as Go Window.Panes, as list-panes, which is not what they do. what: - Render the methods that send a command as a table of languages by scope on the manual page and on the entry, exec and scope pages of the C reference; each scope column names and links its C function, and the scope pages show only their own column and the languages that send at that scope - Show a method's command, flag and scope function on its own page, in the order: what it sends itself, its concept equivalents, what it sends through a helper; put the same line in the Markdown export - List a method on the command's pages when its own body sends the command or a reviewed claim says so; a call through a helper stays on the method page, so a refresh after every mutation is not a list-panes method - Stop offering the concept link for a command whose usage is recorded, and name the languages that have no method of their own to list - Link the three scope functions beside the entry and exec on the manual page, and give a scope page's language picker only the languages that send at that scope Verified: the manual page for list-panes and capture-pane, the entry fragment of a method page and the TmuxUsage table render through the Astro container; the rendering tests fail when the concept link is kept, helper calls are listed, owner ranking is off, or a scope page ignores its scope, and pass with them restored. astro check reports no errors and the site suite passes. Not run: the pages in a browser, which needs the shared build. --- CONTRIBUTING.md | 11 + site/src/components/api/ApiEntry.astro | 25 +- site/src/components/api/ApiReference.astro | 3 + site/src/components/tmux/TmuxUsage.astro | 82 +++++ site/src/lib/symbol-markdown.ts | 21 ++ site/src/lib/tmux-library-usage.ts | 205 ++++++++++++ site/src/lib/tmux-manual-data.ts | 29 +- site/src/lib/tmux-reference.ts | 118 ++++++- .../tmux/[version]/manual/[...slug].astro | 13 +- .../tmux/[version]/reference/[...slug].md.ts | 3 +- site/src/styles/api.css | 5 + site/src/styles/kind-marks.css | 10 +- site/test/tmux-library-usage.test.ts | 314 ++++++++++++++++++ 13 files changed, 810 insertions(+), 29 deletions(-) create mode 100644 site/src/components/tmux/TmuxUsage.astro create mode 100644 site/src/lib/tmux-library-usage.ts create mode 100644 site/test/tmux-library-usage.test.ts diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4bcbbab86..ce5293c9a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -204,6 +204,17 @@ similar names alone do not establish one. An overloaded page can belong to several concepts. The page dropdown and "In other ports" use these mappings, and tests require every mapped target to resolve. +A tmux command page links the methods that send the command, and a method +page links the command and the C function behind its scope. Those links come +from each port's source at the revision its API model was extracted from, not +from concepts: a method that only reads a captured snapshot has no link. After +a port's model changes revision, regenerate the usage data with the port +checkouts present: + +```console +$ node scripts/gen-tmux-usage.mjs +``` + "Discussed in" comes from API mentions in guides, including tables and sections headed with a port name. After editing those mentions, regenerate the index: diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index 9f9c4acf1..b8d576ee1 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -15,6 +15,8 @@ import ApiType from './ApiType.astro' import { asideFor } from '../../lib/aside' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMethodDetails, anonymousDeclarationLabel, nativeSignatureText as unformattedNativeSignatureText, parameterBindingText, usesNativeSignatures } from '../../lib/api-sections' import { tmuxCommandsFor, tmuxManualUrl } from '../../lib/tmux-manual-data' +import { tmuxCommandRows, tmuxSymbolSends, type ResolvedUsage } from '../../lib/tmux-reference' +import TmuxUsage from '../tmux/TmuxUsage.astro' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from '../../lib/tmux-catalog' import ApiFieldOverloads from './ApiFieldOverloads.astro' import ApiCommandParameters from './ApiCommandParameters.astro' @@ -44,6 +46,8 @@ interface Props { /** Declaration syntax, independent of library-port identity. */ language?: string manualLinks?: { name: string; href: string }[] + /** The library methods that send the command a C declaration implements. */ + usage?: ResolvedUsage[] /** Catalog pages for a declaration in a source reference. */ catalogLinks?: { name: string; href: string }[] /** Override equivalent links for a product or version context. */ @@ -76,7 +80,7 @@ interface Props { /** Previous fragment for the same declaration. */ legacyId?: string } -const { symbol, index, sourceUrl, port, language = port, manualLinks, catalogLinks, alternativesFor, heading = false, member = false, +const { symbol, index, sourceUrl, port, language = port, manualLinks, usage = [], catalogLinks, alternativesFor, heading = false, member = false, showSummary = true, showBases = true, legacyId, nameHref } = Astro.props as Props const anchor = symbol.publicId ?? symbol.id const kind = symbol.kind @@ -180,7 +184,9 @@ const references = symbol.doc?.references ?? [] * "explained in a concept" and "used in an example" are different offers. */ const mentions = port ? mentionsOf(port, symbol.id) : [] +// A command the symbol sends comes with its scope and C function; one it only has an equivalent for is a plain link. const tmuxCommands = manualLinks ?? (port ? tmuxCommandsFor(port, anchor).map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) +const commandRows = tmuxCommandRows(port && !manualLinks ? tmuxSymbolSends(port, anchor) : [], tmuxCommands) // Members that wrap options or hooks lead to the catalog of what they take. const catalogEntries = catalogLinks ?? (port && !manualLinks ? tmuxCatalogKindsForSymbol(port, symbol).map((kind) => ({ name: CATALOG_KINDS[kind].label, href: tmuxCatalogUrl('latest', kind) })) : []) const mentionSections = [...new Set(mentions.map((m) => m.section ?? 'docs'))].sort() @@ -275,7 +281,8 @@ const hasBody = Boolean(symbol.command) || methods.length > 0 || hasFields || - tmuxCommands.length > 0 || + commandRows.length > 0 || + usage.length > 0 || catalogEntries.length > 0 || elsewhere.length > 0 --- @@ -672,13 +679,21 @@ const hasBody = ) } - {tmuxCommands.length > 0 &&

+ {commandRows.length > 0 &&

tmux command - {tmuxCommands.map((command, i) => <> + {commandRows.map((row, i) => <> {i > 0 && ', '} - {command.name} + {row.command} + {row.scopes.map((use) => <>{' '} + {use.scope!.flag || use.scope!.target ? -{use.scope!.flag || use.scope!.target} : null} + {use.function ? {use.function.name} : {use.scope!.label}} + )} )}

} + {usage.map((entry) =>
+ In libtmux + +
)} {catalogEntries.length > 0 &&

tmux catalog {catalogEntries.map((entry, i) => <> diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 7ed2c1548..51acf029b 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -37,6 +37,7 @@ import SymbolName from '../../components/api/SymbolName.astro' import '../../styles/api.css' import '../../styles/vendor/gp-sphinx-api.css' import { tmuxManualUrl } from '../../lib/tmux-manual-data' +import type { ResolvedUsage } from '../../lib/tmux-reference' /** Source projects supply identity and navigation to the same API renderer. */ export interface SourceReferenceContext { @@ -53,6 +54,7 @@ export interface SourceReferenceContext { index: SymbolIndex pagePorts: PagePortLink[] manualLinks?: { name: string; href: string }[] + usage?: ResolvedUsage[] catalogLinks?: { name: string; href: string }[] paths?: ApiRelationshipPath[] } @@ -759,6 +761,7 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] port={port} language={language} manualLinks={source?.manualLinks} + usage={source?.usage} catalogLinks={source?.catalogLinks} heading={isMemberOwner(owner)} member={!isMemberOwner(owner)} diff --git a/site/src/components/tmux/TmuxUsage.astro b/site/src/components/tmux/TmuxUsage.astro new file mode 100644 index 000000000..68743afc2 --- /dev/null +++ b/site/src/components/tmux/TmuxUsage.astro @@ -0,0 +1,82 @@ +--- +/** + * The library methods that send one tmux command, by scope and language. + * + * Scopes are columns because tmux scopes one command by flag: `list-panes -a` + * lists the server, `-s` a session, and a target the window. Each column + * names the C function that lists at that scope, so a reader can go from a + * method to the code it ends in and back. A language with no method that + * sends the command at a scope leaves the cell empty. + */ +import ApiBadge from '../api/ApiBadge.astro' +import SymbolName from '../api/SymbolName.astro' +import { PORTS } from '../../lib/ports' +import type { ResolvedUsage } from '../../lib/tmux-reference' + +interface Props { + usage: ResolvedUsage +} +const { usage } = Astro.props +const flagOf = (scope: { flag: string; target?: string }) => scope.flag || scope.target ? `-${scope.flag || scope.target}` : '' +const present = new Set(usage.groups.flatMap((group) => group.ports.map((entry) => entry.port))) +const rows = PORTS.filter((port) => present.has(port.slug)).map((port) => ({ + slug: port.slug, name: port.name, + cells: usage.groups.map((group) => group.ports.find((entry) => entry.port === port.slug)?.links ?? []), +})) +// A page for one scope can leave out languages that send the command at another. +const single = usage.groups.length === 1 && usage.groups[0].scope !== undefined +const absent = PORTS.filter((port) => !present.has(port.slug)).map((port) => port.name) +const headingOf = (group: (typeof usage.groups)[number]) => group.scope ? group.scope.label : 'Any scope' +--- +

+ + + + + + {usage.groups.map((group) => )} + + + + {rows.map((row) => + + {row.cells.map((links, index) => )} + )} + +
Library methods that send tmux {usage.command}, by scope
Language + {headingOf(group)}{group.scope && flagOf(group.scope) && <>{' '}{flagOf(group.scope)}} + {group.function && {group.function.name}} +
{row.name} + {links.map((link) => + + + )} +
+ {absent.length > 0 &&

No method in {new Intl.ListFormat('en', { type: 'disjunction' }).format(absent)} sends this command{single ? ' at this scope' : ''} itself.

} +
+ diff --git a/site/src/lib/symbol-markdown.ts b/site/src/lib/symbol-markdown.ts index 2856f4dc8..424a76beb 100644 --- a/site/src/lib/symbol-markdown.ts +++ b/site/src/lib/symbol-markdown.ts @@ -6,6 +6,7 @@ import mentions from '../data/mentions.json' import { PORT_NAME, referenceAlternatives } from './api-models' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMemberGroups, apiMethodDetails, anonymousDeclarationLabel, hasScalarMembers, nativeSignatureText, parameterBindingText, signatureMultiline, signatureParameterText, usesNativeSignatures } from './api-sections' import { tmuxCommandsFor, tmuxManualUrl } from './tmux-manual-data' +import { tmuxSymbolSends, type ResolvedUsage } from './tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from './tmux-catalog' import { tmuxCommandMentions, tmuxMentionMarkdown } from './tmux-links' import { productApiIndex } from './product-api' @@ -31,6 +32,8 @@ export interface MarkdownContext { index?: SymbolIndex hrefFor?: (symbol: ApiSymbol) => string manualLinks?: { name: string; href: string }[] + /** The library methods that send the command a C declaration implements. */ + usage?: ResolvedUsage[] catalogLinks?: { name: string; href: string }[] paths?: ApiRelationshipPath[] symbol: ApiSymbol @@ -134,6 +137,18 @@ export async function symbolMarkdownWithLayout(ctx: MarkdownContext): Promise `${entry.name}: ${entry.links.map((link) => `[\`${link.label}\`](${link.href})`).join(', ')}`) + lines.push(`- ${group.scope?.label ?? 'Any scope'}${flag}${target}: ${ports.join('; ')}`) + } + return lines +} + export function symbolMarkdown(ctx: MarkdownContext): string { const { model, symbol } = ctx const port = 'port' in model ? model.port : undefined @@ -177,7 +192,13 @@ export function symbolMarkdown(ctx: MarkdownContext): string { if (facts.length) out.push(...facts, '') const commands = ctx.manualLinks ?? (port ? tmuxCommandsFor(port, symbol.publicId ?? symbol.id) .map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) + for (const send of port && !ctx.manualLinks ? tmuxSymbolSends(port, symbol.publicId ?? symbol.id) : []) { + const scopes = send.scopes.filter((use) => use.scope).map((use) => + `${use.scope!.label.toLowerCase()} scope${use.function ? ` [\`${use.function.name}\`](${use.function.href})` : ''}`) + out.push(`tmux command: [\`${send.command}\`](${send.manualHref})${scopes.length ? `, ${scopes.join(', ')}` : ''}`, '') + } for (const command of commands) out.push(`tmux command: [\`${command.name}\`](${command.href})`, '') + for (const entry of ctx.usage ?? []) out.push(...usageMarkdown(entry), '') const catalog = ctx.catalogLinks ?? (port && !ctx.manualLinks ? tmuxCatalogKindsForSymbol(port, symbol) .map((kind) => ({ name: CATALOG_KINDS[kind].label, href: tmuxCatalogUrl('latest', kind) })) : []) if (catalog.length) out.push(`tmux catalog: ${catalog.map((entry) => `[${entry.name}](${entry.href})`).join(', ')}`, '') diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts new file mode 100644 index 000000000..dc04601f9 --- /dev/null +++ b/site/src/lib/tmux-library-usage.ts @@ -0,0 +1,205 @@ +/** + * Which library symbols send which tmux commands, and at which scope. + * + * The data is `site/src/data/tmux-usage/.json`, written by + * `scripts/gen-tmux-usage.mjs` from each port's source at the revision its + * API model was extracted from. A symbol appears only where the source shows + * it sending the command, so a link here is a claim about the code. + */ +import { qualifiedNameOf, type ApiSymbol } from '@libtmux/api-model' +import { API_MODELS, PORT_NAME, referenceHref } from './api-models' +import { PORTS } from './ports' +import scopeTable from '../data/tmux-usage/scopes.json' +import csharp from '../data/tmux-usage/csharp.json' +import cxx from '../data/tmux-usage/cxx.json' +import fsharp from '../data/tmux-usage/fsharp.json' +import go from '../data/tmux-usage/go.json' +import java from '../data/tmux-usage/java.json' +import julia from '../data/tmux-usage/julia.json' +import kotlin from '../data/tmux-usage/kotlin.json' +import lua from '../data/tmux-usage/lua.json' +import powershell from '../data/tmux-usage/powershell.json' +import py from '../data/tmux-usage/py.json' +import rs from '../data/tmux-usage/rs.json' +import ruby from '../data/tmux-usage/ruby.json' +import scala from '../data/tmux-usage/scala.json' +import swift from '../data/tmux-usage/swift.json' +import ts from '../data/tmux-usage/ts.json' + +/** One use of a command by a symbol, as the generator records it. */ +export interface UsageUse { + command: string + /** The command's scope, or `null` for a command that has none. */ + scope: string | null + /** `file:line` in the port's repository at its pinned revision, the send site first. */ + evidence: string[] + /** A reviewed claim the generator checked line by line, not a scan result. */ + reviewed?: boolean + /** The library symbol a wrapper's claim stands on. */ + via?: { port: string; symbol: string } +} + +export interface UsageDocument { + schemaVersion: number + port: string + repo: string + revision: string + commands: string[] + symbols: Record +} + +export interface TmuxScope { + id: string + label: string + /** The flag that selects the scope in tmux, empty for the default. */ + flag: string + /** The target flag, for a scope selected by what the target names. */ + target?: string + /** The C function that lists at this scope. */ + function: string +} + +export const TMUX_USAGE: Record = { + csharp, cxx, fsharp, go, java, julia, kotlin, lua, powershell, py, rs, ruby, scala, swift, ts, +} as unknown as Record + +const SCOPES = scopeTable.commands as Record + +/** Commands whose usage the data records. */ +export function tmuxUsageCommands(): string[] { + return [...new Set(Object.values(TMUX_USAGE).flatMap((document) => document.commands))].sort() +} + +/** The scopes tmux gives a command, in the order its dispatch tests them. */ +export function tmuxScopes(command: string): TmuxScope[] { + return SCOPES[command]?.scopes ?? [] +} + +/** + * A direct sender is the symbol whose own body sends the command. A call + * through a helper is recorded as evidence and listed with the method, but + * not on the command's pages, which would otherwise list every method that + * refreshes a pane afterwards. + */ +export const LISTED_MAX_HOPS = 0 + +const symbolIndexes = new Map>() +function symbolOf(port: string, publicId: string): ApiSymbol | undefined { + let index = symbolIndexes.get(port) + if (!index) { + index = new Map((API_MODELS[port]?.symbols ?? []).map((symbol) => [symbol.publicId ?? symbol.id, symbol])) + symbolIndexes.set(port, index) + } + return index.get(publicId) +} + +const TYPE_KINDS = new Set(['class', 'interface', 'struct', 'union', 'enum', 'trait', 'exception']) + +/** The type that owns a member, when it has one. */ +function ownerOf(port: string, symbol: ApiSymbol): ApiSymbol | undefined { + const parent = symbol.parent ? API_MODELS[port]?.symbols.find((entry) => entry.id === symbol.parent) : undefined + return parent && TYPE_KINDS.has(parent.kind) ? parent : undefined +} + +/** `Server.panes`, `Server#list_panes`, `Server::panes`: the member with the type that owns it. */ +export function usageLabel(port: string, symbol: ApiSymbol): string { + const owner = ownerOf(port, symbol) + if (!owner) return symbol.name + const qualified = qualifiedNameOf(symbol) + const at = qualified.lastIndexOf(owner.name) + return at >= 0 ? qualified.slice(at) : `${owner.name}.${symbol.name}` +} + +/** + * Methods of the object a scope names come first: `Server` for the server, + * `Session` for a session, `Window` for a window. Free functions follow, and + * a method of another type, which sends the command for its own purpose, last. + */ +function ownerRank(scope: TmuxScope | undefined, owner: string | undefined, hasOwner: boolean): number { + if (!scope || !hasOwner) return 1 + return owner?.toLowerCase() === scope.label.toLowerCase() ? 0 : 2 +} + +export interface UsageLink { + port: string + symbolId: string + label: string + kind: string + href: string + /** The name of the type that owns the symbol, when it has one. */ + owner?: string + scope: string | null + evidence: string[] + hops: number + reviewed: boolean + via?: { port: string; symbol: string } +} + +export interface UsageGroup { + scope: TmuxScope | undefined + ports: { port: string; name: string; links: UsageLink[] }[] +} + +export interface CommandUsage { + command: string + /** One group per scope, or a single group without a scope for an unscoped command. */ + groups: UsageGroup[] +} + +function linkFor(port: string, publicId: string, use: UsageUse, version?: string): UsageLink | undefined { + const symbol = symbolOf(port, publicId) + const href = symbol && referenceHref(port, publicId, version) + if (!symbol || !href) return undefined + return { + port, symbolId: publicId, label: usageLabel(port, symbol), kind: symbol.kind, href, scope: use.scope, owner: ownerOf(port, symbol)?.name, + evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), ...(use.via ? { via: use.via } : {}), + } +} + +/** + * The library symbols that send a command, by scope and then by port in the + * order the site lists ports. + * + * @param scope Keep only this scope, for the page of the C function that lists at it. + */ +export function tmuxUsage(command: string, { scope, version }: { scope?: string; version?: string } = {}): CommandUsage | undefined { + if (!tmuxUsageCommands().includes(command)) return undefined + const scopes = tmuxScopes(command) + const wanted: (TmuxScope | undefined)[] = scopes.length ? scopes.filter((candidate) => !scope || candidate.id === scope) : [undefined] + const groups = wanted.map((group): UsageGroup => ({ + scope: group, + ports: PORTS.flatMap((port) => { + const document = TMUX_USAGE[port.slug] + if (!document) return [] + const links = Object.entries(document.symbols).flatMap(([publicId, uses]) => uses + .filter((use) => use.command === command && use.scope === (group?.id ?? null) && (use.reviewed || use.evidence.length - 1 <= LISTED_MAX_HOPS)) + .flatMap((use) => linkFor(port.slug, publicId, use, version) ?? [])) + .sort((a, b) => ownerRank(group, a.owner, Boolean(a.owner)) - ownerRank(group, b.owner, Boolean(b.owner)) || a.label.localeCompare(b.label)) + return links.length ? [{ port: port.slug, name: PORT_NAME[port.slug] ?? port.name, links }] : [] + }), + })) + return groups.some((group) => group.ports.length) ? { command, groups } : undefined +} + +export interface SymbolUsage { + command: string + scopes: { scope: TmuxScope | undefined; evidence: string[]; hops: number; reviewed: boolean; via?: { port: string; symbol: string } }[] +} + +/** The commands one symbol sends, with the scope and the lines that show it. Every hop counts here. */ +export function tmuxUsageOf(port: string, publicId: string): SymbolUsage[] { + const uses = TMUX_USAGE[port]?.symbols[publicId] ?? [] + const byCommand = Map.groupBy(uses, (use) => use.command) + return [...byCommand].map(([command, list]) => { + const scopes = tmuxScopes(command) + return { + command, + scopes: scopes.length + ? scopes.flatMap((scope) => list.filter((use) => use.scope === scope.id).map((use) => ({ scope, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), via: use.via }))) + : list.map((use) => ({ scope: undefined, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), via: use.via })), + } + }) +} + +/** The commands the data records for a symbol, whatever the scope. */ +export const tmuxUsageCommandsOf = (port: string, publicId: string): string[] => tmuxUsageOf(port, publicId).map((entry) => entry.command) diff --git a/site/src/lib/tmux-manual-data.ts b/site/src/lib/tmux-manual-data.ts index 56baf3221..1e9b7d4c1 100644 --- a/site/src/lib/tmux-manual-data.ts +++ b/site/src/lib/tmux-manual-data.ts @@ -10,6 +10,7 @@ import { PORT_BY_SLUG } from './ports' import { withPortRoot } from './site-root' import { rowAnchor } from './row-anchors' import { linkTmuxManualTree } from './tmux-manual' +import { tmuxUsage, tmuxUsageCommands } from './tmux-library-usage' export type TmuxManual = typeof v37 export type TmuxCommand = TmuxManual['commands'][number] @@ -197,16 +198,27 @@ export function tmuxGuidesFor(command: string) { .map((guide) => ({ title: guide.title, href: withPortRoot(`/tmux/${guide.path}/`) })) } -/** Link only declarations present in the integrated library models. */ +/** + * One library page per language for a command, for the language picker. + * + * A command with recorded usage names the symbol that sends it, at the widest + * scope the port has one for. A language without one falls back to the + * equivalent API that the concepts name, so the picker still lands somewhere. + */ export function tmuxApiLinks(command: string) { const seen = new Set() - return commandConcepts(command).flatMap((concept) => Object.entries(concept.symbols).flatMap(([port, id]) => { + const sent = tmuxUsage(command)?.groups.flatMap((group) => group.ports).flatMap((entry) => { + if (seen.has(entry.port)) return [] + seen.add(entry.port) + return [{ name: PORT_BY_SLUG[entry.port].name, href: entry.links[0].href }] + }) ?? [] + return [...sent, ...commandConcepts(command).flatMap((concept) => Object.entries(concept.symbols).flatMap(([port, id]) => { if (seen.has(port) || !API_MODELS[port]?.symbols.some((symbol) => (symbol.publicId ?? symbol.id) === id)) return [] const href = referenceHref(port, id) if (!href) return [] seen.add(port) return [{ name: PORT_BY_SLUG[port].name, href }] - })) + }))] } /** Task-oriented notes complement the pinned manual; the native catalog gates flags. */ @@ -271,8 +283,15 @@ export function tmuxManualHeadings(version: string, slug?: string) { })) } -/** Match source-verified concepts to commands present in the selected manual. */ +/** + * Match source-verified concepts to commands present in the selected manual. + * + * A command whose usage the data records is left out: a concept names an + * equivalent API, and the usage names the symbols that send the command. + */ export function tmuxCommandsFor(port: string, publicId: string): TmuxCommand[] { const concepts = conceptsFor(port, publicId) - return tmuxManual('latest').commands.filter((command) => commandConcepts(command.name).some((concept) => concepts.includes(concept))) + const recorded = tmuxUsageCommands() + return tmuxManual('latest').commands.filter((command) => !recorded.includes(command.name) + && commandConcepts(command.name).some((concept) => concepts.includes(concept))) } diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index 351a5c685..6ae343ca3 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -10,6 +10,7 @@ import { PORTS } from './ports' import { withPortRoot } from './site-root' import { buildsTmuxDocumentation, TMUX_VERSIONS, tmuxApiLinks, tmuxManualUrl } from './tmux-manual-data' import { tmuxCatalogLinksForSource } from './tmux-catalog' +import { tmuxScopes, tmuxUsage, tmuxUsageCommands, tmuxUsageOf, type CommandUsage, type SymbolUsage, type TmuxScope, type UsageGroup } from './tmux-library-usage' export interface TmuxSourceModel extends SourceApiModel { commands: { name: string; entry: string; callback: string }[] @@ -173,18 +174,105 @@ export function tmuxReferenceTree(version = 'latest') { const model = tmuxSourceModel(version) return referenceTreeFor('tmux', model, navigation(model).tree) } -export function tmuxSourceCommands(version: string, symbol: ApiSymbol) { - return tmuxSourceModel(version).commands +const scopeFunctions = new Map() + +/** The C function that lists a command at one scope in a release, when that release has it. */ +export function tmuxScopeFunction(version: string, command: string, scope: TmuxScope): ApiSymbol | undefined { + const model = tmuxSourceModel(version) + const key = `${model.version}\0${command}\0${scope.id}` + if (!scopeFunctions.has(key)) { + const exec = model.symbols.find((entry) => entry.id === model.commands.find((candidate) => candidate.name === command)?.callback) + scopeFunctions.set(key, exec && model.symbols.find((entry) => entry.name === scope.function && entry.source.file === exec.source.file && entry.id.startsWith('c:function:'))) + } + return scopeFunctions.get(key) +} + +/** + * The commands a C declaration belongs to, and for a scope's function, that scope. + * A command's entry and callback answer for every scope. + */ +export function tmuxSourceUsage(version: string, symbol: ApiSymbol): { command: string; scope?: string }[] { + const direct = tmuxSourceModel(version).commands .filter((command) => command.entry === symbol.id || command.callback === symbol.id) - .map((command) => ({ name: command.name, href: tmuxManualUrl(version, command.name) })) + .map((command) => ({ command: command.name })) + const scoped = tmuxUsageCommands().flatMap((command) => tmuxScopes(command) + .filter((scope) => tmuxScopeFunction(version, command, scope)?.id === symbol.id) + .map((scope) => ({ command, scope: scope.id }))) + return [...direct, ...scoped] +} + +export function tmuxSourceCommands(version: string, symbol: ApiSymbol) { + return tmuxSourceUsage(version, symbol) + .map(({ command }) => ({ name: command, href: tmuxManualUrl(version, command) })) + .filter((entry, index, all) => all.findIndex((other) => other.name === entry.name) === index) +} + +export interface ResolvedUsageGroup extends UsageGroup { + /** The C function behind the scope, in the release the page describes. */ + function?: { name: string; href: string } +} +export interface ResolvedUsage extends Omit { + manualHref: string + groups: ResolvedUsageGroup[] +} + +/** A command's usage with each scope's C function linked in one release. */ +export function tmuxResolvedUsage(version: string, command: string, scope?: string): ResolvedUsage | undefined { + const usage = tmuxUsage(command, { scope }) + if (!usage) return undefined + return { + ...usage, + manualHref: tmuxManualUrl(version, command), + groups: usage.groups.map((group) => { + const target = group.scope && tmuxScopeFunction(version, command, group.scope) + return { ...group, ...(target ? { function: { name: target.name, href: tmuxReferenceUrl(version, target) } } : {}) } + }), + } } export function tmuxCommandSources(version: string, name: string) { const model = tmuxSourceModel(version) const command = model.commands.find((entry) => entry.name === name) - return command ? [command.entry, command.callback].flatMap((id) => { - const symbol = model.symbols.find((entry) => entry.id === id) - return symbol ? [{ name: symbol.name, href: tmuxReferenceUrl(version, symbol) }] : [] - }) : [] + const scoped = tmuxScopes(name).flatMap((scope) => tmuxScopeFunction(version, name, scope) ?? []) + return command ? [...[command.entry, command.callback].flatMap((id) => model.symbols.find((entry) => entry.id === id) ?? []), ...scoped] + .map((symbol) => ({ name: symbol.name, href: tmuxReferenceUrl(version, symbol) })) : [] +} + +export interface SymbolSend extends Omit { + manualHref: string + scopes: (SymbolUsage['scopes'][number] & { function?: { name: string; href: string } })[] +} + +export interface CommandRow { + command: string + href: string + scopes: SymbolSend['scopes'] +} + +/** + * The commands a symbol page names, in the order a reader should weigh them: + * what the symbol itself sends, then the commands it has an equivalent for, + * then what it sends through a helper, which is rarely why anyone is here. + */ +export function tmuxCommandRows(sends: SymbolSend[], equivalents: { name: string; href: string }[]): CommandRow[] { + const rows = (list: SymbolSend[]) => list.map((send): CommandRow => ({ command: send.command, href: send.manualHref, scopes: send.scopes.filter((use) => use.scope) })) + const direct = (send: SymbolSend) => send.scopes.some((use) => use.reviewed || use.hops === 0) + return [ + ...rows(sends.filter(direct)), + ...equivalents.map((entry): CommandRow => ({ command: entry.name, href: entry.href, scopes: [] })), + ...rows(sends.filter((send) => !direct(send))), + ] +} + +/** The commands a library symbol sends, with each scope's manual and C function. */ +export function tmuxSymbolSends(port: string, publicId: string, version = 'latest'): SymbolSend[] { + return tmuxUsageOf(port, publicId).map((entry) => ({ + ...entry, + manualHref: tmuxManualUrl(version, entry.command), + scopes: entry.scopes.map((use) => { + const target = use.scope && tmuxScopeFunction(version, entry.command, use.scope) + return { ...use, ...(target ? { function: { name: target.name, href: tmuxReferenceUrl(version, target) } } : {}) } + }), + })) } export function tmuxReferenceRoutes() { return buildsTmuxDocumentation() ? TMUX_VERSIONS.flatMap((version) => [ @@ -214,7 +302,16 @@ export function tmuxReferenceContext(version: string, symbol?: ApiSymbol) { const model = tmuxSourceModel(version) const referenceNavigation = navigation(model) const commands = symbol ? tmuxSourceCommands(version, symbol) : [] - const equivalents = commands.flatMap((command) => tmuxApiLinks(command.name)) + const sources = symbol ? tmuxSourceUsage(version, symbol) : [] + const usage = sources.flatMap(({ command, scope }) => tmuxResolvedUsage(version, command, scope) ?? []) + const sent = new Map() + for (const entry of usage.flatMap((resolved) => resolved.groups.flatMap((group) => group.ports))) { + if (!sent.has(entry.port)) sent.set(entry.port, entry.links[0].href) + } + // The command's own pages offer a language that sends nothing the page of its + // equivalent API; a scope's page has no equivalent for a language without that scope. + const scopeOnly = sources.length > 0 && sources.every((entry) => entry.scope) + const equivalents = scopeOnly ? [] : commands.flatMap((command) => tmuxApiLinks(command.name)) return { model, version, label: 'tmux C', title: 'tmux C source reference', description: `C declarations from tmux ${model.version}. These are tmux internals, not a supported external library API.`, @@ -228,10 +325,11 @@ export function tmuxReferenceContext(version: string, symbol?: ApiSymbol) { ], ...referenceNavigation, index: tmuxReferenceIndex(version), paths: tmuxReferencePaths(version), manualLinks: commands, + usage, catalogLinks: symbol ? tmuxCatalogLinksForSource(version, symbol.name) : [], pagePorts: PORTS.map((port) => ({ port: port.slug, name: port.name, - links: [...new Set(equivalents.filter((entry) => entry.name === port.name).map((entry) => entry.href))] - .map((href) => ({ href })), + links: sent.has(port.slug) ? [{ href: sent.get(port.slug)! }] + : [...new Set(equivalents.filter((entry) => entry.name === port.name).map((entry) => entry.href))].map((href) => ({ href })), })), } } diff --git a/site/src/pages/tmux/[version]/manual/[...slug].astro b/site/src/pages/tmux/[version]/manual/[...slug].astro index 60f7da714..d046f4737 100644 --- a/site/src/pages/tmux/[version]/manual/[...slug].astro +++ b/site/src/pages/tmux/[version]/manual/[...slug].astro @@ -2,7 +2,8 @@ import DocsLayout from '../../../../layouts/DocsLayout.astro' import SectionHeading from '../../../../components/SectionHeading.astro' import { Code } from 'astro-expressive-code/components' -import { tmuxCommandSources, tmuxReferenceUrl } from '../../../../lib/tmux-reference' +import TmuxUsage from '../../../../components/tmux/TmuxUsage.astro' +import { tmuxCommandSources, tmuxReferenceUrl, tmuxResolvedUsage } from '../../../../lib/tmux-reference' import { withRoot } from '../../../../lib/site-root' import type { PageSource } from '../../../../lib/markdown-twins' import { rowAnchor } from '../../../../lib/row-anchors' @@ -49,6 +50,7 @@ const guides = tmuxGuidesFor(command?.name ?? '') const headings = tmuxManualHeadings(version, slug) const notes = tmuxCommandNotes(version, slug) const implementations = command ? tmuxCommandSources(version, command.name) : [] +const usage = command ? tmuxResolvedUsage(version, command.name) : undefined const source: PageSource = { repo: TMUX_REPOSITORY, path: 'tmux.1', ref: reference.sourceCommit } const manualHtml = command || isManual ? await highlightTmuxManual(linkTmuxManualCatalog( @@ -102,8 +104,13 @@ const manualHtml = command || isManual } {equivalents.length > 0 && <> Use from a library -

Each API describes its own defaults, errors and execution model.

- + {usage ? <> +

These methods send {command.name}. Each describes its own defaults, errors and execution model.

+ + : <> +

Each API describes its own defaults, errors and execution model.

+ + } } : isManual ?
: <>

Look up the flags and behavior supported by tmux {reference.version}. Choose the version installed on your machine with tmux -V.

diff --git a/site/src/pages/tmux/[version]/reference/[...slug].md.ts b/site/src/pages/tmux/[version]/reference/[...slug].md.ts index 8575c2d3d..0c769f8a2 100644 --- a/site/src/pages/tmux/[version]/reference/[...slug].md.ts +++ b/site/src/pages/tmux/[version]/reference/[...slug].md.ts @@ -2,7 +2,7 @@ import type { APIRoute } from 'astro' import { sourceUrl } from '@libtmux/api-model' import { symbolMarkdownWithLayout } from '../../../../lib/symbol-markdown' import { tmuxCatalogLinksForSource } from '../../../../lib/tmux-catalog' -import { tmuxReferenceIndex, tmuxReferencePaths, tmuxReferenceRoutes, tmuxReferenceUrl, tmuxSourceCommands, tmuxSourceModel } from '../../../../lib/tmux-reference' +import { tmuxReferenceContext, tmuxReferenceIndex, tmuxReferencePaths, tmuxReferenceRoutes, tmuxReferenceUrl, tmuxSourceCommands, tmuxSourceModel } from '../../../../lib/tmux-reference' export function getStaticPaths() { return tmuxReferenceRoutes().filter(({ symbol }) => symbol).map(({ version, symbol }) => ({ @@ -18,6 +18,7 @@ export const GET: APIRoute = async ({ props, site }) => { source: sourceUrl(model, symbol), hrefFor: (entry) => tmuxReferenceUrl(version, entry), manualLinks: tmuxSourceCommands(version, symbol), + usage: tmuxReferenceContext(version, symbol).usage, catalogLinks: tmuxCatalogLinksForSource(version, symbol.name), paths: tmuxReferencePaths(version), }), { headers: { 'Content-Type': 'text/markdown; charset=utf-8' } }) diff --git a/site/src/styles/api.css b/site/src/styles/api.css index 183c11915..12a4961b7 100644 --- a/site/src/styles/api.css +++ b/site/src/styles/api.css @@ -179,6 +179,11 @@ dl.gp-sphinx-api-container > dt.gp-sphinx-api-header:only-child { opacity: 0.6; } +/* A method that sends a tmux command names the flag and the C function behind it. */ +.tmux-send { margin-inline-start: 0.25rem; } +.tmux-send > * + * { margin-inline-start: 0.25rem; } +.tmux-usage-block { margin-block-start: 0.75rem; } + /* * The member list on a type's page. * diff --git a/site/src/styles/kind-marks.css b/site/src/styles/kind-marks.css index 49baf2934..3e5a8768b 100644 --- a/site/src/styles/kind-marks.css +++ b/site/src/styles/kind-marks.css @@ -219,7 +219,7 @@ */ @property --sp-h { syntax: ''; inherits: true; initial-value: 0px; } @property --sp-pb { syntax: ''; inherits: true; initial-value: 0px; } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind) { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind) { --sp-h: round(1.6em, 2px); --sp-pb: round(calc((var(--sp-h) - 2px - .875 * 1cap) / 2), var(--mark-step)); display: inline-flex; @@ -238,7 +238,7 @@ background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 4%, transparent); text-decoration: none; } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind { --mk-w: 1.6em; --mk-bwv: 0px; --mk-fill: color-mix(in srgb, var(--mk-hue, currentColor) 18%, var(--background-color, transparent)); /* The mark is one line tall and stays on the first line, however many lines the name takes. */ @@ -250,7 +250,7 @@ border-inline-end: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) 30%, transparent); border-radius: 0; } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind + code { /* * The last line's baseline keeps its gap from the bottom edge. The top margin reserves exactly the space the first * line has in a one-line chip (a hair less, so a single line never grows it), so the first line sits level with @@ -268,9 +268,9 @@ text-decoration: none; } @supports not (text-box: trim-both cap alphabetic) { - :is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } + :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); } /* In the contents column each chip is its own row: as wide as its content, with an even gap between rows. */ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts new file mode 100644 index 000000000..216772a99 --- /dev/null +++ b/site/test/tmux-library-usage.test.ts @@ -0,0 +1,314 @@ +import { readFileSync } from 'node:fs' +import { experimental_AstroContainer } from 'astro/container' +import { Window } from 'happy-dom' +import { afterEach, describe, expect, it } from 'vitest' +import { documentProblems } from '../../scripts/gen-tmux-usage.mjs' +import { API_MODELS } from '../src/lib/api-models' +import { PORTS } from '../src/lib/ports' +import { symbolMarkdown } from '../src/lib/symbol-markdown' +import { tmuxApiLinks, tmuxCommandsFor, tmuxManualHeadings, tmuxManualUrl } from '../src/lib/tmux-manual-data' +import { TMUX_USAGE, tmuxScopes, tmuxUsage, tmuxUsageOf } from '../src/lib/tmux-library-usage' +import { + tmuxCommandRows, tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxResolvedUsage, tmuxSourceModel, tmuxSymbolSends, +} from '../src/lib/tmux-reference' +import { loadAstroTemplate, renderAstroTemplate, withoutScope } from './astro-templates' + +const windows: Window[] = [] +afterEach(async () => { for (const win of windows.splice(0)) await win.happyDOM.abort() }) +const dom = (html: string) => { + const win = new Window() + windows.push(win) + win.document.body.innerHTML = html + return win.document +} + +const scopeTable = JSON.parse(readFileSync(new URL('../src/data/tmux-usage/scopes.json', import.meta.url), 'utf8')) +const usage = tmuxUsage('list-panes')! +/** What a port lists at one scope of list-panes. */ +const cell = (scope: string, port: string) => usage.groups.find((group) => group.scope?.id === scope)!.ports.find((entry) => entry.port === port)?.links.map((link) => link.label) + +describe('the recorded usage', () => { + it.each(PORTS.map((port) => port.slug))('is bound to the pinned API model of %s', (slug) => { + expect(documentProblems(TMUX_USAGE[slug], API_MODELS[slug], scopeTable, ['list-panes'])).toEqual([]) + }) + + it('names the methods that send list-panes at each scope, where the ports differ in design', () => { + expect(cell('server', 'swift')).toEqual(['Server.panes()', 'Server.panes(where:)']) + expect(cell('server', 'py')).toEqual(['Server.panes', 'Server.search_panes']) + expect(cell('session', 'py')).toEqual(['Session.panes', 'Session.search_panes']) + expect(cell('window', 'cxx')).toEqual(['Window::panes']) + expect(cell('server', 'ruby')).toEqual(['Server#list_panes']) + expect(cell('window', 'go')).toEqual(['Window.SearchPanes']) + // A snapshot-based port sends the command in its snapshot call. + expect(cell('server', 'ts')).toEqual(['Server.snapshot']) + expect(cell('server', 'lua')).toEqual(['Server:snapshot']) + // A wrapper stands on the library it calls. + expect(cell('server', 'powershell')).toEqual(['Get-TmuxPane']) + expect(cell('window', 'powershell')).toEqual(['Get-TmuxPane']) + }) + + it('leaves out a method that reads a capture instead of sending the command', () => { + // Go documents Session.Panes and Window.Panes as never querying tmux; the search methods send it. + expect(cell('session', 'go')).toEqual(['Session.SearchPanes']) + expect(cell('window', 'go')).not.toContain('Window.Panes') + // TypeScript and Swift read sessions and windows from a captured snapshot. + expect(cell('session', 'ts')).toBeUndefined() + expect(cell('window', 'ts')).toBeUndefined() + expect(cell('session', 'swift')).toBeUndefined() + // Kotlin, Scala and F# have no method of their own that sends it. + for (const port of ['kotlin', 'scala', 'fsharp']) { + for (const scope of ['server', 'session', 'window']) expect(cell(scope, port)).toBeUndefined() + } + }) + + it('lists the object that owns the scope before a method that sends the command for its own purpose', () => { + expect(cell('window', 'py')).toEqual(['Window.panes', 'Window.search_panes', 'Pane.from_pane_id']) + expect(cell('session', 'rs')).toEqual(['Session.panes', 'ControlSender.watch_only']) + }) + + it('lists the ports in the order the site lists them', () => { + const order = PORTS.map((port) => port.slug) + for (const group of usage.groups) { + const slugs = group.ports.map((entry) => entry.port) + expect(slugs).toEqual(order.filter((slug) => slugs.includes(slug))) + } + }) + + it('keeps a call through a helper with the method and off the command pages', () => { + const go = tmuxUsageOf('go', 'tmux.Pane.Select') + expect(go).toHaveLength(1) + expect(go[0].scopes[0]).toMatchObject({ hops: 1, evidence: ['tmux/lookup.go:371', 'tmux/window_pane_topology.go:199'] }) + expect(usage.groups.flatMap((group) => group.ports).flatMap((entry) => entry.links).map((link) => link.symbolId)).not.toContain('tmux.Pane.Select') + }) + + it('links every method to its own page', () => { + for (const link of usage.groups.flatMap((group) => group.ports).flatMap((entry) => entry.links)) { + expect(link.href).toMatch(new RegExp(`/${link.port}/[^/]+/reference/[^/]+/$`)) + expect(link.evidence[0]).toMatch(/^[^:]+:\d+$/) + } + }) + + it('has no usage for a command it has not recorded', () => { + expect(tmuxUsage('kill-pane')).toBeUndefined() + expect(tmuxScopes('kill-pane')).toEqual([]) + expect(tmuxUsageOf('py', 'libtmux.Pane.kill')).toEqual([]) + }) +}) + +describe('from a method to the command and its C function', () => { + it('names the scope and links the manual page and the C function behind it', () => { + const [send] = tmuxSymbolSends('swift', 'Server.panes()') + expect(send.command).toBe('list-panes') + expect(send.manualHref).toBe(tmuxManualUrl('latest', 'list-panes')) + expect(send.scopes.map((use) => [use.scope?.id, use.function?.name, use.function?.href])).toEqual([ + ['server', 'cmd_list_panes_server', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/'], + ]) + }) + + it('gives a cmdlet that lists at three scopes one row with all three', () => { + const [send] = tmuxSymbolSends('powershell', 'LibTmux\\Get-TmuxPane') + expect(send.scopes.map((use) => use.scope?.id)).toEqual(['server', 'session', 'window']) + expect(send.scopes.every((use) => use.via?.port === 'csharp')).toBe(true) + }) + + it('does not link a method that only reads a capture, whatever the concepts call it equivalent to', () => { + // The concept map names Window.Panes the Go equivalent of list-panes. + expect(tmuxSymbolSends('go', 'tmux.Window.Panes')).toEqual([]) + expect(tmuxCommandsFor('go', 'tmux.Window.Panes').map((command) => command.name)).not.toContain('list-panes') + expect(tmuxCommandsFor('ts', 'window.Window.panes').map((command) => command.name)).not.toContain('list-panes') + // A command whose usage is not recorded keeps its concept link. + expect(tmuxCommandsFor('ts', 'pane.Pane.capture').map((command) => command.name)).toEqual(['capture-pane']) + }) + + it('names what the method sends before its equivalents, and what it sends through a helper last', () => { + const plain = [{ name: 'send-keys', href: tmuxManualUrl('latest', 'send-keys') }] + const rows = tmuxCommandRows(tmuxSymbolSends('java', 'io.github.libtmux.Pane.Pane.sendKeys'), plain) + expect(rows.map((row) => row.command)).toEqual(['send-keys', 'list-panes']) + expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), plain).map((row) => row.command)).toEqual(['list-panes', 'send-keys']) + expect(tmuxCommandRows([], plain).map((row) => row.scopes)).toEqual([[]]) + }) + + it('lists the call through a helper with the method it belongs to', () => { + const [send] = tmuxSymbolSends('go', 'tmux.Pane.Select') + expect(send.scopes[0]).toMatchObject({ hops: 1, function: { name: 'cmd_list_panes_window' } }) + }) +}) + +describe.each(['3.7c', '3.2a'])('the C pages of tmux %s', (version) => { + const model = tmuxSourceModel(version) + const symbolNamed = (name: string) => model.symbols.find((symbol) => symbol.name === name)! + const pagesOf = (name: string) => tmuxReferenceContext(version, symbolNamed(name)) + + it.each(['cmd_list_panes_entry', 'cmd_list_panes_exec'])('lists every scope on %s', (name) => { + const context = pagesOf(name) + expect(context.manualLinks.map((link) => link.name)).toEqual(['list-panes']) + expect(context.usage).toHaveLength(1) + expect(context.usage[0].groups.map((group) => [group.scope?.id, group.function?.name])).toEqual([ + ['server', 'cmd_list_panes_server'], ['session', 'cmd_list_panes_session'], ['window', 'cmd_list_panes_window'], + ]) + expect(context.usage[0].groups.map((group) => group.function?.href)).toEqual( + ['server', 'session', 'window'].map((scope) => tmuxReferenceUrl(version, symbolNamed(`cmd_list_panes_${scope}`))), + ) + }) + + it.each(['server', 'session', 'window'])('lists only the %s scope on its function', (scope) => { + const context = pagesOf(`cmd_list_panes_${scope}`) + expect(context.manualLinks.map((link) => link.name)).toEqual(['list-panes']) + expect(context.usage[0].groups.map((group) => group.scope?.id)).toEqual([scope]) + const symbolIds = context.usage[0].groups[0].ports.flatMap((entry) => entry.links.map((link) => link.symbolId)) + expect(symbolIds).toContain({ server: 'libtmux.Server.panes', session: 'libtmux.Session.panes', window: 'libtmux.Window.panes' }[scope]) + // The other scopes' methods are not on this page. + const others = { server: 'libtmux.Window.panes', session: 'libtmux.Server.panes', window: 'libtmux.Session.panes' }[scope] + expect(symbolIds).not.toContain(others) + }) + + it('offers a scope page only the languages that send the command at that scope', () => { + const picker = (name: string) => pagesOf(name).pagePorts.filter((entry) => entry.links.length).map((entry) => entry.port) + expect(picker('cmd_list_panes_session')).not.toContain('ts') + expect(picker('cmd_list_panes_session')).toContain('py') + // The command's own pages still land every language somewhere. + expect(picker('cmd_list_panes_exec')).toEqual(PORTS.map((port) => port.slug)) + }) + + it('links the command to every function that lists panes', () => { + expect(tmuxCommandSources(version, 'list-panes').map((entry) => entry.name)).toEqual([ + 'cmd_list_panes_entry', 'cmd_list_panes_exec', 'cmd_list_panes_server', 'cmd_list_panes_session', 'cmd_list_panes_window', + ]) + expect(tmuxCommandSources(version, 'capture-pane').map((entry) => entry.name)).toHaveLength(2) + }) + + it('writes the same lists into the Markdown of the page', () => { + const symbol = symbolNamed('cmd_list_panes_session') + const context = pagesOf('cmd_list_panes_session') + const text = symbolMarkdown({ model, symbol, version, index: tmuxReferenceIndex(version), hrefFor: (entry) => tmuxReferenceUrl(version, entry), + manualLinks: context.manualLinks, usage: context.usage }) + expect(text).toContain(`tmux command: [\`list-panes\`](${tmuxManualUrl(version, 'list-panes')})`) + expect(text).toMatch(/- Session `-s` \(\[`cmd_list_panes_session`\]\([^)]+\)\): .*Python: \[`Session\.panes`\]\(\/py\//) + expect(text).not.toContain('Server.panes') + }) +}) + +describe('the manual page of a command', () => { + it('keeps one language picker entry per language and the section heading', () => { + const links = tmuxApiLinks('list-panes') + expect(links.map((entry) => entry.name)).toEqual(expect.arrayContaining(['Python', 'Swift', 'Kotlin', 'Scala', 'F#'])) + expect(new Set(links.map((entry) => entry.name)).size).toBe(links.length) + // The widest scope a language has, so Python opens at the server's panes. + expect(links.find((entry) => entry.name === 'Python')!.href).toBe(cellHref('server', 'py', 'libtmux.Server.panes')) + expect(tmuxManualHeadings('latest', 'list-panes').map((heading) => heading.slug)).toContain('list-panes-use-from-a-library') + }) + + function cellHref(scope: string, port: string, id: string) { + return usage.groups.find((group) => group.scope?.id === scope)!.ports.find((entry) => entry.port === port)!.links.find((link) => link.symbolId === id)!.href + } +}) + +describe('the rendered lists', () => { + async function render(props: Record) { + const template = await loadAstroTemplate('components/tmux/TmuxUsage.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) + return dom(withoutScope(await renderAstroTemplate(template, { props }))) + } + + it('shows a column for each scope, headed by its flag and the C function', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes') }) + const headers = [...document.querySelectorAll('thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim()) + expect(headers).toEqual(['Language', 'Server -a cmd_list_panes_server', 'Session -s cmd_list_panes_session', 'Window -t cmd_list_panes_window']) + expect([...document.querySelectorAll('thead a')].map((a) => a.getAttribute('href'))).toEqual( + ['server', 'session', 'window'].map((scope) => `/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_${scope}/`)) + }) + + it('shows one row per language, in site order, with a kind mark and a link in each filled cell', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes') }) + const rows = [...document.querySelectorAll('tbody tr')] + const order = PORTS.map((port) => port.slug) + const slugs = rows.map((row) => row.getAttribute('data-port')!) + expect(slugs).toEqual(order.filter((slug) => slugs.includes(slug))) + expect(slugs).not.toContain('kotlin') + const swift = rows.find((row) => row.getAttribute('data-port') === 'swift')! + const cells = [...swift.querySelectorAll('td')] + expect(cells.map((td) => [...td.querySelectorAll('a')].map((a) => a.textContent!.replace(/\s+/g, '')))) + .toEqual([['mServer.panes()', 'mServer.panes(where:)'], [], []]) + expect(cells[0].querySelector('a')!.getAttribute('href')).toMatch(/\/swift\/[^/]+\/reference\/server-panes\(\)\/$/) + expect(cells[1].className).toContain('tmux-usage__empty') + }) + + it('names the languages that have no method of their own to list', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes') }) + expect(document.querySelector('.tmux-usage__absent')!.textContent).toBe('No method in Kotlin, Scala, or F# sends this command itself.') + const windowPage = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) + expect(windowPage.querySelector('.tmux-usage__absent')!.textContent).toMatch(/^No method in Lua, Julia, TypeScript, .*sends this command at this scope itself\.$/) + // The control: a command that every language sends has no such line. + const everyone = tmuxResolvedUsage('latest', 'list-panes')! + const full = { ...everyone, groups: everyone.groups.map((group) => ({ ...group, ports: PORTS.map((port) => ({ + port: port.slug, name: port.name, links: group.ports[0].links })) })) } + expect((await render({ usage: full })).querySelector('.tmux-usage__absent')).toBeNull() + }) + + it('renders only the scope asked for on a scope page', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) + expect([...document.querySelectorAll('thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim())) + .toEqual(['Language', 'Window -t cmd_list_panes_window']) + expect(document.querySelectorAll('tbody tr').length).toBeGreaterThan(0) + expect(document.body.textContent).not.toContain('Server.panes') + }) + + it('adds the command, flag and C function to the method page', async () => { + const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') + const start = source.indexOf('{commandRows.length > 0 && )}', source.indexOf('{usage.map(', start)) + '
)}'.length + expect(start).toBeGreaterThan(0) + expect(end).toBeGreaterThan(start) + const stub = `---\nimport TmuxUsage from '../tmux/TmuxUsage.astro'\nconst { commandRows, usage } = Astro.props\n---\n${source.slice(start, end)}` + const template = await loadAstroTemplate('components/api/ApiEntry.astro', { + real: ['components/tmux/TmuxUsage.astro', 'components/api/ApiBadge.astro', 'components/api/SymbolName.astro'], stubs: { 'components/api/ApiEntry.astro': stub }, + }) + const html = (props: Record) => renderAstroTemplate(template, { props: { commandRows: [], usage: [], ...props } }).then((text) => dom(withoutScope(text))) + + const method = await html({ commandRows: tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), []) }) + expect(method.querySelector('.gp-sphinx-api-mentions')!.textContent!.replace(/\s+/g, ' ').trim()).toBe('tmux command list-panes -a cmd_list_panes_server') + expect([...method.querySelectorAll('.gp-sphinx-api-mentions a')].map((a) => a.getAttribute('href'))).toEqual([ + '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', + ]) + + // A reader of a method that does not send the command sees no row for it. + const reader = await html({ commandRows: tmuxCommandRows(tmuxSymbolSends('go', 'tmux.Window.Panes'), []) }) + expect(reader.querySelector('.gp-sphinx-api-mentions')).toBeNull() + + const declaration = await html({ usage: [tmuxResolvedUsage('latest', 'list-panes', 'session')] }) + expect(declaration.querySelector('.tmux-usage-block .gp-sphinx-api-mentions-label')!.textContent).toBe('In libtmux') + expect(declaration.querySelectorAll('.tmux-usage table').length).toBe(1) + }) +}) + +describe('the manual page', () => { + async function page(slug: string) { + const template = await loadAstroTemplate('pages/tmux/[version]/manual/[...slug].astro', { + real: ['components/tmux/TmuxUsage.astro', 'components/api/ApiBadge.astro', 'components/api/SymbolName.astro', 'components/SectionHeading.astro'], + // Neither the code highlighter nor the content collection runs outside a build. + modules: { + 'astro-expressive-code/components': { Code: Object.assign(() => '', { isAstroComponentFactory: true }) }, + '../../../../lib/page-ports-for': { pagePortsFor: async () => [] }, + }, + }) + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + return dom(withoutScope(await container.renderToString(template as never, { request: new Request('https://libtmux.org/'), params: { version: 'latest', slug } }))) + } + + it('lists the methods that send list-panes by scope, and every function that implements it', async () => { + const document = await page('list-panes') + expect(document.querySelector('h2#list-panes-use-from-a-library')).not.toBeNull() + // The heading keeps its earlier anchor, so a link to it still lands. + expect(document.querySelector('#libraries')).not.toBeNull() + expect(document.querySelectorAll('.tmux-usage table').length).toBe(1) + expect(document.querySelector('.tmux-usage tr[data-port="swift"] a')!.getAttribute('href')).toMatch(/\/swift\/[^/]+\/reference\/server-panes\(\)\/$/) + expect([...document.querySelectorAll('h2#list-panes-implementation + p + ul a')].map((a) => a.textContent)).toEqual([ + 'cmd_list_panes_entry', 'cmd_list_panes_exec', 'cmd_list_panes_server', 'cmd_list_panes_session', 'cmd_list_panes_window', + ]) + }) + + it('keeps the plain list for a command whose usage is not recorded', async () => { + const document = await page('capture-pane') + expect(document.querySelector('.tmux-usage')).toBeNull() + expect([...document.querySelectorAll('h2#capture-pane-use-from-a-library ~ ul a')].map((a) => a.textContent)).toContain('Python') + }) +}) From 2862bf71a2e462847673bb40ba62f60f7e4ac0c6 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 19 Oct 2026 20:37:44 -0500 Subject: [PATCH 07/53] fix(site[tmux-usage]) Stack usage chips flush and put In libtmux last why: In the usage table every chip after the first sat 0.4rem to the right of it, and a long name such as Server.CaptureSnapshotAsync wrapped inside a chip of fixed height and spilled over the next line. The maintainer also wants In libtmux at the very bottom of each page: on a C page it sat in the declaration card above the call neighborhood. what: - Stack the chips of a cell in a column, flush, with one gap, and keep each name on one line; a table wider than its column scrolls inside it, and below 50rem of container width each language becomes its own block, so the table stacks at 1024 and 390 wide and not by viewport - Keep td out of the block rule of the stacked layout and give rows their own grid, so the stacked rules cannot tie on specificity - Move In libtmux out of the declaration card into its own section with a heading and permalink after Related types, listed last in the section links and On this page, and last in the Markdown export; the card keeps its tmux command line - Test the stylesheet for the indent, the wrap and the missing scroll with a control built from the old rules, and test that the section is last on the C pages and that Use from a library is last on the manual page Verified in the browser on the served manual page with the new rules applied, at 1440, 1024 and 390 wide in light and dark: chips flush with a 6px gap, none clipped or overlapping, no page overflow, and the table stacks below 800px of container width. The served dev server did not reload the changed sources, so the C page move is checked through the Astro container render and not in the browser. --- site/src/components/api/ApiEntry.astro | 12 +- site/src/components/api/ApiReference.astro | 12 +- site/src/components/tmux/TmuxUsage.astro | 17 ++- site/src/lib/symbol-markdown.ts | 8 +- site/src/styles/api.css | 3 +- site/test/tmux-library-usage.test.ts | 165 +++++++++++++++++++-- 6 files changed, 182 insertions(+), 35 deletions(-) diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index b8d576ee1..ef23d256d 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -15,8 +15,7 @@ import ApiType from './ApiType.astro' import { asideFor } from '../../lib/aside' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMethodDetails, anonymousDeclarationLabel, nativeSignatureText as unformattedNativeSignatureText, parameterBindingText, usesNativeSignatures } from '../../lib/api-sections' import { tmuxCommandsFor, tmuxManualUrl } from '../../lib/tmux-manual-data' -import { tmuxCommandRows, tmuxSymbolSends, type ResolvedUsage } from '../../lib/tmux-reference' -import TmuxUsage from '../tmux/TmuxUsage.astro' +import { tmuxCommandRows, tmuxSymbolSends } from '../../lib/tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from '../../lib/tmux-catalog' import ApiFieldOverloads from './ApiFieldOverloads.astro' import ApiCommandParameters from './ApiCommandParameters.astro' @@ -46,8 +45,6 @@ interface Props { /** Declaration syntax, independent of library-port identity. */ language?: string manualLinks?: { name: string; href: string }[] - /** The library methods that send the command a C declaration implements. */ - usage?: ResolvedUsage[] /** Catalog pages for a declaration in a source reference. */ catalogLinks?: { name: string; href: string }[] /** Override equivalent links for a product or version context. */ @@ -80,7 +77,7 @@ interface Props { /** Previous fragment for the same declaration. */ legacyId?: string } -const { symbol, index, sourceUrl, port, language = port, manualLinks, usage = [], catalogLinks, alternativesFor, heading = false, member = false, +const { symbol, index, sourceUrl, port, language = port, manualLinks, catalogLinks, alternativesFor, heading = false, member = false, showSummary = true, showBases = true, legacyId, nameHref } = Astro.props as Props const anchor = symbol.publicId ?? symbol.id const kind = symbol.kind @@ -282,7 +279,6 @@ const hasBody = methods.length > 0 || hasFields || commandRows.length > 0 || - usage.length > 0 || catalogEntries.length > 0 || elsewhere.length > 0 --- @@ -690,10 +686,6 @@ const hasBody = )} )}

} - {usage.map((entry) =>
- In libtmux - -
)} {catalogEntries.length > 0 &&

tmux catalog {catalogEntries.map((entry, i) => <> diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 51acf029b..f26de4efa 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -38,6 +38,7 @@ import '../../styles/api.css' import '../../styles/vendor/gp-sphinx-api.css' import { tmuxManualUrl } from '../../lib/tmux-manual-data' import type { ResolvedUsage } from '../../lib/tmux-reference' +import TmuxUsage from '../tmux/TmuxUsage.astro' /** Source projects supply identity and navigation to the same API renderer. */ export interface SourceReferenceContext { @@ -369,6 +370,9 @@ const related = owner ? relatedApiTypes(owner, members, index, declaringType, { identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, })) : [] if (related.length) pageSections.push({ id: 'api-related-types', label: 'Related types', count: related.length }) +// The methods that send the command are what a reader of the C needs last, after the code around it. +const usage = source?.usage ?? [] +if (owner && usage.length) pageSections.push({ id: 'api-tmux-usage', label: 'In libtmux' }) const title = glossary ? API_GLOSSARY_TITLE : owner ? qualifiedNameOf(owner) : model @@ -761,7 +765,6 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] port={port} language={language} manualLinks={source?.manualLinks} - usage={source?.usage} catalogLinks={source?.catalogLinks} heading={isMemberOwner(owner)} member={!isMemberOwner(owner)} @@ -842,6 +845,13 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] )} } + {usage.length > 0 &&

+

In libtmux#

+ {usage.map((entry) => <> +

These methods send {entry.command}.

+ + )} +
} ) } diff --git a/site/src/components/tmux/TmuxUsage.astro b/site/src/components/tmux/TmuxUsage.astro index 68743afc2..6adf9676b 100644 --- a/site/src/components/tmux/TmuxUsage.astro +++ b/site/src/components/tmux/TmuxUsage.astro @@ -56,7 +56,8 @@ const headingOf = (group: (typeof usage.groups)[number]) => group.scope ? group. {absent.length > 0 &&

No method in {new Intl.ListFormat('en', { type: 'disjunction' }).format(absent)} sends this command{single ? ' at this scope' : ''} itself.

} diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json index 68796074f..42684ceef 100644 --- a/site/src/data/tmux-usage/csharp.json +++ b/site/src/data/tmux-usage/csharp.json @@ -1,69 +1,1208 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "csharp", "repo": "libtmux/libtmux-dotnet", "revision": "ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc", "schemaVersion": 1, "symbols": { + "LibTmux.ControlModeSubscriptions.SubscribeSessionAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/ControlMode/ControlModeSubscriptions.cs:38" + ], + "scope": null + } + ], + "LibTmux.Pane.BreakAsync": [ + { + "command": "break-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:164" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:204" + ], + "scope": null + } + ], + "LibTmux.Pane.CaptureAsync": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux/Pane.Capture.cs:22" + ], + "scope": null + } + ], + "LibTmux.Pane.CaptureToBufferAsync": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux/Pane.Capture.cs:144", + "src/LibTmux/Pane.Capture.cs:97" + ], + "scope": null + } + ], + "LibTmux.Pane.ChooseBufferAsync": [ + { + "command": "choose-buffer", + "evidence": [ + "src/LibTmux/Pane.Display.cs:348" + ], + "scope": null + } + ], + "LibTmux.Pane.ChooseClientAsync": [ + { + "command": "choose-client", + "evidence": [ + "src/LibTmux/Pane.Display.cs:354" + ], + "scope": null + } + ], + "LibTmux.Pane.ChooseTreeAsync": [ + { + "command": "choose-tree", + "evidence": [ + "src/LibTmux/Pane.Display.cs:61", + "src/LibTmux/Pane.Display.cs:365" + ], + "scope": null + } + ], + "LibTmux.Pane.ClearHistoryAsync": [ + { + "command": "clear-history", + "evidence": [ + "src/LibTmux/Pane.Input.cs:192" + ], + "scope": null + } + ], + "LibTmux.Pane.CreatePaneAsync": [ + { + "command": "new-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:251" + ], + "scope": null + } + ], + "LibTmux.Pane.DisplayMessageAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Pane.Display.cs:240" + ], + "scope": null + } + ], + "LibTmux.Pane.DisplayPaneNumbersAsync": [ + { + "command": "display-panes", + "evidence": [ + "src/LibTmux/Pane.Display.cs:199" + ], + "scope": null + } + ], + "LibTmux.Pane.DisplayPopupAsync": [ + { + "command": "display-popup", + "evidence": [ + "src/LibTmux/Pane.Display.cs:20", + "src/LibTmux/Pane.Display.cs:181" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:145" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterClockModeAsync": [ + { + "command": "clock-mode", + "evidence": [ + "src/LibTmux/Pane.Display.cs:335" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterCopyModeAsync": [ + { + "command": "copy-mode", + "evidence": [ + "src/LibTmux/Pane.Display.cs:104", + "src/LibTmux/Pane.Display.cs:327" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterCustomizeModeAsync": [ + { + "command": "customize-mode", + "evidence": [ + "src/LibTmux/Pane.Display.cs:341" + ], + "scope": null + } + ], + "LibTmux.Pane.FindWindowAsync": [ + { + "command": "find-window", + "evidence": [ + "src/LibTmux/Pane.Display.cs:136", + "src/LibTmux/Pane.Display.cs:378" + ], + "scope": null + } + ], + "LibTmux.Pane.JoinAsync": [ + { + "command": "join-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:262" + ], + "scope": null + } + ], + "LibTmux.Pane.KillAsync": [ + { + "command": "kill-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:292" + ], + "scope": null + } + ], + "LibTmux.Pane.MoveAsync": [ + { + "command": "move-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:271" + ], + "scope": null + } + ], + "LibTmux.Pane.PasteBufferAsync": [ + { + "command": "paste-buffer", + "evidence": [ + "src/LibTmux/Pane.Input.cs:209", + "src/LibTmux/Pane.Input.cs:244" + ], + "scope": null + } + ], + "LibTmux.Pane.PipeAsync": [ + { + "command": "pipe-pane", + "evidence": [ + "src/LibTmux/Pane.Capture.cs:117", + "src/LibTmux/Pane.Capture.cs:111" + ], + "scope": null + } + ], + "LibTmux.Pane.ResetAsync": [ + { + "command": "clear-history", + "evidence": [ + "src/LibTmux/Pane.Input.cs:178" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:175" + ], + "scope": null + } + ], + "LibTmux.Pane.ResizeAsync": [ + { + "command": "resize-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:426", + "src/LibTmux/Pane.Topology.cs:334" + ], + "scope": null + } + ], + "LibTmux.Pane.RespawnAsync": [ + { + "command": "respawn-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:11", + "src/LibTmux/Pane.Topology.cs:316" + ], + "scope": null + } + ], + "LibTmux.Pane.SelectAsync": [ + { + "command": "select-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:461", + "src/LibTmux/Pane.Topology.cs:392" + ], + "scope": null + } + ], + "LibTmux.Pane.SendKeysAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:75", + "src/LibTmux/Pane.Input.cs:94" + ], + "scope": null + } + ], + "LibTmux.Pane.SendPrefixAsync": [ + { + "command": "send-prefix", + "evidence": [ + "src/LibTmux/Pane.Input.cs:129" + ], + "scope": null + } + ], + "LibTmux.Pane.SetTitleAsync": [ + { + "command": "select-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:377" + ], + "scope": null + } + ], + "LibTmux.Pane.SplitAsync": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:232" + ], + "scope": null + } + ], + "LibTmux.Pane.SwapAsync": [ + { + "command": "swap-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:403", + "src/LibTmux/Pane.Topology.cs:282" + ], + "scope": null + } + ], + "LibTmux.Server.AttachSessionAsync": [ + { + "command": "attach-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:355" + ], + "scope": null + } + ], "LibTmux.Server.CaptureSnapshotAsync": [ { - "command": "list-panes", + "command": "list-panes", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Server.ClearPromptHistoryAsync": [ + { + "command": "clear-prompt-history", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:97" + ], + "scope": null + } + ], + "LibTmux.Server.ConfigureAccessAsync": [ + { + "command": "server-access", + "evidence": [ + "src/LibTmux/Server.Administration.cs:18", + "src/LibTmux/Server.Administration.cs:45" + ], + "scope": null + } + ], + "LibTmux.Server.ConfirmBeforeAsync": [ + { + "command": "confirm-before", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:132", + "src/LibTmux/Server.Interaction.cs:167" + ], + "scope": null + } + ], + "LibTmux.Server.CreateOwnedAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:291", + "src/LibTmux/Server.Lifecycle.cs:256" + ], + "scope": null + } + ], + "LibTmux.Server.CreateSessionWithReceiptAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:208" + ], + "scope": null + }, + { + "command": "new-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:186" + ], + "scope": null + } + ], + "LibTmux.Server.DetachAllClientsAsync": [ + { + "command": "detach-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:172", + "src/LibTmux/Server.Clients.cs:68" + ], + "scope": null + } + ], + "LibTmux.Server.DetachClientAsync": [ + { + "command": "detach-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:172", + "src/LibTmux/Server.Clients.cs:50" + ], + "scope": null + } + ], + "LibTmux.Server.DisplayMessageAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Server.Display.cs:19", + "src/LibTmux/Server.Display.cs:72" + ], + "scope": null + } + ], + "LibTmux.Server.EnterControlModeAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:70" + ], + "scope": null + } + ], + "LibTmux.Server.FindSessionAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Identity.cs:231" + ], + "scope": null + } + ], + "LibTmux.Server.GetAttachedSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Collections.cs:35" + ], + "scope": null + } + ], + "LibTmux.Server.GetClientsAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22" + ], + "scope": null + } + ], + "LibTmux.Server.GetCommandsAsync": [ + { + "command": "list-commands", + "evidence": [ + "src/LibTmux/Server.Administration.cs:112" + ], + "scope": null + } + ], + "LibTmux.Server.GetMessagesAsync": [ + { + "command": "show-messages", + "evidence": [ + "src/LibTmux/Server.Administration.cs:93" + ], + "scope": null + } + ], + "LibTmux.Server.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Server.Collections.cs:72" + ], + "scope": "server" + } + ], + "LibTmux.Server.GetPromptHistoryAsync": [ + { + "command": "show-prompt-history", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:116" + ], + "scope": null + } + ], + "LibTmux.Server.GetSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Collections.cs:18" + ], + "scope": null + } + ], + "LibTmux.Server.GetWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Server.Collections.cs:58" + ], + "scope": "server" + } + ], + "LibTmux.Server.HasSessionAsync": [ + { + "command": "has-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:114" + ], + "scope": null + } + ], + "LibTmux.Server.IfShellAsync": [ + { + "command": "if-shell", + "evidence": [ + "src/LibTmux/Server.Execution.cs:104", + "src/LibTmux/Server.Execution.cs:99" + ], + "scope": null + } + ], + "LibTmux.Server.InspectAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Server.Identity.cs:122" + ], + "scope": null + } + ], + "LibTmux.Server.IsAliveAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:40" + ], + "scope": null + } + ], + "LibTmux.Server.KillAsync": [ + { + "command": "kill-server", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:69" + ], + "scope": null + } + ], + "LibTmux.Server.KillSessionAsync": [ + { + "command": "kill-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:90" + ], + "scope": null + } + ], + "LibTmux.Server.LockAsync": [ + { + "command": "lock-server", + "evidence": [ + "src/LibTmux/Server.Administration.cs:80" + ], + "scope": null + } + ], + "LibTmux.Server.LockClientAsync": [ + { + "command": "lock-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:77" + ], + "scope": null + } + ], + "LibTmux.Server.RefreshClientAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:102" + ], + "scope": null + } + ], + "LibTmux.Server.RunShellAsync": [ + { + "command": "run-shell", + "evidence": [ + "src/LibTmux/Server.Execution.cs:85" + ], + "scope": null + } + ], + "LibTmux.Server.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:51" + ], + "scope": "server" + } + ], + "LibTmux.Server.SearchSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:21" + ], + "scope": null + } + ], + "LibTmux.Server.SearchWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:36" + ], + "scope": "server" + } + ], + "LibTmux.Server.ShowCommandPromptAsync": [ + { + "command": "command-prompt", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:32", + "src/LibTmux/Server.Interaction.cs:82" + ], + "scope": null + } + ], + "LibTmux.Server.ShowMenuAsync": [ + { + "command": "display-menu", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:178", + "src/LibTmux/Server.Interaction.cs:228" + ], + "scope": null + } + ], + "LibTmux.Server.SourceFileAsync": [ + { + "command": "source-file", + "evidence": [ + "src/LibTmux/Server.Administration.cs:67" + ], + "scope": null + } + ], + "LibTmux.Server.StartServerAsync": [ + { + "command": "start-server", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:26" + ], + "scope": null + } + ], + "LibTmux.Server.SuspendClientAsync": [ + { + "command": "suspend-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:86" + ], + "scope": null + } + ], + "LibTmux.Server.SwitchClientAsync": [ + { + "command": "switch-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:121" + ], + "scope": null + } + ], + "LibTmux.Server.ThrowIfDeadAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:55" + ], + "scope": null + } + ], + "LibTmux.Server.WaitForAsync": [ + { + "command": "wait-for", + "evidence": [ + "src/LibTmux/Server.Execution.cs:233", + "src/LibTmux/Server.Execution.cs:147" + ], + "scope": null + } + ], + "LibTmux.ServerMirror.OpenAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/Snapshots/ServerMirror.cs:294", + "src/LibTmux/Snapshots/ServerMirror.cs:157" + ], + "scope": null + } + ], + "LibTmux.Session.AttachAsync": [ + { + "command": "attach-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:275" + ], + "scope": null + } + ], + "LibTmux.Session.CreateWindowAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:289" + ], + "scope": null + } + ], + "LibTmux.Session.CreateWindowWithReceiptAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:315" + ], + "scope": null + } + ], + "LibTmux.Session.DetachClientAsync": [ + { + "command": "detach-client", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:136" + ], + "scope": null + } + ], + "LibTmux.Session.FindWindowAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:100" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetActivePaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Relations.cs:184" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:153" + ], + "scope": "session" + } + ], + "LibTmux.Session.KillAsync": [ + { + "command": "kill-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:95" + ], + "scope": null + } + ], + "LibTmux.Session.KillWindowAsync": [ + { + "command": "kill-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:189" + ], + "scope": null + } + ], + "LibTmux.Session.LockAsync": [ + { + "command": "lock-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:120" + ], + "scope": null + } + ], + "LibTmux.Session.RefreshAsync": [ + { + "command": "list-sessions", "evidence": [ - "src/LibTmux/Snapshots/ServerSnapshot.cs:120", - "src/LibTmux/Snapshots/ServerSnapshot.cs:55", - "src/LibTmux/Server.Snapshots.cs:119", - "src/LibTmux/Server.Snapshots.cs:98", - "src/LibTmux/Server.Snapshots.cs:91" + "src/LibTmux/Session.Lifecycle.cs:46" ], - "reviewed": true, - "scope": "server" + "scope": null } ], - "LibTmux.Server.GetPanesAsync": [ + "LibTmux.Session.RenameAsync": [ { - "command": "list-panes", + "command": "rename-session", "evidence": [ - "src/LibTmux/Server.Collections.cs:72" + "src/LibTmux/Session.Lifecycle.cs:73" ], - "scope": "server" + "scope": null } ], - "LibTmux.Server.SearchPanesAsync": [ + "LibTmux.Session.SearchPanesAsync": [ { "command": "list-panes", "evidence": [ - "src/LibTmux/Query/NativeFilterSearch.cs:51" + "src/LibTmux/Session.Lifecycle.cs:239" ], - "scope": "server" + "scope": "session" } ], - "LibTmux.Session.GetActivePaneAsync": [ + "LibTmux.Session.SearchWindowsAsync": [ { - "command": "list-panes", + "command": "list-windows", "evidence": [ - "src/LibTmux/Session.Relations.cs:184" + "src/LibTmux/Session.Lifecycle.cs:218" ], "scope": "session" } ], - "LibTmux.Session.GetPanesAsync": [ + "LibTmux.Session.SelectLastWindowAsync": [ { - "command": "list-panes", + "command": "last-window", "evidence": [ - "src/LibTmux/Session.Relations.cs:167" + "src/LibTmux/Session.WindowNavigation.cs:16" ], - "scope": "session" + "scope": null } ], - "LibTmux.Session.SearchPanesAsync": [ + "LibTmux.Session.SelectNextWindowAsync": [ { - "command": "list-panes", + "command": "next-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:239" + "src/LibTmux/Session.Lifecycle.cs:163" ], - "scope": "session" + "scope": null + } + ], + "LibTmux.Session.SelectPreviousWindowAsync": [ + { + "command": "previous-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:176" + ], + "scope": null + } + ], + "LibTmux.Session.SelectWindowAsync": [ + { + "command": "select-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:151" + ], + "scope": null + } + ], + "LibTmux.Session.SwitchClientAsync": [ + { + "command": "switch-client", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:199" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.GetAllAsync": [ + { + "command": "list-buffers", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:89", + "src/LibTmux/Buffers/TmuxBuffers.cs:85" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.GetAsync": [ + { + "command": "show-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:59", + "src/LibTmux/Buffers/TmuxBuffers.cs:69" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.LoadAsync": [ + { + "command": "load-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:31", + "src/LibTmux/Buffers/TmuxBuffers.cs:46" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.SaveAsync": [ + { + "command": "save-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:46", + "src/LibTmux/Buffers/TmuxBuffers.cs:60" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.SetAsync": [ + { + "command": "set-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:16", + "src/LibTmux/Buffers/TmuxBuffers.cs:34" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.GetAllAsync": [ + { + "command": "show-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:67" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.GetAsync": [ + { + "command": "show-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:91" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.RemoveAsync": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:170" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.SetAsync": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:127" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.UnsetAsync": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:185" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.GetAllAsync": [ + { + "command": "show-hooks", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:443", + "src/LibTmux/Hooks/TmuxHooks.cs:118" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.GetAsync": [ + { + "command": "show-hooks", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:443", + "src/LibTmux/Hooks/TmuxHooks.cs:99" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.RunAsync": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:130", + "src/LibTmux/Hooks/TmuxHooks.cs:313" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.SetAsync": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:285" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.UnsetAsync": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:323" + ], + "scope": null + } + ], + "LibTmux.TmuxKeys.GetAllAsync": [ + { + "command": "list-keys", + "evidence": [ + "src/LibTmux/Server.Keys.cs:61", + "src/LibTmux/Keys/TmuxKeys.cs:56" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.GetAllAsync": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:155" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.GetAsync": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:55", + "src/LibTmux/Options/TmuxOptions.cs:82" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.SetAsync": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:170", + "src/LibTmux/Options/TmuxOptions.cs:200" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.UnsetAsync": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:226", + "src/LibTmux/Options/TmuxOptions.cs:250" + ], + "scope": null + } + ], + "LibTmux.Window.CreatePaneAsync": [ + { + "command": "new-pane", + "evidence": [ + "src/LibTmux/Window.Panes.cs:218" + ], + "scope": null + } + ], + "LibTmux.Window.CreateWindowAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:136" + ], + "scope": null + } + ], + "LibTmux.Window.DisplayMessageAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Window.Display.cs:50" + ], + "scope": null } ], "LibTmux.Window.GetActivePaneAsync": [ @@ -75,6 +1214,22 @@ "scope": "window" } ], + "LibTmux.Window.GetLinkedSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Window.Relations.cs:172" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Window.Relations.cs:161" + ], + "scope": "server" + } + ], "LibTmux.Window.GetPanesAsync": [ { "command": "list-panes", @@ -84,6 +1239,88 @@ "scope": "window" } ], + "LibTmux.Window.KillAsync": [ + { + "command": "kill-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:56" + ], + "scope": null + } + ], + "LibTmux.Window.LinkAsync": [ + { + "command": "link-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:17", + "src/LibTmux/Window.Links.cs:53" + ], + "scope": null + } + ], + "LibTmux.Window.MoveAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Window.Move.cs:143", + "src/LibTmux/Window.Move.cs:53" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Window.Move.cs:105", + "src/LibTmux/Window.Move.cs:31" + ], + "scope": "session" + }, + { + "command": "move-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:122", + "src/LibTmux/Window.Move.cs:29" + ], + "scope": null + } + ], + "LibTmux.Window.RenameAsync": [ + { + "command": "rename-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:33" + ], + "scope": null + } + ], + "LibTmux.Window.ResizeAsync": [ + { + "command": "resize-window", + "evidence": [ + "src/LibTmux/Window.Layout.cs:34", + "src/LibTmux/Window.Layout.cs:24" + ], + "scope": null + } + ], + "LibTmux.Window.RespawnAsync": [ + { + "command": "respawn-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:108" + ], + "scope": null + } + ], + "LibTmux.Window.RotateAsync": [ + { + "command": "rotate-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:78" + ], + "scope": null + } + ], "LibTmux.Window.SearchPanesAsync": [ { "command": "list-panes", @@ -92,6 +1329,89 @@ ], "scope": "window" } + ], + "LibTmux.Window.SelectAsync": [ + { + "command": "select-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:45" + ], + "scope": null + } + ], + "LibTmux.Window.SelectLastPaneAsync": [ + { + "command": "last-pane", + "evidence": [ + "src/LibTmux/Window.Panes.cs:40" + ], + "scope": null + } + ], + "LibTmux.Window.SelectLayoutAsync": [ + { + "command": "select-layout", + "evidence": [ + "src/LibTmux/Window.Layout.cs:60", + "src/LibTmux/Window.Layout.cs:102" + ], + "scope": null + } + ], + "LibTmux.Window.SelectNextLayoutAsync": [ + { + "command": "next-layout", + "evidence": [ + "src/LibTmux/Window.Layout.cs:122" + ], + "scope": null + } + ], + "LibTmux.Window.SelectPaneAsync": [ + { + "command": "select-pane", + "evidence": [ + "src/LibTmux/Window.Panes.cs:75" + ], + "scope": null + } + ], + "LibTmux.Window.SelectPreviousLayoutAsync": [ + { + "command": "previous-layout", + "evidence": [ + "src/LibTmux/Window.Layout.cs:135" + ], + "scope": null + } + ], + "LibTmux.Window.SplitPaneAsync": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux/Window.Panes.cs:131" + ], + "scope": null + } + ], + "LibTmux.Window.SwapAsync": [ + { + "command": "swap-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:159" + ], + "scope": null + } + ], + "LibTmux.Window.UnlinkAsync": [ + { + "command": "unlink-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:187", + "src/LibTmux/Window.Links.cs:69" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json index 544d1371f..369d005f7 100644 --- a/site/src/data/tmux-usage/cxx.json +++ b/site/src/data/tmux-usage/cxx.json @@ -1,21 +1,811 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "cxx", "repo": "libtmux/libtmux-cxx", "revision": "3f93b021cb51e8349bfb9cecc6fd4091f6e79a0f", "schemaVersion": 1, "symbols": { + "libtmux::Buffer::contents": [ + { + "command": "show-buffer", + "evidence": [ + "src/entities.cpp:1648" + ], + "scope": null + } + ], + "libtmux::Buffer::remove": [ + { + "command": "delete-buffer", + "evidence": [ + "src/entities.cpp:1656" + ], + "scope": null + } + ], + "libtmux::Client::detach": [ + { + "command": "detach-client", + "evidence": [ + "src/entities.cpp:1688" + ], + "scope": null + } + ], + "libtmux::Client::refresh": [ + { + "command": "refresh-client", + "evidence": [ + "src/entities.cpp:1696" + ], + "scope": null + } + ], + "libtmux::Client::session": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1667" + ], + "scope": null + } + ], + "libtmux::Client::switch_to": [ + { + "command": "switch-client", + "evidence": [ + "src/entities.cpp:1680" + ], + "scope": null + } + ], + "libtmux::Connection::connect": [ + { + "command": "attach-session", + "evidence": [ + "src/connection.cpp:360", + "src/connection.cpp:1043" + ], + "scope": null + }, + { + "command": "refresh-client", + "evidence": [ + "src/connection.cpp:1089" + ], + "scope": null + } + ], + "libtmux::Connection::set_pane_output": [ + { + "command": "refresh-client", + "evidence": [ + "src/connection.cpp:1249" + ], + "scope": null + } + ], + "libtmux::Pane::break_out": [ + { + "command": "break-pane", + "evidence": [ + "src/entities.cpp:1279", + "src/entities.cpp:1451" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1281", + "src/entities.cpp:1451" + ], + "scope": null + }, + { + "command": "if-shell", + "evidence": [ + "src/entities.cpp:1283", + "src/entities.cpp:1451" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "src/entities.cpp:1366", + "src/entities.cpp:1452" + ], + "scope": null + } + ], + "libtmux::Pane::capture": [ + { + "command": "capture-pane", + "evidence": [ + "src/entities.cpp:1167" + ], + "scope": null + } + ], + "libtmux::Pane::clear_history": [ + { + "command": "clear-history", + "evidence": [ + "src/entities.cpp:1549" + ], + "scope": null + } + ], + "libtmux::Pane::enter_copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "src/entities.cpp:1472" + ], + "scope": null + } + ], + "libtmux::Pane::join": [ + { + "command": "join-pane", + "evidence": [ + "src/entities.cpp:1464" + ], + "scope": null + } + ], + "libtmux::Pane::kill": [ + { + "command": "kill-pane", + "evidence": [ + "src/entities.cpp:1580" + ], + "scope": null + } + ], + "libtmux::Pane::leave_mode": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1482" + ], + "scope": null + } + ], + "libtmux::Pane::option": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:1602" + ], + "scope": null + } + ], + "libtmux::Pane::options": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:1593" + ], + "scope": null + } + ], + "libtmux::Pane::paste": [ + { + "command": "paste-buffer", + "evidence": [ + "src/entities.cpp:1635" + ], + "scope": null + } + ], + "libtmux::Pane::pipe_to": [ + { + "command": "pipe-pane", + "evidence": [ + "src/entities.cpp:1496" + ], + "scope": null + } + ], + "libtmux::Pane::respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "src/entities.cpp:1533" + ], + "scope": null + } + ], + "libtmux::Pane::select": [ + { + "command": "select-pane", + "evidence": [ + "src/entities.cpp:1557" + ], + "scope": null + } + ], + "libtmux::Pane::send_key": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1115" + ], + "scope": null + } + ], + "libtmux::Pane::send_line": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1096" + ], + "scope": null + } + ], + "libtmux::Pane::send_text": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1081" + ], + "scope": null + } + ], + "libtmux::Pane::set_height": [ + { + "command": "resize-pane", + "evidence": [ + "src/entities.cpp:1218" + ], + "scope": null + } + ], + "libtmux::Pane::set_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:1611" + ], + "scope": null + } + ], + "libtmux::Pane::set_title": [ + { + "command": "select-pane", + "evidence": [ + "src/entities.cpp:1521" + ], + "scope": null + } + ], + "libtmux::Pane::set_width": [ + { + "command": "resize-pane", + "evidence": [ + "src/entities.cpp:1206" + ], + "scope": null + } + ], + "libtmux::Pane::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1565" + ], + "scope": null + } + ], + "libtmux::Pane::split": [ + { + "command": "split-window", + "evidence": [ + "src/entities.cpp:1127" + ], + "scope": null + } + ], + "libtmux::Pane::stop_piping": [ + { + "command": "pipe-pane", + "evidence": [ + "src/entities.cpp:1507" + ], + "scope": null + } + ], + "libtmux::Pane::swap_with": [ + { + "command": "swap-pane", + "evidence": [ + "src/entities.cpp:1238" + ], + "scope": null + } + ], + "libtmux::Pane::toggle_zoom": [ + { + "command": "resize-pane", + "evidence": [ + "src/entities.cpp:1226" + ], + "scope": null + } + ], + "libtmux::Pane::unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:1622" + ], + "scope": null + } + ], + "libtmux::Pane::wait_for_text": [ + { + "command": "display-message", + "evidence": [ + "src/wait.cpp:462", + "src/wait.cpp:495" + ], + "scope": null + } + ], + "libtmux::Server::bind_key": [ + { + "command": "bind-key", + "evidence": [ + "src/server.cpp:1016" + ], + "scope": null + } + ], + "libtmux::Server::buffers": [ + { + "command": "list-buffers", + "evidence": [ + "src/server.cpp:940" + ], + "scope": null + } + ], + "libtmux::Server::check_alive": [ + { + "command": "list-sessions", + "evidence": [ + "src/server.cpp:711" + ], + "scope": null + } + ], + "libtmux::Server::check_file": [ + { + "command": "source-file", + "evidence": [ + "src/server.cpp:1080" + ], + "scope": null + } + ], + "libtmux::Server::clients": [ + { + "command": "list-clients", + "evidence": [ + "src/server.cpp:881" + ], + "scope": null + } + ], + "libtmux::Server::commands": [ + { + "command": "list-commands", + "evidence": [ + "src/server.cpp:933" + ], + "scope": null + } + ], + "libtmux::Server::environment": [ + { + "command": "show-environment", + "evidence": [ + "src/server.cpp:1310" + ], + "scope": null + } + ], + "libtmux::Server::expand": [ + { + "command": "display-message", + "evidence": [ + "src/server.cpp:1087" + ], + "scope": null + } + ], + "libtmux::Server::global_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/server.cpp:1296" + ], + "scope": null + } + ], + "libtmux::Server::global_options": [ + { + "command": "show-options", + "evidence": [ + "src/server.cpp:1271" + ], + "scope": null + } + ], + "libtmux::Server::hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/server.cpp:1289" + ], + "scope": null + } + ], + "libtmux::Server::kill": [ + { + "command": "kill-server", + "evidence": [ + "src/server.cpp:810" + ], + "scope": null + } + ], + "libtmux::Server::load_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "src/server.cpp:954" + ], + "scope": null + } + ], + "libtmux::Server::new_session": [ + { + "command": "new-session", + "evidence": [ + "src/server.cpp:1212" + ], + "scope": null + } + ], + "libtmux::Server::options": [ + { + "command": "show-options", + "evidence": [ + "src/server.cpp:1247" + ], + "scope": null + } + ], "libtmux::Server::panes": [ { - "command": "list-panes", + "command": "list-panes", + "evidence": [ + "src/server.cpp:873" + ], + "scope": "server" + } + ], + "libtmux::Server::remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/server.cpp:1356" + ], + "scope": null + } + ], + "libtmux::Server::run_shell": [ + { + "command": "run-shell", "evidence": [ - "src/server.cpp:873" + "src/server.cpp:1053" + ], + "scope": null + } + ], + "libtmux::Server::save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "src/server.cpp:969" + ], + "scope": null + } + ], + "libtmux::Server::server_options": [ + { + "command": "show-options", + "evidence": [ + "src/server.cpp:1254" + ], + "scope": null + } + ], + "libtmux::Server::sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/server.cpp:819" + ], + "scope": null + } + ], + "libtmux::Server::set_buffer": [ + { + "command": "set-buffer", + "evidence": [ + "src/server.cpp:1110" + ], + "scope": null + } + ], + "libtmux::Server::set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/server.cpp:1348" + ], + "scope": null + } + ], + "libtmux::Server::set_global_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/server.cpp:1304" + ], + "scope": null + } + ], + "libtmux::Server::set_global_option": [ + { + "command": "set-option", + "evidence": [ + "src/server.cpp:1279" + ], + "scope": null + } + ], + "libtmux::Server::set_server_option": [ + { + "command": "set-option", + "evidence": [ + "src/server.cpp:1262" + ], + "scope": null + } + ], + "libtmux::Server::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/server.cpp:1100" + ], + "scope": null + } + ], + "libtmux::Server::signal": [ + { + "command": "wait-for", + "evidence": [ + "src/server.cpp:926" + ], + "scope": null + } + ], + "libtmux::Server::source_file": [ + { + "command": "source-file", + "evidence": [ + "src/server.cpp:1067" + ], + "scope": null + } + ], + "libtmux::Server::unbind_key": [ + { + "command": "unbind-key", + "evidence": [ + "src/server.cpp:1036" + ], + "scope": null + } + ], + "libtmux::Server::unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/server.cpp:1352" + ], + "scope": null + } + ], + "libtmux::Server::wait_for": [ + { + "command": "wait-for", + "evidence": [ + "src/server.cpp:900" + ], + "scope": null + } + ], + "libtmux::Server::wait_for_text": [ + { + "command": "display-message", + "evidence": [ + "src/wait.cpp:520" + ], + "scope": null + } + ], + "libtmux::Server::windows": [ + { + "command": "list-windows", + "evidence": [ + "src/server.cpp:846" ], "scope": "server" } ], + "libtmux::Session::detach_clients": [ + { + "command": "detach-client", + "evidence": [ + "src/entities.cpp:467" + ], + "scope": null + } + ], + "libtmux::Session::hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/entities.cpp:475" + ], + "scope": null + } + ], + "libtmux::Session::kill": [ + { + "command": "kill-session", + "evidence": [ + "src/entities.cpp:388" + ], + "scope": null + } + ], + "libtmux::Session::new_window": [ + { + "command": "new-window", + "evidence": [ + "src/entities.cpp:339" + ], + "scope": null + } + ], + "libtmux::Session::option": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:410" + ], + "scope": null + } + ], + "libtmux::Session::options": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:401" + ], + "scope": null + } + ], "libtmux::Session::panes": [ { "command": "list-panes", @@ -25,6 +815,141 @@ "scope": "session" } ], + "libtmux::Session::rename": [ + { + "command": "rename-session", + "evidence": [ + "src/entities.cpp:376" + ], + "scope": null + } + ], + "libtmux::Session::select_last_window": [ + { + "command": "last-window", + "evidence": [ + "src/entities.cpp:319" + ], + "scope": null + } + ], + "libtmux::Session::select_next_window": [ + { + "command": "next-window", + "evidence": [ + "src/entities.cpp:303" + ], + "scope": null + } + ], + "libtmux::Session::select_previous_window": [ + { + "command": "previous-window", + "evidence": [ + "src/entities.cpp:311" + ], + "scope": null + } + ], + "libtmux::Session::set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/entities.cpp:485" + ], + "scope": null + } + ], + "libtmux::Session::set_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:420" + ], + "scope": null + } + ], + "libtmux::Session::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:444" + ], + "scope": null + } + ], + "libtmux::Session::unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:431" + ], + "scope": null + } + ], + "libtmux::Session::windows": [ + { + "command": "list-windows", + "evidence": [ + "src/entities.cpp:264" + ], + "scope": "session" + } + ], + "libtmux::Window::kill": [ + { + "command": "kill-window", + "evidence": [ + "src/entities.cpp:685" + ], + "scope": null + } + ], + "libtmux::Window::link_to": [ + { + "command": "link-window", + "evidence": [ + "src/entities.cpp:759" + ], + "scope": null + } + ], + "libtmux::Window::move_to": [ + { + "command": "move-window", + "evidence": [ + "src/entities.cpp:803" + ], + "scope": null + } + ], + "libtmux::Window::next_layout": [ + { + "command": "next-layout", + "evidence": [ + "src/entities.cpp:719" + ], + "scope": null + } + ], + "libtmux::Window::option": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:825" + ], + "scope": null + } + ], + "libtmux::Window::options": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:817" + ], + "scope": null + } + ], "libtmux::Window::panes": [ { "command": "list-panes", @@ -33,6 +958,123 @@ ], "scope": "window" } + ], + "libtmux::Window::previous_layout": [ + { + "command": "previous-layout", + "evidence": [ + "src/entities.cpp:727" + ], + "scope": null + } + ], + "libtmux::Window::rename": [ + { + "command": "rename-window", + "evidence": [ + "src/entities.cpp:643" + ], + "scope": null + } + ], + "libtmux::Window::resize": [ + { + "command": "resize-window", + "evidence": [ + "src/entities.cpp:710" + ], + "scope": null + } + ], + "libtmux::Window::rotate": [ + { + "command": "rotate-window", + "evidence": [ + "src/entities.cpp:735" + ], + "scope": null + } + ], + "libtmux::Window::select": [ + { + "command": "select-window", + "evidence": [ + "src/entities.cpp:654" + ], + "scope": null + } + ], + "libtmux::Window::select_last_pane": [ + { + "command": "select-pane", + "evidence": [ + "src/entities.cpp:743" + ], + "scope": null + } + ], + "libtmux::Window::select_layout": [ + { + "command": "select-layout", + "evidence": [ + "src/entities.cpp:698" + ], + "scope": null + } + ], + "libtmux::Window::set_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:837" + ], + "scope": null + } + ], + "libtmux::Window::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:669" + ], + "scope": null + } + ], + "libtmux::Window::split": [ + { + "command": "split-window", + "evidence": [ + "src/entities.cpp:599" + ], + "scope": null + } + ], + "libtmux::Window::swap_with": [ + { + "command": "swap-window", + "evidence": [ + "src/entities.cpp:780" + ], + "scope": null + } + ], + "libtmux::Window::unlink": [ + { + "command": "unlink-window", + "evidence": [ + "src/entities.cpp:769" + ], + "scope": null + } + ], + "libtmux::Window::unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:848" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json index 011e8a9bc..3cffcd262 100644 --- a/site/src/data/tmux-usage/fsharp.json +++ b/site/src/data/tmux-usage/fsharp.json @@ -1,10 +1,294 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "fsharp", "repo": "libtmux/libtmux-dotnet", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "schemaVersion": 1, - "symbols": {} + "symbols": { + "LibTmux.FSharp.Control.enter": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:54" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:70" + ], + "port": "csharp", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ], + "LibTmux.FSharp.Control.enterSession": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:57" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:70" + ], + "port": "csharp", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ], + "LibTmux.FSharp.Mirror.start": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:142" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerMirror.cs:294", + "src/LibTmux/Snapshots/ServerMirror.cs:157" + ], + "port": "csharp", + "symbol": "LibTmux.ServerMirror.OpenAsync" + } + } + ], + "LibTmux.FSharp.Mirror.startRefreshing": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:145" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerMirror.cs:294", + "src/LibTmux/Snapshots/ServerMirror.cs:157" + ], + "port": "csharp", + "symbol": "LibTmux.ServerMirror.OpenAsync" + } + } + ], + "LibTmux.FSharp.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:164" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Capture.cs:22" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.CaptureAsync" + } + } + ], + "LibTmux.FSharp.Pane.sendKeys": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:207" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:75", + "src/LibTmux/Pane.Input.cs:94" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.SendKeysAsync" + } + } + ], + "LibTmux.FSharp.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:210" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:232" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.SplitAsync" + } + } + ], + "LibTmux.FSharp.Server.newSession": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:87" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], + "port": "csharp", + "symbol": "LibTmux.Session.GetPanesAsync" + } + }, + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:112" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:46" + ], + "port": "csharp", + "symbol": "LibTmux.Session.RefreshAsync" + } + }, + { + "command": "new-window", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:99" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:289" + ], + "port": "csharp", + "symbol": "LibTmux.Session.CreateWindowAsync" + } + } + ], + "LibTmux.FSharp.Server.tryFindClient": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:139" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22" + ], + "port": "csharp", + "symbol": "LibTmux.Server.GetClientsAsync" + } + } + ], + "LibTmux.FSharp.Server.tryFindSession": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:120" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Identity.cs:231" + ], + "port": "csharp", + "symbol": "LibTmux.Server.FindSessionAsync" + } + } + ] + } } diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index bc14775b6..c1c93efe7 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -1,38 +1,1200 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "go", "repo": "libtmux/libtmux-go", "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", "schemaVersion": 1, "symbols": { + "tmux.NotificationStream.ContinuePane": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:103" + ], + "scope": null + } + ], + "tmux.NotificationStream.Subscribe": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:196" + ], + "scope": null + } + ], + "tmux.NotificationStream.Unsubscribe": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:216" + ], + "scope": null + } + ], + "tmux.Pane.BreakPane": [ + { + "command": "break-pane", + "evidence": [ + "tmux/pane_relocate.go:132" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "tmux/pane_relocate.go:182" + ], + "scope": null + } + ], + "tmux.Pane.Capture": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:127" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.CaptureBytes": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:141" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.CaptureTo": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:396" + ], + "scope": null + } + ], + "tmux.Pane.CaptureToBuffer": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:157" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.CaptureToFile": [ + { + "command": "save-buffer", + "evidence": [ + "tmux/pane_capture.go:185" + ], + "scope": null + } + ], + "tmux.Pane.ChooseBuffer": [ + { + "command": "choose-buffer", + "evidence": [ + "tmux/pane_modes.go:178" + ], + "scope": null + } + ], + "tmux.Pane.ChooseClient": [ + { + "command": "choose-client", + "evidence": [ + "tmux/pane_modes.go:184" + ], + "scope": null + } + ], + "tmux.Pane.ChooseTree": [ + { + "command": "choose-tree", + "evidence": [ + "tmux/pane_modes.go:199" + ], + "scope": null + } + ], + "tmux.Pane.ClearHistory": [ + { + "command": "clear-history", + "evidence": [ + "tmux/pane_input.go:405", + "tmux/pane_input.go:388" + ], + "scope": null + } + ], + "tmux.Pane.ClockMode": [ + { + "command": "clock-mode", + "evidence": [ + "tmux/pane_modes.go:172" + ], + "scope": null + } + ], + "tmux.Pane.CopyMode": [ + { + "command": "copy-mode", + "evidence": [ + "tmux/pane_modes.go:121" + ], + "scope": null + } + ], + "tmux.Pane.CustomizeMode": [ + { + "command": "customize-mode", + "evidence": [ + "tmux/pane_modes.go:190" + ], + "scope": null + } + ], + "tmux.Pane.DisplayMessage": [ + { + "command": "display-message", + "evidence": [ + "tmux/display_message.go:198", + "tmux/display_message.go:126" + ], + "scope": null + } + ], + "tmux.Pane.DisplayPanes": [ + { + "command": "display-panes", + "evidence": [ + "tmux/pane_modes.go:292" + ], + "scope": null + } + ], + "tmux.Pane.DisplayPopup": [ + { + "command": "display-popup", + "evidence": [ + "tmux/pane_popup.go:138" + ], + "scope": null + } + ], + "tmux.Pane.Enter": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:292" + ], + "scope": null + } + ], + "tmux.Pane.FindWindow": [ + { + "command": "find-window", + "evidence": [ + "tmux/pane_modes.go:256" + ], + "scope": null + } + ], + "tmux.Pane.Join": [ + { + "command": "join-pane", + "evidence": [ + "tmux/pane_relocate.go:95" + ], + "scope": null + } + ], + "tmux.Pane.Kill": [ + { + "command": "kill-pane", + "evidence": [ + "tmux/lifecycle_kill.go:238" + ], + "scope": null + } + ], + "tmux.Pane.KillOthers": [ + { + "command": "kill-pane", + "evidence": [ + "tmux/lifecycle_kill.go:248" + ], + "scope": null + } + ], + "tmux.Pane.Move": [ + { + "command": "move-pane", + "evidence": [ + "tmux/pane_relocate.go:81" + ], + "scope": null + } + ], + "tmux.Pane.NewPane": [ + { + "command": "new-pane", + "evidence": [ + "tmux/pane_create.go:165", + "tmux/pane_create.go:138" + ], + "scope": null + } + ], + "tmux.Pane.OpenObservation": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/control_observation.go:351", + "tmux/control_observation.go:301" + ], + "scope": null + }, + { + "command": "delete-buffer", + "evidence": [ + "tmux/control_observation.go:353", + "tmux/control_observation.go:301" + ], + "scope": null + }, + { + "command": "refresh-client", + "evidence": [ + "tmux/control_observation.go:349", + "tmux/control_observation.go:301" + ], + "scope": null + }, + { + "command": "save-buffer", + "evidence": [ + "tmux/control_observation.go:352", + "tmux/control_observation.go:301" + ], + "scope": null + } + ], + "tmux.Pane.PasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "tmux/pane_process.go:167" + ], + "scope": null + } + ], + "tmux.Pane.Pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "tmux/pane_process.go:89", + "tmux/pane_process.go:212" + ], + "scope": null + } + ], + "tmux.Pane.Reset": [ + { + "command": "clear-history", + "evidence": [ + "tmux/pane_input.go:446" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:444" + ], + "scope": null + } + ], + "tmux.Pane.Resize": [ + { + "command": "resize-pane", + "evidence": [ + "tmux/pane_geometry.go:126", + "tmux/pane_geometry.go:96" + ], + "scope": null + } + ], + "tmux.Pane.Respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "tmux/pane_process.go:62" + ], + "scope": null + } + ], "tmux.Pane.Select": [ { "command": "list-panes", "evidence": [ - "tmux/lookup.go:371", - "tmux/window_pane_topology.go:199" + "tmux/lookup.go:371", + "tmux/window_pane_topology.go:199" + ], + "scope": "window" + }, + { + "command": "select-pane", + "evidence": [ + "tmux/window_pane_topology.go:293", + "tmux/window_pane_topology.go:191" + ], + "scope": null + } + ], + "tmux.Pane.SendKeys": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:203", + "tmux/pane_input.go:157" + ], + "scope": null + } + ], + "tmux.Pane.SendKeySequence": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:94", + "tmux/pane_input.go:77" + ], + "scope": null + } + ], + "tmux.Pane.SendPrefix": [ + { + "command": "send-prefix", + "evidence": [ + "tmux/pane_input.go:308", + "tmux/pane_input.go:350" + ], + "scope": null + } + ], + "tmux.Pane.SetTitle": [ + { + "command": "select-pane", + "evidence": [ + "tmux/pane_geometry.go:174" + ], + "scope": null + } + ], + "tmux.Pane.Swap": [ + { + "command": "swap-pane", + "evidence": [ + "tmux/window_pane_swap.go:146" + ], + "scope": null + } + ], + "tmux.Server.AttachSession": [ + { + "command": "attach-session", + "evidence": [ + "tmux/server_attach.go:117", + "tmux/server_attach.go:93" + ], + "scope": null + } + ], + "tmux.Server.BindKey": [ + { + "command": "bind-key", + "evidence": [ + "tmux/server_keys.go:86" + ], + "scope": null + } + ], + "tmux.Server.CheckAlive": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/server.go:165" + ], + "scope": null + } + ], + "tmux.Server.ClearPromptHistory": [ + { + "command": "clear-prompt-history", + "evidence": [ + "tmux/prompt_history.go:69" + ], + "scope": null + } + ], + "tmux.Server.Client": [ + { + "command": "list-clients", + "evidence": [ + "tmux/lookup.go:94" + ], + "scope": null + } + ], + "tmux.Server.CommandPrompt": [ + { + "command": "command-prompt", + "evidence": [ + "tmux/server_interactive.go:244" + ], + "scope": null + } + ], + "tmux.Server.ConfirmBefore": [ + { + "command": "confirm-before", + "evidence": [ + "tmux/server_interactive.go:196" + ], + "scope": null + } + ], + "tmux.Server.DeleteBuffer": [ + { + "command": "delete-buffer", + "evidence": [ + "tmux/server_buffers.go:161" + ], + "scope": null + } + ], + "tmux.Server.DetachAllClients": [ + { + "command": "detach-client", + "evidence": [ + "tmux/server_clients.go:261" + ], + "scope": null + } + ], + "tmux.Server.DetachClient": [ + { + "command": "detach-client", + "evidence": [ + "tmux/server_clients.go:233" + ], + "scope": null + } + ], + "tmux.Server.DisplayMenu": [ + { + "command": "display-menu", + "evidence": [ + "tmux/server_interactive.go:327" + ], + "scope": null + } + ], + "tmux.Server.DisplayMessage": [ + { + "command": "display-message", + "evidence": [ + "tmux/display_message.go:198", + "tmux/display_message.go:85" + ], + "scope": null + } + ], + "tmux.Server.GetEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:279", + "tmux/environment.go:118" + ], + "scope": null + } + ], + "tmux.Server.HasSession": [ + { + "command": "has-session", + "evidence": [ + "tmux/session_lifecycle.go:141" + ], + "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:155", + "tmux/session_lifecycle.go:138" + ], + "scope": null + } + ], + "tmux.Server.IfShell": [ + { + "command": "if-shell", + "evidence": [ + "tmux/server_exec.go:302" + ], + "scope": null + } + ], + "tmux.Server.IsAlive": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/server.go:146" + ], + "scope": null + } + ], + "tmux.Server.Kill": [ + { + "command": "kill-server", + "evidence": [ + "tmux/lifecycle_kill.go:52" + ], + "scope": null + } + ], + "tmux.Server.KillSession": [ + { + "command": "kill-session", + "evidence": [ + "tmux/lifecycle_kill.go:82" + ], + "scope": null + } + ], + "tmux.Server.ListBuffers": [ + { + "command": "list-buffers", + "evidence": [ + "tmux/server_buffers.go:301" + ], + "scope": null + } + ], + "tmux.Server.ListClients": [ + { + "command": "list-clients", + "evidence": [ + "tmux/server_keys.go:212" + ], + "scope": null + } + ], + "tmux.Server.ListCommands": [ + { + "command": "list-commands", + "evidence": [ + "tmux/server_keys.go:200" + ], + "scope": null + } + ], + "tmux.Server.ListKeys": [ + { + "command": "list-keys", + "evidence": [ + "tmux/server_keys.go:163" + ], + "scope": null + } + ], + "tmux.Server.LoadBuffer": [ + { + "command": "load-buffer", + "evidence": [ + "tmux/server_buffers.go:203" + ], + "scope": null + } + ], + "tmux.Server.LoadBufferFrom": [ + { + "command": "load-buffer", + "evidence": [ + "tmux/server_buffers.go:238" + ], + "scope": null + } + ], + "tmux.Server.LockClient": [ + { + "command": "lock-client", + "evidence": [ + "tmux/server_clients.go:196" + ], + "scope": null + } + ], + "tmux.Server.LockServer": [ + { + "command": "lock-server", + "evidence": [ + "tmux/server_clients.go:152" + ], + "scope": null + } + ], + "tmux.Server.NewSession": [ + { + "command": "kill-session", + "evidence": [ + "tmux/session_lifecycle.go:223" + ], + "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:155", + "tmux/session_lifecycle.go:215" + ], + "scope": null + }, + { + "command": "new-session", + "evidence": [ + "tmux/session_lifecycle.go:91", + "tmux/session_lifecycle.go:62", + "tmux/session_lifecycle.go:230", + "tmux/session_lifecycle.go:234" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.NewSessionConnection": [ + { + "command": "if-shell", + "evidence": [ + "tmux/identity.go:151", + "tmux/connection.go:185" + ], + "scope": null + } + ], + "tmux.Server.OpenControl": [ + { + "command": "attach-session", + "evidence": [ + "tmux/control_startup.go:80", + "tmux/control_startup.go:42" + ], + "scope": null + } + ], + "tmux.Server.OpenNotifications": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:82", + "tmux/notification_stream.go:73" + ], + "scope": null + } + ], + "tmux.Server.RefreshClient": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/server_clients.go:179" + ], + "scope": null + } + ], + "tmux.Server.RemoveEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:234", + "tmux/environment.go:100" + ], + "scope": null + } + ], + "tmux.Server.RunShell": [ + { + "command": "run-shell", + "evidence": [ + "tmux/server_exec.go:184" + ], + "scope": null + } + ], + "tmux.Server.SaveBuffer": [ + { + "command": "save-buffer", + "evidence": [ + "tmux/server_buffers.go:178" + ], + "scope": null + } + ], + "tmux.Server.SaveBufferTo": [ + { + "command": "save-buffer", + "evidence": [ + "tmux/server_buffers.go:270" + ], + "scope": null + } + ], + "tmux.Server.SearchClients": [ + { + "command": "list-clients", + "evidence": [ + "tmux/search.go:47" + ], + "scope": null + } + ], + "tmux.Server.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:79" + ], + "scope": "server" + } + ], + "tmux.Server.SearchSessions": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/search.go:29" + ], + "scope": null + } + ], + "tmux.Server.SearchWindows": [ + { + "command": "list-windows", + "evidence": [ + "tmux/search.go:63" + ], + "scope": "server" + } + ], + "tmux.Server.ServerAccess": [ + { + "command": "server-access", + "evidence": [ + "tmux/server_clients.go:121" + ], + "scope": null + } + ], + "tmux.Server.Session": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/lookup.go:11" + ], + "scope": null + } + ], + "tmux.Server.SessionByName": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/lookup.go:38" + ], + "scope": null + } + ], + "tmux.Server.SetBuffer": [ + { + "command": "set-buffer", + "evidence": [ + "tmux/server_buffers.go:97" + ], + "scope": null + } + ], + "tmux.Server.SetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:211", + "tmux/environment.go:89" + ], + "scope": null + } + ], + "tmux.Server.ShowBuffer": [ + { + "command": "show-buffer", + "evidence": [ + "tmux/server_buffers.go:142", + "tmux/server_buffers.go:119" + ], + "scope": null + } + ], + "tmux.Server.ShowBufferBytes": [ + { + "command": "show-buffer", + "evidence": [ + "tmux/server_buffers.go:142", + "tmux/server_buffers.go:131" + ], + "scope": null + } + ], + "tmux.Server.ShowEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:257", + "tmux/environment.go:109" + ], + "scope": null + } + ], + "tmux.Server.ShowMessages": [ + { + "command": "show-messages", + "evidence": [ + "tmux/server_keys.go:237" + ], + "scope": null + } + ], + "tmux.Server.ShowPromptHistory": [ + { + "command": "show-prompt-history", + "evidence": [ + "tmux/prompt_history.go:43" + ], + "scope": null + } + ], + "tmux.Server.Snapshot": [ + { + "command": "list-clients", + "evidence": [ + "tmux/snapshot_capture.go:46" + ], + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "tmux/snapshot_capture.go:45" ], - "scope": "window" + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/snapshot_capture.go:43" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "tmux/snapshot_capture.go:44" + ], + "scope": "server" } ], - "tmux.Server.SearchPanes": [ + "tmux.Server.SourceFile": [ { - "command": "list-panes", + "command": "source-file", "evidence": [ - "tmux/search.go:79" + "tmux/server_exec.go:353", + "tmux/server_exec.go:325" ], - "scope": "server" + "scope": null } ], - "tmux.Server.Snapshot": [ + "tmux.Server.Start": [ { - "command": "list-panes", + "command": "start-server", "evidence": [ - "tmux/snapshot_capture.go:45" + "tmux/server_attach.go:71" ], - "scope": "server" + "scope": null + } + ], + "tmux.Server.SuspendClient": [ + { + "command": "suspend-client", + "evidence": [ + "tmux/server_clients.go:210" + ], + "scope": null + } + ], + "tmux.Server.SwitchClient": [ + { + "command": "switch-client", + "evidence": [ + "tmux/server_clients.go:288" + ], + "scope": null + } + ], + "tmux.Server.UnbindKey": [ + { + "command": "unbind-key", + "evidence": [ + "tmux/server_keys.go:125" + ], + "scope": null + } + ], + "tmux.Server.UnsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:234", + "tmux/environment.go:95" + ], + "scope": null + } + ], + "tmux.Server.WaitFor": [ + { + "command": "wait-for", + "evidence": [ + "tmux/server_exec.go:259" + ], + "scope": null + } + ], + "tmux.Session.Attach": [ + { + "command": "attach-session", + "evidence": [ + "tmux/server_attach.go:117", + "tmux/server_attach.go:113" + ], + "scope": null + } + ], + "tmux.Session.DetachClients": [ + { + "command": "detach-client", + "evidence": [ + "tmux/server_clients.go:335" + ], + "scope": null + } + ], + "tmux.Session.GetEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:279", + "tmux/environment.go:180" + ], + "scope": null + } + ], + "tmux.Session.KillWindow": [ + { + "command": "kill-window", + "evidence": [ + "tmux/lifecycle_kill.go:194" + ], + "scope": null + } + ], + "tmux.Session.KillWith": [ + { + "command": "kill-session", + "evidence": [ + "tmux/lifecycle_kill.go:132" + ], + "scope": null + } + ], + "tmux.Session.LastWindow": [ + { + "command": "last-window", + "evidence": [ + "tmux/session_navigation.go:29" + ], + "scope": null + } + ], + "tmux.Session.Lock": [ + { + "command": "lock-session", + "evidence": [ + "tmux/server_clients.go:309" + ], + "scope": null + } + ], + "tmux.Session.NewWindow": [ + { + "command": "new-window", + "evidence": [ + "tmux/window_lifecycle.go:157", + "tmux/window_lifecycle.go:213", + "tmux/window_lifecycle.go:224", + "tmux/window_lifecycle.go:88" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.NextWindow": [ + { + "command": "next-window", + "evidence": [ + "tmux/session_navigation.go:38" + ], + "scope": null + } + ], + "tmux.Session.PreviousWindow": [ + { + "command": "previous-window", + "evidence": [ + "tmux/session_navigation.go:48" + ], + "scope": null + } + ], + "tmux.Session.RemoveEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:234", + "tmux/environment.go:153" + ], + "scope": null + } + ], + "tmux.Session.Rename": [ + { + "command": "rename-session", + "evidence": [ + "tmux/session_lifecycle.go:272" + ], + "scope": null } ], "tmux.Session.SearchPanes": [ @@ -44,6 +1206,208 @@ "scope": "session" } ], + "tmux.Session.SearchWindows": [ + { + "command": "list-windows", + "evidence": [ + "tmux/search.go:102" + ], + "scope": "session" + } + ], + "tmux.Session.SelectWindow": [ + { + "command": "select-window", + "evidence": [ + "tmux/session_navigation.go:101" + ], + "scope": null + } + ], + "tmux.Session.SetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:211", + "tmux/environment.go:133" + ], + "scope": null + } + ], + "tmux.Session.ShowEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:257", + "tmux/environment.go:166" + ], + "scope": null + } + ], + "tmux.Session.Start": [ + { + "command": "wait-for", + "evidence": [ + "tmux/session_run.go:162" + ], + "scope": null + } + ], + "tmux.Session.SwitchClient": [ + { + "command": "switch-client", + "evidence": [ + "tmux/server_clients.go:359" + ], + "scope": null + } + ], + "tmux.Session.UnsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:234", + "tmux/environment.go:143" + ], + "scope": null + } + ], + "tmux.Window.DisplayMessage": [ + { + "command": "display-message", + "evidence": [ + "tmux/display_message.go:198", + "tmux/display_message.go:105" + ], + "scope": null + } + ], + "tmux.Window.Kill": [ + { + "command": "kill-window", + "evidence": [ + "tmux/lifecycle_kill.go:206" + ], + "scope": null + } + ], + "tmux.Window.KillOthers": [ + { + "command": "kill-window", + "evidence": [ + "tmux/lifecycle_kill.go:225" + ], + "scope": null + } + ], + "tmux.Window.LastPane": [ + { + "command": "last-pane", + "evidence": [ + "tmux/window_pane_topology.go:224" + ], + "scope": null + } + ], + "tmux.Window.Link": [ + { + "command": "link-window", + "evidence": [ + "tmux/window_link_move.go:124", + "tmux/window_link_move.go:96" + ], + "scope": null + } + ], + "tmux.Window.Move": [ + { + "command": "move-window", + "evidence": [ + "tmux/window_link_move.go:257", + "tmux/window_link_move.go:209" + ], + "scope": null + } + ], + "tmux.Window.NewPane": [ + { + "command": "new-pane", + "evidence": [ + "tmux/pane_create.go:165", + "tmux/pane_create.go:121" + ], + "scope": null + } + ], + "tmux.Window.NewWindow": [ + { + "command": "new-window", + "evidence": [ + "tmux/window_lifecycle.go:157", + "tmux/window_lifecycle.go:213", + "tmux/window_lifecycle.go:224", + "tmux/window_lifecycle.go:117" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.NextLayout": [ + { + "command": "next-layout", + "evidence": [ + "tmux/window_layout.go:332" + ], + "scope": null + } + ], + "tmux.Window.PreviousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "tmux/window_layout.go:349" + ], + "scope": null + } + ], + "tmux.Window.Rename": [ + { + "command": "rename-window", + "evidence": [ + "tmux/window_lifecycle.go:360" + ], + "scope": null + } + ], + "tmux.Window.Resize": [ + { + "command": "resize-window", + "evidence": [ + "tmux/window_resize.go:85", + "tmux/window_resize.go:60" + ], + "scope": null + } + ], + "tmux.Window.Respawn": [ + { + "command": "respawn-window", + "evidence": [ + "tmux/window_respawn.go:44" + ], + "scope": null + } + ], + "tmux.Window.Rotate": [ + { + "command": "rotate-window", + "evidence": [ + "tmux/window_pane_topology.go:329", + "tmux/window_pane_topology.go:252" + ], + "scope": null + } + ], "tmux.Window.SearchPanes": [ { "command": "list-panes", @@ -52,6 +1416,90 @@ ], "scope": "window" } + ], + "tmux.Window.Select": [ + { + "command": "select-window", + "evidence": [ + "tmux/window_lifecycle.go:382" + ], + "scope": null + } + ], + "tmux.Window.SelectLayout": [ + { + "command": "select-layout", + "evidence": [ + "tmux/window_layout.go:98" + ], + "scope": null + } + ], + "tmux.Window.SelectPane": [ + { + "command": "select-pane", + "evidence": [ + "tmux/window_pane_topology.go:150" + ], + "scope": null + } + ], + "tmux.Window.Swap": [ + { + "command": "swap-window", + "evidence": [ + "tmux/window_pane_swap.go:91" + ], + "scope": null + } + ], + "tmux.Window.Unlink": [ + { + "command": "unlink-window", + "evidence": [ + "tmux/window_link_move.go:154" + ], + "scope": null + } + ], + "tmuxtest.NewControlMode": [ + { + "command": "attach-session", + "evidence": [ + "tmux/tmuxtest/control.go:183", + "tmux/tmuxtest/control.go:58" + ], + "scope": null + } + ], + "tmuxtest.NewServerWithOptions": [ + { + "command": "display-message", + "evidence": [ + "tmux/tmuxtest/harness.go:441", + "tmux/tmuxtest/harness.go:326" + ], + "scope": null + } + ], + "tmuxtest.NewSession": [ + { + "command": "kill-session", + "evidence": [ + "tmux/tmuxtest/resources.go:135", + "tmux/tmuxtest/resources.go:56" + ], + "scope": null + } + ], + "workspace.Pane.Enter": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:292" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index a0bdfc016..9802c841c 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -1,30 +1,896 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "java", "repo": "libtmux/libtmux-java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "schemaVersion": 1, "symbols": { + "io.github.libtmux.batch.Batch.Batch.length": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:72" + ], + "scope": null + } + ], + "io.github.libtmux.batch.Batch.Batch.run": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.delete": [ + { + "command": "delete-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.list": [ + { + "command": "list-buffers", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.load": [ + { + "command": "load-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.save": [ + { + "command": "save-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.set": [ + { + "command": "set-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.show": [ + { + "command": "show-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" + ], + "scope": null + } + ], + "io.github.libtmux.Channel.Channel.signal": [ + { + "command": "wait-for", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Channel.java:49" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:69" + ], + "scope": null + } + ], + "io.github.libtmux.Commands.Commands.list": [ + { + "command": "list-commands", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Commands.java:21" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.attach": [ + { + "command": "attach-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:196" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:256", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:198" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced": [ + { + "command": "attach-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.unwatch": [ + { + "command": "refresh-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:473" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.watch": [ + { + "command": "refresh-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:454" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.get": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:85" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.isRemoved": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:96" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.remove": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.set": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.setExpanded": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.unset": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.all": [ + { + "command": "show-hooks", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.append": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.run": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.set": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.unset": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" + ], + "scope": null + } + ], + "io.github.libtmux.IncarnationFence.IncarnationFence.guarded": [ + { + "command": "if-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:77" + ], + "scope": null + } + ], + "io.github.libtmux.IncarnationFence.IncarnationFence.run": [ + { + "command": "if-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95" + ], + "scope": null + } + ], + "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close": [ + { + "command": "if-shell", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:129" + ], + "scope": null + }, + { + "command": "kill-server", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:129" + ], + "scope": null + } + ], + "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own": [ + { + "command": "display-message", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:86", + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:53" + ], + "scope": null + } + ], + "io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start": [ + { + "command": "display-message", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java:361", + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java:354" + ], + "scope": null + }, + { + "command": "new-session", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java:350" + ], + "scope": null + } + ], + "io.github.libtmux.Keys.Keys.bind": [ + { + "command": "bind-key", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:57" + ], + "scope": null + } + ], + "io.github.libtmux.Keys.Keys.list": [ + { + "command": "list-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:88" + ], + "scope": null + } + ], + "io.github.libtmux.Keys.Keys.unbind": [ + { + "command": "unbind-key", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:69" + ], + "scope": null + } + ], + "io.github.libtmux.mcp.Main.Main.main": [ + { + "command": "display-message", + "evidence": [ + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:90", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52" + ], + "scope": null + } + ], + "io.github.libtmux.MessageLog.MessageLog.lines": [ + { + "command": "show-messages", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.all": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.append": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:349" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.effective": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.get": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:92" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:93" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.set": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:325" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.setExpanded": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:364" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.setIfAbsent": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:338" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.unset": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:370" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:831", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + ], + "scope": null + }, + { + "command": "paste-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "scope": null + } + ], "io.github.libtmux.Pane.Pane.sendKeys": [ { - "command": "list-panes", + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "scope": "window" + }, + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.sendLiteral": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "scope": "window" + }, + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + ], + "scope": null + } + ], + "io.github.libtmux.PrintedText.PrintedText.framed": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/PrintedText.java:68" + ], + "scope": null + } + ], + "io.github.libtmux.Prompt.Prompt.clear": [ + { + "command": "clear-prompt-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" + ], + "scope": null + }, + { + "command": "show-prompt-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:49", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" + ], + "scope": null + } + ], + "io.github.libtmux.Prompt.Prompt.history": [ + { + "command": "show-prompt-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.awaitChannel": [ + { + "command": "wait-for", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", - "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + "libtmux/src/main/java/io/github/libtmux/Server.java:569" ], - "scope": "window" + "scope": null } ], - "io.github.libtmux.Pane.Pane.sendLiteral": [ + "io.github.libtmux.Server.Server.control": [ { - "command": "list-panes", + "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", - "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + "libtmux/src/main/java/io/github/libtmux/Server.java:836" ], - "scope": "window" + "scope": null + } + ], + "io.github.libtmux.Server.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "scope": null + }, + { + "command": "kill-server", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "scope": null } ], "io.github.libtmux.Server.Server.paneFields": [ @@ -45,6 +911,24 @@ "scope": "server" } ], + "io.github.libtmux.Server.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "scope": null + } + ], "io.github.libtmux.Server.Server.snapshot": [ { "command": "list-panes", @@ -53,11 +937,146 @@ "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", "libtmux/src/main/java/io/github/libtmux/Server.java:878" ], + "forwardable": true, "reviewed": true, "scope": "server" } ], + "io.github.libtmux.Server.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "scope": "server" + } + ], + "io.github.libtmux.Session.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:252" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:104" + ], + "scope": null + } + ], + "io.github.libtmux.SessionLookup.SessionLookup.named": [ + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21" + ], + "scope": null + } + ], + "io.github.libtmux.Shell.Shell.capturing": [ + { + "command": "run-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:55" + ], + "scope": null + } + ], + "io.github.libtmux.Shell.Shell.choose": [ + { + "command": "if-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:68" + ], + "scope": null + } + ], + "io.github.libtmux.Shell.Shell.run": [ + { + "command": "run-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:36" + ], + "scope": null + } + ], "io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt": [ + { + "command": "list-clients", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:184", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" + ], + "scope": null + }, { "command": "list-panes", "evidence": [ @@ -65,6 +1084,22 @@ "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" ], "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:181", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:182", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" + ], + "scope": "server" } ], "io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession": [ @@ -75,6 +1110,42 @@ "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" ], "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" + ], + "scope": "server" + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.process": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:144", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:124" + ], + "scope": null + } + ], + "io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:144", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:140" + ], + "scope": null } ], "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding": [ @@ -85,6 +1156,22 @@ "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" ], "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" + ], + "scope": "server" } ], "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed": [ @@ -95,6 +1182,22 @@ "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" ], "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" + ], + "scope": "server" } ], "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere": [ @@ -105,6 +1208,157 @@ "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" ], "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" + ], + "scope": "server" + } + ], + "io.github.libtmux.Window.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:376" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:209" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:236" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:257" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:281" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.select": [ + { + "command": "select-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "scope": null } ] } diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 4285fef58..bbbca27b7 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -1,13 +1,524 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "julia", "repo": "libtmux/libtmux-julia", "revision": "f3da513be1225d36d5854cd8db5972c01857578e", "schemaVersion": 1, "symbols": { + "LibTmux.Base.wait": [ + { + "command": "wait-for", + "evidence": [ + "src/control.jl:869" + ], + "scope": null + } + ], + "LibTmux.capture_bytes": [ + { + "command": "capture-pane", + "evidence": [ + "src/control_io.jl:101" + ], + "scope": null + }, + { + "command": "delete-buffer", + "evidence": [ + "src/control_io.jl:60", + "src/control_io.jl:150" + ], + "scope": null + }, + { + "command": "list-buffers", + "evidence": [ + "src/control_io.jl:35", + "src/control_io.jl:112" + ], + "scope": null + }, + { + "command": "save-buffer", + "evidence": [ + "src/control_io.jl:131" + ], + "scope": null + } + ], + "LibTmux.delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "src/control_buffers.jl:124" + ], + "scope": null + } + ], + "LibTmux.detach_client": [ + { + "command": "detach-client", + "evidence": [ + "src/control_clients.jl:77" + ], + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "src/control_clients.jl:11", + "src/control_clients.jl:74" + ], + "scope": null + } + ], + "LibTmux.format_hints": [ + { + "command": "display-message", + "evidence": [ + "src/formats.jl:210" + ], + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "src/formats.jl:69", + "src/formats.jl:208" + ], + "scope": "window" + } + ], + "LibTmux.get_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/configuration.jl:299", + "src/configuration.jl:353" + ], + "scope": null + } + ], + "LibTmux.get_option": [ + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:228", + "src/configuration.jl:257" + ], + "scope": null + } + ], + "LibTmux.link_window": [ + { + "command": "link-window", + "evidence": [ + "src/topology.jl:123" + ], + "scope": null + } + ], + "LibTmux.load_buffer": [ + { + "command": "list-buffers", + "evidence": [ + "src/pane_io.jl:128", + "src/pane_io.jl:187" + ], + "scope": null + }, + { + "command": "load-buffer", + "evidence": [ + "src/control_buffers.jl:39", + "src/control_buffers.jl:71" + ], + "scope": null + } + ], + "LibTmux.move_pane": [ + { + "command": "move-pane", + "evidence": [ + "src/control_topology.jl:189" + ], + "scope": null + } + ], + "LibTmux.move_window": [ + { + "command": "move-window", + "evidence": [ + "src/topology.jl:170" + ], + "scope": null + } + ], + "LibTmux.new_session": [ + { + "command": "new-session", + "evidence": [ + "src/control_topology.jl:38" + ], + "scope": null + } + ], + "LibTmux.new_window": [ + { + "command": "new-window", + "evidence": [ + "src/control_operations.jl:95" + ], + "scope": null + } + ], + "LibTmux.observe_output": [ + { + "command": "display-message", + "evidence": [ + "src/observation.jl:491", + "src/observation.jl:535" + ], + "scope": null + }, + { + "command": "refresh-client", + "evidence": [ + "src/observation.jl:543" + ], + "scope": null + } + ], + "LibTmux.open_control": [ + { + "command": "attach-session", + "evidence": [ + "src/control.jl:628", + "src/control.jl:1095" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "src/control.jl:744", + "src/control.jl:1095" + ], + "scope": null + }, + { + "command": "wait-for", + "evidence": [ + "src/control.jl:966", + "src/control.jl:1113" + ], + "scope": null + } + ], + "LibTmux.open_server": [ + { + "command": "display-message", + "evidence": [ + "src/lifecycle.jl:265", + "src/lifecycle.jl:416" + ], + "scope": null + } + ], + "LibTmux.paste_bytes": [ + { + "command": "delete-buffer", + "evidence": [ + "src/pane_io.jl:141", + "src/pane_io.jl:289" + ], + "scope": null + }, + { + "command": "list-buffers", + "evidence": [ + "src/pane_io.jl:128", + "src/pane_io.jl:274" + ], + "scope": null + }, + { + "command": "list-commands", + "evidence": [ + "src/control_buffers.jl:135", + "src/control_buffers.jl:174" + ], + "scope": null + }, + { + "command": "load-buffer", + "evidence": [ + "src/control_buffers.jl:39", + "src/control_buffers.jl:175" + ], + "scope": null + }, + { + "command": "paste-buffer", + "evidence": [ + "src/control_buffers.jl:147", + "src/control_buffers.jl:174" + ], + "scope": null + } + ], + "LibTmux.read_formats": [ + { + "command": "list-panes", + "evidence": [ + "src/control_formats.jl:21", + "src/control_formats.jl:56" + ], + "scope": "window" + } + ], + "LibTmux.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/control_configuration.jl:75", + "src/control_configuration.jl:66" + ], + "scope": null + } + ], + "LibTmux.render_format": [ + { + "command": "list-panes", + "evidence": [ + "src/formats.jl:69", + "src/formats.jl:177" + ], + "scope": "window" + } + ], + "LibTmux.run_command": [ + { + "command": "delete-buffer", + "evidence": [ + "src/control_protocol.jl:435", + "src/control.jl:580" + ], + "scope": null + }, + { + "command": "kill-pane", + "evidence": [ + "src/control_protocol.jl:427", + "src/control.jl:580" + ], + "scope": null + }, + { + "command": "kill-session", + "evidence": [ + "src/control_protocol.jl:428", + "src/control.jl:580" + ], + "scope": null + }, + { + "command": "kill-window", + "evidence": [ + "src/control_protocol.jl:428", + "src/control.jl:580" + ], + "scope": null + } + ], + "LibTmux.save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "src/control_buffers.jl:102" + ], + "scope": null + } + ], + "LibTmux.select_layout": [ + { + "command": "display-message", + "evidence": [ + "src/control_topology.jl:134" + ], + "scope": null + }, + { + "command": "select-layout", + "evidence": [ + "src/control_topology.jl:143" + ], + "scope": null + } + ], + "LibTmux.select_pane": [ + { + "command": "select-pane", + "evidence": [ + "src/control_topology.jl:88" + ], + "scope": null + } + ], + "LibTmux.select_window": [ + { + "command": "select-window", + "evidence": [ + "src/control_topology.jl:362" + ], + "scope": null + } + ], + "LibTmux.send_keys": [ + { + "command": "send-keys", + "evidence": [ + "src/control_operations.jl:188" + ], + "scope": null + } + ], + "LibTmux.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/configuration.jl:375" + ], + "scope": null + } + ], + "LibTmux.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/configuration.jl:478" + ], + "scope": null + } + ], + "LibTmux.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/configuration.jl:280" + ], + "scope": null + } + ], "LibTmux.snapshot": [ + { + "command": "display-message", + "evidence": [ + "src/acquisition.jl:52", + "src/acquisition.jl:227" + ], + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "src/acquisition.jl:129", + "src/acquisition.jl:231" + ], + "scope": null + }, { "command": "list-panes", "evidence": [ @@ -17,6 +528,120 @@ ], "reviewed": true, "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "src/acquisition.jl:104", + "src/acquisition.jl:231" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/acquisition.jl:109", + "src/acquisition.jl:231" + ], + "scope": "server" + } + ], + "LibTmux.split_window": [ + { + "command": "split-window", + "evidence": [ + "src/control_operations.jl:142" + ], + "scope": null + } + ], + "LibTmux.subscribe_format": [ + { + "command": "display-message", + "evidence": [ + "src/observation.jl:491", + "src/observation.jl:590" + ], + "scope": null + }, + { + "command": "refresh-client", + "evidence": [ + "src/observation.jl:610" + ], + "scope": null + } + ], + "LibTmux.swap_pane": [ + { + "command": "swap-pane", + "evidence": [ + "src/control_topology.jl:211" + ], + "scope": null + } + ], + "LibTmux.swap_window": [ + { + "command": "swap-window", + "evidence": [ + "src/control_topology.jl:346" + ], + "scope": null + } + ], + "LibTmux.switch_client": [ + { + "command": "list-clients", + "evidence": [ + "src/control_clients.jl:11", + "src/control_clients.jl:51" + ], + "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "src/control_clients.jl:52" + ], + "scope": null + } + ], + "LibTmux.unlink_window": [ + { + "command": "unlink-window", + "evidence": [ + "src/control_topology.jl:317" + ], + "scope": null + } + ], + "LibTmux.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/control_configuration.jl:75", + "src/control_configuration.jl:50" + ], + "scope": null + } + ], + "LibTmux.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/configuration.jl:486" + ], + "scope": null + } + ], + "LibTmux.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/configuration.jl:293" + ], + "scope": null } ] } diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 4e3bb306f..81b3c3bda 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -1,10 +1,1786 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "kotlin", "repo": "libtmux/libtmux-java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "schemaVersion": 1, - "symbols": {} + "symbols": { + "io.github.libtmux.kotlin.Batch.run": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:80" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" + ], + "port": "java", + "symbol": "io.github.libtmux.batch.Batch.Batch.run" + } + } + ], + "io.github.libtmux.kotlin.Buffers.delete": [ + { + "command": "delete-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:105" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.delete" + } + } + ], + "io.github.libtmux.kotlin.Buffers.list": [ + { + "command": "list-buffers", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.list" + } + } + ], + "io.github.libtmux.kotlin.Buffers.load": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.load" + } + } + ], + "io.github.libtmux.kotlin.Buffers.save": [ + { + "command": "save-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:121" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.save" + } + } + ], + "io.github.libtmux.kotlin.Buffers.show": [ + { + "command": "show-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:85" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.show" + } + } + ], + "io.github.libtmux.kotlin.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.detach" + } + } + ], + "io.github.libtmux.kotlin.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:52" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.detachOthers" + } + } + ], + "io.github.libtmux.kotlin.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:78" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.redraw" + } + } + ], + "io.github.libtmux.kotlin.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:63" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:69" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.switchTo" + } + } + ], + "io.github.libtmux.kotlin.Commands.list": [ + { + "command": "list-commands", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Commands.java:19" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Commands.java:21" + ], + "port": "java", + "symbol": "io.github.libtmux.Commands.Commands.list" + } + } + ], + "io.github.libtmux.kotlin.ControlClient.unwatch": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:471" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:473" + ], + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.unwatch" + } + } + ], + "io.github.libtmux.kotlin.ControlClient.watch": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:452" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:454" + ], + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.watch" + } + } + ], + "io.github.libtmux.kotlin.Environment.isRemoved": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:94" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:96" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.isRemoved" + } + } + ], + "io.github.libtmux.kotlin.Environment.remove": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:177" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.remove" + } + } + ], + "io.github.libtmux.kotlin.Environment.setExpanded": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:160" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.setExpanded" + } + } + ], + "io.github.libtmux.kotlin.Environment.unset": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:166" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.unset" + } + } + ], + "io.github.libtmux.kotlin.Hooks.all": [ + { + "command": "show-hooks", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:125" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.all" + } + } + ], + "io.github.libtmux.kotlin.Hooks.append": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:95" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.append" + } + } + ], + "io.github.libtmux.kotlin.Hooks.run": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:112" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.run" + } + } + ], + "io.github.libtmux.kotlin.Hooks.unset": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.unset" + } + } + ], + "io.github.libtmux.kotlin.Keys.bind": [ + { + "command": "bind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Keys.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:57" + ], + "port": "java", + "symbol": "io.github.libtmux.Keys.Keys.bind" + } + } + ], + "io.github.libtmux.kotlin.Keys.list": [ + { + "command": "list-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Keys.java:86" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:88" + ], + "port": "java", + "symbol": "io.github.libtmux.Keys.Keys.list" + } + } + ], + "io.github.libtmux.kotlin.Keys.unbind": [ + { + "command": "unbind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Keys.java:66" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:69" + ], + "port": "java", + "symbol": "io.github.libtmux.Keys.Keys.unbind" + } + } + ], + "io.github.libtmux.kotlin.MessageLog.lines": [ + { + "command": "show-messages", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:30" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" + ], + "port": "java", + "symbol": "io.github.libtmux.MessageLog.MessageLog.lines" + } + } + ], + "io.github.libtmux.kotlin.Options.all": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.all" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.all" + } + } + ], + "io.github.libtmux.kotlin.Options.append": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:347" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:349" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.append" + } + } + ], + "io.github.libtmux.kotlin.Options.effective": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.effective" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.effective" + } + } + ], + "io.github.libtmux.kotlin.Options.setExpanded": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:362" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:364" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.setExpanded" + } + } + ], + "io.github.libtmux.kotlin.Options.setIfAbsent": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:336" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:338" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.setIfAbsent" + } + } + ], + "io.github.libtmux.kotlin.Options.unset": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:368" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:370" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.unset" + } + } + ], + "io.github.libtmux.kotlin.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:831", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + }, + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + } + ], + "io.github.libtmux.kotlin.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1050" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.clearHistory" + } + } + ], + "io.github.libtmux.kotlin.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:225" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.copyMode" + } + } + ], + "io.github.libtmux.kotlin.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:252" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.exitMode" + } + } + ], + "io.github.libtmux.kotlin.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:732" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.expand" + } + } + ], + "io.github.libtmux.kotlin.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1066" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.joinTo" + } + } + ], + "io.github.libtmux.kotlin.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1076" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.kill" + } + } + ], + "io.github.libtmux.kotlin.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste" + } + }, + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste" + } + } + ], + "io.github.libtmux.kotlin.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:923" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" + } + } + ], + "io.github.libtmux.kotlin.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:807" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.pipeTo" + } + } + ], + "io.github.libtmux.kotlin.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:209" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.resize" + } + } + ], + "io.github.libtmux.kotlin.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:280" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.resizeTo" + } + } + ], + "io.github.libtmux.kotlin.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:755" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.respawn" + } + } + ], + "io.github.libtmux.kotlin.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:272" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.retitle" + } + } + ], + "io.github.libtmux.kotlin.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:258" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.select" + } + } + ], + "io.github.libtmux.kotlin.Pane.sendKeys": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + } + ], + "io.github.libtmux.kotlin.Pane.sendLiteral": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + } + ], + "io.github.libtmux.kotlin.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:814" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.stopPiping" + } + } + ], + "io.github.libtmux.kotlin.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1056" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.swapWith" + } + } + ], + "io.github.libtmux.kotlin.Prompt.clear": [ + { + "command": "clear-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" + ], + "port": "java", + "symbol": "io.github.libtmux.Prompt.Prompt.clear" + } + }, + { + "command": "show-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:49", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" + ], + "port": "java", + "symbol": "io.github.libtmux.Prompt.Prompt.clear" + } + } + ], + "io.github.libtmux.kotlin.Prompt.history": [ + { + "command": "show-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + ], + "port": "java", + "symbol": "io.github.libtmux.Prompt.Prompt.history" + } + } + ], + "io.github.libtmux.kotlin.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:412" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.expand" + } + } + ], + "io.github.libtmux.kotlin.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:214" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.isAlive" + } + } + ], + "io.github.libtmux.kotlin.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:311" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + }, + { + "command": "kill-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:311" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + } + ], + "io.github.libtmux.kotlin.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + } + ], + "io.github.libtmux.kotlin.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:445" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.lock" + } + } + ], + "io.github.libtmux.kotlin.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:531" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.paneFields" + } + } + ], + "io.github.libtmux.kotlin.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:995" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.panes" + } + } + ], + "io.github.libtmux.kotlin.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:226" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.requireAlive" + } + } + ], + "io.github.libtmux.kotlin.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:902" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.sessions" + } + } + ], + "io.github.libtmux.kotlin.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:875" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Server.Server.snapshot" + } + } + ], + "io.github.libtmux.kotlin.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:624" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.sourceFile" + } + } + ], + "io.github.libtmux.kotlin.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:957" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.windows" + } + } + ], + "io.github.libtmux.kotlin.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:133" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.detachClients" + } + } + ], + "io.github.libtmux.kotlin.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:247" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:252" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.expand" + } + } + ], + "io.github.libtmux.kotlin.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:269" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.kill" + } + } + ], + "io.github.libtmux.kotlin.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.lastWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:110" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.nextWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:116" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.previousWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:262" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.rename" + } + } + ], + "io.github.libtmux.kotlin.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:93" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:104" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.selectWindow" + } + } + ], + "io.github.libtmux.kotlin.Shell.capturing": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Shell.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:55" + ], + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.capturing" + } + } + ], + "io.github.libtmux.kotlin.Shell.choose": [ + { + "command": "if-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Shell.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:68" + ], + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.choose" + } + } + ], + "io.github.libtmux.kotlin.Shell.run": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Shell.java:33" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:36" + ], + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.run" + } + } + ], + "io.github.libtmux.kotlin.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:371" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:376" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.applyLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:395" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.displayPopup" + } + } + ], + "io.github.libtmux.kotlin.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:203" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:209" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.expand" + } + } + ], + "io.github.libtmux.kotlin.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:401" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.kill" + } + } + ], + "io.github.libtmux.kotlin.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:230" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:236" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.linkTo" + } + } + ], + "io.github.libtmux.kotlin.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:250" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:257" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.moveTo" + } + } + ], + "io.github.libtmux.kotlin.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:327" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.nextLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.previousLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:223" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.rename" + } + } + ], + "io.github.libtmux.kotlin.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:275" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:281" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.resizeTo" + } + } + ], + "io.github.libtmux.kotlin.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:380" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.respawn" + } + } + ], + "io.github.libtmux.kotlin.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:309" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.rotate" + } + } + ], + "io.github.libtmux.kotlin.Window.select": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:114" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.select" + } + } + ], + "io.github.libtmux.kotlin.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:319" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.selectLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:244" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.unlink" + } + } + ], + "io.github.libtmux.kotlin.withControl": [ + { + "command": "display-message", + "evidence": [ + "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt:36" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:836" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.control" + } + } + ] + } } diff --git a/site/src/data/tmux-usage/lua.json b/site/src/data/tmux-usage/lua.json index 270917fcb..6f7386b7f 100644 --- a/site/src/data/tmux-usage/lua.json +++ b/site/src/data/tmux-usage/lua.json @@ -1,13 +1,615 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "lua", "repo": "libtmux/libtmux-lua", "revision": "0395620d362ef75c74cd488f9577afda68922586", "schemaVersion": 1, "symbols": { + "libtmux.Pane:break_out": [ + { + "command": "break-pane", + "evidence": [ + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:288" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:capture": [ + { + "command": "capture-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:10", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:180" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:capture_to_buffer": [ + { + "command": "capture-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:11", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:190" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:clear_history": [ + { + "command": "clear-history", + "evidence": [ + "lua/libtmux/_internal/pane.lua:12", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:185" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:copy_command": [ + { + "command": "send-keys", + "evidence": [ + "lua/libtmux/_internal/pane.lua:16", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:213" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "lua/libtmux/_internal/pane.lua:15", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:205" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:98" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:78" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:kill": [ + { + "command": "kill-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:18", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:227", + "lua/libtmux/_internal/entity.lua:228" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:103" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:83" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:move_to": [ + { + "command": "join-pane", + "evidence": [ + "lua/libtmux/_internal/topology.lua:395", + "lua/libtmux/_internal/entity.lua:280" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:paste_buffer": [ + { + "command": "paste-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/entity.lua:302" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:resize": [ + { + "command": "resize-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:17", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:221", + "lua/libtmux/_internal/entity.lua:222" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:19", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:253", + "lua/libtmux/_internal/entity.lua:254" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:run_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:190", + "lua/libtmux/_internal/entity.lua:118" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:select": [ + { + "command": "select-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:20", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:259", + "lua/libtmux/_internal/entity.lua:260" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:send_keys": [ + { + "command": "send-keys", + "evidence": [ + "lua/libtmux/_internal/pane.lua:14", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:200" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:send_text": [ + { + "command": "send-keys", + "evidence": [ + "lua/libtmux/_internal/pane.lua:13", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:195" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:108" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:88" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:set_title": [ + { + "command": "select-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:21", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:297" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:split": [ + { + "command": "split-window", + "evidence": [ + "lua/libtmux/_internal/domain.lua:7", + "lua/libtmux/_internal/domain.lua:174", + "lua/libtmux/_internal/entity.lua:318" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:swap": [ + { + "command": "swap-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:22", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:307", + "lua/libtmux/_internal/entity.lua:308" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:113" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:93" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/server.lua:448" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:detach_client": [ + { + "command": "detach-client", + "evidence": [ + "lua/libtmux/_internal/client.lua:103", + "lua/libtmux/_internal/server.lua:452" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lua/libtmux/_internal/client.lua:129", + "lua/libtmux/_internal/server.lua:452" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:get_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:412" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:396" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:380" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:list_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:416" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:400" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:384" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:new_session": [ + { + "command": "new-session", + "evidence": [ + "lua/libtmux/_internal/domain.lua:7", + "lua/libtmux/_internal/domain.lua:174", + "lua/libtmux/_internal/server.lua:460" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:428" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/server.lua:440" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:420" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/server.lua:404" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/server.lua:388" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:show_buffer": [ + { + "command": "show-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/server.lua:444" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Server:snapshot": [ + { + "command": "list-buffers", + "evidence": [ + "lua/libtmux/_internal/server.lua:25", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lua/libtmux/_internal/server.lua:24", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": null + }, { "command": "list-panes", "evidence": [ @@ -18,6 +620,547 @@ ], "reviewed": true, "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lua/libtmux/_internal/server.lua:20", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lua/libtmux/_internal/server.lua:21", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": "server" + } + ], + "libtmux.Server:switch_client": [ + { + "command": "list-clients", + "evidence": [ + "lua/libtmux/_internal/client.lua:129", + "lua/libtmux/_internal/server.lua:456" + ], + "reviewed": true, + "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "lua/libtmux/_internal/client.lua:93", + "lua/libtmux/_internal/server.lua:456" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:424" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/server.lua:408" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/server.lua:392" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:get_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:123" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:98" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:78" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:kill": [ + { + "command": "kill-session", + "evidence": [ + "lua/libtmux/_internal/topology.lua:65", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:227", + "lua/libtmux/_internal/entity.lua:228" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:list_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:128" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:103" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:83" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:navigate_window": [ + { + "command": "last-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:466", + "lua/libtmux/_internal/entity.lua:238" + ], + "reviewed": true, + "scope": null + }, + { + "command": "next-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:466", + "lua/libtmux/_internal/entity.lua:238" + ], + "reviewed": true, + "scope": null + }, + { + "command": "previous-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:466", + "lua/libtmux/_internal/entity.lua:238" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:new_window": [ + { + "command": "new-window", + "evidence": [ + "lua/libtmux/_internal/domain.lua:7", + "lua/libtmux/_internal/domain.lua:174", + "lua/libtmux/_internal/entity.lua:313" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:143" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:rename": [ + { + "command": "rename-session", + "evidence": [ + "lua/libtmux/_internal/topology.lua:64", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:233" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:renumber_windows": [ + { + "command": "move-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:66", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:243" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:run_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:190", + "lua/libtmux/_internal/entity.lua:118" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:set_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:133" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:108" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:88" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:138" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:113" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:93" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:98" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:78" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:kill": [ + { + "command": "kill-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:71", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:227", + "lua/libtmux/_internal/entity.lua:228" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:layout": [ + { + "command": "select-layout", + "evidence": [ + "lua/libtmux/_internal/topology.lua:73", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:248" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:103" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:83" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:rename": [ + { + "command": "rename-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:70", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:233" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:resize": [ + { + "command": "resize-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:72", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:221", + "lua/libtmux/_internal/entity.lua:222" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:respawn": [ + { + "command": "respawn-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:74", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:253", + "lua/libtmux/_internal/entity.lua:254" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:run_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:190", + "lua/libtmux/_internal/entity.lua:118" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:108" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:88" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:113" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:93" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:link": [ + { + "command": "link-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:78", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:265" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:move": [ + { + "command": "move-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:79", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:270" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:select": [ + { + "command": "select-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:77", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:259", + "lua/libtmux/_internal/entity.lua:260" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:swap": [ + { + "command": "swap-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:80", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:307", + "lua/libtmux/_internal/entity.lua:308" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:unlink": [ + { + "command": "unlink-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:81", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:275" + ], + "reviewed": true, + "scope": null } ] } diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json index 5f978ac20..cdd824207 100644 --- a/site/src/data/tmux-usage/powershell.json +++ b/site/src/data/tmux-usage/powershell.json @@ -1,12 +1,151 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "powershell", "repo": "libtmux/libtmux-powershell", "revision": "b06c64f844f3173de66b187eaeaf3915814318c6", "schemaVersion": 1, "symbols": { + "LibTmux\\Connect-TmuxControl": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.PowerShell/ConnectTmuxControlCommand.cs:33" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:70" + ], + "port": "csharp", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ], + "LibTmux\\Enter-TmuxSession": [ + { + "command": "attach-session", + "evidence": [ + "src/LibTmux.PowerShell/EnterTmuxSessionCommand.cs:49" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:275" + ], + "port": "csharp", + "symbol": "LibTmux.Session.AttachAsync" + } + } + ], + "LibTmux\\Get-TmuxClient": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxClientCommand.cs:28" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22" + ], + "port": "csharp", + "symbol": "LibTmux.Server.GetClientsAsync" + } + } + ], "LibTmux\\Get-TmuxPane": [ { "command": "list-panes", @@ -16,18 +155,28 @@ "reviewed": true, "scope": "server", "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], "port": "csharp", + "reviewed": true, "symbol": "LibTmux.Server.CaptureSnapshotAsync" } }, { "command": "list-panes", "evidence": [ - "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:46" + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:43" ], - "reviewed": true, "scope": "session", "via": { + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], "port": "csharp", "symbol": "LibTmux.Session.GetPanesAsync" } @@ -37,13 +186,309 @@ "evidence": [ "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:43" ], - "reviewed": true, "scope": "window", "via": { + "evidence": [ + "src/LibTmux/Window.Relations.cs:123" + ], "port": "csharp", "symbol": "LibTmux.Window.GetPanesAsync" } } + ], + "LibTmux\\Get-TmuxPaneContent": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneContentCommand.cs:119" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Capture.cs:22" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.CaptureAsync" + } + } + ], + "LibTmux\\Get-TmuxServer": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxServerCommand.cs:21" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Identity.cs:122" + ], + "port": "csharp", + "symbol": "LibTmux.Server.InspectAsync" + } + } + ], + "LibTmux\\Get-TmuxWindow": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxWindowCommand.cs:43" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Session.Relations.cs:153" + ], + "port": "csharp", + "symbol": "LibTmux.Session.GetWindowsAsync" + } + } + ], + "LibTmux\\Move-TmuxWindow": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Move.cs:143", + "src/LibTmux/Window.Move.cs:53" + ], + "port": "csharp", + "symbol": "LibTmux.Window.MoveAsync" + } + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs:74" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Window.Move.cs:105", + "src/LibTmux/Window.Move.cs:31" + ], + "port": "csharp", + "symbol": "LibTmux.Window.MoveAsync" + } + }, + { + "command": "move-window", + "evidence": [ + "src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Links.cs:122", + "src/LibTmux/Window.Move.cs:29" + ], + "port": "csharp", + "symbol": "LibTmux.Window.MoveAsync" + } + } + ], + "LibTmux\\New-TmuxWindow": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux.PowerShell/NewTmuxWindowCommand.cs:77" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:289" + ], + "port": "csharp", + "symbol": "LibTmux.Session.CreateWindowAsync" + } + } + ], + "LibTmux\\New-TmuxWindowLink": [ + { + "command": "link-window", + "evidence": [ + "src/LibTmux.PowerShell/NewTmuxWindowLinkCommand.cs:65" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Links.cs:17", + "src/LibTmux/Window.Links.cs:53" + ], + "port": "csharp", + "symbol": "LibTmux.Window.LinkAsync" + } + } + ], + "LibTmux\\Remove-TmuxPane": [ + { + "command": "kill-pane", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxPaneCommand.cs:24" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:292" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.KillAsync" + } + } + ], + "LibTmux\\Remove-TmuxSession": [ + { + "command": "kill-session", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxSessionCommand.cs:24" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:95" + ], + "port": "csharp", + "symbol": "LibTmux.Session.KillAsync" + } + } + ], + "LibTmux\\Remove-TmuxWindow": [ + { + "command": "kill-window", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxWindowCommand.cs:24" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:56" + ], + "port": "csharp", + "symbol": "LibTmux.Window.KillAsync" + } + } + ], + "LibTmux\\Remove-TmuxWindowLink": [ + { + "command": "unlink-window", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxWindowLinkCommand.cs:28" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Links.cs:187", + "src/LibTmux/Window.Links.cs:69" + ], + "port": "csharp", + "symbol": "LibTmux.Window.UnlinkAsync" + } + } + ], + "LibTmux\\Send-TmuxText": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.PowerShell/SendTmuxTextCommand.cs:50" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:75", + "src/LibTmux/Pane.Input.cs:94" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.SendKeysAsync" + } + } + ], + "LibTmux\\Set-TmuxLayout": [ + { + "command": "select-layout", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxLayoutCommand.cs:44" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Layout.cs:60", + "src/LibTmux/Window.Layout.cs:102" + ], + "port": "csharp", + "symbol": "LibTmux.Window.SelectLayoutAsync" + } + } + ], + "LibTmux\\Set-TmuxPaneSize": [ + { + "command": "resize-pane", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxPaneSizeCommand.cs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:426", + "src/LibTmux/Pane.Topology.cs:334" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.ResizeAsync" + } + } + ], + "LibTmux\\Set-TmuxWindowSize": [ + { + "command": "resize-window", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxWindowSizeCommand.cs:72" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Layout.cs:34", + "src/LibTmux/Window.Layout.cs:24" + ], + "port": "csharp", + "symbol": "LibTmux.Window.ResizeAsync" + } + } + ], + "LibTmux\\Split-TmuxPane": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux.PowerShell/SplitTmuxPaneCommand.cs:99" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:232" + ], + "port": "csharp", + "symbol": "LibTmux.Pane.SplitAsync" + } + } + ], + "LibTmux\\Watch-TmuxEvent": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.PowerShell/WatchTmuxEventCommand.cs:60" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:70" + ], + "port": "csharp", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } ] } } diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json index 994379feb..4676db178 100644 --- a/site/src/data/tmux-usage/py.json +++ b/site/src/data/tmux-usage/py.json @@ -1,37 +1,1291 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "py", "repo": "tmux-python/libtmux", "revision": "8e0ce38400618bd783e6276270dd7f5d8cb283ea", "schemaVersion": 1, "symbols": { + "libtmux._internal.control_mode.ControlMode.__enter__": [ + { + "command": "attach-session", + "evidence": [ + "src/libtmux/_internal/control_mode.py:78" + ], + "scope": null + } + ], + "libtmux.Client.from_client_name": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/client.py:128" + ], + "scope": null + } + ], + "libtmux.Client.refresh": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/client.py:119" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.getenv": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:226" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:159" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:94" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.show_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:190" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:130" + ], + "scope": null + } + ], + "libtmux.common.tmux_cmd.__init__": [ + { + "command": "has-session", + "evidence": [ + "src/libtmux/common.py:362" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin._show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:108" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:187" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240" + ], + "scope": null + } + ], + "libtmux.options.OptionsMixin._show_option_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134" + ], + "scope": null + } + ], + "libtmux.options.OptionsMixin._show_options_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886" + ], + "scope": null + } + ], + "libtmux.options.OptionsMixin.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705" + ], + "scope": null + } + ], + "libtmux.options.OptionsMixin.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:793" + ], + "scope": null + } + ], + "libtmux.Pane._show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364" + ], + "scope": null + } + ], + "libtmux.Pane._show_option_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134" + ], + "scope": null + } + ], + "libtmux.Pane._show_options_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886" + ], + "scope": null + } + ], + "libtmux.Pane.break_pane": [ + { + "command": "break-pane", + "evidence": [ + "src/libtmux/pane.py:2493" + ], + "scope": null + } + ], + "libtmux.Pane.capture_pane": [ + { + "command": "capture-pane", + "evidence": [ + "src/libtmux/pane.py:632" + ], + "scope": null + } + ], + "libtmux.Pane.choose_buffer": [ + { + "command": "choose-buffer", + "evidence": [ + "src/libtmux/pane.py:2097" + ], + "scope": null + } + ], + "libtmux.Pane.choose_client": [ + { + "command": "choose-client", + "evidence": [ + "src/libtmux/pane.py:2106" + ], + "scope": null + } + ], + "libtmux.Pane.choose_tree": [ + { + "command": "choose-tree", + "evidence": [ + "src/libtmux/pane.py:2168" + ], + "scope": null + } + ], + "libtmux.Pane.clear_history": [ + { + "command": "clear-history", + "evidence": [ + "src/libtmux/pane.py:2607" + ], + "scope": null + } + ], + "libtmux.Pane.clock_mode": [ + { + "command": "clock-mode", + "evidence": [ + "src/libtmux/pane.py:2054" + ], + "scope": null + } + ], + "libtmux.Pane.copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "src/libtmux/pane.py:2045" + ], + "scope": null + } + ], + "libtmux.Pane.customize_mode": [ + { + "command": "customize-mode", + "evidence": [ + "src/libtmux/pane.py:2177" + ], + "scope": null + } + ], + "libtmux.Pane.display_message": [ + { + "command": "display-message", + "evidence": [ + "src/libtmux/pane.py:1012" + ], + "scope": null + } + ], + "libtmux.Pane.display_panes": [ + { + "command": "display-panes", + "evidence": [ + "src/libtmux/pane.py:2088" + ], + "scope": null + } + ], + "libtmux.Pane.display_popup": [ + { + "command": "display-popup", + "evidence": [ + "src/libtmux/pane.py:1866" + ], + "scope": null + } + ], + "libtmux.Pane.enter": [ + { + "command": "send-keys", + "evidence": [ + "src/libtmux/pane.py:1666" + ], + "scope": null + } + ], + "libtmux.Pane.find_window": [ + { + "command": "find-window", + "evidence": [ + "src/libtmux/pane.py:2233" + ], + "scope": null + } + ], "libtmux.Pane.from_pane_id": [ { - "command": "list-panes", + "command": "list-panes", + "evidence": [ + "src/libtmux/pane.py:227" + ], + "scope": "window" + } + ], + "libtmux.Pane.join": [ + { + "command": "join-pane", + "evidence": [ + "src/libtmux/pane.py:2443" + ], + "scope": null + } + ], + "libtmux.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "src/libtmux/pane.py:1073" + ], + "scope": null + } + ], + "libtmux.Pane.move": [ + { + "command": "move-pane", + "evidence": [ + "src/libtmux/pane.py:2372" + ], + "scope": null + } + ], + "libtmux.Pane.new_pane": [ + { + "command": "new-pane", + "evidence": [ + "src/libtmux/pane.py:1572" + ], + "scope": null + } + ], + "libtmux.Pane.paste_buffer": [ + { + "command": "paste-buffer", + "evidence": [ + "src/libtmux/pane.py:1933" + ], + "scope": null + } + ], + "libtmux.Pane.pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "src/libtmux/pane.py:1980" + ], + "scope": null + } + ], + "libtmux.Pane.reset": [ + { + "command": "clear-history", + "evidence": [ + "src/libtmux/pane.py:2635" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "src/libtmux/pane.py:2630" + ], + "scope": null + } + ], + "libtmux.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "src/libtmux/pane.py:449" + ], + "scope": null + } + ], + "libtmux.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "src/libtmux/pane.py:2301" + ], + "scope": null + } + ], + "libtmux.Pane.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:108" + ], + "scope": null + } + ], + "libtmux.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "src/libtmux/pane.py:1189" + ], + "scope": null + } + ], + "libtmux.Pane.send_keys": [ + { + "command": "send-keys", + "evidence": [ + "src/libtmux/pane.py:839" + ], + "scope": null + } + ], + "libtmux.Pane.send_prefix": [ + { + "command": "send-prefix", + "evidence": [ + "src/libtmux/pane.py:2254" + ], + "scope": null + } + ], + "libtmux.Pane.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:187" + ], + "scope": null + } + ], + "libtmux.Pane.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705" + ], + "scope": null + } + ], + "libtmux.Pane.set_title": [ + { + "command": "select-pane", + "evidence": [ + "src/libtmux/pane.py:1656" + ], + "scope": null + } + ], + "libtmux.Pane.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "src/libtmux/pane.py:1404" + ], + "scope": null + } + ], + "libtmux.Pane.swap": [ + { + "command": "swap-pane", + "evidence": [ + "src/libtmux/pane.py:2578" + ], + "scope": null + } + ], + "libtmux.Pane.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240" + ], + "scope": null + } + ], + "libtmux.Pane.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:793" + ], + "scope": null + } + ], + "libtmux.pytest_plugin.session": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/pytest_plugin.py:291" + ], + "scope": null + } + ], + "libtmux.Server._show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364" + ], + "scope": null + } + ], + "libtmux.Server._show_option_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134" + ], + "scope": null + } + ], + "libtmux.Server._show_options_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886" + ], + "scope": null + } + ], + "libtmux.Server.attach_session": [ + { + "command": "attach-session", + "evidence": [ + "src/libtmux/server.py:2203" + ], + "scope": null + } + ], + "libtmux.Server.bind_key": [ + { + "command": "bind-key", + "evidence": [ + "src/libtmux/server.py:713" + ], + "scope": null + } + ], + "libtmux.Server.clear_prompt_history": [ + { + "command": "clear-prompt-history", + "evidence": [ + "src/libtmux/server.py:1811" + ], + "scope": null + } + ], + "libtmux.Server.clients": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/server.py:2498" + ], + "scope": null + } + ], + "libtmux.Server.command_prompt": [ + { + "command": "command-prompt", + "evidence": [ + "src/libtmux/server.py:1340" + ], + "scope": null + } + ], + "libtmux.Server.confirm_before": [ + { + "command": "confirm-before", + "evidence": [ + "src/libtmux/server.py:1194" + ], + "scope": null + } + ], + "libtmux.Server.delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "src/libtmux/server.py:1902" + ], + "scope": null + } + ], + "libtmux.Server.detach_all_clients": [ + { + "command": "detach-client", + "evidence": [ + "src/libtmux/server.py:1108" + ], + "scope": null + } + ], + "libtmux.Server.detach_client": [ + { + "command": "detach-client", + "evidence": [ + "src/libtmux/server.py:1061" + ], + "scope": null + } + ], + "libtmux.Server.display_menu": [ + { + "command": "display-menu", + "evidence": [ + "src/libtmux/server.py:1492" + ], + "scope": null + } + ], + "libtmux.Server.display_message": [ + { + "command": "display-message", + "evidence": [ + "src/libtmux/server.py:1728" + ], + "scope": null + } + ], + "libtmux.Server.getenv": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:226" + ], + "scope": null + } + ], + "libtmux.Server.has_session": [ + { + "command": "has-session", + "evidence": [ + "src/libtmux/server.py:460" + ], + "scope": null + } + ], + "libtmux.Server.if_shell": [ + { + "command": "if-shell", + "evidence": [ + "src/libtmux/server.py:2104" + ], + "scope": null + } + ], + "libtmux.Server.is_alive": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:304" + ], + "scope": null + } + ], + "libtmux.Server.kill": [ + { + "command": "kill-server", + "evidence": [ + "src/libtmux/server.py:482" + ], + "scope": null + } + ], + "libtmux.Server.kill_session": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/server.py:507" + ], + "scope": null + } + ], + "libtmux.Server.list_buffers": [ + { + "command": "list-buffers", + "evidence": [ + "src/libtmux/server.py:2055" + ], + "scope": null + } + ], + "libtmux.Server.list_clients": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/server.py:2166" + ], + "scope": null + } + ], + "libtmux.Server.list_commands": [ + { + "command": "list-commands", + "evidence": [ + "src/libtmux/server.py:832" + ], + "scope": null + } + ], + "libtmux.Server.list_keys": [ + { + "command": "list-keys", + "evidence": [ + "src/libtmux/server.py:802" + ], + "scope": null + } + ], + "libtmux.Server.load_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "src/libtmux/server.py:1974" + ], + "scope": null + } + ], + "libtmux.Server.lock_client": [ + { + "command": "lock-client", + "evidence": [ + "src/libtmux/server.py:1012" + ], + "scope": null + } + ], + "libtmux.Server.lock_server": [ + { + "command": "lock-server", + "evidence": [ + "src/libtmux/server.py:846" + ], + "scope": null + } + ], + "libtmux.Server.new_session": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/server.py:2312" + ], + "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:2341" + ], + "scope": null + }, + { + "command": "new-session", + "evidence": [ + "src/libtmux/server.py:2328" + ], + "scope": null + } + ], + "libtmux.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/server.py:2463" + ], + "scope": "server" + } + ], + "libtmux.Server.raise_if_dead": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:331" + ], + "scope": null + } + ], + "libtmux.Server.refresh_client": [ + { + "command": "refresh-client", + "evidence": [ + "src/libtmux/server.py:964" + ], + "scope": null + } + ], + "libtmux.Server.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:159" + ], + "scope": null + } + ], + "libtmux.Server.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:108" + ], + "scope": null + } + ], + "libtmux.Server.run_shell": [ + { + "command": "run-shell", + "evidence": [ + "src/libtmux/server.py:619" + ], + "scope": null + } + ], + "libtmux.Server.save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "src/libtmux/server.py:1941" + ], + "scope": null + } + ], + "libtmux.Server.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/server.py:2671" + ], + "scope": "server" + } + ], + "libtmux.Server.search_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:2556" + ], + "scope": null + } + ], + "libtmux.Server.search_windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/server.py:2611" + ], + "scope": "server" + } + ], + "libtmux.Server.server_access": [ + { + "command": "server-access", + "evidence": [ + "src/libtmux/server.py:917" + ], + "scope": null + } + ], + "libtmux.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:2426" + ], + "scope": null + } + ], + "libtmux.Server.set_buffer": [ + { + "command": "set-buffer", + "evidence": [ + "src/libtmux/server.py:1849" + ], + "scope": null + } + ], + "libtmux.Server.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:94" + ], + "scope": null + } + ], + "libtmux.Server.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:187" + ], + "scope": null + } + ], + "libtmux.Server.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705" + ], + "scope": null + } + ], + "libtmux.Server.show_buffer": [ + { + "command": "show-buffer", + "evidence": [ + "src/libtmux/server.py:1877" + ], + "scope": null + } + ], + "libtmux.Server.show_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:190" + ], + "scope": null + } + ], + "libtmux.Server.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Server.show_messages": [ + { + "command": "show-messages", + "evidence": [ + "src/libtmux/server.py:1559" + ], + "scope": null + } + ], + "libtmux.Server.show_prompt_history": [ + { + "command": "show-prompt-history", + "evidence": [ + "src/libtmux/server.py:1777" + ], + "scope": null + } + ], + "libtmux.Server.source_file": [ + { + "command": "source-file", + "evidence": [ + "src/libtmux/server.py:2149" + ], + "scope": null + } + ], + "libtmux.Server.start_server": [ + { + "command": "start-server", + "evidence": [ + "src/libtmux/server.py:1504" + ], + "scope": null + } + ], + "libtmux.Server.suspend_client": [ + { + "command": "suspend-client", + "evidence": [ + "src/libtmux/server.py:988" + ], + "scope": null + } + ], + "libtmux.Server.switch_client": [ + { + "command": "switch-client", + "evidence": [ + "src/libtmux/server.py:2186" + ], + "scope": null + } + ], + "libtmux.Server.unbind_key": [ + { + "command": "unbind-key", + "evidence": [ + "src/libtmux/server.py:757" + ], + "scope": null + } + ], + "libtmux.Server.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:130" + ], + "scope": null + } + ], + "libtmux.Server.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240" + ], + "scope": null + } + ], + "libtmux.Server.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:793" + ], + "scope": null + } + ], + "libtmux.Server.wait_for": [ + { + "command": "wait-for", + "evidence": [ + "src/libtmux/server.py:667" + ], + "scope": null + } + ], + "libtmux.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/server.py:2444" + ], + "scope": "server" + } + ], + "libtmux.Session._show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364" + ], + "scope": null + } + ], + "libtmux.Session._show_option_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134" + ], + "scope": null + } + ], + "libtmux.Session._show_options_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886" + ], + "scope": null + } + ], + "libtmux.Session.attach": [ + { + "command": "attach-session", + "evidence": [ + "src/libtmux/session.py:665" + ], + "scope": null + } + ], + "libtmux.Session.detach_client": [ + { + "command": "detach-client", + "evidence": [ + "src/libtmux/session.py:518" + ], + "scope": null + } + ], + "libtmux.Session.from_session_id": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/session.py:206" + ], + "scope": null + } + ], + "libtmux.Session.getenv": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:226" + ], + "scope": null + } + ], + "libtmux.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/session.py:744" + ], + "scope": null + } + ], + "libtmux.Session.kill_window": [ + { + "command": "kill-window", "evidence": [ - "src/libtmux/pane.py:227" + "src/libtmux/session.py:991" ], - "scope": "window" + "scope": null } ], - "libtmux.Server.panes": [ + "libtmux.Session.last_window": [ { - "command": "list-panes", + "command": "last-window", "evidence": [ - "src/libtmux/server.py:2463" + "src/libtmux/session.py:539" ], - "scope": "server" + "scope": null } ], - "libtmux.Server.search_panes": [ + "libtmux.Session.lock_session": [ { - "command": "list-panes", + "command": "lock-session", "evidence": [ - "src/libtmux/server.py:2671" + "src/libtmux/session.py:479" ], - "scope": "server" + "scope": null + } + ], + "libtmux.Session.new_window": [ + { + "command": "new-window", + "evidence": [ + "src/libtmux/session.py:939" + ], + "scope": null + } + ], + "libtmux.Session.next_window": [ + { + "command": "next-window", + "evidence": [ + "src/libtmux/session.py:561" + ], + "scope": null } ], "libtmux.Session.panes": [ @@ -43,6 +1297,51 @@ "scope": "session" } ], + "libtmux.Session.previous_window": [ + { + "command": "previous-window", + "evidence": [ + "src/libtmux/session.py:583" + ], + "scope": null + } + ], + "libtmux.Session.refresh": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/session.py:173" + ], + "scope": null + } + ], + "libtmux.Session.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:159" + ], + "scope": null + } + ], + "libtmux.Session.rename_session": [ + { + "command": "rename-session", + "evidence": [ + "src/libtmux/session.py:787" + ], + "scope": null + } + ], + "libtmux.Session.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:108" + ], + "scope": null + } + ], "libtmux.Session.search_panes": [ { "command": "list-panes", @@ -52,6 +1351,220 @@ "scope": "session" } ], + "libtmux.Session.search_windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/session.py:356" + ], + "scope": "session" + } + ], + "libtmux.Session.select_window": [ + { + "command": "select-window", + "evidence": [ + "src/libtmux/session.py:613" + ], + "scope": null + } + ], + "libtmux.Session.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:94" + ], + "scope": null + } + ], + "libtmux.Session.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:187" + ], + "scope": null + } + ], + "libtmux.Session.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705" + ], + "scope": null + } + ], + "libtmux.Session.show_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:190" + ], + "scope": null + } + ], + "libtmux.Session.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Session.switch_client": [ + { + "command": "switch-client", + "evidence": [ + "src/libtmux/session.py:767" + ], + "scope": null + } + ], + "libtmux.Session.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:130" + ], + "scope": null + } + ], + "libtmux.Session.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240" + ], + "scope": null + } + ], + "libtmux.Session.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:793" + ], + "scope": null + } + ], + "libtmux.Session.windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/session.py:282" + ], + "scope": "session" + } + ], + "libtmux.Window._show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364" + ], + "scope": null + } + ], + "libtmux.Window._show_option_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134" + ], + "scope": null + } + ], + "libtmux.Window._show_options_raw": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886" + ], + "scope": null + } + ], + "libtmux.Window.display_message": [ + { + "command": "display-message", + "evidence": [ + "src/libtmux/window.py:1357" + ], + "scope": null + } + ], + "libtmux.Window.from_window_id": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/window.py:245" + ], + "scope": "session" + } + ], + "libtmux.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "src/libtmux/window.py:1454" + ], + "scope": null + } + ], + "libtmux.Window.last_pane": [ + { + "command": "last-pane", + "evidence": [ + "src/libtmux/window.py:851" + ], + "scope": null + } + ], + "libtmux.Window.link": [ + { + "command": "link-window", + "evidence": [ + "src/libtmux/window.py:1034" + ], + "scope": null + } + ], + "libtmux.Window.linked_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/window.py:373" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/libtmux/window.py:363" + ], + "scope": "server" + } + ], + "libtmux.Window.move_window": [ + { + "command": "move-window", + "evidence": [ + "src/libtmux/window.py:1543" + ], + "scope": null + } + ], + "libtmux.Window.next_layout": [ + { + "command": "next-layout", + "evidence": [ + "src/libtmux/window.py:953" + ], + "scope": null + } + ], "libtmux.Window.panes": [ { "command": "list-panes", @@ -61,6 +1574,69 @@ "scope": "window" } ], + "libtmux.Window.previous_layout": [ + { + "command": "previous-layout", + "evidence": [ + "src/libtmux/window.py:967" + ], + "scope": null + } + ], + "libtmux.Window.refresh": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/window.py:204" + ], + "scope": "session" + } + ], + "libtmux.Window.rename_window": [ + { + "command": "rename-window", + "evidence": [ + "src/libtmux/window.py:1391" + ], + "scope": null + } + ], + "libtmux.Window.resize": [ + { + "command": "resize-window", + "evidence": [ + "src/libtmux/window.py:796" + ], + "scope": null + } + ], + "libtmux.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "src/libtmux/window.py:1153" + ], + "scope": null + } + ], + "libtmux.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "src/libtmux/window.py:1104" + ], + "scope": null + } + ], + "libtmux.Window.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:108" + ], + "scope": null + } + ], "libtmux.Window.search_panes": [ { "command": "list-panes", @@ -69,6 +1645,96 @@ ], "scope": "window" } + ], + "libtmux.Window.select": [ + { + "command": "select-window", + "evidence": [ + "src/libtmux/window.py:1636" + ], + "scope": null + } + ], + "libtmux.Window.select_layout": [ + { + "command": "select-layout", + "evidence": [ + "src/libtmux/window.py:925" + ], + "scope": null + } + ], + "libtmux.Window.select_pane": [ + { + "command": "select-pane", + "evidence": [ + "src/libtmux/window.py:527" + ], + "scope": null + } + ], + "libtmux.Window.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:187" + ], + "scope": null + } + ], + "libtmux.Window.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705" + ], + "scope": null + } + ], + "libtmux.Window.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Window.swap": [ + { + "command": "swap-window", + "evidence": [ + "src/libtmux/window.py:1192" + ], + "scope": null + } + ], + "libtmux.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "src/libtmux/window.py:1059" + ], + "scope": null + } + ], + "libtmux.Window.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240" + ], + "scope": null + } + ], + "libtmux.Window.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:793" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json index 43425207d..10dae5b5e 100644 --- a/site/src/data/tmux-usage/rs.json +++ b/site/src/data/tmux-usage/rs.json @@ -1,19 +1,719 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "rs", "repo": "libtmux/libtmux-rs", "revision": "a6fc2a65674177b92b17fa380757155d2ba150fd", "schemaVersion": 1, "symbols": { + "client.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "crates/libtmux/src/client.rs:378" + ], + "scope": null + } + ], + "client.Client.lock": [ + { + "command": "lock-client", + "evidence": [ + "crates/libtmux/src/client.rs:433" + ], + "scope": null + } + ], + "client.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/client.rs:453" + ], + "scope": null + } + ], + "client.Client.refresh": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/client.rs:203", + "crates/libtmux/src/client.rs:171" + ], + "scope": null + } + ], + "client.Client.suspend": [ + { + "command": "suspend-client", + "evidence": [ + "crates/libtmux/src/client.rs:405" + ], + "scope": null + } + ], + "client.Client.switch_to": [ + { + "command": "switch-client", + "evidence": [ + "crates/libtmux/src/client.rs:472" + ], + "scope": null + } + ], + "control.ControlMode.attach_with_limits": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:543" + ], + "scope": null + } + ], + "control.ControlSender.mute_pane": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:1135", + "crates/libtmux/src/control.rs:866" + ], + "scope": null + } + ], + "control.ControlSender.pause_after": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:1038" + ], + "scope": null + } + ], + "control.ControlSender.resume_pane": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:928", + "crates/libtmux/src/control.rs:916" + ], + "scope": null + } + ], + "control.ControlSender.subscribe": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:997" + ], + "scope": null + } + ], + "control.ControlSender.unmute_pane": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:928", + "crates/libtmux/src/control.rs:899" + ], + "scope": null + } + ], + "control.ControlSender.unsubscribe": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:1018" + ], + "scope": null + } + ], "control.ControlSender.watch_only": [ { - "command": "list-panes", + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/control.rs:1077" + ], + "scope": "session" + } + ], + "control.PaneOutput.snapshot": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/control.rs:1468" + ], + "scope": null + } + ], + "pane.Pane.break_out": [ + { + "command": "break-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1081" + ], + "scope": null + } + ], + "pane.Pane.capture_lines": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:233" + ], + "scope": null + } + ], + "pane.Pane.capture_with": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:174" + ], + "scope": null + } + ], + "pane.Pane.clear_history": [ + { + "command": "clear-history", + "evidence": [ + "crates/libtmux/src/pane.rs:924" + ], + "scope": null + } + ], + "pane.Pane.clock_mode": [ + { + "command": "clock-mode", + "evidence": [ + "crates/libtmux/src/pane.rs:1206" + ], + "scope": null + } + ], + "pane.Pane.copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "crates/libtmux/src/pane.rs:1164" + ], + "scope": null + } + ], + "pane.Pane.display": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane.rs:877" + ], + "scope": null + } + ], + "pane.Pane.exit_mode": [ + { + "command": "copy-mode", + "evidence": [ + "crates/libtmux/src/pane.rs:1189" + ], + "scope": null + } + ], + "pane.Pane.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane.rs:841" + ], + "scope": null + } + ], + "pane.Pane.join_into": [ + { + "command": "join-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1142" + ], + "scope": null + } + ], + "pane.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:756" + ], + "scope": null + } + ], + "pane.Pane.paste_buffer": [ + { + "command": "paste-buffer", + "evidence": [ + "crates/libtmux/src/pane.rs:940" + ], + "scope": null + } + ], + "pane.Pane.pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:965" + ], + "scope": null + } + ], + "pane.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:728" + ], + "scope": null + } + ], + "pane.Pane.resize_by": [ + { + "command": "resize-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:563" + ], + "scope": null + } + ], + "pane.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:988" + ], + "scope": null + } + ], + "pane.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:707" + ], + "scope": null + } + ], + "pane.Pane.send_key_names": [ + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/pane.rs:688" + ], + "scope": null + } + ], + "pane.Pane.send_keys": [ + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/pane.rs:645" + ], + "scope": null + } + ], + "pane.Pane.send_line": [ + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/pane.rs:672" + ], + "scope": null + } + ], + "pane.Pane.send_prefix": [ + { + "command": "send-prefix", + "evidence": [ + "crates/libtmux/src/pane.rs:1222" + ], + "scope": null + } + ], + "pane.Pane.set_title": [ + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:901" + ], + "scope": null + } + ], + "pane.Pane.split": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:515" + ], + "scope": null + }, + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:440", + "crates/libtmux/src/pane.rs:515" + ], + "scope": null + } + ], + "pane.Pane.swap_with": [ + { + "command": "swap-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1016" + ], + "scope": null + } + ], + "pane.Pane.toggle_zoom": [ + { + "command": "resize-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:616" + ], + "scope": null + } + ], + "pane.Pane.wait_for_quiet": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:491", + "crates/libtmux/src/pane/observe.rs:367" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:476", + "crates/libtmux/src/pane/observe.rs:367" + ], + "scope": null + } + ], + "pane.Pane.wait_for_text": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:491", + "crates/libtmux/src/pane/observe.rs:315" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:476", + "crates/libtmux/src/pane/observe.rs:315" + ], + "scope": null + } + ], + "pane.Pane.wait_until": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:491", + "crates/libtmux/src/pane/observe.rs:446" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:476", + "crates/libtmux/src/pane/observe.rs:446" + ], + "scope": null + } + ], + "plan.Plan.run_over_control_mode": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/plan/run.rs:787", + "crates/libtmux/src/plan/run.rs:846" + ], + "scope": null + } + ], + "server.Server.access_rules": [ + { + "command": "server-access", + "evidence": [ + "crates/libtmux/src/server.rs:1406" + ], + "scope": null + } + ], + "server.Server.bind_key": [ + { + "command": "bind-key", + "evidence": [ + "crates/libtmux/src/server.rs:1127" + ], + "scope": null + } + ], + "server.Server.buffer": [ + { + "command": "show-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:1040" + ], + "scope": null + } + ], + "server.Server.buffer_names": [ + { + "command": "list-buffers", + "evidence": [ + "crates/libtmux/src/server.rs:1070" + ], + "scope": null + } + ], + "server.Server.check_alive": [ + { + "command": "list-sessions", + "evidence": [ + "crates/libtmux/src/server.rs:1688" + ], + "scope": null + } + ], + "server.Server.clear_prompt_history": [ + { + "command": "clear-prompt-history", + "evidence": [ + "crates/libtmux/src/server.rs:1364" + ], + "scope": null + } + ], + "server.Server.command_prompt": [ + { + "command": "command-prompt", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:105" + ], + "scope": null + } + ], + "server.Server.delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:1106" + ], + "scope": null + } + ], + "server.Server.display_menu": [ + { + "command": "display-menu", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:61" + ], + "scope": null + } + ], + "server.Server.display_panes": [ + { + "command": "display-panes", "evidence": [ - "crates/libtmux/src/control.rs:1077" + "crates/libtmux/src/server/interactive.rs:188" ], - "scope": "session" + "scope": null + } + ], + "server.Server.display_popup": [ + { + "command": "display-popup", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:30" + ], + "scope": null + } + ], + "server.Server.find_window": [ + { + "command": "find-window", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:164" + ], + "scope": null + } + ], + "server.Server.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/server.rs:1225" + ], + "scope": null + } + ], + "server.Server.grant_access": [ + { + "command": "server-access", + "evidence": [ + "crates/libtmux/src/server.rs:1430" + ], + "scope": null + } + ], + "server.Server.hide_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:62", + "crates/libtmux/src/server/settings.rs:306" + ], + "scope": null + } + ], + "server.Server.key_bindings": [ + { + "command": "list-keys", + "evidence": [ + "crates/libtmux/src/server.rs:1171" + ], + "scope": null + } + ], + "server.Server.kill": [ + { + "command": "kill-server", + "evidence": [ + "crates/libtmux/src/server.rs:924" + ], + "scope": null + } + ], + "server.Server.load_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:982" + ], + "scope": null + } + ], + "server.Server.lock_all": [ + { + "command": "lock-server", + "evidence": [ + "crates/libtmux/src/server.rs:914" + ], + "scope": null + } + ], + "server.Server.new_session": [ + { + "command": "new-session", + "evidence": [ + "crates/libtmux/src/server.rs:2286", + "crates/libtmux/src/server.rs:898" + ], + "scope": null } ], "server.Server.panes": [ @@ -28,6 +728,179 @@ "scope": "server" } ], + "server.Server.prompt_history": [ + { + "command": "show-prompt-history", + "evidence": [ + "crates/libtmux/src/server.rs:1327" + ], + "scope": null + } + ], + "server.Server.revoke_access": [ + { + "command": "server-access", + "evidence": [ + "crates/libtmux/src/server.rs:1455" + ], + "scope": null + } + ], + "server.Server.run_shell": [ + { + "command": "run-shell", + "evidence": [ + "crates/libtmux/src/server.rs:1546" + ], + "scope": null + } + ], + "server.Server.save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:1013" + ], + "scope": null + } + ], + "server.Server.set_buffer": [ + { + "command": "set-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:954" + ], + "scope": null + } + ], + "server.Server.source_file": [ + { + "command": "source-file", + "evidence": [ + "crates/libtmux/src/server.rs:1473" + ], + "scope": null + } + ], + "server.Server.spawn_shell": [ + { + "command": "run-shell", + "evidence": [ + "crates/libtmux/src/server.rs:1578" + ], + "scope": null + } + ], + "server.Server.start": [ + { + "command": "start-server", + "evidence": [ + "crates/libtmux/src/server.rs:1593" + ], + "scope": null + } + ], + "server.Server.typed_key_bindings": [ + { + "command": "list-keys", + "evidence": [ + "crates/libtmux/src/server/keys.rs:160" + ], + "scope": null + } + ], + "server.Server.unbind_key": [ + { + "command": "unbind-key", + "evidence": [ + "crates/libtmux/src/server.rs:1146" + ], + "scope": null + } + ], + "session.Session.detach_clients": [ + { + "command": "detach-client", + "evidence": [ + "crates/libtmux/src/session.rs:744" + ], + "scope": null + } + ], + "session.Session.display": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/session.rs:655" + ], + "scope": null + } + ], + "session.Session.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/session.rs:619" + ], + "scope": null + } + ], + "session.Session.hide_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:62", + "crates/libtmux/src/session/settings.rs:524" + ], + "scope": null + } + ], + "session.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "crates/libtmux/src/session.rs:539" + ], + "scope": null + } + ], + "session.Session.last_window": [ + { + "command": "last-window", + "evidence": [ + "crates/libtmux/src/session.rs:384" + ], + "scope": null + } + ], + "session.Session.lock": [ + { + "command": "lock-session", + "evidence": [ + "crates/libtmux/src/session.rs:701" + ], + "scope": null + } + ], + "session.Session.new_window": [ + { + "command": "new-window", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:423", + "crates/libtmux/src/session.rs:495" + ], + "scope": null + } + ], + "session.Session.next_window": [ + { + "command": "next-window", + "evidence": [ + "crates/libtmux/src/session.rs:361" + ], + "scope": null + } + ], "session.Session.panes": [ { "command": "list-panes", @@ -40,6 +913,97 @@ "scope": "session" } ], + "session.Session.previous_window": [ + { + "command": "previous-window", + "evidence": [ + "crates/libtmux/src/session.rs:372" + ], + "scope": null + } + ], + "session.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "crates/libtmux/src/session.rs:513" + ], + "scope": null + } + ], + "window.Window.display": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/window.rs:834" + ], + "scope": null + } + ], + "window.Window.focus_direction": [ + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/window/navigation.rs:129" + ], + "scope": null + } + ], + "window.Window.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/window.rs:798" + ], + "scope": null + } + ], + "window.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "crates/libtmux/src/window.rs:688" + ], + "scope": null + } + ], + "window.Window.last_pane": [ + { + "command": "last-pane", + "evidence": [ + "crates/libtmux/src/window/navigation.rs:188" + ], + "scope": null + } + ], + "window.Window.link_to": [ + { + "command": "link-window", + "evidence": [ + "crates/libtmux/src/window.rs:1060" + ], + "scope": null + } + ], + "window.Window.move_to": [ + { + "command": "move-window", + "evidence": [ + "crates/libtmux/src/window.rs:941" + ], + "scope": null + } + ], + "window.Window.next_layout": [ + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/window.rs:613", + "crates/libtmux/src/window.rs:597" + ], + "scope": null + } + ], "window.Window.panes": [ { "command": "list-panes", @@ -51,6 +1015,107 @@ "reviewed": true, "scope": "window" } + ], + "window.Window.previous_layout": [ + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/window.rs:613", + "crates/libtmux/src/window.rs:606" + ], + "scope": null + } + ], + "window.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "crates/libtmux/src/window.rs:387" + ], + "scope": null + } + ], + "window.Window.resize": [ + { + "command": "resize-window", + "evidence": [ + "crates/libtmux/src/window.rs:1102" + ], + "scope": null + } + ], + "window.Window.resize_by": [ + { + "command": "resize-window", + "evidence": [ + "crates/libtmux/src/window.rs:999" + ], + "scope": null + } + ], + "window.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "crates/libtmux/src/window.rs:570" + ], + "scope": null + } + ], + "window.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "crates/libtmux/src/window.rs:668" + ], + "scope": null + } + ], + "window.Window.select": [ + { + "command": "select-window", + "evidence": [ + "crates/libtmux/src/window.rs:419" + ], + "scope": null + } + ], + "window.Window.select_layout": [ + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/window.rs:491" + ], + "scope": null + } + ], + "window.Window.split": [ + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:440", + "crates/libtmux/src/window.rs:367" + ], + "scope": null + } + ], + "window.Window.swap_with": [ + { + "command": "swap-window", + "evidence": [ + "crates/libtmux/src/window.rs:895" + ], + "scope": null + } + ], + "window.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "crates/libtmux/src/window.rs:709" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json index b17839239..4c3bd2263 100644 --- a/site/src/data/tmux-usage/ruby.json +++ b/site/src/data/tmux-usage/ruby.json @@ -1,12 +1,551 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "ruby", "repo": "libtmux/libtmux-ruby", "revision": "9b1545562a112353c2c893a1d3e8c0d9b4b51f8d", "schemaVersion": 1, "symbols": { + "LibTmux::Async::ControlConnection#pause_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:489" + ], + "scope": null + } + ], + "LibTmux::Async::ControlConnection#resume_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:493" + ], + "scope": null + } + ], + "LibTmux::Async::Server#delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:63" + ], + "scope": null + } + ], + "LibTmux::Async::Server#display": [ + { + "command": "display-message", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:21" + ], + "scope": null + } + ], + "LibTmux::Async::Server#environment": [ + { + "command": "show-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:228", + "gems/libtmux/lib/libtmux/operations.rb:86" + ], + "scope": null + } + ], + "LibTmux::Async::Server#kill": [ + { + "command": "kill-server", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:137" + ], + "scope": null + } + ], + "LibTmux::Async::Server#list_buffers": [ + { + "command": "list-buffers", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:67" + ], + "scope": null + } + ], + "LibTmux::Async::Server#list_clients": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:95" + ], + "scope": null + } + ], + "LibTmux::Async::Server#new_session": [ + { + "command": "new-session", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:142" + ], + "scope": null + } + ], + "LibTmux::Async::Server#read_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:59" + ], + "scope": null + } + ], + "LibTmux::Async::Server#set_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:223", + "gems/libtmux/lib/libtmux/operations.rb:82" + ], + "scope": null + } + ], + "LibTmux::Async::Server#source_file": [ + { + "command": "source-file", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:43" + ], + "scope": null + } + ], + "LibTmux::Async::Server#switch_client": [ + { + "command": "switch-client", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "scope": null + } + ], + "LibTmux::Async::Server#unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:90" + ], + "scope": null + } + ], + "LibTmux::Async::Server#wait_for": [ + { + "command": "wait-for", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:51" + ], + "scope": null + } + ], + "LibTmux::Async::Server#write_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:55" + ], + "scope": null + } + ], + "LibTmux::ControlConnection#pause_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:489" + ], + "scope": null + } + ], + "LibTmux::ControlConnection#resume_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:493" + ], + "scope": null + } + ], + "LibTmux::Hooks#list": [ + { + "command": "show-hooks", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61" + ], + "scope": null + } + ], + "LibTmux::Hooks#run": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:177" + ], + "scope": null + } + ], + "LibTmux::Hooks#set": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:173" + ], + "scope": null + } + ], + "LibTmux::Hooks#unset": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:107" + ], + "scope": null + }, + { + "command": "set-option", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:107" + ], + "scope": null + } + ], + "LibTmux::Options#list": [ + { + "command": "show-hooks", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61" + ], + "scope": null + } + ], + "LibTmux::Options#set": [ + { + "command": "set-option", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:103" + ], + "scope": null + } + ], + "LibTmux::Options#unset": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:107" + ], + "scope": null + }, + { + "command": "set-option", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:107" + ], + "scope": null + } + ], + "LibTmux::Pane#break_out": [ + { + "command": "break-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:350" + ], + "scope": null + } + ], + "LibTmux::Pane#capture": [ + { + "command": "capture-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:175" + ], + "scope": null + } + ], + "LibTmux::Pane#copy_command": [ + { + "command": "send-keys", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:400" + ], + "scope": null + } + ], + "LibTmux::Pane#copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:385" + ], + "scope": null + } + ], + "LibTmux::Pane#join": [ + { + "command": "join-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:341" + ], + "scope": null + } + ], + "LibTmux::Pane#move": [ + { + "command": "move-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:345" + ], + "scope": null + } + ], + "LibTmux::Pane#paste": [ + { + "command": "paste-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:362" + ], + "scope": null + } + ], + "LibTmux::Pane#pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:375" + ], + "scope": null + } + ], + "LibTmux::Pane#resize": [ + { + "command": "resize-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:319" + ], + "scope": null + } + ], + "LibTmux::Pane#respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:356" + ], + "scope": null + } + ], + "LibTmux::Pane#select": [ + { + "command": "select-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:315" + ], + "scope": null + } + ], + "LibTmux::Pane#send_keys": [ + { + "command": "send-keys", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:202" + ], + "scope": null + } + ], + "LibTmux::Pane#send_text": [ + { + "command": "send-keys", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:196" + ], + "scope": null + } + ], + "LibTmux::Pane#swap": [ + { + "command": "swap-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:337" + ], + "scope": null + } + ], + "LibTmux::Server#attach": [ + { + "command": "attach-session", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:60" + ], + "scope": null + } + ], + "LibTmux::Server#delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:63" + ], + "scope": null + } + ], + "LibTmux::Server#display": [ + { + "command": "display-message", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:21" + ], + "scope": null + } + ], + "LibTmux::Server#environment": [ + { + "command": "show-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:228", + "gems/libtmux/lib/libtmux/operations.rb:86" + ], + "scope": null + } + ], + "LibTmux::Server#kill": [ + { + "command": "kill-server", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:137" + ], + "scope": null + } + ], + "LibTmux::Server#list_buffers": [ + { + "command": "list-buffers", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:67" + ], + "scope": null + } + ], + "LibTmux::Server#list_clients": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:95" + ], + "scope": null + } + ], "LibTmux::Server#list_panes": [ { "command": "list-panes", @@ -18,6 +557,88 @@ "scope": "server" } ], + "LibTmux::Server#new_session": [ + { + "command": "new-session", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:142" + ], + "scope": null + } + ], + "LibTmux::Server#read_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:59" + ], + "scope": null + } + ], + "LibTmux::Server#set_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:223", + "gems/libtmux/lib/libtmux/operations.rb:82" + ], + "scope": null + } + ], + "LibTmux::Server#source_file": [ + { + "command": "source-file", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:43" + ], + "scope": null + } + ], + "LibTmux::Server#switch_client": [ + { + "command": "switch-client", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "scope": null + } + ], + "LibTmux::Server#unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:90" + ], + "scope": null + } + ], + "LibTmux::Server#wait_for": [ + { + "command": "wait-for", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:51" + ], + "scope": null + } + ], + "LibTmux::Server#write_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:55" + ], + "scope": null + } + ], + "LibTmux::Session#link_window": [ + { + "command": "link-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:272" + ], + "scope": null + } + ], "LibTmux::Session#list_panes": [ { "command": "list-panes", @@ -29,6 +650,24 @@ "scope": "session" } ], + "LibTmux::Session#rename": [ + { + "command": "rename-session", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:261" + ], + "scope": null + } + ], + "LibTmux::Session#unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:284" + ], + "scope": null + } + ], "LibTmux::Window#list_panes": [ { "command": "list-panes", @@ -39,6 +678,96 @@ "reviewed": true, "scope": "window" } + ], + "LibTmux::Window#rename": [ + { + "command": "rename-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:290" + ], + "scope": null + } + ], + "LibTmux::Window#resize": [ + { + "command": "resize-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:309" + ], + "scope": null + } + ], + "LibTmux::Window#respawn": [ + { + "command": "respawn-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:295" + ], + "scope": null + } + ], + "LibTmux::Window#select_layout": [ + { + "command": "select-layout", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:159" + ], + "scope": null + } + ], + "LibTmux::WindowLink#display": [ + { + "command": "display-message", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:245" + ], + "scope": null + } + ], + "LibTmux::WindowLink#kill": [ + { + "command": "kill-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:228" + ], + "scope": null + } + ], + "LibTmux::WindowLink#move": [ + { + "command": "move-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:235" + ], + "scope": null + } + ], + "LibTmux::WindowLink#select": [ + { + "command": "select-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:220" + ], + "scope": null + } + ], + "LibTmux::WindowLink#swap": [ + { + "command": "swap-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:240" + ], + "scope": null + } + ], + "LibTmux::WindowLink#unlink": [ + { + "command": "unlink-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:224" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index 9dd5a101d..4f9a6e080 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -1,10 +1,3037 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "scala", "repo": "libtmux/libtmux-java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "schemaVersion": 1, - "symbols": {} + "symbols": { + "io.github.libtmux.scaladsl.cats.Buffers.delete": [ + { + "command": "delete-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:105" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.delete" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.list": [ + { + "command": "list-buffers", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.list" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.load": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.load" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.save": [ + { + "command": "save-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:121" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.save" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.set": [ + { + "command": "set-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:69" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.show": [ + { + "command": "show-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:85" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.show" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.detach" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:52" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.detachOthers" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:78" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.redraw" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:63" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:69" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.switchTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Commands.list": [ + { + "command": "list-commands", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Commands.java:19" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Commands.java:21" + ], + "port": "java", + "symbol": "io.github.libtmux.Commands.Commands.list" + } + } + ], + "io.github.libtmux.scaladsl.cats.Control.attachUnfenced": [ + { + "command": "attach-session", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" + ], + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.get": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:83" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:85" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.get" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.isRemoved": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:94" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:96" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.isRemoved" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.remove": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:177" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.remove" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.set": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.setExpanded": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:160" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.setExpanded" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.unset": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:166" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.unset" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.all": [ + { + "command": "show-hooks", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:125" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.all" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.append": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:95" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.append" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.run": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:112" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.run" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.set": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.unset": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.unset" + } + } + ], + "io.github.libtmux.scaladsl.cats.Keys.bind": [ + { + "command": "bind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Keys.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:57" + ], + "port": "java", + "symbol": "io.github.libtmux.Keys.Keys.bind" + } + } + ], + "io.github.libtmux.scaladsl.cats.Keys.list": [ + { + "command": "list-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Keys.java:86" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:88" + ], + "port": "java", + "symbol": "io.github.libtmux.Keys.Keys.list" + } + } + ], + "io.github.libtmux.scaladsl.cats.Keys.unbind": [ + { + "command": "unbind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Keys.java:66" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:69" + ], + "port": "java", + "symbol": "io.github.libtmux.Keys.Keys.unbind" + } + } + ], + "io.github.libtmux.scaladsl.cats.MessageLog.lines": [ + { + "command": "show-messages", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:30" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" + ], + "port": "java", + "symbol": "io.github.libtmux.MessageLog.MessageLog.lines" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.all": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.all" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.all" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.append": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:347" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:349" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.append" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.effective": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.effective" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.effective" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.setExpanded": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:362" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:364" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.setExpanded" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.setIfAbsent": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:336" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:338" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.setIfAbsent" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.unset": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:368" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:370" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.unset" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:831", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + }, + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1050" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.clearHistory" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:225" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.copyMode" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:252" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.exitMode" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:732" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1066" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.joinTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1076" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.kill" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste" + } + }, + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:923" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:807" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.pipeTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:209" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.resize" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:280" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:755" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.respawn" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:272" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.retitle" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:258" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.select" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.sendKeys": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.sendLiteral": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:814" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.stopPiping" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1056" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.swapWith" + } + } + ], + "io.github.libtmux.scaladsl.cats.Prompt.clear": [ + { + "command": "clear-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" + ], + "port": "java", + "symbol": "io.github.libtmux.Prompt.Prompt.clear" + } + }, + { + "command": "show-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:49", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" + ], + "port": "java", + "symbol": "io.github.libtmux.Prompt.Prompt.clear" + } + } + ], + "io.github.libtmux.scaladsl.cats.Prompt.history": [ + { + "command": "show-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + ], + "port": "java", + "symbol": "io.github.libtmux.Prompt.Prompt.history" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:412" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:214" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.isAlive" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:311" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + }, + { + "command": "kill-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:311" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:445" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.lock" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:531" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.paneFields" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:995" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.panes" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:226" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.requireAlive" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:902" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.sessions" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:875" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Server.Server.snapshot" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:624" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.sourceFile" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:957" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.windows" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:133" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.detachClients" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:247" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:252" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:269" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.kill" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.lastWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:110" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.nextWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:116" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.previousWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:262" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.rename" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:93" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:104" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.selectWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Shell.capturing": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Shell.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:55" + ], + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.capturing" + } + } + ], + "io.github.libtmux.scaladsl.cats.Shell.choose": [ + { + "command": "if-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Shell.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:68" + ], + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.choose" + } + } + ], + "io.github.libtmux.scaladsl.cats.Shell.run": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Shell.java:33" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:36" + ], + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.run" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:371" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:376" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.applyLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:395" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.displayPopup" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:203" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:209" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:401" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.kill" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:230" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:236" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.linkTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:250" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:257" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.moveTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:327" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.nextLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.previousLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:223" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.rename" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:275" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:281" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:380" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.respawn" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:309" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.rotate" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.select": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:114" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.select" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:319" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.selectLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:244" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.unlink" + } + } + ], + "io.github.libtmux.scaladsl.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.detach" + } + } + ], + "io.github.libtmux.scaladsl.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:52" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.detachOthers" + } + } + ], + "io.github.libtmux.scaladsl.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:78" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.redraw" + } + } + ], + "io.github.libtmux.scaladsl.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:63" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:69" + ], + "port": "java", + "symbol": "io.github.libtmux.Client.Client.switchTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:831", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + }, + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + } + ], + "io.github.libtmux.scaladsl.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1050" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.clearHistory" + } + } + ], + "io.github.libtmux.scaladsl.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:225" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.copyMode" + } + } + ], + "io.github.libtmux.scaladsl.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:252" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.exitMode" + } + } + ], + "io.github.libtmux.scaladsl.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:732" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.expand" + } + } + ], + "io.github.libtmux.scaladsl.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1066" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.joinTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1076" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.kill" + } + } + ], + "io.github.libtmux.scaladsl.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste" + } + }, + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste" + } + } + ], + "io.github.libtmux.scaladsl.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:923" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" + } + } + ], + "io.github.libtmux.scaladsl.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:807" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.pipeTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:209" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.resize" + } + } + ], + "io.github.libtmux.scaladsl.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:280" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:755" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.respawn" + } + } + ], + "io.github.libtmux.scaladsl.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:272" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.retitle" + } + } + ], + "io.github.libtmux.scaladsl.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:258" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.select" + } + } + ], + "io.github.libtmux.scaladsl.Pane.sendKeys": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + } + ], + "io.github.libtmux.scaladsl.Pane.sendLiteral": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + } + ], + "io.github.libtmux.scaladsl.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:814" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.stopPiping" + } + } + ], + "io.github.libtmux.scaladsl.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1056" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + ], + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.swapWith" + } + } + ], + "io.github.libtmux.scaladsl.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:412" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.expand" + } + } + ], + "io.github.libtmux.scaladsl.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:214" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.isAlive" + } + } + ], + "io.github.libtmux.scaladsl.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:311" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + }, + { + "command": "kill-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:311" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:314" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + } + ], + "io.github.libtmux.scaladsl.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + } + ], + "io.github.libtmux.scaladsl.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:445" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.lock" + } + } + ], + "io.github.libtmux.scaladsl.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:531" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.paneFields" + } + } + ], + "io.github.libtmux.scaladsl.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:995" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.panes" + } + } + ], + "io.github.libtmux.scaladsl.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:226" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.requireAlive" + } + } + ], + "io.github.libtmux.scaladsl.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:902" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.sessions" + } + } + ], + "io.github.libtmux.scaladsl.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:875" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Server.Server.snapshot" + } + } + ], + "io.github.libtmux.scaladsl.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:624" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.sourceFile" + } + } + ], + "io.github.libtmux.scaladsl.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:957" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "port": "java", + "symbol": "io.github.libtmux.Server.Server.windows" + } + } + ], + "io.github.libtmux.scaladsl.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:133" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.detachClients" + } + } + ], + "io.github.libtmux.scaladsl.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:247" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:252" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.expand" + } + } + ], + "io.github.libtmux.scaladsl.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:269" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.kill" + } + } + ], + "io.github.libtmux.scaladsl.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.lastWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:110" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.nextWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:116" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.previousWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:262" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.rename" + } + } + ], + "io.github.libtmux.scaladsl.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:93" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:104" + ], + "port": "java", + "symbol": "io.github.libtmux.Session.Session.selectWindow" + } + } + ], + "io.github.libtmux.scaladsl.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:371" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:376" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.applyLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:395" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.displayPopup" + } + } + ], + "io.github.libtmux.scaladsl.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:203" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:209" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.expand" + } + } + ], + "io.github.libtmux.scaladsl.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:401" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.kill" + } + } + ], + "io.github.libtmux.scaladsl.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:230" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:236" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.linkTo" + } + } + ], + "io.github.libtmux.scaladsl.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:250" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:257" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.moveTo" + } + } + ], + "io.github.libtmux.scaladsl.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:327" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.nextLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.previousLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:223" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.rename" + } + } + ], + "io.github.libtmux.scaladsl.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:275" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:281" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:380" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.respawn" + } + } + ], + "io.github.libtmux.scaladsl.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:309" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.rotate" + } + } + ], + "io.github.libtmux.scaladsl.Window.select": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:114" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.select" + } + } + ], + "io.github.libtmux.scaladsl.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:319" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.selectLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:244" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "port": "java", + "symbol": "io.github.libtmux.Window.Window.unlink" + } + } + ] + } } diff --git a/site/src/data/tmux-usage/scopes.json b/site/src/data/tmux-usage/scopes.json index b229ae3a5..740e12fe9 100644 --- a/site/src/data/tmux-usage/scopes.json +++ b/site/src/data/tmux-usage/scopes.json @@ -7,6 +7,12 @@ { "id": "session", "label": "Session", "flag": "s", "function": "cmd_list_panes_session" }, { "id": "window", "label": "Window", "flag": "", "target": "t", "function": "cmd_list_panes_window" } ] + }, + "list-windows": { + "scopes": [ + { "id": "server", "label": "Server", "flag": "a", "function": "cmd_list_windows_server", "inline": ["3.7c"] }, + { "id": "session", "label": "Session", "flag": "", "target": "t", "function": "cmd_list_windows_session", "inline": ["3.7c"] } + ] } } } diff --git a/site/src/data/tmux-usage/swift.json b/site/src/data/tmux-usage/swift.json index 5a557efd3..94931e572 100644 --- a/site/src/data/tmux-usage/swift.json +++ b/site/src/data/tmux-usage/swift.json @@ -1,12 +1,469 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "swift", "repo": "libtmux/libtmux-swift", "revision": "7993e7044347629b08020e9b02ae8bcffa0e5898", "schemaVersion": 1, "symbols": { + "ControlSession.stopWatching(_:)": [ + { + "command": "refresh-client", + "evidence": [ + "Sources/LibTmux/Watch.swift:151" + ], + "scope": null + } + ], + "ControlSession.watch(_:)": [ + { + "command": "refresh-client", + "evidence": [ + "Sources/LibTmux/Watch.swift:139" + ], + "scope": null + } + ], + "Server.breakPane(_:from:named:)": [ + { + "command": "break-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:127" + ], + "scope": null + }, + { + "command": "if-shell", + "evidence": [ + "Sources/LibTmux/Navigation.swift:136" + ], + "scope": null + } + ], + "Server.buffer(named:)": [ + { + "command": "show-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:52" + ], + "scope": null + } + ], + "Server.buffers()": [ + { + "command": "list-buffers", + "evidence": [ + "Sources/LibTmux/Buffers.swift:8" + ], + "scope": null + } + ], + "Server.cancelModes(in:)": [ + { + "command": "copy-mode", + "evidence": [ + "Sources/LibTmux/Navigation.swift:205" + ], + "scope": null + } + ], + "Server.capture(_:includingHistory:)": [ + { + "command": "capture-pane", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:364", + "Sources/LibTmux/PaneInteraction.swift:94" + ], + "scope": null + } + ], + "Server.capture(_:includingHistory:maximumLines:)": [ + { + "command": "capture-pane", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:296", + "Sources/LibTmux/PaneInteraction.swift:103" + ], + "scope": null + } + ], + "Server.captureRange(_:startingAt:endingAt:joiningWrappedLines:maximumLines:)": [ + { + "command": "capture-pane", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:296", + "Sources/LibTmux/PaneInteraction.swift:120" + ], + "scope": null + } + ], + "Server.clearHistory(_:)": [ + { + "command": "clear-history", + "evidence": [ + "Sources/LibTmux/Navigation.swift:213" + ], + "scope": null + } + ], + "Server.clients()": [ + { + "command": "list-clients", + "evidence": [ + "Sources/LibTmux/Server.swift:296" + ], + "scope": null + } + ], + "Server.clients(where:)": [ + { + "command": "list-clients", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:103" + ], + "scope": null + } + ], + "Server.deleteBuffer(named:)": [ + { + "command": "delete-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:61" + ], + "scope": null + } + ], + "Server.detach(_:)": [ + { + "command": "detach-client", + "evidence": [ + "Sources/LibTmux/Navigation.swift:267" + ], + "scope": null + } + ], + "Server.detachClients(from:)": [ + { + "command": "detach-client", + "evidence": [ + "Sources/LibTmux/Navigation.swift:279" + ], + "scope": null + } + ], + "Server.enterCopyMode(_:)": [ + { + "command": "copy-mode", + "evidence": [ + "Sources/LibTmux/Navigation.swift:193" + ], + "scope": null + } + ], + "Server.environment(_:)": [ + { + "command": "show-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:68" + ], + "scope": null + } + ], + "Server.environmentValue(_:in:)": [ + { + "command": "show-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:84" + ], + "scope": null + } + ], + "Server.format(_:)": [ + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:397" + ], + "scope": null + } + ], + "Server.format(_:for:)": [ + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:359" + ], + "scope": null + } + ], + "Server.hooks(_:)": [ + { + "command": "show-hooks", + "evidence": [ + "Sources/LibTmux/Options.swift:224" + ], + "scope": null + } + ], + "Server.incarnation()": [ + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Server.swift:347" + ], + "scope": null + } + ], + "Server.isRunning()": [ + { + "command": "list-sessions", + "evidence": [ + "Sources/LibTmux/Server.swift:400" + ], + "scope": null + } + ], + "Server.join(_:into:direction:size:)": [ + { + "command": "join-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:183" + ], + "scope": null + } + ], + "Server.kill(_:)": [ + { + "command": "kill-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:123" + ], + "scope": null + }, + { + "command": "kill-session", + "evidence": [ + "Sources/LibTmux/Mutations.swift:109" + ], + "scope": null + }, + { + "command": "kill-window", + "evidence": [ + "Sources/LibTmux/Mutations.swift:116" + ], + "scope": null + } + ], + "Server.killServer()": [ + { + "command": "kill-server", + "evidence": [ + "Sources/LibTmux/Navigation.swift:307" + ], + "scope": null + } + ], + "Server.link(_:into:)": [ + { + "command": "link-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:20" + ], + "scope": null + }, + { + "command": "move-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:20" + ], + "scope": null + } + ], + "Server.loadBuffer(from:named:)": [ + { + "command": "load-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:81" + ], + "scope": null + } + ], + "Server.move(_:to:at:)": [ + { + "command": "link-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:10" + ], + "scope": null + }, + { + "command": "move-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:10" + ], + "scope": null + } + ], + "Server.newSession(named:startDirectory:windowName:width:height:)": [ + { + "command": "new-session", + "evidence": [ + "Sources/LibTmux/Creation.swift:130" + ], + "scope": null + }, + { + "command": "resize-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:155" + ], + "scope": null + } + ], + "Server.newWindow(_:_:named:startDirectory:)": [ + { + "command": "new-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:233", + "Sources/LibTmux/Creation.swift:204" + ], + "scope": null + } + ], + "Server.newWindow(in:named:startDirectory:)": [ + { + "command": "new-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:233", + "Sources/LibTmux/Creation.swift:178" + ], + "scope": null + } + ], + "Server.nextLayout(_:)": [ + { + "command": "next-layout", + "evidence": [ + "Sources/LibTmux/Navigation.swift:102" + ], + "scope": null + } + ], + "Server.option(_:scope:)": [ + { + "command": "show-options", + "evidence": [ + "Sources/LibTmux/Options.swift:149", + "Sources/LibTmux/Options.swift:135" + ], + "scope": null + } + ], + "Server.options(_:)": [ + { + "command": "show-options", + "evidence": [ + "Sources/LibTmux/Options.swift:111" + ], + "scope": null + } + ], "Server.panes()": [ { "command": "list-panes", @@ -24,6 +481,429 @@ ], "scope": "server" } + ], + "Server.paste(buffer:into:)": [ + { + "command": "paste-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:106" + ], + "scope": null + } + ], + "Server.pipe(_:to:)": [ + { + "command": "pipe-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:394" + ], + "scope": null + } + ], + "Server.previousLayout(_:)": [ + { + "command": "previous-layout", + "evidence": [ + "Sources/LibTmux/Navigation.swift:109" + ], + "scope": null + } + ], + "Server.removeEnvironment(_:in:)": [ + { + "command": "set-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:135" + ], + "scope": null + } + ], + "Server.rename(_:to:)": [ + { + "command": "rename-session", + "evidence": [ + "Sources/LibTmux/Mutations.swift:32" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "Sources/LibTmux/Mutations.swift:40" + ], + "scope": null + } + ], + "Server.resize(_:by:toward:)": [ + { + "command": "resize-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:90" + ], + "scope": null + } + ], + "Server.resize(_:width:height:)": [ + { + "command": "resize-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:72" + ], + "scope": null + } + ], + "Server.resolvedOption(_:scope:)": [ + { + "command": "show-options", + "evidence": [ + "Sources/LibTmux/Options.swift:167" + ], + "scope": null + } + ], + "Server.respawn(_:running:killingExisting:)": [ + { + "command": "respawn-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:376" + ], + "scope": null + } + ], + "Server.respawn(_:running:killingExisting:startDirectory:)": [ + { + "command": "respawn-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:363" + ], + "scope": null + } + ], + "Server.rotate(_:upward:)": [ + { + "command": "rotate-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:94" + ], + "scope": null + } + ], + "Server.runHook(_:in:)": [ + { + "command": "set-hook", + "evidence": [ + "Sources/LibTmux/Options.swift:286" + ], + "scope": null + } + ], + "Server.saveBuffer(named:to:)": [ + { + "command": "save-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:95" + ], + "scope": null + } + ], + "Server.select(_:)": [ + { + "command": "select-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:20" + ], + "scope": null + }, + { + "command": "select-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:13" + ], + "scope": null + } + ], + "Server.selectLastPane(in:)": [ + { + "command": "last-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:55" + ], + "scope": null + } + ], + "Server.selectLastWindow(in:)": [ + { + "command": "last-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:43" + ], + "scope": null + } + ], + "Server.selectLayout(_:_:)": [ + { + "command": "select-layout", + "evidence": [ + "Sources/LibTmux/Mutations.swift:53" + ], + "scope": null + } + ], + "Server.selectNextWindow(in:)": [ + { + "command": "next-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:28" + ], + "scope": null + } + ], + "Server.selectPreviousWindow(in:)": [ + { + "command": "previous-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:35" + ], + "scope": null + } + ], + "Server.sendKeys(_:to:literally:)": [ + { + "command": "send-keys", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:44" + ], + "scope": null + } + ], + "Server.sessions()": [ + { + "command": "list-sessions", + "evidence": [ + "Sources/LibTmux/Server.swift:250" + ], + "scope": null + } + ], + "Server.sessions(where:)": [ + { + "command": "list-sessions", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:41" + ], + "scope": null + } + ], + "Server.setBuffer(_:named:)": [ + { + "command": "set-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:35" + ], + "scope": null + } + ], + "Server.setEnvironment(_:to:in:)": [ + { + "command": "set-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:51", + "Sources/LibTmux/Environment.swift:109" + ], + "scope": null + } + ], + "Server.setHook(_:to:at:in:)": [ + { + "command": "set-hook", + "evidence": [ + "Sources/LibTmux/Options.swift:260" + ], + "scope": null + } + ], + "Server.setOption(_:to:scope:)": [ + { + "command": "set-option", + "evidence": [ + "Sources/LibTmux/Options.swift:187" + ], + "scope": null + } + ], + "Server.setTitle(_:of:)": [ + { + "command": "select-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:226" + ], + "scope": null + } + ], + "Server.signal(_:)": [ + { + "command": "wait-for", + "evidence": [ + "Sources/LibTmux/Wait.swift:55" + ], + "scope": null + } + ], + "Server.snapshot()": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:311" + ], + "scope": "server" + } + ], + "Server.sourceFile(_:)": [ + { + "command": "source-file", + "evidence": [ + "Sources/LibTmux/Navigation.swift:325" + ], + "scope": null + } + ], + "Server.split(_:direction:size:startDirectory:)": [ + { + "command": "split-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:314", + "Sources/LibTmux/Creation.swift:285" + ], + "scope": null + } + ], + "Server.splitWindow(_:direction:size:startDirectory:)": [ + { + "command": "split-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:314", + "Sources/LibTmux/Creation.swift:258" + ], + "scope": null + } + ], + "Server.startServer()": [ + { + "command": "start-server", + "evidence": [ + "Sources/LibTmux/Navigation.swift:291" + ], + "scope": null + } + ], + "Server.swap(_:with:)": [ + { + "command": "swap-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:73" + ], + "scope": null + }, + { + "command": "swap-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:66" + ], + "scope": null + } + ], + "Server.toggleZoom(_:)": [ + { + "command": "resize-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:100" + ], + "scope": null + } + ], + "Server.unlink(_:)": [ + { + "command": "unlink-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:35" + ], + "scope": null + } + ], + "Server.unsetEnvironment(_:in:)": [ + { + "command": "set-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:123" + ], + "scope": null + } + ], + "Server.unsetHook(_:in:)": [ + { + "command": "set-hook", + "evidence": [ + "Sources/LibTmux/Options.swift:275" + ], + "scope": null + } + ], + "Server.unsetOption(_:scope:)": [ + { + "command": "set-option", + "evidence": [ + "Sources/LibTmux/Options.swift:209" + ], + "scope": null + } + ], + "Server.wait(for:)": [ + { + "command": "wait-for", + "evidence": [ + "Sources/LibTmux/Wait.swift:36" + ], + "scope": null + } + ], + "Server.windowLinks()": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:269" + ], + "scope": "server" + } + ], + "Server.windows()": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:262" + ], + "scope": "server" + } + ], + "Server.windows(where:)": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:62" + ], + "scope": "server" + } + ], + "Server.withControlMode(attachingTo:_:)": [ + { + "command": "attach-session", + "evidence": [ + "Sources/LibTmux/ControlMode.swift:177" + ], + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index 62531b515..dde3d53ec 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -1,12 +1,694 @@ { "commands": [ - "list-panes" + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" ], "port": "ts", "repo": "libtmux/libtmux-ts", "revision": "46cccfef2a546de55ce8b308249b8c76339089a0", "schemaVersion": 1, "symbols": { + "client.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:246", + "packages/libtmux/src/client.ts:95" + ], + "scope": null + } + ], + "client.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:256", + "packages/libtmux/src/client.ts:107" + ], + "scope": null + } + ], + "mcp.server.main": [ + { + "command": "display-message", + "evidence": [ + "packages/mcp/src/startup.ts:92", + "packages/mcp/src/server.ts:244" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "packages/mcp/src/startup.ts:89", + "packages/mcp/src/server.ts:244" + ], + "scope": null + }, + { + "command": "start-server", + "evidence": [ + "packages/mcp/src/startup.ts:88", + "packages/mcp/src/server.ts:244" + ], + "scope": null + } + ], + "pane.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:147", + "packages/libtmux/src/pane.ts:517" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:160", + "packages/libtmux/src/pane.ts:517" + ], + "scope": null + } + ], + "pane.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:47", + "packages/libtmux/src/pane.ts:345" + ], + "scope": null + } + ], + "pane.Pane.chooseBuffer": [ + { + "command": "choose-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:83", + "packages/libtmux/src/pane.ts:609" + ], + "scope": null + } + ], + "pane.Pane.chooseTree": [ + { + "command": "choose-tree", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:72", + "packages/libtmux/src/pane.ts:591" + ], + "scope": null + } + ], + "pane.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:65", + "packages/libtmux/src/pane.ts:356" + ], + "scope": null + } + ], + "pane.Pane.customizeMode": [ + { + "command": "customize-mode", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:104", + "packages/libtmux/src/pane.ts:659" + ], + "scope": null + } + ], + "pane.Pane.displayMenu": [ + { + "command": "display-menu", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:51", + "packages/libtmux/src/pane.ts:573" + ], + "scope": null + } + ], + "pane.Pane.displayMessage": [ + { + "command": "display-message", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:60", + "packages/libtmux/src/pane.ts:476" + ], + "scope": null + } + ], + "pane.Pane.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:22", + "packages/libtmux/src/pane.ts:562" + ], + "scope": null + } + ], + "pane.Pane.enterCopyMode": [ + { + "command": "copy-mode", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:216", + "packages/libtmux/src/pane.ts:540" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:220", + "packages/libtmux/src/pane.ts:540" + ], + "scope": null + } + ], + "pane.Pane.exitCopyMode": [ + { + "command": "copy-mode", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:216", + "packages/libtmux/src/pane.ts:551" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:220", + "packages/libtmux/src/pane.ts:551" + ], + "scope": null + } + ], + "pane.Pane.findWindow": [ + { + "command": "find-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:94", + "packages/libtmux/src/pane.ts:627" + ], + "scope": null + } + ], + "pane.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:192", + "packages/libtmux/src/pane.ts:529" + ], + "scope": null + } + ], + "pane.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "packages/libtmux/src/pane.ts:244" + ], + "scope": null + } + ], + "pane.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:439", + "packages/libtmux/src/pane.ts:452" + ], + "scope": null + } + ], + "pane.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:93", + "packages/libtmux/src/pane.ts:503" + ], + "scope": null + } + ], + "pane.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:317", + "packages/libtmux/src/pane.ts:370" + ], + "scope": null + } + ], + "pane.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:80", + "packages/libtmux/src/pane.ts:487" + ], + "scope": null + } + ], + "pane.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "packages/libtmux/src/pane.ts:423" + ], + "scope": null + } + ], + "pane.Pane.sendKeys": [ + { + "command": "send-keys", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:30", + "packages/libtmux/src/pane.ts:286" + ], + "scope": null + } + ], + "pane.Pane.sendPrefix": [ + { + "command": "send-prefix", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:99", + "packages/libtmux/src/pane.ts:641" + ], + "scope": null + } + ], + "pane.Pane.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/pane.ts:154" + ], + "scope": null + } + ], + "pane.Pane.setTitle": [ + { + "command": "select-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:403", + "packages/libtmux/src/pane.ts:438" + ], + "scope": null + } + ], + "pane.Pane.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/pane.ts:143" + ], + "scope": null + } + ], + "pane.Pane.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/pane.ts:196" + ], + "scope": null + } + ], + "pane.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:380", + "packages/libtmux/src/pane.ts:412" + ], + "scope": null + } + ], + "pane.Pane.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/pane.ts:165" + ], + "scope": null + } + ], + "pane.Pane.unzoom": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/pane.ts:400" + ], + "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/pane.ts:400" + ], + "scope": null + } + ], + "pane.Pane.zoom": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:272", + "packages/libtmux/src/pane.ts:386" + ], + "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:276", + "packages/libtmux/src/pane.ts:386" + ], + "scope": null + }, + { + "command": "select-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:270", + "packages/libtmux/src/pane.ts:386" + ], + "scope": null + } + ], + "server.Server.checkAlive": [ + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:160", + "packages/libtmux/src/server.ts:1317" + ], + "scope": null + } + ], + "server.Server.deleteBuffer": [ + { + "command": "delete-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:116", + "packages/libtmux/src/server.ts:1257" + ], + "scope": null + } + ], + "server.Server.getEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:71", + "packages/libtmux/src/server.ts:1016" + ], + "scope": null + } + ], + "server.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:25", + "packages/libtmux/src/server.ts:1148" + ], + "scope": null + } + ], + "server.Server.ifShell": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:39", + "packages/libtmux/src/server.ts:1284" + ], + "scope": null + } + ], + "server.Server.isAlive": [ + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:132", + "packages/libtmux/src/server.ts:1301" + ], + "scope": null + } + ], + "server.Server.kill": [ + { + "command": "kill-server", + "evidence": [ + "packages/libtmux/src/_internal/operations/mutations.ts:90", + "packages/libtmux/src/server.ts:1126" + ], + "scope": null + } + ], + "server.Server.listBuffers": [ + { + "command": "list-buffers", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:87", + "packages/libtmux/src/server.ts:1246" + ], + "scope": null + } + ], + "server.Server.listCommands": [ + { + "command": "list-commands", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:42", + "packages/libtmux/src/server.ts:1177" + ], + "scope": null + } + ], + "server.Server.loadBuffer": [ + { + "command": "load-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:69", + "packages/libtmux/src/server.ts:1191" + ], + "scope": null + } + ], + "server.Server.removeEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:147", + "packages/libtmux/src/server.ts:1050" + ], + "scope": null + } + ], + "server.Server.runShell": [ + { + "command": "run-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:19", + "packages/libtmux/src/server.ts:1273" + ], + "scope": null + } + ], + "server.Server.saveBuffer": [ + { + "command": "save-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:109", + "packages/libtmux/src/server.ts:835" + ], + "scope": null + } + ], + "server.Server.setBuffer": [ + { + "command": "set-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:54", + "packages/libtmux/src/server.ts:1207" + ], + "scope": null + } + ], + "server.Server.setEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:101", + "packages/libtmux/src/server.ts:1027" + ], + "scope": null + } + ], + "server.Server.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/server.ts:917" + ], + "scope": null + } + ], + "server.Server.showBuffer": [ + { + "command": "show-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:77", + "packages/libtmux/src/server.ts:1219" + ], + "scope": null + } + ], + "server.Server.showBufferBytes": [ + { + "command": "show-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:82", + "packages/libtmux/src/server.ts:1234" + ], + "scope": null + } + ], + "server.Server.showEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:43", + "packages/libtmux/src/server.ts:1005" + ], + "scope": null + } + ], + "server.Server.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/server.ts:902" + ], + "scope": null + } + ], + "server.Server.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/server.ts:798" + ], + "scope": null + } + ], "server.Server.snapshot": [ { "command": "list-panes", @@ -20,6 +702,365 @@ "reviewed": true, "scope": "server" } + ], + "server.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:37", + "packages/libtmux/src/server.ts:1165" + ], + "scope": null + } + ], + "server.Server.unsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:124", + "packages/libtmux/src/server.ts:1038" + ], + "scope": null + } + ], + "server.Server.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/server.ts:928" + ], + "scope": null + } + ], + "server.Server.validateLayouts": [ + { + "command": "display-message", + "evidence": [ + "packages/libtmux/src/_internal/operations/layout.ts:42", + "packages/libtmux/src/server.ts:955" + ], + "scope": null + } + ], + "session.Session.detach": [ + { + "command": "detach-client", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:246", + "packages/libtmux/src/session.ts:418" + ], + "scope": null + } + ], + "session.Session.getEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:71", + "packages/libtmux/src/session.ts:223" + ], + "scope": null + } + ], + "session.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "packages/libtmux/src/session.ts:339" + ], + "scope": null + } + ], + "session.Session.removeEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:147", + "packages/libtmux/src/session.ts:257" + ], + "scope": null + } + ], + "session.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:11", + "packages/libtmux/src/session.ts:367" + ], + "scope": null + } + ], + "session.Session.selectWindow": [ + { + "command": "last-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:34", + "packages/libtmux/src/session.ts:378" + ], + "scope": null + }, + { + "command": "next-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:35", + "packages/libtmux/src/session.ts:378" + ], + "scope": null + }, + { + "command": "previous-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:37", + "packages/libtmux/src/session.ts:378" + ], + "scope": null + }, + { + "command": "select-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:40", + "packages/libtmux/src/session.ts:378" + ], + "scope": null + } + ], + "session.Session.setEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:101", + "packages/libtmux/src/session.ts:234" + ], + "scope": null + } + ], + "session.Session.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/session.ts:186" + ], + "scope": null + } + ], + "session.Session.showEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:43", + "packages/libtmux/src/session.ts:212" + ], + "scope": null + } + ], + "session.Session.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/session.ts:171" + ], + "scope": null + } + ], + "session.Session.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/session.ts:133" + ], + "scope": null + } + ], + "session.Session.unsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:124", + "packages/libtmux/src/session.ts:245" + ], + "scope": null + } + ], + "session.Session.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/session.ts:197" + ], + "scope": null + } + ], + "window.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "packages/libtmux/src/window.ts:398" + ], + "scope": null + } + ], + "window.Window.link": [ + { + "command": "link-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:61", + "packages/libtmux/src/window.ts:439" + ], + "scope": null + } + ], + "window.Window.move": [ + { + "command": "move-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:48", + "packages/libtmux/src/window.ts:427" + ], + "scope": null + } + ], + "window.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:28", + "packages/libtmux/src/window.ts:411" + ], + "scope": null + } + ], + "window.Window.resize": [ + { + "command": "resize-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:353", + "packages/libtmux/src/window.ts:358" + ], + "scope": null + } + ], + "window.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:112", + "packages/libtmux/src/window.ts:372" + ], + "scope": null + } + ], + "window.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:427", + "packages/libtmux/src/window.ts:343" + ], + "scope": null + } + ], + "window.Window.select": [ + { + "command": "select-window", + "evidence": [ + "packages/libtmux/src/window.ts:535" + ], + "scope": null + } + ], + "window.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:242", + "packages/libtmux/src/window.ts:524" + ], + "scope": null + } + ], + "window.Window.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/window.ts:206" + ], + "scope": null + } + ], + "window.Window.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/window.ts:195" + ], + "scope": null + } + ], + "window.Window.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/window.ts:248" + ], + "scope": null + } + ], + "window.Window.swapWith": [ + { + "command": "swap-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:94", + "packages/libtmux/src/window.ts:484" + ], + "scope": null + } + ], + "window.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:71", + "packages/libtmux/src/window.ts:461" + ], + "scope": null + } + ], + "window.Window.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/window.ts:217" + ], + "scope": null + } + ], + "window.Window.unzoom": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/window.ts:387" + ], + "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/window.ts:387" + ], + "scope": null + } ] } } diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts index dc04601f9..9ccb5911e 100644 --- a/site/src/lib/tmux-library-usage.ts +++ b/site/src/lib/tmux-library-usage.ts @@ -35,8 +35,8 @@ export interface UsageUse { evidence: string[] /** A reviewed claim the generator checked line by line, not a scan result. */ reviewed?: boolean - /** The library symbol a wrapper's claim stands on. */ - via?: { port: string; symbol: string } + /** The core library symbol a wrapper forwards to, and the lines that show it sends. */ + via?: { port: string; symbol: string; evidence: string[]; reviewed?: boolean } } export interface UsageDocument { @@ -57,6 +57,8 @@ export interface TmuxScope { target?: string /** The C function that lists at this scope. */ function: string + /** Releases that dispatch on the scope inline, with no function for it. */ + inline?: string[] } export const TMUX_USAGE: Record = { @@ -76,13 +78,50 @@ export function tmuxScopes(command: string): TmuxScope[] { } /** - * A direct sender is the symbol whose own body sends the command. A call - * through a helper is recorded as evidence and listed with the method, but - * not on the command's pages, which would otherwise list every method that - * refreshes a pane afterwards. + * A direct sender is the symbol whose own body sends the command, and is + * listed. A call through a helper is recorded as evidence and shown with the + * method, but is listed on the command's pages only when the method's own name + * says it is for that command: `Pane.sendKeys` sends `send-keys` through a + * helper and is listed, while a method that refreshes a pane afterwards sends + * `list-panes` through one and is not. A wrapper is listed when the core method + * it forwards to is. */ export const LISTED_MAX_HOPS = 0 +/** Words a method may use for the verb of a command, where the library's wording differs from tmux's. */ +const VERB_ALIASES: Record = { + list: ['list', 'search', 'find', 'get', 'all', 'snapshot', 'read'], + show: ['show', 'get', 'read', 'all'], + display: ['display', 'show'], + new: ['new', 'create', 'open', 'start'], + kill: ['kill', 'close', 'destroy', 'remove', 'delete'], + set: ['set', 'unset', 'append', 'configure', 'apply'], +} + +/** The lower-case words of a member name: `sendKeysAsync`, `send_keys` and `Send-TmuxText` each give `send` first. */ +function memberWords(name: string): string[] { + return name.replace(/([a-z0-9])([A-Z])/g, '$1 $2').split(/[^A-Za-z0-9]+/).map((word) => word.toLowerCase()) + .filter((word) => word && word !== 'async' && word !== 'tmux').map((word) => word.replace(/s$/, '')) +} + +/** Whether a member's name carries the verb of the command: `sendKeys` for `send-keys`, `Create` for `new`. */ +export function namesCommand(command: string, member: string): boolean { + const verb = command.split('-')[0] + const accepted = VERB_ALIASES[verb] ?? [verb] + return memberWords(member).some((word) => accepted.includes(word)) +} + +/** + * Whether a use belongs on the command's own pages, and not only on the method's. + * + * @param members the names the use may be listed under: the symbol's own, and for a wrapper the core method's. + */ +export function isListed(use: UsageUse, ...members: string[]): boolean { + if (use.reviewed) return true + if (use.via) return isListed({ command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed }, ...members, use.via.symbol) + return use.evidence.length - 1 <= LISTED_MAX_HOPS || members.some((member) => namesCommand(use.command, member.split(/[.#:\\]+/).at(-1) ?? member)) +} + const symbolIndexes = new Map>() function symbolOf(port: string, publicId: string): ApiSymbol | undefined { let index = symbolIndexes.get(port) @@ -93,7 +132,7 @@ function symbolOf(port: string, publicId: string): ApiSymbol | undefined { return index.get(publicId) } -const TYPE_KINDS = new Set(['class', 'interface', 'struct', 'union', 'enum', 'trait', 'exception']) +const TYPE_KINDS = new Set(['class', 'interface', 'struct', 'union', 'enum', 'trait', 'exception', 'typealias']) /** The type that owns a member, when it has one. */ function ownerOf(port: string, symbol: ApiSymbol): ApiSymbol | undefined { @@ -101,15 +140,41 @@ function ownerOf(port: string, symbol: ApiSymbol): ApiSymbol | undefined { return parent && TYPE_KINDS.has(parent.kind) ? parent : undefined } +/** Where the segment that names the owner starts in a qualified name, whole segments only: `Pane` is not the end of `NewPane`. */ +function ownerSegment(qualified: string, owner: string): number { + const parts = qualified.split(/(\.|::|#|:)/) + for (let index = parts.length - 3; index >= 0; index -= 2) { + if (parts[index] === owner) return parts.slice(0, index).join('').length + } + return -1 +} + /** `Server.panes`, `Server#list_panes`, `Server::panes`: the member with the type that owns it. */ export function usageLabel(port: string, symbol: ApiSymbol): string { const owner = ownerOf(port, symbol) if (!owner) return symbol.name const qualified = qualifiedNameOf(symbol) - const at = qualified.lastIndexOf(owner.name) + const at = ownerSegment(qualified, owner.name) return at >= 0 ? qualified.slice(at) : `${owner.name}.${symbol.name}` } +/** + * Two methods of one language that share a label, such as Scala's plain and cats `Server.panes`, are told + * apart by the namespace that holds their type: `scaladsl.Server.panes` and `cats.Server.panes`. + */ +function apart(links: UsageLink[]): UsageLink[] { + const counts = Map.groupBy(links, (link) => link.label) + return links.map((link) => { + if (counts.get(link.label)!.length < 2 || !link.owner) return link + const symbol = symbolOf(link.port, link.symbolId) + const qualified = symbol ? qualifiedNameOf(symbol) : '' + const at = ownerSegment(qualified, link.owner) + // The namespace segment before the owner, with the separator that joins it: `cats.Server.panes`, `Async::Server#new_session`. + const before = /([A-Za-z_]\w*)(\.|::)$/.exec(qualified.slice(0, at)) + return before ? { ...link, label: `${before[1]}${before[2]}${qualified.slice(at)}` } : link + }) +} + /** * Methods of the object a scope names come first: `Server` for the server, * `Session` for a session, `Window` for a window. Free functions follow, and @@ -132,7 +197,7 @@ export interface UsageLink { evidence: string[] hops: number reviewed: boolean - via?: { port: string; symbol: string } + via?: UsageUse['via'] } export interface UsageGroup { @@ -171,9 +236,9 @@ export function tmuxUsage(command: string, { scope, version }: { scope?: string; ports: PORTS.flatMap((port) => { const document = TMUX_USAGE[port.slug] if (!document) return [] - const links = Object.entries(document.symbols).flatMap(([publicId, uses]) => uses - .filter((use) => use.command === command && use.scope === (group?.id ?? null) && (use.reviewed || use.evidence.length - 1 <= LISTED_MAX_HOPS)) - .flatMap((use) => linkFor(port.slug, publicId, use, version) ?? [])) + const links = apart(Object.entries(document.symbols).flatMap(([publicId, uses]) => uses + .filter((use) => use.command === command && use.scope === (group?.id ?? null) && isListed(use, publicId)) + .flatMap((use) => linkFor(port.slug, publicId, use, version) ?? []))) .sort((a, b) => ownerRank(group, a.owner, Boolean(a.owner)) - ownerRank(group, b.owner, Boolean(b.owner)) || a.label.localeCompare(b.label)) return links.length ? [{ port: port.slug, name: PORT_NAME[port.slug] ?? port.name, links }] : [] }), @@ -183,7 +248,7 @@ export function tmuxUsage(command: string, { scope, version }: { scope?: string; export interface SymbolUsage { command: string - scopes: { scope: TmuxScope | undefined; evidence: string[]; hops: number; reviewed: boolean; via?: { port: string; symbol: string } }[] + scopes: { scope: TmuxScope | undefined; evidence: string[]; hops: number; reviewed: boolean; listed: boolean; via?: UsageUse['via'] }[] } /** The commands one symbol sends, with the scope and the lines that show it. Every hop counts here. */ @@ -195,8 +260,8 @@ export function tmuxUsageOf(port: string, publicId: string): SymbolUsage[] { return { command, scopes: scopes.length - ? scopes.flatMap((scope) => list.filter((use) => use.scope === scope.id).map((use) => ({ scope, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), via: use.via }))) - : list.map((use) => ({ scope: undefined, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), via: use.via })), + ? scopes.flatMap((scope) => list.filter((use) => use.scope === scope.id).map((use) => ({ scope, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), via: use.via }))) + : list.map((use) => ({ scope: undefined, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), via: use.via })), } }) } diff --git a/site/src/lib/tmux-manual-data.ts b/site/src/lib/tmux-manual-data.ts index 1e9b7d4c1..81498bd7d 100644 --- a/site/src/lib/tmux-manual-data.ts +++ b/site/src/lib/tmux-manual-data.ts @@ -221,6 +221,17 @@ export function tmuxApiLinks(command: string) { }))] } +/** + * What a command's "Use from a library" section lists: the recorded senders, or the equivalents the + * concepts name for a command whose usage is not recorded. A recorded command that nothing sends has + * no section, because an equivalent that does not send it would be a false link. + */ +export function tmuxLibrarySection(command: string): 'usage' | 'equivalents' | undefined { + if (tmuxUsage(command)) return 'usage' + if (tmuxUsageCommands().includes(command)) return undefined + return tmuxApiLinks(command).length ? 'equivalents' : undefined +} + /** Task-oriented notes complement the pinned manual; the native catalog gates flags. */ export function tmuxCommandNotes(version: string, slug?: string) { if (slug !== 'capture-pane') return undefined @@ -276,7 +287,7 @@ export function tmuxManualHeadings(version: string, slug?: string) { { depth: 2, slug: 'behavior', text: notes ? 'Options' : 'Behavior' }, ...(notes?.groups.map((group) => ({ depth: 3, slug: group.id, text: group.title })) ?? []), ...(tmuxGuidesFor(slug).length ? [{ depth: 2, slug: 'guides', text: 'Guides' }] : []), - ...(tmuxApiLinks(slug).length ? [{ depth: 2, slug: 'libraries', text: 'Use from a library' }] : []), + ...(tmuxLibrarySection(slug) ? [{ depth: 2, slug: 'libraries', text: 'Use from a library' }] : []), ].map((heading) => heading.depth === 2 ? { ...heading, slug: rowAnchor(slug, heading.text) } : heading) return [...new Set(reference.commands.map((entry) => entry.section))].map((section) => ({ depth: 2, slug: section.toLowerCase().replaceAll(' ', '-'), text: section[0] + section.slice(1).toLowerCase(), diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index 6ae343ca3..7356f87b4 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -176,15 +176,19 @@ export function tmuxReferenceTree(version = 'latest') { } const scopeFunctions = new Map() -/** The C function that lists a command at one scope in a release, when that release has it. */ -export function tmuxScopeFunction(version: string, command: string, scope: TmuxScope): ApiSymbol | undefined { +/** + * The C function that lists a command at one scope in a release. A release that dispatches inline has + * none, so the scope's column leads to the command's own function, where the dispatch is, unless the + * caller asks for the scope's function alone. + */ +export function tmuxScopeFunction(version: string, command: string, scope: TmuxScope, { inline = true }: { inline?: boolean } = {}): ApiSymbol | undefined { const model = tmuxSourceModel(version) const key = `${model.version}\0${command}\0${scope.id}` + const exec = model.symbols.find((entry) => entry.id === model.commands.find((candidate) => candidate.name === command)?.callback) if (!scopeFunctions.has(key)) { - const exec = model.symbols.find((entry) => entry.id === model.commands.find((candidate) => candidate.name === command)?.callback) scopeFunctions.set(key, exec && model.symbols.find((entry) => entry.name === scope.function && entry.source.file === exec.source.file && entry.id.startsWith('c:function:'))) } - return scopeFunctions.get(key) + return scopeFunctions.get(key) ?? (inline && scope.inline?.includes(model.version) ? exec : undefined) } /** @@ -196,7 +200,7 @@ export function tmuxSourceUsage(version: string, symbol: ApiSymbol): { command: .filter((command) => command.entry === symbol.id || command.callback === symbol.id) .map((command) => ({ command: command.name })) const scoped = tmuxUsageCommands().flatMap((command) => tmuxScopes(command) - .filter((scope) => tmuxScopeFunction(version, command, scope)?.id === symbol.id) + .filter((scope) => tmuxScopeFunction(version, command, scope, { inline: false })?.id === symbol.id) .map((scope) => ({ command, scope: scope.id }))) return [...direct, ...scoped] } @@ -232,7 +236,7 @@ export function tmuxResolvedUsage(version: string, command: string, scope?: stri export function tmuxCommandSources(version: string, name: string) { const model = tmuxSourceModel(version) const command = model.commands.find((entry) => entry.name === name) - const scoped = tmuxScopes(name).flatMap((scope) => tmuxScopeFunction(version, name, scope) ?? []) + const scoped = tmuxScopes(name).flatMap((scope) => tmuxScopeFunction(version, name, scope, { inline: false }) ?? []) return command ? [...[command.entry, command.callback].flatMap((id) => model.symbols.find((entry) => entry.id === id) ?? []), ...scoped] .map((symbol) => ({ name: symbol.name, href: tmuxReferenceUrl(version, symbol) })) : [] } @@ -255,10 +259,12 @@ export interface CommandRow { */ export function tmuxCommandRows(sends: SymbolSend[], equivalents: { name: string; href: string }[]): CommandRow[] { const rows = (list: SymbolSend[]) => list.map((send): CommandRow => ({ command: send.command, href: send.manualHref, scopes: send.scopes.filter((use) => use.scope) })) - const direct = (send: SymbolSend) => send.scopes.some((use) => use.reviewed || use.hops === 0) + const direct = (send: SymbolSend) => send.scopes.some((use) => use.listed) + const sent = new Set(sends.map((send) => send.command)) return [ ...rows(sends.filter(direct)), - ...equivalents.map((entry): CommandRow => ({ command: entry.name, href: entry.href, scopes: [] })), + // A command the symbol is recorded as sending is named once, by what it sends. + ...equivalents.filter((entry) => !sent.has(entry.name)).map((entry): CommandRow => ({ command: entry.name, href: entry.href, scopes: [] })), ...rows(sends.filter((send) => !direct(send))), ] } diff --git a/site/src/pages/tmux/[version]/manual/[...slug].astro b/site/src/pages/tmux/[version]/manual/[...slug].astro index d046f4737..f94f19433 100644 --- a/site/src/pages/tmux/[version]/manual/[...slug].astro +++ b/site/src/pages/tmux/[version]/manual/[...slug].astro @@ -12,7 +12,7 @@ import { linkTmuxManualCatalog } from '../../../../lib/tmux-catalog-html' import type { SidebarItem } from '../../../../lib/sidebar' import { pagePortsFor } from '../../../../lib/page-ports-for' import { PORTS } from '../../../../lib/ports' -import { TMUX_REPOSITORY, tmuxApiLinks, tmuxCommandNotes, tmuxGuidesFor, tmuxManualHtml, tmuxManualDescription, tmuxManualHeadings, tmuxManualTitle, tmuxManual, tmuxManualRoutes, tmuxManualUrl } from '../../../../lib/tmux-manual-data' +import { TMUX_REPOSITORY, tmuxApiLinks, tmuxCommandNotes, tmuxGuidesFor, tmuxLibrarySection, tmuxManualHtml, tmuxManualDescription, tmuxManualHeadings, tmuxManualTitle, tmuxManual, tmuxManualRoutes, tmuxManualUrl } from '../../../../lib/tmux-manual-data' export function getStaticPaths() { return tmuxManualRoutes().map(({ version, slug }) => ({ params: { version, slug } })) @@ -102,7 +102,7 @@ const manualHtml = command || isManual

Internal declarations in tmux {reference.version}:

} - {equivalents.length > 0 && <> + {tmuxLibrarySection(command.name) && <> Use from a library {usage ? <>

These methods send {command.name}. Each describes its own defaults, errors and execution model.

diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index eab8dffa6..da5aeca7b 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -6,8 +6,8 @@ import { documentProblems } from '../../scripts/gen-tmux-usage.mjs' import { API_MODELS } from '../src/lib/api-models' import { PORTS } from '../src/lib/ports' import { symbolMarkdown } from '../src/lib/symbol-markdown' -import { tmuxApiLinks, tmuxCommandsFor, tmuxManualHeadings, tmuxManualUrl } from '../src/lib/tmux-manual-data' -import { TMUX_USAGE, tmuxScopes, tmuxUsage, tmuxUsageOf } from '../src/lib/tmux-library-usage' +import { TMUX_MANUALS, tmuxApiLinks, tmuxCommandsFor, tmuxLibrarySection, tmuxManualHeadings, tmuxManualUrl } from '../src/lib/tmux-manual-data' +import { TMUX_USAGE, isListed, namesCommand, tmuxScopes, tmuxUsage, tmuxUsageOf, type UsageUse } from '../src/lib/tmux-library-usage' import { tmuxCommandRows, tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxResolvedUsage, tmuxSourceModel, tmuxSymbolSends, } from '../src/lib/tmux-reference' @@ -30,8 +30,27 @@ const usage = tmuxUsage('list-panes')! const cell = (scope: string, port: string) => usage.groups.find((group) => group.scope?.id === scope)!.ports.find((entry) => entry.port === port)?.links.map((link) => link.label) describe('the recorded usage', () => { + /** Every command either pinned manual documents. */ + const manualCommands = [...new Set(Object.values(TMUX_MANUALS).flatMap((manual) => manual.commands.map((command) => command.name)))].sort() + it.each(PORTS.map((port) => port.slug))('is bound to the pinned API model of %s', (slug) => { - expect(documentProblems(TMUX_USAGE[slug], API_MODELS[slug], scopeTable, ['list-panes'])).toEqual([]) + expect(documentProblems(TMUX_USAGE[slug], API_MODELS[slug], scopeTable, manualCommands)).toEqual([]) + }) + + it('records every command of the manual, for every port', () => { + expect(manualCommands).toContain('list-panes') + expect(manualCommands).toContain('set-window-option') + for (const slug of PORTS.map((port) => port.slug)) expect(TMUX_USAGE[slug].commands, slug).toEqual(manualCommands) + }) + + it('refuses a document that records fewer commands than the manual, or one the model does not have', () => { + const document = TMUX_USAGE.py + expect(documentProblems({ ...document, commands: ['list-panes'] }, API_MODELS.py, scopeTable, manualCommands)).toEqual([expect.stringMatching(/^covers \["list-panes"\]/)]) + expect(documentProblems({ ...document, revision: 'stale' }, API_MODELS.py, scopeTable, manualCommands)).toEqual([expect.stringMatching(/^records stale/)]) + const bogus = { ...document, symbols: { ...document.symbols, 'libtmux.Server.nope': [{ command: 'kill-pane', scope: null, evidence: ['a.py:1'] }] } } + expect(documentProblems(bogus, API_MODELS.py, scopeTable, manualCommands)).toEqual(['libtmux.Server.nope: not a symbol of the API model']) + const unscoped = { ...document, symbols: { ...document.symbols, 'libtmux.Server.panes': [{ command: 'list-panes', scope: null, evidence: ['a.py:1'] }] } } + expect(documentProblems(unscoped, API_MODELS.py, scopeTable, manualCommands)).toEqual(['libtmux.Server.panes: null is not a scope of list-panes']) }) it('names the methods that send list-panes at each scope, where the ports differ in design', () => { @@ -57,12 +76,26 @@ describe('the recorded usage', () => { expect(cell('session', 'ts')).toBeUndefined() expect(cell('window', 'ts')).toBeUndefined() expect(cell('session', 'swift')).toBeUndefined() - // Kotlin, Scala and F# have no method of their own that sends it. - for (const port of ['kotlin', 'scala', 'fsharp']) { - for (const scope of ['server', 'session', 'window']) expect(cell(scope, port)).toBeUndefined() + // Kotlin and Scala wrap Java, which sends at the server only: their session and window readers send nothing. + for (const port of ['java', 'kotlin', 'scala']) { + for (const scope of ['session', 'window']) expect(cell(scope, port), `${port} ${scope}`).toBeUndefined() } }) + it('credits a wrapper with the core method it calls, at the scope that method sends', () => { + expect(cell('server', 'java')).toEqual(['Server.paneFields', 'Server.panes', 'Server.snapshot']) + expect(cell('server', 'kotlin')).toEqual(['Server.paneFields', 'Server.panes', 'Server.snapshot']) + // Scala has two handles to one server, and the cell tells them apart. + expect(cell('server', 'scala')).toEqual(expect.arrayContaining(['cats.Server.panes', 'scaladsl.Server.panes'])) + // F# builds a session and then lists the panes of the session it made, and not of the server. + expect(cell('session', 'fsharp')).toEqual(['newSession']) + expect(cell('server', 'fsharp')).toBeUndefined() + const kotlin = tmuxUsageOf('kotlin', 'io.github.libtmux.kotlin.Server.panes') + expect(kotlin.find((entry) => entry.command === 'list-panes')!.scopes[0]).toMatchObject({ + via: { port: 'java', symbol: 'io.github.libtmux.Server.Server.panes', evidence: ['libtmux/src/main/java/io/github/libtmux/Server.java:998'] }, + }) + }) + it('lists the object that owns the scope before a method that sends the command for its own purpose', () => { expect(cell('window', 'py')).toEqual(['Window.panes', 'Window.search_panes', 'Pane.from_pane_id']) expect(cell('session', 'rs')).toEqual(['Session.panes', 'ControlSender.watch_only']) @@ -77,7 +110,7 @@ describe('the recorded usage', () => { }) it('keeps a call through a helper with the method and off the command pages', () => { - const go = tmuxUsageOf('go', 'tmux.Pane.Select') + const go = tmuxUsageOf('go', 'tmux.Pane.Select').filter((entry) => entry.command === 'list-panes') expect(go).toHaveLength(1) expect(go[0].scopes[0]).toMatchObject({ hops: 1, evidence: ['tmux/lookup.go:371', 'tmux/window_pane_topology.go:199'] }) expect(usage.groups.flatMap((group) => group.ports).flatMap((entry) => entry.links).map((link) => link.symbolId)).not.toContain('tmux.Pane.Select') @@ -91,9 +124,58 @@ describe('the recorded usage', () => { }) it('has no usage for a command it has not recorded', () => { - expect(tmuxUsage('kill-pane')).toBeUndefined() - expect(tmuxScopes('kill-pane')).toEqual([]) - expect(tmuxUsageOf('py', 'libtmux.Pane.kill')).toEqual([]) + expect(tmuxUsage('no-such-command')).toBeUndefined() + expect(tmuxScopes('no-such-command')).toEqual([]) + expect(tmuxUsageOf('py', 'libtmux.Pane.nope')).toEqual([]) + // A command with no scope helpers has one table with no scope heading. + expect(tmuxUsage('kill-pane')!.groups.map((group) => group.scope)).toEqual([undefined]) + }) +}) + +describe('which sends through a helper are listed', () => { + const use = (over: Partial = {}): UsageUse => ({ command: 'send-keys', scope: null, evidence: ['a.ts:1', 'b.ts:2'], ...over }) + + it('lists a method whose own name carries the verb of the command, and not one that refreshes afterwards', () => { + expect(namesCommand('send-keys', 'sendKeysAsync')).toBe(true) + expect(namesCommand('send-keys', 'Send-TmuxText')).toBe(true) + expect(namesCommand('list-panes', 'GetPanesAsync')).toBe(true) + expect(namesCommand('new-window', 'createWindow')).toBe(true) + expect(namesCommand('kill-server', 'close')).toBe(true) + // The controls: a method that sends the command only to refresh what it changed, or to look something up. + expect(namesCommand('list-panes', 'sendKeys')).toBe(false) + expect(namesCommand('list-panes', 'splitPane')).toBe(false) + expect(namesCommand('send-keys', 'select')).toBe(false) + }) + + it('applies to a call through a helper only: a direct send and a reviewed claim are listed, whatever the name', () => { + expect(isListed(use({ evidence: ['a.ts:1'] }), 'unrelated')).toBe(true) + expect(isListed(use({ reviewed: true }), 'unrelated')).toBe(true) + expect(isListed(use(), 'unrelated')).toBe(false) + expect(isListed(use(), 'Pane.sendKeys')).toBe(true) + // A wrapper is listed by its own name or the core method's, and by a reviewed core entry. + const wrapped = (over: Partial> = {}) => use({ evidence: ['w.kt:5'], via: { port: 'java', symbol: 'core.Pane.sendKeys', evidence: ['A.java:1', 'A.java:2'], ...over } }) + expect(isListed(wrapped(), 'wrapper.Pane.run')).toBe(true) + expect(isListed(wrapped({ symbol: 'core.Pane.run' }), 'wrapper.Pane.run')).toBe(false) + expect(isListed(wrapped({ symbol: 'core.Pane.run', reviewed: true }), 'wrapper.Pane.run')).toBe(true) + expect(isListed(wrapped({ symbol: 'core.Pane.run', evidence: ['A.java:1'] }), 'wrapper.Pane.run')).toBe(true) + }) + + it('puts the methods that send through a helper on the page of their own command, and not a lookup they make on the way', () => { + const labels = (command: string, port: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) + expect(labels('send-keys', 'go')).toEqual(expect.arrayContaining(['Pane.SendKeys'])) + expect(labels('send-keys', 'csharp')).toContain('Pane.SendKeysAsync') + expect(labels('send-keys', 'ts')).toContain('Pane.sendKeys') + // Go's Pane.Select looks panes up with list-panes first; that stays on its own page. + expect(labels('list-panes', 'go')).not.toContain('Pane.Select') + expect(labels('select-pane', 'go')).toContain('Pane.Select') + }) + + it('tells two methods of one language that share a name apart, and names a member by whole segments', () => { + const labels = (command: string, port: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) + expect(labels('new-session', 'ruby')).toEqual(['Async::Server#new_session', 'LibTmux::Server#new_session']) + // `Pane` ends `NewPane`, but the owner is the whole segment before it. + expect(labels('new-pane', 'go')).toContain('Pane.NewPane') + expect(labels('new-pane', 'go')).not.toContain('Pane') }) }) @@ -118,16 +200,22 @@ describe('from a method to the command and its C function', () => { expect(tmuxSymbolSends('go', 'tmux.Window.Panes')).toEqual([]) expect(tmuxCommandsFor('go', 'tmux.Window.Panes').map((command) => command.name)).not.toContain('list-panes') expect(tmuxCommandsFor('ts', 'window.Window.panes').map((command) => command.name)).not.toContain('list-panes') - // A command whose usage is not recorded keeps its concept link. - expect(tmuxCommandsFor('ts', 'pane.Pane.capture').map((command) => command.name)).toEqual(['capture-pane']) + // A recorded command is linked by what the code sends, not by the concept map: TypeScript's capture reaches capture-pane through a helper. + expect(tmuxCommandsFor('ts', 'pane.Pane.capture')).toEqual([]) + expect(tmuxSymbolSends('ts', 'pane.Pane.capture').map((send) => [send.command, send.scopes[0].listed])).toEqual([['capture-pane', true]]) + // Its send-keys is another command's helper: the method sends nothing of the kind, and nothing says so. + expect(tmuxSymbolSends('ts', 'pane.Pane.enterCopyMode').map((send) => [send.command, send.scopes[0].listed])).toEqual([['copy-mode', true], ['send-keys', false]]) }) it('names what the method sends before its equivalents, and what it sends through a helper last', () => { - const plain = [{ name: 'send-keys', href: tmuxManualUrl('latest', 'send-keys') }] + const plain = [{ name: 'capture-pane', href: tmuxManualUrl('latest', 'capture-pane') }] + // Java's sendKeys sends send-keys through a helper and is named for it, so it leads; the list-panes lookup it makes on the way is last. const rows = tmuxCommandRows(tmuxSymbolSends('java', 'io.github.libtmux.Pane.Pane.sendKeys'), plain) - expect(rows.map((row) => row.command)).toEqual(['send-keys', 'list-panes']) - expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), plain).map((row) => row.command)).toEqual(['list-panes', 'send-keys']) + expect(rows.map((row) => row.command)).toEqual(['send-keys', 'capture-pane', 'list-panes']) + expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), [{ name: 'send-keys', href: '/x/' }]).map((row) => row.command)).toEqual(['list-panes', 'send-keys']) expect(tmuxCommandRows([], plain).map((row) => row.scopes)).toEqual([[]]) + // A command the symbol is recorded as sending is not named twice. + expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), [{ name: 'list-panes', href: '/x/' }]).map((row) => row.command)).toEqual(['list-panes']) }) it('lists the call through a helper with the method it belongs to', () => { @@ -230,8 +318,7 @@ describe('the rendered lists', () => { const rows = [...document.querySelectorAll('tbody tr')] const order = PORTS.map((port) => port.slug) const slugs = rows.map((row) => row.getAttribute('data-port')!) - expect(slugs).toEqual(order.filter((slug) => slugs.includes(slug))) - expect(slugs).not.toContain('kotlin') + expect(slugs).toEqual(order) const swift = rows.find((row) => row.getAttribute('data-port') === 'swift')! const cells = [...swift.querySelectorAll('td')] expect(cells.map((td) => [...td.querySelectorAll('a')].map((a) => a.textContent!.replace(/\s+/g, '')))) @@ -241,17 +328,34 @@ describe('the rendered lists', () => { }) it('names the languages that have no method of their own to list', async () => { - const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes') }) - expect(document.querySelector('.tmux-usage__absent')!.textContent).toBe('No method in Kotlin, Scala, or F# sends this command itself.') + // Every language has one somewhere for list-panes, so the table has no such line. + expect((await render({ usage: tmuxResolvedUsage('latest', 'list-panes') })).querySelector('.tmux-usage__absent')).toBeNull() const windowPage = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) - expect(windowPage.querySelector('.tmux-usage__absent')!.textContent).toMatch(/^No method in Lua, Julia, TypeScript, .*sends this command at this scope itself\.$/) - // The control: a command that every language sends has no such line. + expect(windowPage.querySelector('.tmux-usage__absent')!.textContent).toMatch(/^No method in Lua, TypeScript, .*sends this command at this scope itself\.$/) + // A command a few languages send names the rest, in the order the site lists them. + const choose = await render({ usage: tmuxResolvedUsage('latest', 'choose-tree') }) + const named = choose.querySelector('.tmux-usage__absent')!.textContent! + expect(named).toMatch(/^No method in .* sends this command itself\.$/) + const sending = tmuxUsage('choose-tree')!.groups.flatMap((group) => group.ports).map((entry) => entry.name) + expect(sending.length).toBeGreaterThan(0) + for (const name of sending) expect(named).not.toContain(name) + // The control: a table where every language has a method has no such line. const everyone = tmuxResolvedUsage('latest', 'list-panes')! const full = { ...everyone, groups: everyone.groups.map((group) => ({ ...group, ports: PORTS.map((port) => ({ port: port.slug, name: port.name, links: group.ports[0].links })) })) } expect((await render({ usage: full })).querySelector('.tmux-usage__absent')).toBeNull() }) + it('names the wrappers that send nothing themselves, as the languages with no method', async () => { + // Kotlin's CommandChain only builds a chain, and sends nothing until it is run. + const document = await render({ usage: tmuxResolvedUsage('latest', 'choose-tree') }) + const absent = document.querySelector('.tmux-usage__absent')!.textContent! + for (const [port, listed] of [['kotlin', 'Kotlin'], ['scala', 'Scala']] as const) { + const sends = tmuxUsage('choose-tree')!.groups.flatMap((group) => group.ports).some((entry) => entry.port === port) + expect(absent.includes(listed), port).toBe(!sends) + } + }) + it('renders only the scope asked for on a scope page', async () => { const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) expect([...document.querySelectorAll('thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim())) @@ -358,10 +462,22 @@ describe('the manual page', () => { } }) - it('keeps the plain list for a command whose usage is not recorded', async () => { + it('lists a command with no scope helpers in one table headed Methods', async () => { const document = await page('capture-pane') + expect(document.querySelectorAll('.tmux-usage table')).toHaveLength(1) + expect([...document.querySelectorAll('.tmux-usage thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim())).toEqual(['Language', 'Methods']) + expect(document.querySelector('.tmux-usage tr[data-port="py"] a')!.getAttribute('href')).toMatch(/\/py\/[^/]+\/reference\//) + // The language picker no longer needs the plain list: the table is the section. + expect(document.querySelector('h2#capture-pane-use-from-a-library ~ ul')).toBeNull() + }) + + it('has no section for a command that no language sends, rather than a link that is not a sender', async () => { + const document = await page('set-window-option') expect(document.querySelector('.tmux-usage')).toBeNull() - expect([...document.querySelectorAll('h2#capture-pane-use-from-a-library ~ ul a')].map((a) => a.textContent)).toContain('Python') + expect(document.querySelector('h2#set-window-option-use-from-a-library')).toBeNull() + expect(tmuxLibrarySection('set-window-option')).toBeUndefined() + expect(tmuxLibrarySection('capture-pane')).toBe('usage') + expect(tmuxLibrarySection('no-such-command')).toBeUndefined() }) }) diff --git a/site/test/tmux-manual.test.ts b/site/test/tmux-manual.test.ts index f995170f9..068f86618 100644 --- a/site/test/tmux-manual.test.ts +++ b/site/test/tmux-manual.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest' import { parseManual } from '../../scripts/gen-tmux-manual.mjs' -import { buildsTmuxDocumentation, tmuxCommandNotes, tmuxCommandsFor, tmuxGuidesFor, tmuxManualHtml, tmuxManualHeadings, tmuxManual, tmuxManualUrl, tmuxManualVersionUrl } from '../src/lib/tmux-manual-data' +import { buildsTmuxDocumentation, tmuxApiLinks, tmuxCommandNotes, tmuxCommandsFor, tmuxGuidesFor, tmuxManualHtml, tmuxManualHeadings, tmuxManual, tmuxManualUrl, tmuxManualVersionUrl } from '../src/lib/tmux-manual-data' import { highlightTmuxManual, linkTmuxManualEntries, markTmuxManualKeys } from '../src/lib/tmux-manual' import { tmuxKeyList } from '../src/lib/tmux-keys' import { fromHtml } from 'hast-util-from-html' @@ -133,12 +133,13 @@ describe('versioned tmux manual', () => { expect(referenceUrl('3.2a', 'capture-pane')).toBe('/pr-42/en/tmux/3.2a/manual/capture-pane/') }) - it('links verified API concepts without inferring behavior from similar names', () => { - expect(tmuxCommandsFor('ts', 'pane.Pane.capture').map((command) => command.name)).toEqual(['capture-pane']) - expect(tmuxCommandsFor('ts', 'server.Server.sessions').map((command) => command.name)).toEqual(['list-sessions']) - expect(tmuxCommandsFor('ts', 'Unrelated.capture')).toEqual([]) - expect(tmuxCommandsFor('ts', 'server.Server.windows').map((command) => command.name)).toEqual(['list-windows']) - expect(tmuxCommandsFor('ts', 'pane.Pane.split').map((command) => command.name)).toEqual(['split-window']) + it('leaves a recorded command to the code that sends it, and keeps the concepts for the language picker', () => { + // Every command of the manual has recorded usage, so a concept never names one: what a method sends comes from its source. + for (const [port, id] of [['ts', 'pane.Pane.capture'], ['ts', 'server.Server.sessions'], ['ts', 'server.Server.windows'], ['ts', 'pane.Pane.split'], ['ts', 'Unrelated.capture']]) { + expect(tmuxCommandsFor(port, id), id).toEqual([]) + } + // The picker still lands TypeScript on the capture, whose send is one helper away. + expect(tmuxApiLinks('capture-pane').map((link) => link.name)).toContain('TypeScript') }) it('exports the same command sections and related guides as the page', () => { @@ -147,7 +148,9 @@ describe('versioned tmux manual', () => { 'capture-pane-options-output-and-line-range', 'capture-pane-options-text-formatting', 'capture-pane-options-screens-and-pending-output', 'capture-pane-guides', 'capture-pane-use-from-a-library']) expect(tmuxManualHeadings('latest', 'server-access').map((heading) => heading.slug)) - .toEqual(['server-access-syntax', 'server-access-behavior']) + .toEqual(['server-access-syntax', 'server-access-behavior', 'server-access-use-from-a-library']) + // A command no library sends has no such section. + expect(tmuxManualHeadings('latest', 'set-window-option').map((heading) => heading.slug)).not.toContain('set-window-option-use-from-a-library') expect(tmuxGuidesFor('capture-pane').map((guide) => guide.href)) .toEqual([tmuxManualUrl().replace('/tmux/latest/manual/', '/tmux/guides/capturing-output/')]) expect(tmuxManualHeadings('3.2a', 'full').some((heading) => heading.slug === 'COMMANDS')).toBe(true) diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index b6d2c6265..e1427600f 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -1,9 +1,14 @@ import { readFileSync } from 'node:fs' import { describe, expect, it } from 'vitest' import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' -import { MAX_SHARED_BY, classify, definitionsOf, deriveUsage, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { MAX_SHARED_BY, applyExclusions, classify, definitionsOf, deriveUsage, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' +import { scanFSharp, scanJulia } from '../../scripts/lib/tmux-usage-lexical.mjs' import { guardFlag, libraryScopes, scopeProblems } from '../../scripts/lib/tmux-usage-scopes.mjs' +type Forwarded = { symbol: string; command: string; scope: string | null; evidence: string[]; hops: number; via: { port: string; symbol: string; evidence: string[]; reviewed?: boolean } } +type Scanned = { name: string; owner?: string; start: number; end: number; sites: { command: string; line: number; flags: string }[]; calls: Map; receivers: Map> } + const known = new Set(['list-panes', 'list-windows', 'list-sessions', 'new-window']) const scan = (grammar: string, text: string, command = 'list-panes') => scanSource({ grammar, text, commands: new Set([command]), known }) const scopes = readFileSync(new URL('../src/data/tmux-usage/scopes.json', import.meta.url), 'utf8') @@ -73,6 +78,93 @@ describe('scanning a send site', () => { expect(functions[0].sites[0].flags).toBe('a') }) + it('does not read a command named for a check or a failure as a command that runs', async () => { + const { functions } = await scan('python', [ + 'def save(self):', + ' validate_args("list-panes", self.name)', + ' raise LibTmuxException("list-panes", self.name)', + ' return None', + '', + 'def run(self):', + ' return checked_run("list-panes", "-a")', + '', + ].join('\n')) + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(byName.save.sites).toEqual([]) + // The control: a runner whose name only starts with a checking verb still runs the command. + expect(byName.run.sites).toEqual([{ command: 'list-panes', line: 7, flags: 'a' }]) + }) + + it('reads the same label in Go, where the failure is built by a constructor', async () => { + const { functions } = await scan('go', [ + 'package tmux', + 'func (s Server) SaveBuffer() error {', + '\tif err := validateBufferName("list-panes", s.name); err != nil { return err }', + '\treturn newRedactedCommandError("list-panes", s.result)', + '}', + 'func (s Server) Run() error {', + '\t_, err := s.literalCmd(ctx, "list-panes", "-a")', + '\treturn err', + '}', + '', + ].join('\n')) + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(byName.SaveBuffer.sites).toEqual([]) + expect(byName.Run.sites).toEqual([{ command: 'list-panes', line: 7, flags: 'a' }]) + }) + + it('does not read a command compared against, or named by a case, as one that runs', async () => { + const java = await scan('java', [ + 'class A {', + ' String format(String[] command, String format) {', + ' return switch (command[0]) {', + ' case "list-panes" -> format;', + ' default -> "";', + ' };', + ' }', + ' void run() { server.run(List.of("list-panes", "-a")); }', + '}', + '', + ].join('\n')) + expect(Object.fromEntries(java.functions.map((fn) => [fn.name, fn.sites]))).toEqual({ + format: [], run: [{ command: 'list-panes', line: 8, flags: 'a' }], + }) + const python = await scan('python', [ + 'def check(name):', + ' if name == "list-panes":', + ' return 1', + ' return run("list-panes", "-a")', + '', + ].join('\n')) + expect(python.functions[0].sites).toEqual([{ command: 'list-panes', line: 4, flags: 'a' }]) + const rust = await scan('rust', [ + 'fn pick(name: &str) -> u8 {', + ' match name { "list-panes" => run(["list-panes", "-a"]), _ => 0 }', + '}', + '', + ].join('\n')) + // The arm's pattern is a name being recognised; the command in its body still runs. + expect(rust.functions[0].sites).toEqual([{ command: 'list-panes', line: 2, flags: 'a' }]) + }) + + it('credits a local variable\'s send to the function around it, not to a function named for the variable', async () => { + const { functions } = await scan('kotlin', [ + 'class Server {', + ' fun newSession() {', + ' val reply = run(listOf("list-panes", "-a"))', + ' println(reply)', + ' }', + ' val count = run(listOf("list-panes", "-s"))', + '}', + '', + ].join('\n')) + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn.sites.map((site) => site.line)])) + expect(byName.newSession).toEqual([3]) + expect(byName).not.toHaveProperty('reply') + // The control: a property of the type itself is still a function-like scope with its own sites. + expect(byName.count).toEqual([6]) + }) + it('keeps a site outside any function apart, so a module constant is not credited to a neighbour', async () => { const { functions, orphans } = await scan('python', 'LISTINGS = [("list-panes", "-a")]\n\ndef other():\n return 1\n') expect(orphans).toEqual([{ command: 'list-panes', line: 1, flags: 'a' }]) @@ -81,7 +173,7 @@ describe('scanning a send site', () => { }) const located = (over: Record) => ({ - file: 'lib.py', name: 'f', owner: undefined, start: 1, nameLine: 1, end: 3, kind: 'function_definition', sites: [], calls: new Map(), ...over, + file: 'lib.py', name: 'f', owner: undefined, start: 1, nameLine: 1, end: 3, kind: 'function_definition', sites: [], calls: new Map(), receivers: new Map>(), ...over, }) as Parameters[0]['functions'][number] const site = (flags: string, line = 2) => ({ command: 'list-panes', line, flags }) const symbol = (name: string, line: number, over: Record = {}) => ({ id: `S.${name}`, name, file: 'lib.py', line, ...over }) @@ -144,6 +236,26 @@ describe('deciding which symbol sends a command', () => { expect(unresolved[0].reason).toMatch(/shared by 5 public symbols/) }) + describe('a method that forwards to a free function of its own name', () => { + const helper = (over: Record = {}) => located({ file: 'ops/io.ts', name: 'sendKeys', start: 1, nameLine: 1, end: 5, sites: [{ command: 'list-panes', line: 3, flags: 'st' }], ...over }) + const method = (over: Record = {}) => located({ file: 'pane.ts', name: 'sendKeys', owner: 'Pane', start: 10, nameLine: 10, end: 12, calls: new Map([['sendKeys', 11]]), ...over }) + const symbols = [{ id: 'pane.Pane.sendKeys', name: 'sendKeys', parentName: 'Pane', file: 'pane.ts', line: 10 }] + + it('credits the method for the free function it calls without a handle', () => { + const { entries } = deriveUsage({ command: 'list-panes', spec, functions: [helper(), method()], symbols }) + expect(entries).toEqual([{ symbol: 'pane.Pane.sendKeys', command: 'list-panes', scope: 'session', evidence: ['ops/io.ts:3', 'pane.ts:11'], hops: 1 }]) + }) + + it('does not, when the call is made on an object, or when a second free function has the name', () => { + const onObject = method({ receivers: new Map([['sendKeys', new Set(['other'])]]) }) + expect(deriveUsage({ command: 'list-panes', spec, functions: [helper(), onObject], symbols }).entries).toEqual([]) + const twin = helper({ file: 'mcp/io.ts', start: 1, nameLine: 1, end: 5, sites: [] }) + const { entries, unresolved } = deriveUsage({ command: 'list-panes', spec, functions: [helper(), twin, method()], symbols }) + expect(entries).toEqual([]) + expect(unresolved.map((item: { reason: string }) => item.reason)).toEqual(['no public symbol reaches it']) + }) + }) + it('finds a C++ definition from the header that declares it, and not from a same-named type', () => { const functions = [located({ file: 'src/entities.cpp', name: 'panes', owner: 'Window', start: 5, nameLine: 5, end: 9, sites: [site('t', 7)] })] const symbols = [ @@ -174,9 +286,9 @@ describe('reviewed claims', () => { ], ...over, }) - const verify = (claims: unknown[], sends?: () => boolean) => verifyClaims({ + const verify = (claims: unknown[]) => verifyClaims({ claims: claims as Parameters[0]['claims'], spec, functions, types: [], symbols, - readSource: (path: string) => (path === 'server.rs' ? source : undefined), sends, + readSource: (path: string) => (path === 'server.rs' ? source : undefined), }) it('accepts a claim whose lines still say what it says, anchored in the symbol', () => { @@ -199,12 +311,6 @@ describe('reviewed claims', () => { expect(entries).toEqual([]) expect(problems.join('\n')).toMatch(message) }) - - it('stands on a library symbol only while that symbol sends the command at that scope', () => { - const wrapped = claim({ via: { port: 'csharp', symbol: 'LibTmux.Server.GetPanesAsync' } }) - expect(verify([wrapped], () => true).problems).toEqual([]) - expect(verify([wrapped], () => false).problems.join('\n')).toMatch(/does not send list-panes at that scope/) - }) }) describe('the scope table against tmux', () => { @@ -243,3 +349,147 @@ describe('the scope table against tmux', () => { expect(scopeProblems(gone, real, 'list-panes').join('\n')).toMatch(/does not call cmd_list_panes_gone/) }) }) + +describe('symbols that only build a command', () => { + const symbols = [ + { id: 'tmux.Plan.KillPane', name: 'KillPane', parentName: 'Plan', file: 'tmux/plan_pane.go', line: 10 }, + { id: 'tmux.Plan.Run', name: 'Run', parentName: 'Plan', file: 'tmux/plan.go', line: 5 }, + { id: 'tmux.Pane.Kill', name: 'Kill', parentName: 'Pane', file: 'tmux/pane.go', line: 1 }, + ] + const entry = (symbol: string) => ({ symbol, command: 'kill-pane', scope: null, evidence: ['x.go:1'], hops: 0 }) + const found = () => new Map(symbols.map((candidate) => [candidate.id, entry(candidate.id)])) + const source = ['func (p *Plan) add(op Op) Ref {', '\tp.ops = append(p.ops, op)', '}'].join('\n') + const exclusion = (over: Record = {}) => ({ + port: 'go', owner: 'Plan', in: 'tmux/plan_', why: 'A Plan records steps.', + evidence: [{ at: 'tmux/plan.go:1', has: ['func (p *Plan) add('] }, { at: 'tmux/plan.go:2', has: ['append(p.ops, op)'] }], ...over, + }) + const apply = (items: unknown[], held = found()) => ({ + held, ...applyExclusions({ exclusions: items as Parameters[0]['exclusions'], found: held, symbols, readSource: (path: string) => (path === 'tmux/plan.go' ? source : undefined) }), + }) + + it('removes what an owner builds, inside the files it names, and keeps what it does not', () => { + const { held, removed, problems } = apply([exclusion()]) + expect(problems).toEqual([]) + expect(removed.map((item: { symbol: string }) => item.symbol)).toEqual(['tmux.Plan.KillPane']) + // Plan.Run is the owner's, but declared outside the builder files, and Pane.Kill is another type's. + expect([...held.keys()]).toEqual(['tmux.Plan.Run', 'tmux.Pane.Kill']) + }) + + it('selects by member name as well, and needs one of the two', () => { + expect(apply([exclusion({ owner: undefined, names: ['Kill'], in: 'tmux/pane' })]).removed.map((item: { symbol: string }) => item.symbol)).toEqual(['tmux.Pane.Kill']) + expect(apply([exclusion({ owner: undefined })]).problems[0]).toMatch(/neither an owner nor member names/) + }) + + it.each([ + ['a line that no longer holds the text', { evidence: [{ at: 'tmux/plan.go:2', has: ['p.steps = append('] }] }, /does not contain/], + ['a line past the end of the file', { evidence: [{ at: 'tmux/plan.go:99' }] }, /not a line of the pinned source/], + ['no evidence', { evidence: [] }, /cites no evidence/], + ['an owner that has nothing left to remove', { owner: 'Chain' }, /removes no entry, so it is stale/], + ])('refuses %s, and removes nothing', (_name, over, message) => { + const { held, removed, problems } = apply([exclusion(over)]) + expect(problems.join('\n')).toMatch(message) + expect(removed).toEqual([]) + expect(held.size).toBe(3) + }) +}) + +describe('crediting a wrapper with the core method it calls', () => { + const coreSymbols = new Map([ + ['core.Server.panes', { name: 'panes', parentName: 'Server' }], + ['core.Session.panes', { name: 'panes', parentName: 'Session' }], + ['core.Server.snapshot', { name: 'snapshot', parentName: 'Server' }], + ]) + const coreEntry = (symbol: string, scope: string, over: Record = {}) => ({ symbol, command: 'list-panes', scope, evidence: ['Core.java:10'], ...over }) + const core = (entries: ReturnType[]) => ({ entries, symbols: coreSymbols }) + const wrapper = (name: string, parentName: string, id = `w.${parentName}.${name}`) => ({ id, name, parentName, file: 'W.kt', line: 1 }) + const fn = (name: string, owner: string, calls: [string, number][], receivers: [string, string[]][] = []) => + located({ file: 'W.kt', name, owner, start: 1, nameLine: 1, end: 9, calls: new Map(calls), receivers: new Map(receivers.map(([callee, who]) => [callee, new Set(who)])) }) + const forward = (functions: ReturnType[], symbols: ReturnType[], entries: ReturnType[]) => + forwardUsage({ parent: 'java', functions, types: [], symbols, core: core(entries) }) as unknown as { entries: Forwarded[]; silent: string[] } + + it('credits the scope the core method sends at, with the line of the call and the core evidence', () => { + const { entries } = forward([fn('panes', 'Server', [['panes', 4]], [['panes', ['server']]])], [wrapper('panes', 'Server')], [coreEntry('core.Server.panes', 'server')]) + expect(entries).toEqual([{ + symbol: 'w.Server.panes', command: 'list-panes', scope: 'server', evidence: ['W.kt:4'], hops: 1, + via: { port: 'java', symbol: 'core.Server.panes', evidence: ['Core.java:10'] }, + }]) + }) + + it('credits the type the call is made on, and not the type the wrapper method belongs to', () => { + // F#'s Server.newSession lists the panes of the session it made, with `session.GetPanesAsync`. + const { entries } = forward([fn('newSession', 'Server', [['panes', 4]], [['panes', ['session']]])], [wrapper('newSession', 'Server')], + [coreEntry('core.Server.panes', 'server'), coreEntry('core.Session.panes', 'session')]) + expect(entries.map((entry) => entry.scope)).toEqual(['session']) + // The control: with no named handle the call is made on the wrapper's own type. + const own = forward([fn('refresh', 'Server', [['panes', 4]])], [wrapper('refresh', 'Server')], [coreEntry('core.Server.panes', 'server'), coreEntry('core.Session.panes', 'session')]) + expect(own.entries.map((entry) => entry.scope)).toEqual(['server']) + }) + + it('leaves a wrapper that builds a query and calls no sender out, and names it', () => { + const { entries, silent } = forward([fn('plan', 'Server', [['listOf', 3]])], [wrapper('plan', 'Server')], [coreEntry('core.Server.panes', 'server')]) + expect(entries).toEqual([]) + expect(silent).toEqual(['w.Server.plan']) + }) + + it('does not forward a reviewed claim that holds only for the arguments it was read with', () => { + const functions = [fn('snapshot', 'Server', [['snapshot', 4]], [['snapshot', ['server']]])] + const symbols = [wrapper('snapshot', 'Server')] + expect(forward(functions, symbols, [coreEntry('core.Server.snapshot', 'server', { reviewed: true })]).entries).toEqual([]) + // A claim that says it holds for every call is forwarded, and the forwarded entry says it was reviewed. + const [entry] = forward(functions, symbols, [coreEntry('core.Server.snapshot', 'server', { reviewed: true, forwardable: true })]).entries + expect(entry.via).toMatchObject({ symbol: 'core.Server.snapshot', reviewed: true }) + }) + + it('forwards a generated operation by the annotation above the core method, and not one without', () => { + const generated = { under: ['gen/'], evidence: ['Gen.kt:183'], forwards: (entry: { symbol: string }) => (entry.symbol === 'core.Server.panes' ? 'Core.java:9' : undefined) } + const symbols = [{ ...wrapper('panes', 'Server'), file: 'gen/Ops.kt' }, { ...wrapper('snapshot', 'Server'), file: 'gen/Ops.kt' }] + const { entries } = forwardUsage({ parent: 'java', functions: [], types: [], symbols, generated, + core: core([coreEntry('core.Server.panes', 'server'), coreEntry('core.Server.snapshot', 'server')]) }) as unknown as { entries: Forwarded[] } + expect(entries.map((entry) => [entry.symbol, entry.evidence])).toEqual([['w.Server.panes', ['Gen.kt:183', 'Core.java:9']]]) + }) +}) + +describe('reading Julia and F# by their text', () => { + const commands = new Set(['list-panes']) + + it('finds the sends and calls of Julia functions, short form included, and not a docstring', () => { + const text = [ + '"""Run list-panes -a on the server."""', + 'function panes(conn)', + ' run(conn, ["list-panes", "-a"])', + ' return _rows(conn)', + 'end', + '', + 'snapshot(conn) = _capture(conn; depth=1)', + '', + ].join('\n') + const { functions } = scanJulia(text, { commands, known: commands }) as unknown as { functions: Scanned[] } + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(byName.panes.sites).toEqual([{ command: 'list-panes', line: 3, flags: 'a' }]) + expect([...byName.panes.calls.keys()]).toEqual(expect.arrayContaining(['run', '_rows'])) + expect([...byName.snapshot.calls.keys()]).toEqual(['_capture']) + expect(byName.snapshot.sites).toEqual([]) + }) + + it('reads F# members with their owner, and the calls inside with the object they are made on', () => { + const text = [ + 'module Hierarchy', + '', + 'type Server with', + ' member server.newSession (spec: Spec) =', + ' backgroundTask {', + ' let! panes = session.GetPanesAsync(token)', + ' return panes', + ' }', + '', + 'let helper (x: int) = x', + '', + ].join('\n') + const { functions } = scanFSharp(text) as unknown as { functions: Scanned[] } + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(byName.newSession).toMatchObject({ owner: 'Server', start: 4, end: 8 }) + expect(byName.newSession.receivers.get('GetPanesAsync')).toEqual(new Set(['session'])) + expect(byName.helper.owner).toBe('Hierarchy') + expect(byName.helper.calls.size).toBe(0) + }) +}) From fcba549dc3af282b95986a049f7b3b4f96a3d72d Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 19 Oct 2026 22:22:08 -0500 Subject: [PATCH 10/53] fix(site[tmux-usage]) Sweep for the senders a scan misses and record each why: The command pages said no method sends a command when a method named for it did. Java's Server.newSession reaches new-session through SessionSpec.argv, TypeScript's through plan arguments run by runPlan, and F#'s newSession lists the panes of a window it created through a local named for the result and not its type. The new-session page listed only the JUnit fixture for Java, which reads as the way to create a session. Fixing the three would leave the class: any method that sends through a builder, a plan, or two helpers is invisible to a one-hop scan, and the page then misleads without any gate failing. what: - Add a sweep: every public method whose own name carries a command's verb and noun, with no entry for that command, is a candidate, found in the library's own sources and not in tests or consumer packages; the generator refuses a candidate until a reviewed claim records the send or `not-senders.json` says why there is none (it builds, sends a different command, is a value, or does not send), each with cited lines that must still hold; a method recorded as sending the sibling command its name also carries settles without a review, a review that settles nothing is stale, and `--check` runs it from the committed data - Claim the senders with their hops: Java Server.newSession through SessionSpec.argv, which Kotlin and Scala forward; TypeScript Server.newSession through newSessionArgs and runPlan; F#'s newSession window-scope list-panes through Window.GetPanesAsync; and the creation, capture, option, hook, environment, split and navigation methods the sweep found in every port, from their send site out to the line in the method that reaches it - Read what a scan was getting wrong: a literal given to a throw, a preflight or an error call is a label; Julia's table loops define one function per row; a Kotlin name in backquotes forwards like any other; `previous` is no plural, so previous-layout and previous-window are found and listed; Swift's argument labels no longer decide a method's name - List a call through a helper by the method's own name, with Swift's argument labels removed first, so Server.capture(_:includingHistory:) stays on the capture-pane page - Test the sweep with its negatives: the verb and noun in whole words, the library roots, a sibling settling a candidate, every way a review fails, and the negative script's two new cases Measured on the pinned sources, as candidates before, entries gained (claims and newly read sends), recorded as not sending, and open after: py 92/41/51/0, ruby 42/20/22/0, lua 33/0/33/0, julia 12/10/2/0, ts 69/22/47/0, rs 77/41/36/0, go 332/43/289/0, java 19/8/11/0, kotlin 21/14/7/0, scala 26/18/8/0, csharp 95/26/69/0, fsharp 14/7/7/0, powershell 16/10/6/0, cxx 22/0/22/0, swift 13/0/13/0; 883 candidates, 260 gained an entry, 623 are reviewed non-senders (182 reviews: 102 send a different command, 33 do not send, 28 are values, 19 build). Claims went from 109 to 344, and the entries from 1,551 to 1,824, 273 more. My sample of 36 of the 273 found no false positive, and it was too small to be evidence of none: an independent sample of 60 found 2 entries whose send is behind a tmux version gate, and a scan of every entry for the class found 9 (the C# lookups of a session, window or pane by id and the F# lookups that call them), which the next commit corrects. The new-session page now lists Java Server.newSession beside the JUnit fixture, and TypeScript, Kotlin, Scala and F# beside it. Known limit: a method whose name does not carry a command's verb is not a candidate, so a send it makes stays unseen until a scan or a claim finds it. --- scripts/README.md | 12 + scripts/gen-tmux-usage.mjs | 41 +- scripts/gen-tmux-usage.negative.mjs | 14 +- scripts/lib/tmux-usage-derive.mjs | 3 +- scripts/lib/tmux-usage-lexical.mjs | 88 +- scripts/lib/tmux-usage-scan.mjs | 6 +- scripts/lib/tmux-usage-sweep.mjs | 152 + scripts/tmux-usage/claims.json | 8824 +++++++++++++++++++--- scripts/tmux-usage/not-senders.json | 4416 +++++++++++ site/src/data/tmux-usage/csharp.json | 418 +- site/src/data/tmux-usage/fsharp.json | 166 +- site/src/data/tmux-usage/go.json | 573 ++ site/src/data/tmux-usage/java.json | 110 + site/src/data/tmux-usage/julia.json | 96 +- site/src/data/tmux-usage/kotlin.json | 270 + site/src/data/tmux-usage/powershell.json | 192 +- site/src/data/tmux-usage/py.json | 476 ++ site/src/data/tmux-usage/rs.json | 475 ++ site/src/data/tmux-usage/ruby.json | 305 + site/src/data/tmux-usage/scala.json | 382 + site/src/data/tmux-usage/ts.json | 256 + site/src/lib/tmux-library-usage.ts | 7 +- site/test/tmux-library-usage.test.ts | 10 +- site/test/tmux-usage-derive.test.ts | 75 +- 24 files changed, 16118 insertions(+), 1249 deletions(-) create mode 100644 scripts/lib/tmux-usage-sweep.mjs create mode 100644 scripts/tmux-usage/not-senders.json diff --git a/scripts/README.md b/scripts/README.md index a585812bf..49e5b120e 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -193,6 +193,18 @@ longer holds: - `exclusions.json`: the symbols that carry a command's name and only build or record it (a plan, a chain, a request that turns itself into a command). Each cites the lines that show it, and an exclusion that removes nothing fails. +- `not-senders.json`: why a public method whose own name carries a command has + no entry for it, one of `builds`, `other-command` (it sends a different + command), `values` (a field or a value holder) or `no-send`. Each cites the + lines that show it, and a review that settles nothing is stale and fails. + +A method named for a command and recorded as sending nothing of it is how a +miss is found, and the check refuses it until a claim records the send or a +review says why there is none. Nothing is listed by its name: the name only finds +the candidate, and the lines decide. `--check` runs the sweep from the committed +data, `--check --source` also reads each review's lines, and a method named for +one command that the data records as sending the command it also names is not a +candidate for the other. The command pages list a method that sends directly, a reviewed claim, and a method that sends through one helper when its own name carries the verb of the diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index 44bc432d1..6e6f6af26 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -10,7 +10,9 @@ * `scripts/tmux-usage/claims.json`; each one must still be true of the pinned * source or generation fails. Symbols that carry a command's name and only * build or record it (a plan, a chain, a request) are `exclusions.json`, held - * to the same standard. + * to the same standard. A method whose own name says it sends a command, with + * no entry for it, is a candidate that a claim or a review in + * `not-senders.json` must settle, so a miss cannot pass unseen. * * The result is `site/src/data/tmux-usage/.json`, keyed by public symbol. * @@ -30,6 +32,7 @@ import { fileURLToPath } from 'node:url' import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' import { applyExclusions, deriveUsage, verifyClaims } from './lib/tmux-usage-derive.mjs' import { forwardUsage } from './lib/tmux-usage-forward.mjs' +import { settleCandidates, sweepCandidates } from './lib/tmux-usage-sweep.mjs' import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' const root = resolve(dirname(fileURLToPath(import.meta.url)), '..') @@ -38,6 +41,7 @@ const defaultUsageDir = join(dataDir, 'tmux-usage') const claimsPath = join(root, 'scripts/tmux-usage/claims.json') const forwardersPath = join(root, 'scripts/tmux-usage/forwarders.json') const exclusionsPath = join(root, 'scripts/tmux-usage/exclusions.json') +const reviewsPath = join(root, 'scripts/tmux-usage/not-senders.json') export const SCHEMA_VERSION = 1 /** The commands whose usage is recorded: every command of the pinned manuals, unless `--commands` names some. */ export const COMMANDS = 'all' @@ -100,13 +104,13 @@ const sortKeys = (value) => Array.isArray(value) ? value.map(sortKeys) : value && typeof value === 'object' ? Object.fromEntries(Object.entries(value).sort(([a], [b]) => a.localeCompare(b)).map(([key, item]) => [key, sortKeys(item)])) : value /** How a port's symbols find their definitions: Lua's handles share one implementation, Julia's methods share files. */ -const DEFINITION_OPTIONS = { lua: { sharedOwner: true }, julia: { freeFunctions: true } } +export const DEFINITION_OPTIONS = { lua: { sharedOwner: true }, julia: { freeFunctions: true } } /** A consumer example declares symbols of its own that the library does not. */ const EXAMPLES = /(?:^|\/)(?:examples?|tests?|benchmarks?|docs?)\// /** Callable public symbols, in the shape the derivation reads. */ -function publicSymbols(model) { +export function publicSymbols(model) { const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) return model.symbols .filter((symbol) => symbol.apiScope !== 'internal' && symbol.source?.file && !EXAMPLES.test(symbol.source.file) @@ -118,6 +122,7 @@ function publicSymbols(model) { parentName: symbol.parent ? byId.get(symbol.parent)?.name : undefined, file: symbol.source.file, line: symbol.source.line ?? 0, + kind: symbol.kind, overloaded: symbol.modifiers?.includes('overload'), })) } @@ -135,7 +140,7 @@ export function portDocument(port, model, found, commands) { } /** Read a port's source at its pinned revision: every function, and the public symbols that name them. */ -async function scanPort({ port, model, commands, checkout, known }) { +export async function scanPort({ port, model, commands, checkout, known }) { const grammar = GRAMMARS[port] const symbols = publicSymbols(model) const functions = [] @@ -222,12 +227,12 @@ function forwardPort({ port, config, scanned, core, coreScan, readEvidence }) { } /** Ports that have a model, in the order the site lists them. */ -async function portsWithModels() { +export async function portsWithModels() { const { PORTS } = await import(`file://${join(root, 'site/src/lib/ports.ts')}`) return PORTS.filter((port) => existsSync(join(dataDir, `api/${port.slug}.json`))) } -function checkoutFor(port) { +export function checkoutFor(port) { const override = process.env[`LIBTMUX_DOCS_CHECKOUT_${port.slug.toUpperCase()}`] return expand(override || port.checkout) } @@ -251,10 +256,28 @@ export function documentProblems(document, model, scopes, commands) { return problems } +/** The methods named for a command that nothing credits, and the reviews that no longer hold. */ +function sweepProblems({ port, model, document, reviews, exclusions, report, readSource }) { + const has = new Set(Object.entries(document.symbols).flatMap(([symbol, uses]) => uses.map((use) => `${symbol}\0${use.command}`))) + const { candidates } = sweepCandidates({ port, commands: document.commands, symbols: publicSymbols(model), has }) + const { unreviewed, problems } = settleCandidates({ + port, candidates, reviews: reviews.filter((review) => review.port === port), readSource, + // An exclusion settles the builders it removed, and is held to its own evidence elsewhere. + covering: exclusions.filter((exclusion) => exclusion.port === port), + }) + for (const candidate of unreviewed) report.push(`${port} sweep ${candidate.command}: ${candidate.symbol}`) + if (unreviewed.length) { + const shown = unreviewed.slice(0, 6).map((candidate) => `${candidate.symbol.split('.').slice(-2).join('.')} (${candidate.command})`).join(', ') + problems.push(`${port}: ${unreviewed.length} methods named for a command have no entry for it and no review: ${shown}${unreviewed.length > 6 ? ', ...' : ''}`) + } + return problems +} + export async function main() { const scopes = readJson(join(usageDir, 'scopes.json')) const claims = existsSync(claimsPath) ? readJson(claimsPath).claims : [] const exclusions = existsSync(exclusionsPath) ? readJson(exclusionsPath).exclusions : [] + const reviews = existsSync(reviewsPath) ? readJson(reviewsPath).reviews : [] const ports = await portsWithModels() const report = [] const failures = [] @@ -287,7 +310,10 @@ export async function main() { if (!existsSync(path)) { failures.push(`${port.slug}: no ${path}`); continue } const committed = readJson(path) for (const problem of documentProblems(committed, model, scopes, commandsToRecord)) failures.push(`${port.slug}: ${problem}`) - if (!args.includes('--source')) continue + if (!args.includes('--source')) { + failures.push(...sweepProblems({ port: port.slug, model, document: committed, reviews, exclusions, report })) + continue + } } const checkout = checkoutFor(port) if (!existsSync(join(checkout, '.git')) && !existsSync(join(checkout, 'HEAD'))) { @@ -315,6 +341,7 @@ export async function main() { } byPort.set(port.slug, { found, scanned }) const document = portDocument(port.slug, model, [...found.values()], commandsToRecord) + failures.push(...sweepProblems({ port: port.slug, model, document, reviews, exclusions, report, readSource: scanned.readSource })) const text = `${JSON.stringify(document, null, 2)}\n` if (check) { if (text !== readFileSync(path, 'utf8')) failures.push(`${port.slug}: stale; run node scripts/gen-tmux-usage.mjs`) diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 5bee1917b..87d2eeaf6 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -7,8 +7,8 @@ * satisfy every other case. Each case is a different way to be stale: a * revision that moved on, a symbol the model dropped, a scope the command does * not have, evidence that is not a line, a port whose file went missing, a - * command the file does not cover, and a file that covers fewer commands than - * the manual documents. + * command the file does not cover, a file that covers fewer commands than + * the manual documents, and a method named for a command that nothing records. */ import { cpSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' import { tmpdir } from 'node:os' @@ -88,5 +88,15 @@ edit(narrow, 'lua', (document) => { document.commands = ['list-panes'] }) const narrowRun = run(narrow) check('a file that records fewer commands than the manual fails', narrowRun.code !== 0 && /lua: covers \["list-panes"\], expected \["attach-session"/.test(narrowRun.out), narrowRun.out) +const missed = fixture() +edit(missed, 'py', (document) => { delete document.symbols['libtmux.Pane.send_keys'] }) +const missedRun = run(missed) +check('a method named for a command that nothing records fails', missedRun.code !== 0 && /py: \d+ methods named for a command have no entry for it and no review: .*Pane\.send_keys \(send-keys\)/.test(missedRun.out), missedRun.out) + +const covered = fixture() +edit(covered, 'ruby', (document) => { delete document.symbols['LibTmux::Pane#send_keys'] }) +const coveredRun = run(covered) +check('the same miss fails in another port, and the other ports stay quiet', coveredRun.code !== 0 && /ruby: .*send_keys/.test(coveredRun.out) && !/py: .*methods named/.test(coveredRun.out), coveredRun.out) + for (const dir of dirs) rmSync(dir, { recursive: true, force: true }) if (failures) process.exit(1) diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs index fc2ea6032..5e37ceb0a 100644 --- a/scripts/lib/tmux-usage-derive.mjs +++ b/scripts/lib/tmux-usage-derive.mjs @@ -26,7 +26,8 @@ export function classify(spec, flags) { /** `panes(where:)`, `Server.panes` and `Server#list_panes` all name their last identifier. */ export function bareName(name) { - return name.replace(/\(.*$/s, '').split(/[.:#\\]+/).filter(Boolean).at(-1) ?? name + // Kotlin and Scala quote a name that is also a keyword: Buffers.`set`. + return name.replace(/\(.*$/s, '').replace(/`/g, '').split(/[.:#\\]+/).filter(Boolean).at(-1) ?? name } /** diff --git a/scripts/lib/tmux-usage-lexical.mjs b/scripts/lib/tmux-usage-lexical.mjs index 3c8251fff..2db01d429 100644 --- a/scripts/lib/tmux-usage-lexical.mjs +++ b/scripts/lib/tmux-usage-lexical.mjs @@ -156,36 +156,90 @@ export function scanJulia(text, { commands, known }) { if (above?.doc && !lines.slice(docEnd, line - 1).some((value) => value.trim())) start = above.line functions.push({ name: path.at(-1), start, nameLine: line, end, kind: 'function', sites: [], calls: new Map(), receivers: new Map() }) } + /** + * A table loop defines one function per row: `for (op, command, Ref) in ((:kill_pane, "kill-pane", PaneRef), ...)` + * with an `@eval function $op(...)` body. Each row is a function over the whole loop, and a `$command` in the + * body is the command of the row. + */ + const loops = [] + for (const [line, index] of first) { + if (tokens[index].t !== 'id' || tokens[index].v !== 'for' || tokens[index + 1]?.v !== '(') continue + const pattern = groups.find((group) => group.open === index + 1) + const rowsOpen = pattern && tokens[pattern.close + 1]?.v === 'in' && tokens[pattern.close + 2]?.v === '(' ? pattern.close + 2 : undefined + const rowsGroup = rowsOpen && groups.find((group) => group.open === rowsOpen) + if (!rowsGroup) continue + const vars = tokens.slice(pattern.open + 1, pattern.close).filter((token) => token.t === 'id').map((token) => token.v) + const indent = indentOf(lines, line) + let end = 0 + for (let next = tokens[rowsGroup.close].line + 1; next <= lines.length; next++) { + if (new RegExp(`^\\s{${indent}}end\\b`).test(lines[next - 1] ?? '')) { end = next; break } + } + if (!end) continue + const rows = [] + for (let at = rowsGroup.open + 1; at < rowsGroup.close; at++) { + const row = tokens[at]?.v === '(' ? groups.find((group) => group.open === at) : undefined + if (!row) continue + const elements = [] + let current = [] + for (let item = row.open + 1; item < row.close; item++) { + if (tokens[item].v === ',') { elements.push(current); current = [] } else current.push(tokens[item]) + if ('([{'.includes(tokens[item].v)) item = groups.find((group) => group.open === item)?.close ?? item + } + elements.push(current) + const name = elements[0]?.length === 2 && elements[0][0].v === ':' ? elements[0][1].v : undefined + const spelled = elements.findIndex((parts) => parts.length === 1 && parts[0].t === 'str' && known.has(parts[0].v.split(/\s+/)[0])) + if (name && spelled >= 0) rows.push({ name, command: elements[spelled][0].v, commandVar: vars[spelled] }) + at = row.close + } + if (!rows.length) continue + const fns = rows.map((row) => ({ name: row.name, start: line, nameLine: line, end, kind: 'loop', sites: [], calls: new Map(), receivers: new Map(), synthetic: true, row })) + functions.push(...fns) + loops.push({ bodyStart: tokens[rowsGroup.close].line + 1, end, fns }) + } /** The name a function is declared with is not a call of it. */ const isDefinitionName = (token, index, fn) => token.line === fn.nameLine && token.v === fn.name && (tokens[index - 1]?.v === 'function' || tokens[index - 1]?.line !== token.line || tokens[index - 1]?.v === '.') - const owner = (line) => functions.findLast((fn) => fn.nameLine <= line && line <= fn.end) + const owner = (line) => functions.findLast((fn) => !fn.synthetic && fn.nameLine <= line && line <= fn.end) const isCommand = (token) => { if (token.t !== 'str' || token.doc) return undefined const [head, next] = token.v.split(/\s+/) return known.has(head) && (next === undefined || next.startsWith('-')) ? head : undefined } + /** The flags written in the widest bracket group around a token that holds no other command. */ + const flagsAround = (index, command) => { + const holds = (group) => tokens.slice(group.open + 1, group.close).some((other) => { + const found = isCommand(other) + return found && found !== command + }) + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + let around = [tokens[index]] + for (const group of enclosing) { + if (holds(group)) break + around = tokens.slice(group.open, group.close + 1) + } + return [...flagLetters(around)].sort().join('') + } tokens.forEach((token, index) => { + const loop = loops.find((candidate) => candidate.bodyStart <= token.line && token.line <= candidate.end) + const targets = loop ? loop.fns : [owner(token.line)].filter(Boolean) const command = isCommand(token) - const fn = owner(token.line) - if (command && commands.has(command) && fn) { - const holds = (group) => tokens.slice(group.open + 1, group.close).some((other) => { - const found = isCommand(other) - return found && found !== command - }) - const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) - let around = [token] - for (const group of enclosing) { - if (holds(group)) break - around = tokens.slice(group.open, group.close + 1) + if (command && commands.has(command)) for (const fn of targets) fn.sites.push({ command, line: token.line, flags: flagsAround(index, command) }) + // `$command` in a table loop is the command of each row. + if (loop && token.v === '$' && tokens[index + 1]?.t === 'id') { + for (const fn of loop.fns) { + if (fn.row.commandVar === tokens[index + 1].v && commands.has(fn.row.command.split(/\s+/)[0])) { + fn.sites.push({ command: fn.row.command.split(/\s+/)[0], line: token.line, flags: flagsAround(index + 1, fn.row.command.split(/\s+/)[0]) }) + } } - fn.sites.push({ command, line: token.line, flags: [...flagLetters(around)].sort().join('') }) } if (token.t === 'id' && !JULIA_KEYWORDS.has(token.v) && tokens[index + 1]?.v === '(' && tokens[index + 1].line === token.line - && tokens[index + 1].col === token.col + token.v.length && fn && !isDefinitionName(token, index, fn)) { - if (!fn.calls.has(token.v)) fn.calls.set(token.v, token.line) - const receiver = tokens[index - 1]?.v === '.' && tokens[index - 2]?.t === 'id' ? tokens[index - 2].v.toLowerCase() : undefined - if (receiver) fn.receivers.set(token.v, new Set([...(fn.receivers.get(token.v) ?? []), receiver])) + && tokens[index + 1].col === token.col + token.v.length) { + for (const fn of targets) { + if (isDefinitionName(token, index, fn)) continue + if (!fn.calls.has(token.v)) fn.calls.set(token.v, token.line) + const receiver = tokens[index - 1]?.v === '.' && tokens[index - 2]?.t === 'id' ? tokens[index - 2].v.toLowerCase() : undefined + if (receiver) fn.receivers.set(token.v, new Set([...(fn.receivers.get(token.v) ?? []), receiver])) + } } }) return { functions, types: [], orphans: [] } diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index bed190087..70be08307 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -216,11 +216,11 @@ function recordCall(fn, name, receiver, line) { /** * A call that checks a command rather than runs it names it as a label: `validateArgument("select-layout", ...)` - * says whose argument it is in the error it may raise, and `newCommandError("new-session", result)` names the - * command a failure belongs to. The verb ends at a word boundary, so `checkedRun` is a runner and + * says whose argument it is in the error it may raise, `newCommandError("new-session", result)` names the + * command a failure belongs to, and `ThrowIfFailed(result, "new-session")` says which command failed, and `preflight(ctx, "set-option", name)` checks a command before it is built. The verb ends at a word boundary, so `checkedRun` is a runner and * `checkArguments` is not. */ -const CHECKING = /^(?:validate|verify|ensure|reject|require|check|invalid|unsupported)(?![a-z])|(?:Error|Failure|Exception)$/ +const CHECKING = /^(?:[Vv]alidate|[Vv]erify|[Ee]nsure|[Rr]eject|[Rr]equire|[Cc]heck|[Ii]nvalid|[Uu]nsupported|[Tt]hrow|[Pp]reflight)(?![a-z])|(?:Error|Failure|Exception)$/ /** Whether the nearest call around a literal only checks something about the command it names. */ function namedForChecking(grammar, node, CALL) { diff --git a/scripts/lib/tmux-usage-sweep.mjs b/scripts/lib/tmux-usage-sweep.mjs new file mode 100644 index 000000000..ea9d28af5 --- /dev/null +++ b/scripts/lib/tmux-usage-sweep.mjs @@ -0,0 +1,152 @@ +/** + * Find the public methods whose name says they send a tmux command and that no recorded entry credits. + * + * A scan credits a symbol only when the command literal is in its body or one private helper away. A + * method that reaches the literal through a plan, a builder or two helpers is missed, and the page of + * the command then says no method sends it. The name of a method is only how a miss is found, never + * what lists it: every candidate is settled by a reviewed claim that cites the hops, or by a review that + * says why the method does not send the command and cites the line that shows it. + */ +import { bareName } from './tmux-usage-derive.mjs' + +/** Words a method may use for the verb of a command, where the library's wording differs from tmux's. */ +const VERB_ALIASES = { + list: ['list', 'search', 'find', 'get'], + show: ['show', 'get', 'read'], + display: ['display', 'show'], + new: ['new', 'create'], + kill: ['kill', 'close', 'destroy', 'remove', 'delete'], + set: ['set', 'unset', 'append', 'configure', 'apply'], +} + +/** Commands that tmux keeps as spellings of `set-option -w` and `show-options -w`; libraries send the option commands. */ +export const OPTION_SPELLINGS = new Set(['set-window-option', 'show-window-options']) + +/** Where the library itself lives in each port, so a consumer package or a test helper is not swept. */ +export const LIBRARY_ROOTS = { + py: ['src/libtmux/'], + ruby: ['gems/libtmux/', 'gems/libtmux-async/'], + lua: ['lua/libtmux/'], + julia: ['src/'], + ts: ['packages/libtmux/'], + rs: ['crates/libtmux/'], + go: ['tmux/'], + java: ['libtmux/src/'], + kotlin: ['libtmux-kotlin/'], + scala: ['libtmux-scala/', 'libtmux-scala-cats/'], + csharp: ['src/LibTmux/'], + fsharp: ['src/LibTmux.FSharp/'], + powershell: ['src/LibTmux.PowerShell/'], + cxx: ['include/libtmux/'], + swift: ['Sources/LibTmux/'], +} +const NOT_LIBRARY = /(^|\/)(tmuxtest|testing|tests?|examples?)(\/|$)/i +/** Members every type has, whose names are never about a tmux command: `GetHashCode` is not a getter of a list. */ +const OBJECT_MEMBERS = new Set(['GetHashCode', 'GetType', 'ToString', 'Equals', 'hashCode', 'toString', 'equals', 'hash', 'eql?', '__hash__', '__eq__', '__str__', '__repr__', 'inspect', 'to_s']) + +/** `panes` is a plural, `previous` and `access` are not. */ +const singular = (word) => (/(?:ss|us|is)$/.test(word) ? word : word.replace(/s$/, '')) + +/** The lower-case words of a member name, plural stripped: `sendKeysAsync`, `send_keys` and `Send-TmuxText` each give `send` first. */ +export function memberWords(name) { + // Swift names carry their argument labels: `newWindow(in:named:startDirectory:)` is about a window, not about starting. + return name.replace(/\(.*$/s, '').replace(/([a-z0-9])([A-Z])/g, '$1 $2').split(/[^A-Za-z0-9]+/).map((word) => word.toLowerCase()) + .filter((word) => word && word !== 'async' && word !== 'tmux').map(singular) +} + +/** Owners whose handle a command may belong to beyond the noun it names: a pane splits a window. */ +const NOUN_OWNERS = { 'split-window': ['pane', 'window'], 'send-keys': ['pane'], 'capture-pane': ['pane'], 'clear-history': ['pane'], 'rotate-window': ['window'], 'copy-mode': ['pane'] } + +/** Whether a member's name carries the verb of the command and the noun, in its own name or its owner's. */ +export function carriesCommand(command, member, owner) { + const parts = command.split('-') + const accepted = VERB_ALIASES[parts[0]] ?? [parts[0]] + const words = memberWords(member) + if (!words.some((word) => accepted.includes(word))) return false + const noun = singular(parts.at(-1)) + const ownerWords = owner ? memberWords(bareName(owner)) : [] + return words.includes(noun) || ownerWords.includes(noun) || (NOUN_OWNERS[command] ?? []).some((name) => ownerWords.includes(name)) +} + +/** + * @typedef {{ id: string, name: string, parentName?: string, file: string, kind?: string }} SweepSymbol + * @typedef {{ symbol: string, name: string, owner?: string, command: string, file: string }} Candidate + * A method named for one command that has the noun of another only through its owner, `Session.newWindow` for + * `new-session`, is the other command's when the data records that it sends it. That is deduced from an entry + * that cites its own lines, so it settles the candidate without a review. + * + * @param {{ port: string, commands: string[], symbols: SweepSymbol[], has: ReadonlySet }} input + * `has` holds `symbol\0command` for every entry the data records. + * @returns {{ candidates: Candidate[], siblings: number }} `siblings` counts the candidates the method's own sibling command settled. + */ +export function sweepCandidates({ port, commands, symbols, has }) { + const roots = LIBRARY_ROOTS[port] ?? [] + const found = [] + let siblings = 0 + for (const symbol of symbols) { + if (symbol.kind === 'attribute' || OBJECT_MEMBERS.has(symbol.name) || NOT_LIBRARY.test(symbol.file) || !roots.some((root) => symbol.file.startsWith(root))) continue + for (const command of commands) { + if (OPTION_SPELLINGS.has(command) || has.has(`${symbol.id}\0${command}`)) continue + if (!carriesCommand(command, symbol.name, symbol.parentName)) continue + if (commands.some((other) => other !== command && has.has(`${symbol.id}\0${other}`) && carriesCommand(other, symbol.name, symbol.parentName) + && sameVerb(command, other) && !carriesOwn(command, symbol.name))) { siblings++; continue } + found.push({ symbol: symbol.id, name: symbol.name, owner: symbol.parentName, command, file: symbol.file }) + } + } + return { candidates: found, siblings } +} + +const verbOf = (command) => command.split('-')[0] +const sameVerb = (a, b) => verbOf(a) === verbOf(b) +/** Whether the member's own words, and not only its owner's, carry the command's noun. */ +const carriesOwn = (command, member) => memberWords(member).includes(singular(command.split('-').at(-1))) + +/** + * What a review says it covers: the symbols of one owner or by member name, for some commands, in some files. + * @typedef {{ port: string, kind: 'builds' | 'other-command' | 'values' | 'no-send', why: string, owner?: string, ownerSuffix?: string, names?: string[], commands?: string[], in?: string, evidence: { at: string, has?: string[] }[] }} Review + */ +export const REVIEW_KINDS = ['builds', 'other-command', 'values', 'no-send'] + +/** Whether a rule that names an owner, member names and a file prefix selects a candidate. */ +export function selects(rule, candidate) { + return (!rule.owner || (candidate.owner && bareName(candidate.owner) === rule.owner)) + && (!rule.ownerSuffix || (candidate.owner && bareName(candidate.owner).endsWith(rule.ownerSuffix))) + && (!rule.names || rule.names.includes(candidate.name) || rule.names.includes(candidate.name.replace(/\(.*$/s, ''))) + && (!rule.commands || rule.commands.includes(candidate.command)) + && (!rule.in || candidate.file.startsWith(rule.in)) +} + +/** + * Settle the candidates with the reviews, and check each review against the pinned source. + * + * @param {{ port: string, candidates: Candidate[], reviews: Review[], covering?: Omit[], readSource?: (path: string) => string | undefined }} input + * Without `readSource` the evidence lines are not read, which is what a check without a checkout can do. + * `covering` rules settle the candidates they select without being checked here: they are held to their own evidence elsewhere. + * @returns {{ unreviewed: Candidate[], reviewed: number, problems: string[] }} + */ +export function settleCandidates({ port, candidates, reviews, covering = [], readSource }) { + const problems = [] + const covered = new Set() + for (const rule of covering) for (const candidate of candidates) if (selects(rule, candidate)) covered.add(candidate) + for (const review of reviews) { + const label = `${port}: review of ${review.owner ?? review.ownerSuffix ?? ''}${review.names ? `.${review.names.join('|')}` : ''}${review.commands ? ` for ${review.commands.join(',')}` : ''}` + if (!review.owner && !review.ownerSuffix && !review.names && !review.commands) { problems.push(`${label}: names no owner, member or command`); continue } + if (!REVIEW_KINDS.includes(review.kind)) { problems.push(`${label}: kind ${JSON.stringify(review.kind)} is not one of ${REVIEW_KINDS.join(', ')}`); continue } + if (!review.why?.trim()) { problems.push(`${label}: gives no reason`); continue } + if (!review.evidence?.length) { problems.push(`${label}: cites no evidence`); continue } + let broken = false + for (const item of readSource ? review.evidence : []) { + const file = item.at.slice(0, item.at.lastIndexOf(':')) + const line = readSource(file)?.split('\n')[Number(item.at.slice(item.at.lastIndexOf(':') + 1)) - 1] + if (line === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); broken = true; continue } + for (const needle of item.has ?? []) { + if (!line.includes(needle)) { problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } + } + } + if (broken) continue + const hit = candidates.filter((candidate) => selects(review, candidate)) + if (!hit.length) problems.push(`${label}: settles no candidate, so it is stale`) + for (const candidate of hit) covered.add(candidate) + } + return { unreviewed: candidates.filter((candidate) => !covered.has(candidate)), reviewed: covered.size, problems } +} diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 19bd94fdf..745b10fb4 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -89,2796 +89,9226 @@ ] }, { - "port": "ts", - "symbol": "server.Server.snapshot", - "command": "list-panes", - "scope": "server", + "port": "rs", + "symbol": "pane.Pane.capture", + "command": "capture-pane", + "scope": null, "evidence": [ { - "at": "packages/libtmux/src/_internal/operations/acquire.ts:27", - "has": [ - "\"list-panes\"", - "[\"-a\"]" - ] - }, - { - "at": "packages/libtmux/src/_internal/operations/acquire.ts:90", + "at": "crates/libtmux/src/pane/observe.rs:174", "has": [ - "ACQUISITION_LISTINGS" + "capture-pane" ] }, { - "at": "packages/libtmux/src/_internal/operations/acquire.ts:126", + "at": "crates/libtmux/src/pane/observe.rs:121", "has": [ - "acquireServerGraphAttempt" - ] - }, + "capture_with(" + ], + "in": "pane.Pane.capture" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.set_option", + "command": "set-option", + "scope": null, + "evidence": [ { - "at": "packages/libtmux/src/_internal/operations/snapshot.ts:42", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "acquireServerGraph" + "set-option" ] }, { - "at": "packages/libtmux/src/server.ts:533", + "at": "crates/libtmux/src/pane/settings.rs:87", "has": [ - "buildServerSnapshot" + "set(" ], - "in": "server.Server.snapshot" + "in": "pane.Pane.set_option" } ] }, { - "port": "ruby", - "symbol": "LibTmux::Server#list_panes", - "command": "list-panes", - "scope": "server", + "port": "rs", + "symbol": "pane.Pane.set_typed_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "gems/libtmux/lib/libtmux/server.rb:470", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"list-#{kind}s\"" + "set-option" ] }, { - "at": "gems/libtmux/lib/libtmux/server.rb:163", + "at": "crates/libtmux/src/internal/options.rs:206", "has": [ - "list_entities(:pane", - "[\"-a\"]" + "set(" + ] + }, + { + "at": "crates/libtmux/src/pane/settings.rs:128", + "has": [ + "set_typed(" ], - "in": "LibTmux::Server#list_panes" + "in": "pane.Pane.set_typed_option" } ] }, { - "port": "ruby", - "symbol": "LibTmux::Session#list_panes", - "command": "list-panes", - "scope": "session", + "port": "rs", + "symbol": "pane.Pane.append_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "gems/libtmux/lib/libtmux/server.rb:470", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"list-#{kind}s\"" + "set-option" ] }, { - "at": "gems/libtmux/lib/libtmux/entity.rb:113", + "at": "crates/libtmux/src/pane/settings.rs:147", "has": [ - ":list_entities, :pane", - "[\"-s\", \"-t\"" + "set(" ], - "in": "LibTmux::Session#list_panes" + "in": "pane.Pane.append_option" } ] }, { - "port": "ruby", - "symbol": "LibTmux::Window#list_panes", - "command": "list-panes", - "scope": "window", + "port": "rs", + "symbol": "pane.Pane.unset_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "gems/libtmux/lib/libtmux/server.rb:470", + "at": "crates/libtmux/src/internal/options.rs:222", "has": [ - "\"list-#{kind}s\"" + "set-option" ] }, { - "at": "gems/libtmux/lib/libtmux/entity.rb:123", + "at": "crates/libtmux/src/pane/settings.rs:160", "has": [ - ":list_entities, :pane", - "[\"-t\"" + "unset(" ], - "in": "LibTmux::Window#list_panes" + "in": "pane.Pane.unset_option" } ] }, { - "port": "go", - "symbol": "tmux.Server.NewSession", - "command": "new-session", + "port": "rs", + "symbol": "server.Server.wait_for_channel", + "command": "wait-for", "scope": null, "evidence": [ { - "at": "tmux/session_lifecycle.go:91", + "at": "crates/libtmux/src/internal/wait_for.rs:363", "has": [ - "\"new-session\"" + "wait-for" ] }, { - "at": "tmux/session_lifecycle.go:62", + "at": "crates/libtmux/src/internal/wait_for.rs:248", "has": [ - "renderNewSessionArguments(" + "channel_command(" ] }, { - "at": "tmux/session_lifecycle.go:230", + "at": "crates/libtmux/src/internal/wait_for.rs:221", "has": [ - "newSessionArguments(request)" + "park(" ] }, { - "at": "tmux/session_lifecycle.go:234", + "at": "crates/libtmux/src/server/channels.rs:225", "has": [ - "literalCmd(ctx, arguments...)" + "wait(" ], - "in": "tmux.Server.NewSession" + "in": "server.Server.wait_for_channel" } ] }, { - "port": "go", - "symbol": "tmux.Session.NewWindow", - "command": "new-window", + "port": "rs", + "symbol": "server.Server.set_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "tmux/window_lifecycle.go:157", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"new-window\"" + "set-option" ] }, { - "at": "tmux/window_lifecycle.go:213", + "at": "crates/libtmux/src/server/settings.rs:102", "has": [ - "newWindowArguments(" + "set(" + ], + "in": "server.Server.set_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_typed_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:165", + "has": [ + "set-option" ] }, { - "at": "tmux/window_lifecycle.go:224", + "at": "crates/libtmux/src/internal/options.rs:206", "has": [ - "literalCmd(ctx, arguments...)" + "set(" ] }, { - "at": "tmux/window_lifecycle.go:88", + "at": "crates/libtmux/src/server/settings.rs:130", "has": [ - "return newWindow(" + "set_typed(" ], - "in": "tmux.Session.NewWindow" + "in": "server.Server.set_typed_option" } ] }, { - "port": "go", - "symbol": "tmux.Window.NewWindow", - "command": "new-window", + "port": "rs", + "symbol": "server.Server.unset_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "tmux/window_lifecycle.go:157", + "at": "crates/libtmux/src/internal/options.rs:222", "has": [ - "\"new-window\"" + "set-option" ] }, { - "at": "tmux/window_lifecycle.go:213", + "at": "crates/libtmux/src/server/settings.rs:139", "has": [ - "newWindowArguments(" - ] - }, + "unset(" + ], + "in": "server.Server.unset_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_global_option", + "command": "set-option", + "scope": null, + "evidence": [ { - "at": "tmux/window_lifecycle.go:224", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "literalCmd(ctx, arguments...)" + "set-option" ] }, { - "at": "tmux/window_lifecycle.go:117", + "at": "crates/libtmux/src/server/settings.rs:155", "has": [ - "return newWindow(" + "set(" ], - "in": "tmux.Window.NewWindow" + "in": "server.Server.set_global_option" } ] }, { - "port": "go", - "symbol": "tmux.Pane.Capture", - "command": "capture-pane", + "port": "rs", + "symbol": "server.Server.set_typed_global_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "tmux/pane_capture.go:282", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"capture-pane\"" + "set-option" ] }, { - "at": "tmux/pane_capture.go:222", + "at": "crates/libtmux/src/internal/options.rs:206", "has": [ - "p.captureArguments(" + "set(" ] }, { - "at": "tmux/pane_capture.go:232", + "at": "crates/libtmux/src/server/settings.rs:194", "has": [ - "p.literalCmd(ctx, arguments...)" + "set_typed(" + ], + "in": "server.Server.set_typed_global_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/environment.rs:47", + "has": [ + "set-environment" ] }, { - "at": "tmux/pane_capture.go:127", + "at": "crates/libtmux/src/server/settings.rs:258", "has": [ - "p.capturePane(" + "set(" ], - "in": "tmux.Pane.Capture" + "in": "server.Server.set_environment" } ] }, { - "port": "go", - "symbol": "tmux.Pane.CaptureBytes", - "command": "capture-pane", + "port": "rs", + "symbol": "server.Server.unset_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "tmux/pane_capture.go:282", + "at": "crates/libtmux/src/internal/environment.rs:76", "has": [ - "\"capture-pane\"" + "set-environment" ] }, { - "at": "tmux/pane_capture.go:222", + "at": "crates/libtmux/src/server/settings.rs:315", "has": [ - "p.captureArguments(" - ] - }, + "unset(" + ], + "in": "server.Server.unset_environment" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_array_option", + "command": "set-option", + "scope": null, + "evidence": [ { - "at": "tmux/pane_capture.go:232", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "p.literalCmd(ctx, arguments...)" + "set-option" ] }, { - "at": "tmux/pane_capture.go:141", + "at": "crates/libtmux/src/server/settings.rs:376", "has": [ - "p.capturePane(" + "set(" ], - "in": "tmux.Pane.CaptureBytes" + "in": "server.Server.set_array_option" } ] }, { - "port": "go", - "symbol": "tmux.Pane.CaptureToBuffer", - "command": "capture-pane", + "port": "rs", + "symbol": "server.Server.append_array_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "tmux/pane_capture.go:282", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"capture-pane\"" + "set-option" ] }, { - "at": "tmux/pane_capture.go:222", + "at": "crates/libtmux/src/server/settings.rs:400", "has": [ - "p.captureArguments(" + "set(" + ], + "in": "server.Server.append_array_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.unset_array_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:222", + "has": [ + "set-option" ] }, { - "at": "tmux/pane_capture.go:232", + "at": "crates/libtmux/src/server/settings.rs:416", "has": [ - "p.literalCmd(ctx, arguments...)" + "unset(" + ], + "in": "server.Server.unset_array_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_global_window_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:165", + "has": [ + "set-option" ] }, { - "at": "tmux/pane_capture.go:157", + "at": "crates/libtmux/src/server/settings.rs:431", "has": [ - "p.capturePane(" + "set(" ], - "in": "tmux.Pane.CaptureToBuffer" + "in": "server.Server.set_global_window_option" } ] }, { - "port": "java", - "symbol": "io.github.libtmux.Server.Server.snapshot", - "command": "list-panes", - "scope": "server", + "port": "rs", + "symbol": "server.Server.set_typed_global_window_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"list-panes\"", - "\"-a\"" + "set-option" ] }, { - "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "at": "crates/libtmux/src/internal/options.rs:206", "has": [ - "capture(process)" + "set(" ] }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:878", + "at": "crates/libtmux/src/server/settings.rs:461", "has": [ - "capture.attempt()" + "set_typed(" ], - "in": "io.github.libtmux.Server.Server.snapshot" + "in": "server.Server.set_typed_global_window_option" } - ], - "forwardable": true + ] }, { - "port": "csharp", - "symbol": "LibTmux.Server.CaptureSnapshotAsync", - "command": "list-panes", - "scope": "server", + "port": "rs", + "symbol": "session.Session.set_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "\"list-panes\"", - "[\"-a\"" + "set-option" ] }, { - "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "at": "crates/libtmux/src/session/settings.rs:90", "has": [ - "ReadRowsAsync" - ] - }, + "set(" + ], + "in": "session.Session.set_option" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_typed_option", + "command": "set-option", + "scope": null, + "evidence": [ { - "at": "src/LibTmux/Server.Snapshots.cs:119", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - ".ReadAsync(live, depth, sessionFilter" + "set-option" ] }, { - "at": "src/LibTmux/Server.Snapshots.cs:98", + "at": "crates/libtmux/src/internal/options.rs:206", "has": [ - "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + "set(" ] }, { - "at": "src/LibTmux/Server.Snapshots.cs:91", + "at": "crates/libtmux/src/session/settings.rs:151", "has": [ - "CaptureSnapshotAsync(depth, TimeProvider.System" + "set_typed(" ], - "in": "LibTmux.Server.CaptureSnapshotAsync" + "in": "session.Session.set_typed_option" } ] }, { - "port": "powershell", - "symbol": "LibTmux\\Get-TmuxPane", - "command": "list-panes", - "scope": "server", - "via": { - "port": "csharp", - "symbol": "LibTmux.Server.CaptureSnapshotAsync" - }, + "port": "rs", + "symbol": "session.Session.append_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:49", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "Server!.CaptureSnapshotAsync(SnapshotDepth.Panes" + "set-option" + ] + }, + { + "at": "crates/libtmux/src/session/settings.rs:170", + "has": [ + "set(" ], - "in": "LibTmux\\Get-TmuxPane" + "in": "session.Session.append_option" } ] }, { - "port": "julia", - "symbol": "LibTmux.snapshot", - "command": "list-panes", - "scope": "server", + "port": "rs", + "symbol": "session.Session.unset_option", + "command": "set-option", + "scope": null, "evidence": [ { - "at": "src/acquisition.jl:120", - "has": [ - "\"list-panes\"" - ] - }, - { - "at": "src/acquisition.jl:125", + "at": "crates/libtmux/src/internal/options.rs:222", "has": [ - "args=(\"-a\",)" + "set-option" ] }, { - "at": "src/acquisition.jl:231", + "at": "crates/libtmux/src/session/settings.rs:190", "has": [ - "_capture_graph_rows(" + "unset(" ], - "in": "LibTmux.snapshot" + "in": "session.Session.unset_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:capture", - "command": "capture-pane", + "port": "rs", + "symbol": "session.Session.set_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:10", - "has": [ - "capture = \"capture-pane\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/environment.rs:47", "has": [ - "commands[kind]" + "set-environment" ] }, { - "at": "lua/libtmux/_internal/entity.lua:180", + "at": "crates/libtmux/src/session/settings.rs:373", "has": [ - "\"capture\"" + "set(" ], - "in": "libtmux.Pane:capture" + "in": "session.Session.set_environment" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:clear_history", - "command": "clear-history", + "port": "rs", + "symbol": "session.Session.unset_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:12", - "has": [ - "clear_history = \"clear-history\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/environment.rs:76", "has": [ - "commands[kind]" + "set-environment" ] }, { - "at": "lua/libtmux/_internal/entity.lua:185", + "at": "crates/libtmux/src/session/settings.rs:538", "has": [ - "\"clear_history\"" + "unset(" ], - "in": "libtmux.Pane:clear_history" + "in": "session.Session.unset_environment" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:capture_to_buffer", - "command": "capture-pane", + "port": "rs", + "symbol": "window.Window.set_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:11", - "has": [ - "capture_to_buffer = \"capture-pane\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "commands[kind]" + "set-option" ] }, { - "at": "lua/libtmux/_internal/entity.lua:190", + "at": "crates/libtmux/src/window/settings.rs:90", "has": [ - "\"capture_to_buffer\"" + "set(" ], - "in": "libtmux.Pane:capture_to_buffer" + "in": "window.Window.set_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:send_text", - "command": "send-keys", + "port": "rs", + "symbol": "window.Window.set_typed_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:13", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "send_text = \"send-keys\"" + "set-option" ] }, { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/options.rs:206", "has": [ - "commands[kind]" + "set(" ] }, { - "at": "lua/libtmux/_internal/entity.lua:195", + "at": "crates/libtmux/src/window/settings.rs:131", "has": [ - "\"send_text\"" + "set_typed(" ], - "in": "libtmux.Pane:send_text" + "in": "window.Window.set_typed_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:send_keys", - "command": "send-keys", + "port": "rs", + "symbol": "window.Window.append_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:14", - "has": [ - "send_keys = \"send-keys\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/options.rs:165", "has": [ - "commands[kind]" + "set-option" ] }, { - "at": "lua/libtmux/_internal/entity.lua:200", + "at": "crates/libtmux/src/window/settings.rs:150", "has": [ - "\"send_keys\"" + "set(" ], - "in": "libtmux.Pane:send_keys" + "in": "window.Window.append_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:copy_mode", - "command": "copy-mode", + "port": "rs", + "symbol": "window.Window.unset_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:15", - "has": [ - "copy_mode = \"copy-mode\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/options.rs:222", "has": [ - "commands[kind]" + "set-option" ] }, { - "at": "lua/libtmux/_internal/entity.lua:205", + "at": "crates/libtmux/src/window/settings.rs:170", "has": [ - "\"copy_mode\"" + "unset(" ], - "in": "libtmux.Pane:copy_mode" + "in": "window.Window.unset_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:copy_command", - "command": "send-keys", + "port": "rs", + "symbol": "pane.Pane.set_hook", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:16", + "at": "crates/libtmux/src/internal/options.rs:266", "has": [ - "copy_command = \"send-keys\"" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/pane/settings.rs:177", "has": [ - "commands[kind]" + "options::set_hook(" + ], + "in": "pane.Pane.set_hook" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:283", + "has": [ + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/entity.lua:213", + "at": "crates/libtmux/src/pane/settings.rs:190", "has": [ - "\"copy_command\"" + "options::unset_hook(" ], - "in": "libtmux.Pane:copy_command" + "in": "pane.Pane.unset_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:resize", - "command": "resize-pane", + "port": "rs", + "symbol": "server.Server.set_hook", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:17", + "at": "crates/libtmux/src/internal/options.rs:266", "has": [ - "resize = \"resize-pane\"" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/server/settings.rs:473", "has": [ - "commands[kind]" - ] - }, + "options::set_hook(" + ], + "in": "server.Server.set_hook" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/entity.lua:221", + "at": "crates/libtmux/src/internal/options.rs:283", "has": [ - "implementation = ", - "pane" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/entity.lua:222", + "at": "crates/libtmux/src/server/settings.rs:482", "has": [ - "\"resize\"" + "options::unset_hook(" ], - "in": "libtmux.Pane:resize" + "in": "server.Server.unset_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:kill", - "command": "kill-pane", + "port": "rs", + "symbol": "server.Server.set_hooks", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:18", + "at": "crates/libtmux/src/internal/options.rs:582", "has": [ - "kill = \"kill-pane\"" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/server/settings.rs:545", "has": [ - "commands[kind]" - ] - }, + "options::set_hooks(" + ], + "in": "server.Server.set_hooks" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/entity.lua:227", + "at": "crates/libtmux/src/internal/options.rs:266", "has": [ - "implementation = ", - "pane" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/entity.lua:228", + "at": "crates/libtmux/src/session/settings.rs:207", "has": [ - "\"kill\"" + "options::set_hook(" ], - "in": "libtmux.Pane:kill" + "in": "session.Session.set_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:respawn", - "command": "respawn-pane", + "port": "rs", + "symbol": "session.Session.unset_hook", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:19", + "at": "crates/libtmux/src/internal/options.rs:283", "has": [ - "respawn = \"respawn-pane\"" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/session/settings.rs:220", "has": [ - "commands[kind]" - ] - }, + "options::unset_hook(" + ], + "in": "session.Session.unset_hook" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/entity.lua:253", + "at": "crates/libtmux/src/internal/options.rs:582", "has": [ - "implementation = ", - "pane" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/entity.lua:254", + "at": "crates/libtmux/src/session/settings.rs:284", "has": [ - "\"respawn\"" + "options::set_hooks(" ], - "in": "libtmux.Pane:respawn" + "in": "session.Session.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:select", - "command": "select-pane", + "port": "rs", + "symbol": "window.Window.set_hook", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:20", + "at": "crates/libtmux/src/internal/options.rs:266", "has": [ - "select = \"select-pane\"" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/window/settings.rs:187", "has": [ - "commands[kind]" - ] - }, - { - "at": "lua/libtmux/_internal/entity.lua:259", - "has": [ - "implementation = ", - "pane" - ] - }, - { - "at": "lua/libtmux/_internal/entity.lua:260", - "has": [ - "\"select\"" + "options::set_hook(" ], - "in": "libtmux.Pane:select" + "in": "window.Window.set_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:set_title", - "command": "select-pane", + "port": "rs", + "symbol": "window.Window.unset_hook", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:21", - "has": [ - "set_title = \"select-pane\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", + "at": "crates/libtmux/src/internal/options.rs:283", "has": [ - "commands[kind]" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/entity.lua:297", + "at": "crates/libtmux/src/window/settings.rs:200", "has": [ - "\"set_title\"" + "options::unset_hook(" ], - "in": "libtmux.Pane:set_title" + "in": "window.Window.unset_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:swap", - "command": "swap-pane", + "port": "rs", + "symbol": "window.Window.set_hooks", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/pane.lua:22", - "has": [ - "swap = \"swap-pane\"" - ] - }, - { - "at": "lua/libtmux/_internal/pane.lua:226", - "has": [ - "commands[kind]" - ] - }, - { - "at": "lua/libtmux/_internal/entity.lua:307", + "at": "crates/libtmux/src/internal/options.rs:582", "has": [ - "implementation = ", - "pane" + "Command::new(\"set-hook\")" ] }, { - "at": "lua/libtmux/_internal/entity.lua:308", + "at": "crates/libtmux/src/window/settings.rs:268", "has": [ - "\"swap\"" + "options::set_hooks(" ], - "in": "libtmux.Pane:swap" + "in": "window.Window.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:rename", - "command": "rename-session", - "scope": null, + "port": "rs", + "symbol": "session.Session.windows", + "command": "list-windows", + "scope": "session", "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:64", + "at": "crates/libtmux/src/internal/listing.rs:156", "has": [ - "rename = \"rename-session\"" + "LIST_COMMAND: &str = \"list-windows\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "crates/libtmux/src/internal/listing.rs:59", "has": [ - "targets[" + "Self::Target" ] }, { - "at": "lua/libtmux/_internal/entity.lua:233", + "at": "crates/libtmux/src/session.rs:280", "has": [ - "\"rename\"" + "listing::windows(&self.core, listing::Scope::Target(&target)" ], - "in": "libtmux.Session:rename" + "in": "session.Session.windows" } ] }, { - "port": "lua", - "symbol": "libtmux.Window:rename", - "command": "rename-window", - "scope": null, + "port": "rs", + "symbol": "session.Session.search_windows", + "command": "list-windows", + "scope": "session", "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:70", + "at": "crates/libtmux/src/internal/listing.rs:156", "has": [ - "rename = \"rename-window\"" + "LIST_COMMAND: &str = \"list-windows\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "crates/libtmux/src/internal/listing.rs:59", "has": [ - "targets[" + "Self::Target" ] }, { - "at": "lua/libtmux/_internal/entity.lua:233", + "at": "crates/libtmux/src/session.rs:280", "has": [ - "\"rename\"" + "listing::windows(&self.core, listing::Scope::Target(&target)" + ] + }, + { + "at": "crates/libtmux/src/session.rs:324", + "has": [ + "self.windows().await?" ], - "in": "libtmux.Window:rename" + "in": "session.Session.search_windows" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:kill", - "command": "kill-session", - "scope": null, + "port": "rs", + "symbol": "window.Window.search_panes", + "command": "list-panes", + "scope": "window", "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:65", + "at": "crates/libtmux/src/internal/listing.rs:204", "has": [ - "kill = \"kill-session\"" + "LIST_COMMAND: &str = \"list-panes\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "crates/libtmux/src/internal/listing.rs:59", "has": [ - "targets[" + "Self::Target" ] }, { - "at": "lua/libtmux/_internal/entity.lua:227", + "at": "crates/libtmux/src/window/navigation.rs:23", "has": [ - "implementation = ", - "topology" + "listing::panes" ] }, { - "at": "lua/libtmux/_internal/entity.lua:228", + "at": "crates/libtmux/src/window/navigation.rs:67", "has": [ - "\"kill\"" + "self.panes().await?" ], - "in": "libtmux.Session:kill" + "in": "window.Window.search_panes" } ] }, { - "port": "lua", - "symbol": "libtmux.Window:kill", - "command": "kill-window", - "scope": null, + "port": "ts", + "symbol": "server.Server.snapshot", + "command": "list-panes", + "scope": "server", "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:71", + "at": "packages/libtmux/src/_internal/operations/acquire.ts:27", "has": [ - "kill = \"kill-window\"" + "\"list-panes\"", + "[\"-a\"]" ] }, { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "packages/libtmux/src/_internal/operations/acquire.ts:90", "has": [ - "targets[" + "ACQUISITION_LISTINGS" ] }, { - "at": "lua/libtmux/_internal/entity.lua:227", + "at": "packages/libtmux/src/_internal/operations/acquire.ts:126", "has": [ - "implementation = ", - "topology" + "acquireServerGraphAttempt" ] }, { - "at": "lua/libtmux/_internal/entity.lua:228", + "at": "packages/libtmux/src/_internal/operations/snapshot.ts:42", "has": [ - "\"kill\"" + "acquireServerGraph" + ] + }, + { + "at": "packages/libtmux/src/server.ts:533", + "has": [ + "buildServerSnapshot" ], - "in": "libtmux.Window:kill" + "in": "server.Server.snapshot" } ] }, { - "port": "lua", - "symbol": "libtmux.Window:resize", - "command": "resize-window", + "port": "ts", + "symbol": "server.Server.newSession", + "command": "new-session", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:72", + "at": "packages/libtmux/src/_internal/operations/plans.ts:35", "has": [ - "resize = \"resize-window\"" + "\"new-session\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "packages/libtmux/src/_internal/operations/plans.ts:120", "has": [ - "targets[" + "argv: newSessionArgs(options)" ] }, { - "at": "lua/libtmux/_internal/entity.lua:221", + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", "has": [ - "implementation = ", - "topology" + "runCommand(runtime, plan.argv, options)" ] }, { - "at": "lua/libtmux/_internal/entity.lua:222", + "at": "packages/libtmux/src/_internal/operations/mutations.ts:52", "has": [ - "\"resize\"" + "runPlan(server, runtime, planNewSession(options), options)" + ] + }, + { + "at": "packages/libtmux/src/server.ts:1115", + "has": [ + "return newSession(this, runtimeForServer(this), options)" ], - "in": "libtmux.Window:resize" + "in": "server.Server.newSession" } ] }, { - "port": "lua", - "symbol": "libtmux.Window:layout", - "command": "select-layout", + "port": "ts", + "symbol": "pane.Pane.showOptions", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:73", - "has": [ - "layout = \"select-layout\"" - ] - }, - { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "packages/libtmux/src/_internal/operations/options.ts:114", "has": [ - "targets[" + "\"show-options\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:248", + "at": "packages/libtmux/src/pane.ts:181", "has": [ - "\"layout\"" + "return showOptions(runtimeFor" ], - "in": "libtmux.Window:layout" + "in": "pane.Pane.showOptions" } ] }, { - "port": "lua", - "symbol": "libtmux.Window:respawn", - "command": "respawn-window", + "port": "ts", + "symbol": "pane.Pane.setOption", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:74", + "at": "packages/libtmux/src/_internal/operations/options.ts:175", "has": [ - "respawn = \"respawn-window\"" + "\"set-option\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "packages/libtmux/src/pane.ts:207", "has": [ - "targets[" - ] - }, + "return setOption(runtimeFor" + ], + "in": "pane.Pane.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/entity.lua:253", + "at": "packages/libtmux/src/_internal/operations/options.ts:201", "has": [ - "implementation = ", - "topology" + "\"set-option\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:254", + "at": "packages/libtmux/src/pane.ts:218", "has": [ - "\"respawn\"" + "return unsetOption(runtimeFor" ], - "in": "libtmux.Window:respawn" + "in": "pane.Pane.unsetOption" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:renumber_windows", - "command": "move-window", + "port": "ts", + "symbol": "server.Server.showOptions", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:66", - "has": [ - "renumber_windows = \"move-window\"" - ] - }, - { - "at": "lua/libtmux/_internal/topology.lua:339", + "at": "packages/libtmux/src/_internal/operations/options.ts:114", "has": [ - "targets[" + "\"show-options\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:243", + "at": "packages/libtmux/src/server.ts:783", "has": [ - "\"renumber_windows\"" + "return showOptions(runtimeFor" ], - "in": "libtmux.Session:renumber_windows" + "in": "server.Server.showOptions" } ] }, { - "port": "lua", - "symbol": "libtmux.WindowLink:select", - "command": "select-window", + "port": "ts", + "symbol": "server.Server.setOption", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:77", + "at": "packages/libtmux/src/_internal/operations/options.ts:175", "has": [ - "select = \"select-window\"" + "\"set-option\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:201", + "at": "packages/libtmux/src/server.ts:809", "has": [ - "targets.window_link[kind]" - ] - }, + "return setOption(runtimeFor" + ], + "in": "server.Server.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/entity.lua:259", + "at": "packages/libtmux/src/_internal/operations/options.ts:201", "has": [ - "implementation = ", - "topology" + "\"set-option\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:260", + "at": "packages/libtmux/src/server.ts:820", "has": [ - "\"select\"" + "return unsetOption(runtimeFor" ], - "in": "libtmux.WindowLink:select" + "in": "server.Server.unsetOption" } ] }, { - "port": "lua", - "symbol": "libtmux.WindowLink:link", - "command": "link-window", + "port": "ts", + "symbol": "session.Session.showOptions", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:78", + "at": "packages/libtmux/src/_internal/operations/options.ts:114", "has": [ - "link = \"link-window\"" + "\"show-options\"" ] }, + { + "at": "packages/libtmux/src/session.ts:118", + "has": [ + "return showOptions(runtimeFor" + ], + "in": "session.Session.showOptions" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.setOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:144", + "has": [ + "return setOption(runtimeFor" + ], + "in": "session.Session.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:155", + "has": [ + "return unsetOption(runtimeFor" + ], + "in": "session.Session.unsetOption" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.showOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/window.ts:233", + "has": [ + "return showOptions(runtimeFor" + ], + "in": "window.Window.showOptions" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.setOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/window.ts:259", + "has": [ + "return setOption(runtimeFor" + ], + "in": "window.Window.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/window.ts:270", + "has": [ + "return unsetOption(runtimeFor" + ], + "in": "window.Window.unsetOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.showGlobalOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:856", + "has": [ + "return showOptions(runtimeForServer(this), scope" + ], + "in": "server.Server.showGlobalOptions" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.setGlobalOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:872", + "has": [ + "return setOption(runtimeForServer(this), scope" + ], + "in": "server.Server.setGlobalOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.unsetGlobalOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:886", + "has": [ + "return unsetOption(runtimeForServer(this), scope" + ], + "in": "server.Server.unsetGlobalOption" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:97", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:154", + "has": [ + "splitWindowArgs(target, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:70", + "has": [ + "planSplitWindow(" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:233", + "has": [ + "splitWindow(this.server" + ], + "in": "pane.Pane.split" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:97", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:154", + "has": [ + "splitWindowArgs(target, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:70", + "has": [ + "planSplitWindow(" + ] + }, + { + "at": "packages/libtmux/src/window.ts:285", + "has": [ + "splitWindow(this.server" + ], + "in": "window.Window.split" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.newWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:71", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:133", + "has": [ + "newWindowArgs(sessionId, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:61", + "has": [ + "planNewWindow(" + ] + }, + { + "at": "packages/libtmux/src/session.ts:307", + "has": [ + "newWindow(this.server" + ], + "in": "session.Session.newWindow" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.killIfWindowUnshared", + "command": "kill-pane", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:195", + "has": [ + "[\"kill-pane\", \"-t\", target]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:192", + "has": [ + "conditionalTargetMutation(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:86", + "has": [ + "planKillPaneIfUnshared(target).argv" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:255", + "has": [ + "killPaneIfWindowUnshared(" + ], + "in": "pane.Pane.killIfWindowUnshared" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.nextLayout", + "command": "next-layout", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:412", + "has": [ + "`${step}-layout`" + ] + }, + { + "at": "packages/libtmux/src/window.ts:318", + "has": [ + "cycleLayout(runtimeForHandle(this), this.id, \"next\")" + ], + "in": "window.Window.nextLayout" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.previousLayout", + "command": "previous-layout", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:412", + "has": [ + "`${step}-layout`" + ] + }, + { + "at": "packages/libtmux/src/window.ts:329", + "has": [ + "cycleLayout(runtimeForHandle(this), this.id, \"previous\")" + ], + "in": "window.Window.previousLayout" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:163", + "has": [ + "list_entities(:pane", + "[\"-a\"]" + ], + "in": "LibTmux::Server#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#list_panes", + "command": "list-panes", + "scope": "session", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:113", + "has": [ + ":list_entities, :pane", + "[\"-s\", \"-t\"" + ], + "in": "LibTmux::Session#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Window#list_panes", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:123", + "has": [ + ":list_entities, :pane", + "[\"-t\"" + ], + "in": "LibTmux::Window#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_sessions", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:155", + "has": [ + "list_entities(:session" + ], + "in": "LibTmux::Server#list_sessions" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_windows", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:159", + "has": [ + "list_entities(:window, [\"-a\"]" + ], + "in": "LibTmux::Server#list_windows" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_window_links", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\", *flags" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:74", + "has": [ + "acquire_links([\"-a\"]" + ], + "in": "LibTmux::Server#list_window_links" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#search_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/source_query.rb:42", + "has": [ + "server.snapshot(**options)" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:232", + "has": [ + "SourceQuery.new(:pane" + ], + "in": "LibTmux::Server#search_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:72", + "has": [ + "[\"list-sessions\"]" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:84", + "has": [ + "\"list-windows\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:94", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_sessions", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:155", + "has": [ + "list_entities(:session" + ], + "in": "LibTmux::Async::Server#list_sessions" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_windows", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:159", + "has": [ + "list_entities(:window, [\"-a\"]" + ], + "in": "LibTmux::Async::Server#list_windows" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_window_links", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\", *flags" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:74", + "has": [ + "acquire_links([\"-a\"]" + ], + "in": "LibTmux::Async::Server#list_window_links" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#search_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/source_query.rb:42", + "has": [ + "server.snapshot(**options)" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:232", + "has": [ + "SourceQuery.new(:pane" + ], + "in": "LibTmux::Async::Server#search_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:72", + "has": [ + "[\"list-sessions\"]" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:84", + "has": [ + "\"list-windows\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:94", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:163", + "has": [ + "list_entities(:pane, [\"-a\"]" + ], + "in": "LibTmux::Async::Server#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#list_windows", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:109", + "has": [ + ":list_entities, :window, [\"-t\"" + ], + "in": "LibTmux::Session#list_windows" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#list_window_links", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\", *flags" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:265", + "has": [ + ":acquire_links, [\"-t\", target]" + ], + "in": "LibTmux::Session#list_window_links" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#new_window", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:509", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:104", + "has": [ + "server.__send__(:create_window" + ], + "in": "LibTmux::Session#new_window" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:223", + "has": [ + "\"set-environment\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:276", + "has": [ + "server.__send__(:mutate_environment, [\"-t\", target]" + ], + "in": "LibTmux::Session#set_environment" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Window#split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:528", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:127", + "has": [ + "server.__send__(:split_window" + ], + "in": "LibTmux::Window#split" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Pane#split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:528", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:165", + "has": [ + "server.__send__(:split_window" + ], + "in": "LibTmux::Pane#split" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Pane#kill", + "command": "kill-pane", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:88", + "has": [ + "\"kill-#{ref.kind}\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:436", + "has": [ + "{session: Session, window: Window, pane: Pane" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:87", + "has": [ + "def kill(timeout: 5.0, cancel: nil)" + ], + "in": "LibTmux::Pane#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Window#kill", + "command": "kill-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:88", + "has": [ + "\"kill-#{ref.kind}\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:436", + "has": [ + "{session: Session, window: Window, pane: Pane" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:87", + "has": [ + "def kill(timeout: 5.0, cancel: nil)" + ], + "in": "LibTmux::Window#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "kill-session", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:88", + "has": [ + "\"kill-#{ref.kind}\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:436", + "has": [ + "{session: Session, window: Window, pane: Pane" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:255", + "has": [ + "super(timeout: timeout, cancel: cancel)" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Options#get", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + ":execute_typed, args" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:83", + "has": [ + "list(name: name" + ], + "in": "LibTmux::Options#get" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Hooks#get", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-hooks\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + ":execute_typed, args" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:167", + "has": [ + "super" + ], + "in": "LibTmux::Hooks#get" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.NewSession", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "tmux/session_lifecycle.go:91", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "tmux/session_lifecycle.go:62", + "has": [ + "renderNewSessionArguments(" + ] + }, + { + "at": "tmux/session_lifecycle.go:230", + "has": [ + "newSessionArguments(request)" + ] + }, + { + "at": "tmux/session_lifecycle.go:234", + "has": [ + "literalCmd(ctx, arguments...)" + ], + "in": "tmux.Server.NewSession" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.NewWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "tmux/window_lifecycle.go:157", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "tmux/window_lifecycle.go:213", + "has": [ + "newWindowArguments(" + ] + }, + { + "at": "tmux/window_lifecycle.go:224", + "has": [ + "literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/window_lifecycle.go:88", + "has": [ + "return newWindow(" + ], + "in": "tmux.Session.NewWindow" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.NewWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "tmux/window_lifecycle.go:157", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "tmux/window_lifecycle.go:213", + "has": [ + "newWindowArguments(" + ] + }, + { + "at": "tmux/window_lifecycle.go:224", + "has": [ + "literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/window_lifecycle.go:117", + "has": [ + "return newWindow(" + ], + "in": "tmux.Window.NewWindow" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.Capture", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:127", + "has": [ + "p.capturePane(" + ], + "in": "tmux.Pane.Capture" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.CaptureBytes", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:141", + "has": [ + "p.capturePane(" + ], + "in": "tmux.Pane.CaptureBytes" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.CaptureToBuffer", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:157", + "has": [ + "p.capturePane(" + ], + "in": "tmux.Pane.CaptureToBuffer" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:187", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalSessionScope.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:194", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalWindowScope.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:213", + "has": [ + "changeHook(" + ], + "in": "tmux.Session.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:224", + "has": [ + "changeHook(" + ], + "in": "tmux.Window.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:235", + "has": [ + "changeHook(" + ], + "in": "tmux.Pane.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:242", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalSessionScope.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:249", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalWindowScope.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:268", + "has": [ + "changeHook(" + ], + "in": "tmux.Session.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:279", + "has": [ + "changeHook(" + ], + "in": "tmux.Window.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:290", + "has": [ + "changeHook(" + ], + "in": "tmux.Pane.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:297", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalSessionScope.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:304", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalWindowScope.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:323", + "has": [ + "changeHook(" + ], + "in": "tmux.Session.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:334", + "has": [ + "changeHook(" + ], + "in": "tmux.Window.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:345", + "has": [ + "changeHook(" + ], + "in": "tmux.Pane.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:419", + "has": [ + "setHooks(" + ], + "in": "tmux.GlobalSessionScope.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:432", + "has": [ + "setHooks(" + ], + "in": "tmux.GlobalWindowScope.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:458", + "has": [ + "setHooks(" + ], + "in": "tmux.Session.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:475", + "has": [ + "setHooks(" + ], + "in": "tmux.Window.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:492", + "has": [ + "setHooks(" + ], + "in": "tmux.Pane.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:35", + "has": [ + "changeOption(" + ], + "in": "tmux.Server.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:56", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalSessionScope.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:77", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalWindowScope.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:102", + "has": [ + "changeOption(" + ], + "in": "tmux.Session.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:122", + "has": [ + "changeOption(" + ], + "in": "tmux.Window.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:138", + "has": [ + "changeOption(" + ], + "in": "tmux.Pane.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:150", + "has": [ + "changeOption(" + ], + "in": "tmux.Server.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:171", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalSessionScope.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:192", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalWindowScope.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:217", + "has": [ + "changeOption(" + ], + "in": "tmux.Session.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:237", + "has": [ + "changeOption(" + ], + "in": "tmux.Window.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:253", + "has": [ + "changeOption(" + ], + "in": "tmux.Pane.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:267", + "has": [ + "unsetOption(" + ], + "in": "tmux.Server.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:281", + "has": [ + "unsetOption(" + ], + "in": "tmux.GlobalSessionScope.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:303", + "has": [ + "unsetOption(" + ], + "in": "tmux.GlobalWindowScope.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:329", + "has": [ + "unsetOption(" + ], + "in": "tmux.Session.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:344", + "has": [ + "unsetOption(" + ], + "in": "tmux.Window.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:370", + "has": [ + "unsetOption(" + ], + "in": "tmux.Pane.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.Kill", + "command": "kill-session", + "scope": null, + "evidence": [ + { + "at": "tmux/lifecycle_kill.go:132", + "has": [ + "kill-session" + ] + }, + { + "at": "tmux/lifecycle_kill.go:153", + "has": [ + "s.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/lifecycle_kill.go:95", + "has": [ + "KillWith(" + ], + "in": "tmux.Session.Kill" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.CaptureToFile", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "capture-pane" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:157", + "has": [ + "capturePane(" + ] + }, + { + "at": "tmux/pane_capture.go:194", + "has": [ + "CaptureToBuffer(" + ], + "in": "tmux.Pane.CaptureToFile" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.NewSessionConnection", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "tmux/session_lifecycle.go:91", + "has": [ + "new-session" + ] + }, + { + "at": "tmux/connection.go:185", + "has": [ + "effective.guardCommand(arguments" + ] + }, + { + "at": "tmux/connection.go:299", + "has": [ + "renderNewSessionArguments(" + ] + }, + { + "at": "tmux/connection.go:169", + "has": [ + "newSessionConnectionArguments(" + ], + "in": "tmux.Server.NewSessionConnection" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.Split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_create.go:421", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "tmux/pane_create.go:354", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_create.go:327", + "has": [ + "splitPane(ctx, p.server" + ], + "in": "tmux.Pane.Split" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SplitPane", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_create.go:421", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "tmux/pane_create.go:354", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_create.go:308", + "has": [ + "splitPane(ctx, w.server" + ], + "in": "tmux.Window.SplitPane" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Server.Server.snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "has": [ + "\"list-panes\"", + "\"-a\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "has": [ + "capture(process)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:878", + "has": [ + "capture.attempt()" + ], + "in": "io.github.libtmux.Server.Server.snapshot" + } + ], + "forwardable": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.Server.Server.newSession", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "has": [ + "argv.add(\"new-session\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "has": [ + "List argv(String format" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:156", + "has": [ + "run(spec.argv(" + ], + "in": "io.github.libtmux.Server.Server.newSession" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.capture", + "command": "capture-pane", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "has": [ + "argv.add(\"capture-pane\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "has": [ + "List argv(String target, TmuxVersion running)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:533", + "has": [ + "server.run(snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Pane.Pane.capture" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.split", + "command": "split-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "has": [ + "argv.add(\"split-window\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "has": [ + "List argv(String target, String format, TmuxVersion running)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "has": [ + "server.run(previous, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:893", + "has": [ + "created(server, snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Pane.Pane.split" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Window.Window.split", + "command": "split-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "has": [ + "argv.add(\"split-window\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "has": [ + "List argv(String target, String format, TmuxVersion running)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "has": [ + "server.run(previous, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Window.java:191", + "has": [ + "Pane.created(server, snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Window.Window.split" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Session.Session.newWindow", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "has": [ + "argv.add(\"new-window\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "has": [ + "List argv(String target, String format)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Session.java:215", + "has": [ + "server.run(snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Session.Session.newWindow" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.send", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "has": [ + "List.of(\"send-keys\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "has": [ + "sendKeysArgv(keys, false)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "has": [ + "server.run(snapshot, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "has": [ + "sendKeys(keys, () -> {})" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:548", + "has": [ + "sendKeys(List.of(keys))" + ], + "in": "io.github.libtmux.Pane.Pane.send" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLine", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "has": [ + "List.of(\"send-keys\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "has": [ + "sendKeysArgv(keys, true)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "has": [ + "server.run(snapshot, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "has": [ + "sendLiteral(keys, () -> {})" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:652", + "has": [ + "sendLiteral(List.of(command" + ], + "in": "io.github.libtmux.Pane.Pane.sendLine" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.respawnIn", + "command": "respawn-pane", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "has": [ + "\"respawn-pane\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "has": [ + "static List respawnArgv(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:767", + "has": [ + "server.run(snapshot, respawnArgv(" + ], + "in": "io.github.libtmux.Pane.Pane.respawnIn" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "has": [ + "\"list-panes\"", + "[\"-a\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" + ], + "in": "LibTmux.Server.CaptureSnapshotAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxBuffers.DeleteAsync", + "command": "delete-buffer", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Buffers.cs:71", + "has": [ + "\"delete-buffer\"" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:73", + "has": [ + "RunUtilityAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Buffers/TmuxBuffers.cs:78", + "has": [ + "_server.DeleteBufferAsync(" + ], + "in": "LibTmux.TmuxBuffers.DeleteAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxKeys.BindAsync", + "command": "bind-key", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Keys.cs:17", + "has": [ + "\"bind-key\"" + ] + }, + { + "at": "src/LibTmux/Server.Keys.cs:12", + "has": [ + "RunUtilityAsync(BuildBindKeyArguments(" + ] + }, + { + "at": "src/LibTmux/Keys/TmuxKeys.cs:29", + "has": [ + "_server.BindKeyAsync(" + ], + "in": "LibTmux.TmuxKeys.BindAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxKeys.UnbindAsync", + "command": "unbind-key", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Keys.cs:39", + "has": [ + "\"unbind-key\"" + ] + }, + { + "at": "src/LibTmux/Server.Keys.cs:33", + "has": [ + "RunUtilityAsync(BuildUnbindKeyArguments(" + ] + }, + { + "at": "src/LibTmux/Keys/TmuxKeys.cs:44", + "has": [ + "_server.UnbindKeyAsync(" + ], + "in": "LibTmux.TmuxKeys.UnbindAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendTextAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "\"send-keys\"" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:119", + "has": [ + "SendKeysAsync(new SendKeysRequest" + ], + "in": "LibTmux.Pane.SendTextAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendTextAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "\"send-keys\"" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:169", + "has": [ + "SendKeysAsync(keys, token)" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:103", + "has": [ + "SendKeysAndWaitAsync(" + ], + "in": "LibTmux.Pane.SendTextAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendKeysAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "\"send-keys\"" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:169", + "has": [ + "SendKeysAsync(keys, token)" + ], + "in": "LibTmux.Pane.SendKeysAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.SearchClientsAsync", + "command": "list-clients", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:36", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Queries.cs:41", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Query/NativeFilterSearch.cs:68", + "has": [ + "QueryAsync(" + ], + "in": "LibTmux.Server.SearchClientsAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CreateSessionAsync", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:368", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:173", + "has": [ + "BuildNewSessionArguments(options" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:135", + "has": [ + "CreateSessionWithReceiptAsync(" + ], + "in": "LibTmux.Server.CreateSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CreateOwnedSessionAsync", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:368", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:173", + "has": [ + "BuildNewSessionArguments(options" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:135", + "has": [ + "CreateSessionWithReceiptAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:328", + "has": [ + "CreateSessionAsync(request" + ], + "in": "LibTmux.Server.CreateOwnedSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.AttachSessionAsync", + "command": "attach-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:418", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:352", + "has": [ + "Session.BuildAttachArguments(" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:351", + "has": [ + "Dispatch(" + ], + "in": "LibTmux.Server.AttachSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.CreateWindowAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:464", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:337", + "has": [ + "BuildNewWindowArguments(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:336", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:289", + "has": [ + "CreateWindowCoreAsync(" + ], + "in": "LibTmux.Session.CreateWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.CreateWindowWithReceiptAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:464", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:337", + "has": [ + "BuildNewWindowArguments(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:336", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:315", + "has": [ + "CreateWindowCoreAsync(" + ], + "in": "LibTmux.Session.CreateWindowWithReceiptAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.CreateOwnedWindowAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:464", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:337", + "has": [ + "BuildNewWindowArguments(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:336", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:289", + "has": [ + "CreateWindowCoreAsync(" + ] + }, + { + "at": "src/LibTmux/Session.WindowNavigation.cs:32", + "has": [ + "CreateWindowAsync(request" + ], + "in": "LibTmux.Session.CreateOwnedWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Window.FindPaneAsync", + "command": "list-panes", + "scope": "window", + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:112", + "has": [ + "GetPanesAsync(" + ], + "in": "LibTmux.Window.FindPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindWindowAsync", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:268", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "has": [ + "[\"-a\"]" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "has": [ + "FetchAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(listCommand" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:266", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindPaneAsync", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:305", + "has": [ + "\"list-panes\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "has": [ + "[\"-a\"]" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "has": [ + "FetchAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(listCommand" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:303", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetSessionAsync", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:231", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:229", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:214", + "has": [ + "FindSessionAsync(id" + ], + "in": "LibTmux.Server.GetSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetWindowAsync", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:268", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "has": [ + "[\"-a\"]" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "has": [ + "FetchAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(listCommand" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:266", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:251", + "has": [ + "FindWindowAsync(id" + ], + "in": "LibTmux.Server.GetWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetPaneAsync", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:305", + "has": [ + "\"list-panes\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "has": [ + "[\"-a\"]" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "has": [ + "FetchAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(listCommand" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:303", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:288", + "has": [ + "FindPaneAsync(id" + ], + "in": "LibTmux.Server.GetPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.GetWindowAsync", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "src/LibTmux/Session.Relations.cs:100", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Session.Relations.cs:101", + "has": [ + "[\"-t\", _id.ToString()]" + ] + }, + { + "at": "src/LibTmux/Session.Relations.cs:63", + "has": [ + "FindWindowAsync(id" + ], + "in": "LibTmux.Session.GetWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Window.GetPaneAsync", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:112", + "has": [ + "GetPanesAsync(" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:98", + "has": [ + "FindPaneAsync(target" + ], + "in": "LibTmux.Window.GetPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:36", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:22", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:79", + "has": [ + "server.GetClientsAsync(" + ], + "in": "LibTmux.Client.GetAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedSessionAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:36", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:22", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:156", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedSessionAsync", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Collections.cs:18", + "has": [ + "list-sessions" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:123", + "has": [ + "owner.GetSessionsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:156", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedWindowAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:36", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:22", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:164", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedWindowAsync", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "src/LibTmux/Session.Relations.cs:153", + "has": [ + "list-windows" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:133", + "has": [ + "session.GetWindowsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:164", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedPaneAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:36", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:22", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:172", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedPaneAsync", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:142", + "has": [ + "window.GetPanesAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:172", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxBuffers.GetLinesAsync", + "command": "list-buffers", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Buffers.cs:78", + "has": [ + "\"list-buffers\"" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:96", + "has": [ + "BuildListBuffersArguments(request)" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:97", + "has": [ + "ReadUtilityAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Buffers/TmuxBuffers.cs:94", + "has": [ + "_server.GetBufferLinesAsync(" + ], + "in": "LibTmux.TmuxBuffers.GetLinesAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:106", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" + ], + "in": "LibTmux.Server.CaptureSnapshotAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "has": [ + "[\"-a\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" + ], + "in": "LibTmux.Server.CaptureSnapshotAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.ResolveAttachmentAsync", + "command": "list-clients", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:36", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:22", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ], + "in": "LibTmux.Client.ResolveAttachmentAsync" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "list-panes", + "scope": "window", + "via": { + "port": "csharp", + "symbol": "LibTmux.Window.GetPanesAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:99", + "has": [ + "session.CreateWindowAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:109", + "has": [ + "created.GetPanesAsync(" + ], + "in": "LibTmux.FSharp.Server.newSession" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.tryFindWindow", + "command": "list-windows", + "scope": "server", + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.FindWindowAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:126", + "has": [ + "server.FindWindowAsync(" + ], + "in": "LibTmux.FSharp.Server.tryFindWindow" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.tryFindPane", + "command": "list-panes", + "scope": "server", + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.FindPaneAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:132", + "has": [ + "server.FindPaneAsync(" + ], + "in": "LibTmux.FSharp.Server.tryFindPane" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:218", + "has": [ + "options.SetAsync(" + ], + "in": "LibTmux.FSharp.Options.set" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.GetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:215", + "has": [ + "options.GetAsync(" + ], + "in": "LibTmux.FSharp.Options.get" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxPane", + "command": "list-panes", + "scope": "server", + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:49", + "has": [ + "Server!.CaptureSnapshotAsync(SnapshotDepth.Panes" + ], + "in": "LibTmux\\Get-TmuxPane" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Set-TmuxEnvironment", + "command": "set-environment", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxEnvironment.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:59", + "has": [ + "TmuxOwner.Environment(owner)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:66", + "has": [ + "environment.SetAsync(" + ], + "in": "LibTmux\\Set-TmuxEnvironment" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Set-TmuxHook", + "command": "set-hook", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:74", + "has": [ + "TmuxOwner.Hooks(owner)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:82", + "has": [ + "hooks.SetAsync(request" + ], + "in": "LibTmux\\Set-TmuxHook" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Set-TmuxOption", + "command": "set-option", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:86", + "has": [ + "TmuxOwner.Options(owner)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:102", + "has": [ + "options.SetAsync(request" + ], + "in": "LibTmux\\Set-TmuxOption" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Send-TmuxKey", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:35", + "has": [ + "new SendKeysRequest" + ] + }, + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:46", + "has": [ + "request.ToCommand(Pane)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:45", + "has": [ + "server.Chain()" + ] + }, + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:47", + "has": [ + ".ExecuteAsync(token)" + ], + "in": "LibTmux\\Send-TmuxKey" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxClientAttachment", + "command": "list-clients", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.Client.ResolveAttachmentAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxClientAttachmentCommand.cs:23", + "has": [ + "Client.ResolveAttachmentAsync(" + ], + "in": "LibTmux\\Get-TmuxClientAttachment" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxSession", + "command": "list-sessions", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxSessionCommand.cs:35", + "has": [ + "Server.CaptureSnapshotAsync(SnapshotDepth.Sessions" + ], + "in": "LibTmux\\Get-TmuxSession" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxEnvironment", + "command": "show-environment", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxEnvironment.GetAllAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxEnvironmentCommand.cs:39", + "has": [ + "environment.GetAllAsync(" + ], + "in": "LibTmux\\Get-TmuxEnvironment" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxHook", + "command": "show-hooks", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.GetAllAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxHookCommand.cs:69", + "has": [ + "hooks.GetAllAsync(" + ], + "in": "LibTmux\\Get-TmuxHook" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxOption", + "command": "show-options", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.GetAllAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxOptionCommand.cs:67", + "has": [ + "options.GetAllAsync(" + ], + "in": "LibTmux\\Get-TmuxOption" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/acquisition.jl:120", + "has": [ + "\"list-panes\"" + ] + }, + { + "at": "src/acquisition.jl:125", + "has": [ + "args=(\"-a\",)" + ] + }, + { + "at": "src/acquisition.jl:231", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_pane", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "src/control_io.jl:101", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "src/control_io.jl:173", + "has": [ + "capture_bytes(" + ], + "in": "LibTmux.capture_pane" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:capture", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:10", + "has": [ + "capture = \"capture-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:180", + "has": [ + "\"capture\"" + ], + "in": "libtmux.Pane:capture" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:clear_history", + "command": "clear-history", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:12", + "has": [ + "clear_history = \"clear-history\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:185", + "has": [ + "\"clear_history\"" + ], + "in": "libtmux.Pane:clear_history" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:capture_to_buffer", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:11", + "has": [ + "capture_to_buffer = \"capture-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:190", + "has": [ + "\"capture_to_buffer\"" + ], + "in": "libtmux.Pane:capture_to_buffer" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:send_text", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:13", + "has": [ + "send_text = \"send-keys\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:195", + "has": [ + "\"send_text\"" + ], + "in": "libtmux.Pane:send_text" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:send_keys", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:14", + "has": [ + "send_keys = \"send-keys\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:200", + "has": [ + "\"send_keys\"" + ], + "in": "libtmux.Pane:send_keys" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:copy_mode", + "command": "copy-mode", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:15", + "has": [ + "copy_mode = \"copy-mode\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:205", + "has": [ + "\"copy_mode\"" + ], + "in": "libtmux.Pane:copy_mode" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:copy_command", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:16", + "has": [ + "copy_command = \"send-keys\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:213", + "has": [ + "\"copy_command\"" + ], + "in": "libtmux.Pane:copy_command" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:resize", + "command": "resize-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:17", + "has": [ + "resize = \"resize-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:221", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:222", + "has": [ + "\"resize\"" + ], + "in": "libtmux.Pane:resize" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:kill", + "command": "kill-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:18", + "has": [ + "kill = \"kill-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:227", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:228", + "has": [ + "\"kill\"" + ], + "in": "libtmux.Pane:kill" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:respawn", + "command": "respawn-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:19", + "has": [ + "respawn = \"respawn-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:253", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:254", + "has": [ + "\"respawn\"" + ], + "in": "libtmux.Pane:respawn" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:select", + "command": "select-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:20", + "has": [ + "select = \"select-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:259", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:260", + "has": [ + "\"select\"" + ], + "in": "libtmux.Pane:select" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:set_title", + "command": "select-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:21", + "has": [ + "set_title = \"select-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:297", + "has": [ + "\"set_title\"" + ], + "in": "libtmux.Pane:set_title" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:swap", + "command": "swap-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:22", + "has": [ + "swap = \"swap-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:307", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:308", + "has": [ + "\"swap\"" + ], + "in": "libtmux.Pane:swap" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:rename", + "command": "rename-session", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:64", + "has": [ + "rename = \"rename-session\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:233", + "has": [ + "\"rename\"" + ], + "in": "libtmux.Session:rename" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:rename", + "command": "rename-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:70", + "has": [ + "rename = \"rename-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:233", + "has": [ + "\"rename\"" + ], + "in": "libtmux.Window:rename" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:kill", + "command": "kill-session", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:65", + "has": [ + "kill = \"kill-session\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:227", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:228", + "has": [ + "\"kill\"" + ], + "in": "libtmux.Session:kill" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:kill", + "command": "kill-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:71", + "has": [ + "kill = \"kill-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:227", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:228", + "has": [ + "\"kill\"" + ], + "in": "libtmux.Window:kill" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:resize", + "command": "resize-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:72", + "has": [ + "resize = \"resize-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:221", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:222", + "has": [ + "\"resize\"" + ], + "in": "libtmux.Window:resize" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:layout", + "command": "select-layout", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:73", + "has": [ + "layout = \"select-layout\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:248", + "has": [ + "\"layout\"" + ], + "in": "libtmux.Window:layout" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:respawn", + "command": "respawn-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:74", + "has": [ + "respawn = \"respawn-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:253", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:254", + "has": [ + "\"respawn\"" + ], + "in": "libtmux.Window:respawn" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:renumber_windows", + "command": "move-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:66", + "has": [ + "renumber_windows = \"move-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:243", + "has": [ + "\"renumber_windows\"" + ], + "in": "libtmux.Session:renumber_windows" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:select", + "command": "select-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:77", + "has": [ + "select = \"select-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:259", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:260", + "has": [ + "\"select\"" + ], + "in": "libtmux.WindowLink:select" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:link", + "command": "link-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:78", + "has": [ + "link = \"link-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:265", + "has": [ + "\"link\"" + ], + "in": "libtmux.WindowLink:link" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:move", + "command": "move-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:79", + "has": [ + "move = \"move-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:270", + "has": [ + "\"move\"" + ], + "in": "libtmux.WindowLink:move" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:swap", + "command": "swap-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:80", + "has": [ + "swap = \"swap-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:307", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:308", + "has": [ + "\"swap\"" + ], + "in": "libtmux.WindowLink:swap" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:unlink", + "command": "unlink-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:81", + "has": [ + "unlink = \"unlink-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:275", + "has": [ + "\"unlink\"" + ], + "in": "libtmux.WindowLink:unlink" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:move_to", + "command": "join-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:395", + "has": [ + "\"join-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:280", + "has": [ + "\"move_to\"" + ], + "in": "libtmux.Pane:move_to" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:break_out", + "command": "break-pane", + "scope": null, + "evidence": [ { "at": "lua/libtmux/_internal/topology.lua:201", "has": [ - "targets.window_link[kind]" + "\"break-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:288", + "has": [ + "\"break_out\"" + ], + "in": "libtmux.Pane:break_out" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:navigate_window", + "command": "next-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:466", + "has": [ + "next-window" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:238", + "has": [ + "\"navigate_window\"" + ], + "in": "libtmux.Session:navigate_window" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:navigate_window", + "command": "previous-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:466", + "has": [ + "previous-window" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:238", + "has": [ + "\"navigate_window\"" + ], + "in": "libtmux.Session:navigate_window" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:navigate_window", + "command": "last-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:466", + "has": [ + "last-window" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:238", + "has": [ + "\"navigate_window\"" + ], + "in": "libtmux.Session:navigate_window" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:78", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Session:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:83", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Session:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:88", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Session:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:93", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Session:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:98", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Session:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:103", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Session:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:108", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Session:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:113", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Session:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:run_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:190", + "has": [ + "\"set-hook\", \"-R\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:118", + "has": [ + "\"hook\", \"run\"" + ], + "in": "libtmux.Session:run_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:78", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Window:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:83", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Window:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:88", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Window:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:93", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Window:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:98", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Window:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:103", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Window:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:108", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Window:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:113", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Window:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:run_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:190", + "has": [ + "\"set-hook\", \"-R\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:118", + "has": [ + "\"hook\", \"run\"" + ], + "in": "libtmux.Window:run_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:78", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Pane:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:83", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Pane:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:88", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Pane:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:93", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Pane:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:98", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Pane:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:103", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Pane:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:108", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Pane:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:113", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Pane:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:run_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:190", + "has": [ + "\"set-hook\", \"-R\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:265", + "at": "lua/libtmux/_internal/entity.lua:118", "has": [ - "\"link\"" + "\"hook\", \"run\"" ], - "in": "libtmux.WindowLink:link" + "in": "libtmux.Pane:run_hook" } ] }, { "port": "lua", - "symbol": "libtmux.WindowLink:move", - "command": "move-window", + "symbol": "libtmux.Server:get_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:79", + "at": "lua/libtmux/_internal/settings.lua:177", "has": [ - "move = \"move-window\"" + "\"show-options\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:201", + "at": "lua/libtmux/_internal/server.lua:380", "has": [ - "targets.window_link[kind]" + "\"option\", \"get\"" + ], + "in": "libtmux.Server:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:270", + "at": "lua/libtmux/_internal/server.lua:384", "has": [ - "\"move\"" + "\"option\", \"list\"" ], - "in": "libtmux.WindowLink:move" + "in": "libtmux.Server:list_options" } ] }, { "port": "lua", - "symbol": "libtmux.WindowLink:swap", - "command": "swap-window", + "symbol": "libtmux.Server:set_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:80", + "at": "lua/libtmux/_internal/settings.lua:175", "has": [ - "swap = \"swap-window\"" + "\"set-hook\" or \"set-option\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:201", + "at": "lua/libtmux/_internal/settings.lua:261", "has": [ - "targets.window_link[kind]" + "argv(verb" ] }, { - "at": "lua/libtmux/_internal/entity.lua:307", + "at": "lua/libtmux/_internal/server.lua:388", "has": [ - "implementation = ", - "topology" + "\"option\", \"set\"" + ], + "in": "libtmux.Server:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:308", + "at": "lua/libtmux/_internal/settings.lua:185", "has": [ - "\"swap\"" + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:392", + "has": [ + "\"option\", \"unset\"" ], - "in": "libtmux.WindowLink:swap" + "in": "libtmux.Server:unset_option" } ] }, { "port": "lua", - "symbol": "libtmux.WindowLink:unlink", - "command": "unlink-window", + "symbol": "libtmux.Server:get_hook", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:81", + "at": "lua/libtmux/_internal/settings.lua:177", "has": [ - "unlink = \"unlink-window\"" + "\"show-options\"" ] }, { - "at": "lua/libtmux/_internal/topology.lua:201", + "at": "lua/libtmux/_internal/server.lua:396", "has": [ - "targets.window_link[kind]" + "\"hook\", \"get\"" + ], + "in": "libtmux.Server:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:275", + "at": "lua/libtmux/_internal/server.lua:400", "has": [ - "\"unlink\"" + "\"hook\", \"list\"" ], - "in": "libtmux.WindowLink:unlink" + "in": "libtmux.Server:list_hooks" } ] }, { "port": "lua", - "symbol": "libtmux.Pane:move_to", - "command": "join-pane", + "symbol": "libtmux.Server:set_hook", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:395", + "at": "lua/libtmux/_internal/settings.lua:175", "has": [ - "\"join-pane\"" + "\"set-hook\" or \"set-option\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:280", + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:404", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Server:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:408", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Server:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:get_environment", + "command": "show-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:123", + "has": [ + "\"get\"" + ], + "in": "libtmux.Session:get_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:list_environment", + "command": "show-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:128", + "has": [ + "\"list\"" + ], + "in": "libtmux.Session:list_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:133", + "has": [ + "\"set\"" + ], + "in": "libtmux.Session:set_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:unset_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:138", "has": [ - "\"move_to\"" + "\"unset\"" ], - "in": "libtmux.Pane:move_to" + "in": "libtmux.Session:unset_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Pane:break_out", - "command": "break-pane", + "symbol": "libtmux.Session:remove_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:201", + "at": "lua/libtmux/_internal/environment.lua:31", "has": [ - "\"break-pane\"" + "\"show-environment\"", + "\"set-environment\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:288", + "at": "lua/libtmux/_internal/entity.lua:143", "has": [ - "\"break_out\"" + "\"remove\"" ], - "in": "libtmux.Pane:break_out" + "in": "libtmux.Session:remove_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Session:navigate_window", - "command": "next-window", + "symbol": "libtmux.Server:get_environment", + "command": "show-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:466", + "at": "lua/libtmux/_internal/environment.lua:31", "has": [ - "next-window" + "\"show-environment\"", + "\"set-environment\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:238", + "at": "lua/libtmux/_internal/server.lua:412", "has": [ - "\"navigate_window\"" + "\"get\"" ], - "in": "libtmux.Session:navigate_window" + "in": "libtmux.Server:get_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Session:navigate_window", - "command": "previous-window", + "symbol": "libtmux.Server:list_environment", + "command": "show-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:466", + "at": "lua/libtmux/_internal/environment.lua:31", "has": [ - "previous-window" + "\"show-environment\"", + "\"set-environment\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:238", + "at": "lua/libtmux/_internal/server.lua:416", "has": [ - "\"navigate_window\"" + "\"list\"" ], - "in": "libtmux.Session:navigate_window" + "in": "libtmux.Server:list_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Session:navigate_window", - "command": "last-window", + "symbol": "libtmux.Server:set_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/topology.lua:466", + "at": "lua/libtmux/_internal/environment.lua:31", "has": [ - "last-window" + "\"show-environment\"", + "\"set-environment\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:238", + "at": "lua/libtmux/_internal/server.lua:420", "has": [ - "\"navigate_window\"" + "\"set\"" ], - "in": "libtmux.Session:navigate_window" + "in": "libtmux.Server:set_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Session:get_option", - "command": "show-options", + "symbol": "libtmux.Server:unset_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/environment.lua:31", "has": [ - "\"show-options\"" + "\"show-environment\"", + "\"set-environment\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:78", + "at": "lua/libtmux/_internal/server.lua:424", "has": [ - "\"option\", \"get\"" + "\"unset\"" ], - "in": "libtmux.Session:get_option" + "in": "libtmux.Server:unset_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Session:list_options", - "command": "show-options", + "symbol": "libtmux.Server:remove_environment", + "command": "set-environment", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/environment.lua:31", "has": [ - "\"show-options\"" + "\"show-environment\"", + "\"set-environment\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:83", + "at": "lua/libtmux/_internal/server.lua:428", "has": [ - "\"option\", \"list\"" + "\"remove\"" ], - "in": "libtmux.Session:list_options" + "in": "libtmux.Server:remove_environment" } ] }, { "port": "lua", - "symbol": "libtmux.Session:set_option", - "command": "set-option", + "symbol": "libtmux.Session:new_window", + "command": "new-window", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/domain.lua:7", "has": [ - "\"set-hook\" or \"set-option\"" + "window = \"new-window\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "lua/libtmux/_internal/domain.lua:174", "has": [ - "argv(verb" + "commands[kind]" ] }, { - "at": "lua/libtmux/_internal/entity.lua:88", + "at": "lua/libtmux/_internal/entity.lua:313", "has": [ - "\"option\", \"set\"" + "\"window\"" ], - "in": "libtmux.Session:set_option" + "in": "libtmux.Session:new_window" } ] }, { "port": "lua", - "symbol": "libtmux.Session:unset_option", - "command": "set-option", + "symbol": "libtmux.Pane:split", + "command": "split-window", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/domain.lua:7", "has": [ - "\"set-hook\" or \"set-option\"" + "pane = \"split-window\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "lua/libtmux/_internal/domain.lua:174", "has": [ - "\"-u\"" + "commands[kind]" ] }, { - "at": "lua/libtmux/_internal/entity.lua:93", + "at": "lua/libtmux/_internal/entity.lua:318", "has": [ - "\"option\", \"unset\"" + "\"pane\"" ], - "in": "libtmux.Session:unset_option" + "in": "libtmux.Pane:split" } ] }, { "port": "lua", - "symbol": "libtmux.Session:get_hook", - "command": "show-options", + "symbol": "libtmux.Server:new_session", + "command": "new-session", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/domain.lua:7", "has": [ - "\"show-options\"" + "session = \"new-session\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:98", - "has": [ - "\"hook\", \"get\"" - ], - "in": "libtmux.Session:get_hook" - } - ] - }, - { - "port": "lua", - "symbol": "libtmux.Session:list_hooks", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/domain.lua:174", "has": [ - "\"show-options\"" + "commands[kind]" ] }, { - "at": "lua/libtmux/_internal/entity.lua:103", + "at": "lua/libtmux/_internal/server.lua:460", "has": [ - "\"hook\", \"list\"" + "\"session\"" ], - "in": "libtmux.Session:list_hooks" + "in": "libtmux.Server:new_session" } ] }, { "port": "lua", - "symbol": "libtmux.Session:set_hook", - "command": "set-hook", + "symbol": "libtmux.Server:set_buffer", + "command": "load-buffer", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/buffer.lua:9", "has": [ - "\"set-hook\" or \"set-option\"" + "set = \"load-buffer\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "lua/libtmux/_internal/buffer.lua:140", "has": [ - "argv(verb" + "commands[kind]" ] }, { - "at": "lua/libtmux/_internal/entity.lua:108", + "at": "lua/libtmux/_internal/server.lua:440", "has": [ - "\"hook\", \"set\"" + "\"set\"" ], - "in": "libtmux.Session:set_hook" + "in": "libtmux.Server:set_buffer" } ] }, { "port": "lua", - "symbol": "libtmux.Session:unset_hook", - "command": "set-hook", + "symbol": "libtmux.Server:show_buffer", + "command": "show-buffer", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/buffer.lua:9", "has": [ - "\"set-hook\" or \"set-option\"" + "show = \"show-buffer\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "lua/libtmux/_internal/buffer.lua:140", "has": [ - "\"-u\"" + "commands[kind]" ] }, { - "at": "lua/libtmux/_internal/entity.lua:113", + "at": "lua/libtmux/_internal/server.lua:444", "has": [ - "\"hook\", \"unset\"" + "\"show\"" ], - "in": "libtmux.Session:unset_hook" + "in": "libtmux.Server:show_buffer" } ] }, { "port": "lua", - "symbol": "libtmux.Session:run_hook", - "command": "set-hook", + "symbol": "libtmux.Server:delete_buffer", + "command": "delete-buffer", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:190", + "at": "lua/libtmux/_internal/buffer.lua:9", "has": [ - "\"set-hook\", \"-R\"" + "delete = \"delete-buffer\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:118", - "has": [ - "\"hook\", \"run\"" - ], - "in": "libtmux.Session:run_hook" - } - ] - }, - { - "port": "lua", - "symbol": "libtmux.Window:get_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/buffer.lua:140", "has": [ - "\"show-options\"" + "commands[kind]" ] }, { - "at": "lua/libtmux/_internal/entity.lua:78", + "at": "lua/libtmux/_internal/server.lua:448", "has": [ - "\"option\", \"get\"" + "\"delete\"" ], - "in": "libtmux.Window:get_option" + "in": "libtmux.Server:delete_buffer" } ] }, { "port": "lua", - "symbol": "libtmux.Window:list_options", - "command": "show-options", + "symbol": "libtmux.Pane:paste_buffer", + "command": "paste-buffer", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/buffer.lua:9", "has": [ - "\"show-options\"" + "paste = \"paste-buffer\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:83", + "at": "lua/libtmux/_internal/buffer.lua:140", "has": [ - "\"option\", \"list\"" + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:302", + "has": [ + "\"paste\"" ], - "in": "libtmux.Window:list_options" + "in": "libtmux.Pane:paste_buffer" } ] }, { "port": "lua", - "symbol": "libtmux.Window:set_option", - "command": "set-option", + "symbol": "libtmux.Server:switch_client", + "command": "switch-client", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", - "has": [ - "\"set-hook\" or \"set-option\"" - ] - }, - { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "lua/libtmux/_internal/client.lua:93", "has": [ - "argv(verb" + "\"switch-client\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:88", + "at": "lua/libtmux/_internal/server.lua:456", "has": [ - "\"option\", \"set\"" + "\"switch\"" ], - "in": "libtmux.Window:set_option" + "in": "libtmux.Server:switch_client" } ] }, { "port": "lua", - "symbol": "libtmux.Window:unset_option", - "command": "set-option", + "symbol": "libtmux.Server:switch_client", + "command": "list-clients", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", - "has": [ - "\"set-hook\" or \"set-option\"" - ] - }, - { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "lua/libtmux/_internal/client.lua:129", "has": [ - "\"-u\"" + "\"list-clients\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:93", + "at": "lua/libtmux/_internal/server.lua:456", "has": [ - "\"option\", \"unset\"" + "\"switch\"" ], - "in": "libtmux.Window:unset_option" + "in": "libtmux.Server:switch_client" } ] }, { "port": "lua", - "symbol": "libtmux.Window:get_hook", - "command": "show-options", + "symbol": "libtmux.Server:detach_client", + "command": "detach-client", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/client.lua:103", "has": [ - "\"show-options\"" + "\"detach-client\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:98", + "at": "lua/libtmux/_internal/server.lua:452", "has": [ - "\"hook\", \"get\"" + "\"detach\"" ], - "in": "libtmux.Window:get_hook" + "in": "libtmux.Server:detach_client" } ] }, { "port": "lua", - "symbol": "libtmux.Window:list_hooks", - "command": "show-options", + "symbol": "libtmux.Server:detach_client", + "command": "list-clients", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/client.lua:129", "has": [ - "\"show-options\"" + "\"list-clients\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:103", + "at": "lua/libtmux/_internal/server.lua:452", "has": [ - "\"hook\", \"list\"" + "\"detach\"" ], - "in": "libtmux.Window:list_hooks" + "in": "libtmux.Server:detach_client" } ] }, { "port": "lua", - "symbol": "libtmux.Window:set_hook", - "command": "set-hook", + "symbol": "libtmux.Server:snapshot", + "command": "list-sessions", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/server.lua:20", "has": [ - "\"set-hook\" or \"set-option\"" + "\"list-sessions\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "lua/libtmux/_internal/server.lua:96", "has": [ - "argv(verb" + "ipairs(specs)" ] }, { - "at": "lua/libtmux/_internal/entity.lua:108", + "at": "lua/libtmux/_internal/server.lua:309", "has": [ - "\"hook\", \"set\"" + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" ], - "in": "libtmux.Window:set_hook" + "in": "libtmux.Server:snapshot" } ] }, { "port": "lua", - "symbol": "libtmux.Window:unset_hook", - "command": "set-hook", - "scope": null, + "symbol": "libtmux.Server:snapshot", + "command": "list-windows", + "scope": "server", "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/server.lua:21", "has": [ - "\"set-hook\" or \"set-option\"" + "\"list-windows\"", + "\"-a\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "lua/libtmux/_internal/server.lua:96", "has": [ - "\"-u\"" + "ipairs(specs)" ] }, { - "at": "lua/libtmux/_internal/entity.lua:113", + "at": "lua/libtmux/_internal/server.lua:309", "has": [ - "\"hook\", \"unset\"" + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" ], - "in": "libtmux.Window:unset_hook" + "in": "libtmux.Server:snapshot" } ] }, { "port": "lua", - "symbol": "libtmux.Window:run_hook", - "command": "set-hook", + "symbol": "libtmux.Server:snapshot", + "command": "list-clients", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:190", + "at": "lua/libtmux/_internal/server.lua:24", "has": [ - "\"set-hook\", \"-R\"" + "\"list-clients\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:118", + "at": "lua/libtmux/_internal/server.lua:96", "has": [ - "\"hook\", \"run\"" - ], - "in": "libtmux.Window:run_hook" - } - ] - }, - { - "port": "lua", - "symbol": "libtmux.Pane:get_option", - "command": "show-options", - "scope": null, - "evidence": [ + "ipairs(specs)" + ] + }, { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/server.lua:309", "has": [ - "\"show-options\"" + "acquire(" ] }, { - "at": "lua/libtmux/_internal/entity.lua:78", + "at": "lua/libtmux/_internal/server.lua:432", "has": [ - "\"option\", \"get\"" + "capture(" ], - "in": "libtmux.Pane:get_option" + "in": "libtmux.Server:snapshot" } ] }, { "port": "lua", - "symbol": "libtmux.Pane:list_options", - "command": "show-options", + "symbol": "libtmux.Server:snapshot", + "command": "list-buffers", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "lua/libtmux/_internal/server.lua:25", "has": [ - "\"show-options\"" + "\"list-buffers\"" ] }, { - "at": "lua/libtmux/_internal/entity.lua:83", + "at": "lua/libtmux/_internal/server.lua:96", "has": [ - "\"option\", \"list\"" + "ipairs(specs)" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:309", + "has": [ + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" ], - "in": "libtmux.Pane:list_options" + "in": "libtmux.Server:snapshot" } ] }, { "port": "lua", - "symbol": "libtmux.Pane:set_option", - "command": "set-option", - "scope": null, + "symbol": "libtmux.Server:snapshot", + "command": "list-panes", + "scope": "server", "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "lua/libtmux/_internal/server.lua:22", "has": [ - "\"set-hook\" or \"set-option\"" + "\"list-panes\"", + "\"-a\"" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "lua/libtmux/_internal/server.lua:177", "has": [ - "argv(verb" + "ipairs(specs)" ] }, { - "at": "lua/libtmux/_internal/entity.lua:88", + "at": "lua/libtmux/_internal/server.lua:309", "has": [ - "\"option\", \"set\"" + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" ], - "in": "libtmux.Pane:set_option" + "in": "libtmux.Server:snapshot" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:unset_option", - "command": "set-option", + "port": "py", + "symbol": "libtmux.hooks.HooksMixin.show_hook", + "command": "show-hooks", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", - "has": [ - "\"set-hook\" or \"set-option\"" - ] - }, - { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "src/libtmux/hooks.py:364", "has": [ - "\"-u\"" + "show-hooks" ] }, { - "at": "lua/libtmux/_internal/entity.lua:93", + "at": "src/libtmux/hooks.py:414", "has": [ - "\"option\", \"unset\"" + "_show_hook(" ], - "in": "libtmux.Pane:unset_option" + "in": "libtmux.hooks.HooksMixin.show_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:get_hook", - "command": "show-options", + "port": "py", + "symbol": "libtmux.hooks.HooksMixin.set_hooks", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "src/libtmux/hooks.py:240", "has": [ - "\"show-options\"" + "set-hook" ] }, { - "at": "lua/libtmux/_internal/entity.lua:98", + "at": "src/libtmux/hooks.py:518", "has": [ - "\"hook\", \"get\"" + "unset_hook(" ], - "in": "libtmux.Pane:get_hook" + "in": "libtmux.hooks.HooksMixin.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:list_hooks", + "port": "py", + "symbol": "libtmux.options.OptionsMixin._show_options_dict", "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "src/libtmux/options.py:886", "has": [ - "\"show-options\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/entity.lua:103", + "at": "src/libtmux/options.py:928", "has": [ - "\"hook\", \"list\"" + "_show_options_raw(" ], - "in": "libtmux.Pane:list_hooks" + "in": "libtmux.options.OptionsMixin._show_options_dict" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:set_hook", - "command": "set-hook", + "port": "py", + "symbol": "libtmux.options.OptionsMixin._show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "src/libtmux/options.py:886", "has": [ - "\"set-hook\" or \"set-option\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "src/libtmux/options.py:928", "has": [ - "argv(verb" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/entity.lua:108", + "at": "src/libtmux/options.py:977", "has": [ - "\"hook\", \"set\"" + "_show_options_dict(" ], - "in": "libtmux.Pane:set_hook" + "in": "libtmux.options.OptionsMixin._show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:unset_hook", - "command": "set-hook", + "port": "py", + "symbol": "libtmux.options.OptionsMixin.show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "src/libtmux/options.py:886", "has": [ - "\"set-hook\" or \"set-option\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", "has": [ - "\"-u\"" + "_show_options_dict(" ] }, { - "at": "lua/libtmux/_internal/entity.lua:113", + "at": "src/libtmux/options.py:1037", "has": [ - "\"hook\", \"unset\"" + "_show_options(" ], - "in": "libtmux.Pane:unset_hook" + "in": "libtmux.options.OptionsMixin.show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:run_hook", - "command": "set-hook", + "port": "py", + "symbol": "libtmux.options.OptionsMixin._show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:190", + "at": "src/libtmux/options.py:1134", "has": [ - "\"set-hook\", \"-R\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/entity.lua:118", + "at": "src/libtmux/options.py:1185", "has": [ - "\"hook\", \"run\"" + "_show_option_raw(" ], - "in": "libtmux.Pane:run_hook" + "in": "libtmux.options.OptionsMixin._show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:get_option", + "port": "py", + "symbol": "libtmux.options.OptionsMixin.show_option", "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "src/libtmux/options.py:1134", "has": [ - "\"show-options\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:380", + "at": "src/libtmux/options.py:1185", "has": [ - "\"option\", \"get\"" + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" ], - "in": "libtmux.Server:get_option" + "in": "libtmux.options.OptionsMixin.show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:list_options", - "command": "show-options", + "port": "py", + "symbol": "libtmux.Window.set_window_option", + "command": "set-option", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "src/libtmux/options.py:705", "has": [ - "\"show-options\"" + "set-option" ] }, { - "at": "lua/libtmux/_internal/server.lua:384", + "at": "src/libtmux/window.py:1833", "has": [ - "\"option\", \"list\"" + "set_option(" ], - "in": "libtmux.Server:list_options" + "in": "libtmux.Window.set_window_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:set_option", - "command": "set-option", + "port": "py", + "symbol": "libtmux.Window.show_window_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "src/libtmux/options.py:886", "has": [ - "\"set-hook\" or \"set-option\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "src/libtmux/options.py:928", "has": [ - "argv(verb" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:388", - "has": [ - "\"option\", \"set\"" - ], - "in": "libtmux.Server:set_option" - } - ] - }, - { - "port": "lua", - "symbol": "libtmux.Server:unset_option", - "command": "set-option", - "scope": null, - "evidence": [ - { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "src/libtmux/options.py:977", "has": [ - "\"set-hook\" or \"set-option\"" + "_show_options_dict(" ] }, { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "src/libtmux/options.py:1037", "has": [ - "\"-u\"" + "_show_options(" ] }, { - "at": "lua/libtmux/_internal/server.lua:392", + "at": "src/libtmux/window.py:1849", "has": [ - "\"option\", \"unset\"" + "show_options(" ], - "in": "libtmux.Server:unset_option" + "in": "libtmux.Window.show_window_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:get_hook", + "port": "py", + "symbol": "libtmux.Window.show_window_option", "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "src/libtmux/options.py:1134", "has": [ - "\"show-options\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:396", + "at": "src/libtmux/options.py:1185", "has": [ - "\"hook\", \"get\"" + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ] + }, + { + "at": "src/libtmux/window.py:1872", + "has": [ + "show_option(" ], - "in": "libtmux.Server:get_hook" + "in": "libtmux.Window.show_window_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:list_hooks", + "port": "py", + "symbol": "libtmux.Pane._show_options_dict", "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:177", + "at": "src/libtmux/options.py:886", "has": [ - "\"show-options\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:400", + "at": "src/libtmux/options.py:928", "has": [ - "\"hook\", \"list\"" + "_show_options_raw(" ], - "in": "libtmux.Server:list_hooks" + "in": "libtmux.Pane._show_options_dict" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:set_hook", - "command": "set-hook", + "port": "py", + "symbol": "libtmux.Pane._show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "src/libtmux/options.py:886", "has": [ - "\"set-hook\" or \"set-option\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/settings.lua:261", + "at": "src/libtmux/options.py:928", "has": [ - "argv(verb" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:404", + "at": "src/libtmux/options.py:977", "has": [ - "\"hook\", \"set\"" + "_show_options_dict(" ], - "in": "libtmux.Server:set_hook" + "in": "libtmux.Pane._show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:unset_hook", - "command": "set-hook", + "port": "py", + "symbol": "libtmux.Pane.show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/settings.lua:175", + "at": "src/libtmux/options.py:886", "has": [ - "\"set-hook\" or \"set-option\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/settings.lua:185", + "at": "src/libtmux/options.py:928", "has": [ - "\"-u\"" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:408", + "at": "src/libtmux/options.py:977", "has": [ - "\"hook\", \"unset\"" + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" ], - "in": "libtmux.Server:unset_hook" + "in": "libtmux.Pane.show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:get_environment", - "command": "show-environment", + "port": "py", + "symbol": "libtmux.Pane._show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:1134", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/entity.lua:123", + "at": "src/libtmux/options.py:1185", "has": [ - "\"get\"" + "_show_option_raw(" ], - "in": "libtmux.Session:get_environment" + "in": "libtmux.Pane._show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:list_environment", - "command": "show-environment", + "port": "py", + "symbol": "libtmux.Pane.show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:1134", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/entity.lua:128", + "at": "src/libtmux/options.py:1185", "has": [ - "\"list\"" + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" ], - "in": "libtmux.Session:list_environment" + "in": "libtmux.Pane.show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:set_environment", - "command": "set-environment", + "port": "py", + "symbol": "libtmux.Pane.show_hook", + "command": "show-hooks", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/hooks.py:364", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-hooks" ] }, { - "at": "lua/libtmux/_internal/entity.lua:133", + "at": "src/libtmux/hooks.py:414", "has": [ - "\"set\"" + "_show_hook(" ], - "in": "libtmux.Session:set_environment" + "in": "libtmux.Pane.show_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:unset_environment", - "command": "set-environment", + "port": "py", + "symbol": "libtmux.Pane.set_hooks", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/hooks.py:240", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "set-hook" ] }, { - "at": "lua/libtmux/_internal/entity.lua:138", + "at": "src/libtmux/hooks.py:518", "has": [ - "\"unset\"" + "unset_hook(" ], - "in": "libtmux.Session:unset_environment" + "in": "libtmux.Pane.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:remove_environment", - "command": "set-environment", + "port": "py", + "symbol": "libtmux.Server._show_options_dict", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:886", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/entity.lua:143", + "at": "src/libtmux/options.py:928", "has": [ - "\"remove\"" + "_show_options_raw(" ], - "in": "libtmux.Session:remove_environment" + "in": "libtmux.Server._show_options_dict" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:get_environment", - "command": "show-environment", + "port": "py", + "symbol": "libtmux.Server._show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:886", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:412", + "at": "src/libtmux/options.py:928", "has": [ - "\"get\"" + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" ], - "in": "libtmux.Server:get_environment" + "in": "libtmux.Server._show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:list_environment", - "command": "show-environment", + "port": "py", + "symbol": "libtmux.Server.show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:886", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:416", + "at": "src/libtmux/options.py:928", "has": [ - "\"list\"" - ], - "in": "libtmux.Server:list_environment" - } - ] - }, - { - "port": "lua", - "symbol": "libtmux.Server:set_environment", - "command": "set-environment", - "scope": null, - "evidence": [ + "_show_options_raw(" + ] + }, { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:977", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "_show_options_dict(" ] }, { - "at": "lua/libtmux/_internal/server.lua:420", + "at": "src/libtmux/options.py:1037", "has": [ - "\"set\"" + "_show_options(" ], - "in": "libtmux.Server:set_environment" + "in": "libtmux.Server.show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:unset_environment", - "command": "set-environment", + "port": "py", + "symbol": "libtmux.Server._show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:1134", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:424", + "at": "src/libtmux/options.py:1185", "has": [ - "\"unset\"" + "_show_option_raw(" ], - "in": "libtmux.Server:unset_environment" + "in": "libtmux.Server._show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:remove_environment", - "command": "set-environment", + "port": "py", + "symbol": "libtmux.Server.show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/environment.lua:31", + "at": "src/libtmux/options.py:1134", "has": [ - "\"show-environment\"", - "\"set-environment\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:428", + "at": "src/libtmux/options.py:1185", "has": [ - "\"remove\"" + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" ], - "in": "libtmux.Server:remove_environment" + "in": "libtmux.Server.show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Session:new_window", - "command": "new-window", + "port": "py", + "symbol": "libtmux.Server.show_hook", + "command": "show-hooks", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/domain.lua:7", - "has": [ - "window = \"new-window\"" - ] - }, - { - "at": "lua/libtmux/_internal/domain.lua:174", + "at": "src/libtmux/hooks.py:364", "has": [ - "commands[kind]" + "show-hooks" ] }, { - "at": "lua/libtmux/_internal/entity.lua:313", + "at": "src/libtmux/hooks.py:414", "has": [ - "\"window\"" + "_show_hook(" ], - "in": "libtmux.Session:new_window" + "in": "libtmux.Server.show_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:split", - "command": "split-window", + "port": "py", + "symbol": "libtmux.Server.set_hooks", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/domain.lua:7", - "has": [ - "pane = \"split-window\"" - ] - }, - { - "at": "lua/libtmux/_internal/domain.lua:174", + "at": "src/libtmux/hooks.py:240", "has": [ - "commands[kind]" + "set-hook" ] }, { - "at": "lua/libtmux/_internal/entity.lua:318", + "at": "src/libtmux/hooks.py:518", "has": [ - "\"pane\"" + "unset_hook(" ], - "in": "libtmux.Pane:split" + "in": "libtmux.Server.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:new_session", - "command": "new-session", + "port": "py", + "symbol": "libtmux.Session._show_options_dict", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/domain.lua:7", - "has": [ - "session = \"new-session\"" - ] - }, - { - "at": "lua/libtmux/_internal/domain.lua:174", + "at": "src/libtmux/options.py:886", "has": [ - "commands[kind]" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:460", + "at": "src/libtmux/options.py:928", "has": [ - "\"session\"" + "_show_options_raw(" ], - "in": "libtmux.Server:new_session" + "in": "libtmux.Session._show_options_dict" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:set_buffer", - "command": "load-buffer", + "port": "py", + "symbol": "libtmux.Session._show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/buffer.lua:9", + "at": "src/libtmux/options.py:886", "has": [ - "set = \"load-buffer\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/buffer.lua:140", + "at": "src/libtmux/options.py:928", "has": [ - "commands[kind]" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:440", + "at": "src/libtmux/options.py:977", "has": [ - "\"set\"" + "_show_options_dict(" ], - "in": "libtmux.Server:set_buffer" + "in": "libtmux.Session._show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:show_buffer", - "command": "show-buffer", + "port": "py", + "symbol": "libtmux.Session.show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/buffer.lua:9", + "at": "src/libtmux/options.py:886", "has": [ - "show = \"show-buffer\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/buffer.lua:140", + "at": "src/libtmux/options.py:928", "has": [ - "commands[kind]" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:444", + "at": "src/libtmux/options.py:977", "has": [ - "\"show\"" + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" ], - "in": "libtmux.Server:show_buffer" + "in": "libtmux.Session.show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:delete_buffer", - "command": "delete-buffer", + "port": "py", + "symbol": "libtmux.Session._show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/buffer.lua:9", - "has": [ - "delete = \"delete-buffer\"" - ] - }, - { - "at": "lua/libtmux/_internal/buffer.lua:140", + "at": "src/libtmux/options.py:1134", "has": [ - "commands[kind]" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:448", + "at": "src/libtmux/options.py:1185", "has": [ - "\"delete\"" + "_show_option_raw(" ], - "in": "libtmux.Server:delete_buffer" + "in": "libtmux.Session._show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Pane:paste_buffer", - "command": "paste-buffer", + "port": "py", + "symbol": "libtmux.Session.show_option", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/buffer.lua:9", + "at": "src/libtmux/options.py:1134", "has": [ - "paste = \"paste-buffer\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/buffer.lua:140", + "at": "src/libtmux/options.py:1185", "has": [ - "commands[kind]" + "_show_option_raw(" ] }, { - "at": "lua/libtmux/_internal/entity.lua:302", + "at": "src/libtmux/options.py:1296", "has": [ - "\"paste\"" + "_show_option(" ], - "in": "libtmux.Pane:paste_buffer" + "in": "libtmux.Session.show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:switch_client", - "command": "switch-client", + "port": "py", + "symbol": "libtmux.Session.show_hook", + "command": "show-hooks", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/client.lua:93", + "at": "src/libtmux/hooks.py:364", "has": [ - "\"switch-client\"" + "show-hooks" ] }, { - "at": "lua/libtmux/_internal/server.lua:456", + "at": "src/libtmux/hooks.py:414", "has": [ - "\"switch\"" + "_show_hook(" ], - "in": "libtmux.Server:switch_client" + "in": "libtmux.Session.show_hook" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:switch_client", - "command": "list-clients", + "port": "py", + "symbol": "libtmux.Session.set_hooks", + "command": "set-hook", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/client.lua:129", + "at": "src/libtmux/hooks.py:240", "has": [ - "\"list-clients\"" + "set-hook" ] }, { - "at": "lua/libtmux/_internal/server.lua:456", + "at": "src/libtmux/hooks.py:518", "has": [ - "\"switch\"" + "unset_hook(" ], - "in": "libtmux.Server:switch_client" + "in": "libtmux.Session.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:detach_client", - "command": "detach-client", + "port": "py", + "symbol": "libtmux.Window._show_options_dict", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/client.lua:103", + "at": "src/libtmux/options.py:886", "has": [ - "\"detach-client\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:452", + "at": "src/libtmux/options.py:928", "has": [ - "\"detach\"" + "_show_options_raw(" ], - "in": "libtmux.Server:detach_client" + "in": "libtmux.Window._show_options_dict" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:detach_client", - "command": "list-clients", + "port": "py", + "symbol": "libtmux.Window._show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/client.lua:129", + "at": "src/libtmux/options.py:886", "has": [ - "\"list-clients\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:452", + "at": "src/libtmux/options.py:928", "has": [ - "\"detach\"" + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" ], - "in": "libtmux.Server:detach_client" + "in": "libtmux.Window._show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:snapshot", - "command": "list-sessions", + "port": "py", + "symbol": "libtmux.Window.show_options", + "command": "show-options", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:20", + "at": "src/libtmux/options.py:886", "has": [ - "\"list-sessions\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:96", + "at": "src/libtmux/options.py:928", "has": [ - "ipairs(specs)" + "_show_options_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:309", + "at": "src/libtmux/options.py:977", "has": [ - "acquire(" + "_show_options_dict(" ] }, { - "at": "lua/libtmux/_internal/server.lua:432", + "at": "src/libtmux/options.py:1037", "has": [ - "capture(" + "_show_options(" ], - "in": "libtmux.Server:snapshot" + "in": "libtmux.Window.show_options" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:snapshot", - "command": "list-windows", - "scope": "server", + "port": "py", + "symbol": "libtmux.Window._show_option", + "command": "show-options", + "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:21", + "at": "src/libtmux/options.py:1134", "has": [ - "\"list-windows\"", - "\"-a\"" + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:96", + "at": "src/libtmux/options.py:1185", "has": [ - "ipairs(specs)" + "_show_option_raw(" + ], + "in": "libtmux.Window._show_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.show_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" ] }, { - "at": "lua/libtmux/_internal/server.lua:309", + "at": "src/libtmux/options.py:1185", "has": [ - "acquire(" + "_show_option_raw(" ] }, { - "at": "lua/libtmux/_internal/server.lua:432", + "at": "src/libtmux/options.py:1296", "has": [ - "capture(" + "_show_option(" ], - "in": "libtmux.Server:snapshot" + "in": "libtmux.Window.show_option" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:snapshot", - "command": "list-clients", + "port": "py", + "symbol": "libtmux.Window.show_hook", + "command": "show-hooks", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:24", + "at": "src/libtmux/hooks.py:364", "has": [ - "\"list-clients\"" + "show-hooks" ] }, { - "at": "lua/libtmux/_internal/server.lua:96", + "at": "src/libtmux/hooks.py:414", "has": [ - "ipairs(specs)" - ] - }, + "_show_hook(" + ], + "in": "libtmux.Window.show_hook" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:309", + "at": "src/libtmux/hooks.py:240", "has": [ - "acquire(" + "set-hook" ] }, { - "at": "lua/libtmux/_internal/server.lua:432", + "at": "src/libtmux/hooks.py:518", "has": [ - "capture(" + "unset_hook(" ], - "in": "libtmux.Server:snapshot" + "in": "libtmux.Window.set_hooks" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:snapshot", - "command": "list-buffers", + "port": "py", + "symbol": "libtmux.Window.new_window", + "command": "new-window", "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:25", + "at": "src/libtmux/session.py:939", "has": [ - "\"list-buffers\"" + "new-window" ] }, { - "at": "lua/libtmux/_internal/server.lua:96", + "at": "src/libtmux/window.py:1599", "has": [ - "ipairs(specs)" - ] - }, + "self.session.new_window(" + ], + "in": "libtmux.Window.new_window" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.split", + "command": "split-window", + "scope": null, + "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:309", + "at": "src/libtmux/pane.py:1404", "has": [ - "acquire(" + "split-window" ] }, { - "at": "lua/libtmux/_internal/server.lua:432", + "at": "src/libtmux/window.py:609", "has": [ - "capture(" + "active_pane.split(" ], - "in": "libtmux.Server:snapshot" + "in": "libtmux.Window.split" } ] }, { - "port": "lua", - "symbol": "libtmux.Server:snapshot", - "command": "list-panes", - "scope": "server", + "port": "py", + "symbol": "libtmux.Window.new_pane", + "command": "new-pane", + "scope": null, "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:22", + "at": "src/libtmux/pane.py:1572", "has": [ - "\"list-panes\"", - "\"-a\"" + "new-pane" ] }, { - "at": "lua/libtmux/_internal/server.lua:177", + "at": "src/libtmux/window.py:707", "has": [ - "ipairs(specs)" - ] - }, + "active_pane.new_pane(" + ], + "in": "libtmux.Window.new_pane" + } + ] + }, + { + "port": "kotlin", + "symbol": "io.github.libtmux.kotlin.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + }, + "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:309", + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:27", "has": [ - "acquire(" - ] - }, + "java.get(name)" + ], + "in": "io.github.libtmux.kotlin.Options.get" + } + ] + }, + { + "port": "kotlin", + "symbol": "io.github.libtmux.kotlin.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + }, + "evidence": [ { - "at": "lua/libtmux/_internal/server.lua:432", + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:35", "has": [ - "capture(" + "java.set(name, value)" ], - "in": "libtmux.Server:snapshot" + "in": "io.github.libtmux.kotlin.Options.set" + } + ] + }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:60", + "has": [ + "self.underlying.get(name)" + ], + "in": "io.github.libtmux.scaladsl.cats.Options.get" + } + ] + }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:74", + "has": [ + "self.underlying.set(name, value)" + ], + "in": "io.github.libtmux.scaladsl.cats.Options.set" } ] } diff --git a/scripts/tmux-usage/not-senders.json b/scripts/tmux-usage/not-senders.json new file mode 100644 index 000000000..3b992adce --- /dev/null +++ b/scripts/tmux-usage/not-senders.json @@ -0,0 +1,4416 @@ +{ + "schemaVersion": 1, + "reviews": [ + { + "port": "csharp", + "owner": "CapturePanePosition", + "kind": "builds", + "why": "CapturePanePosition is a position inside a CapturePaneRequest; it carries no command.", + "evidence": [ + { + "at": "src/LibTmux/Requests/CapturePaneRequest.cs:14", + "has": [ + "CapturePanePosition" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Client", + "names": [ + "RefreshAsync" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "RefreshAsync reads this client again with GetAsync; it does not send refresh-client.", + "evidence": [ + { + "at": "src/LibTmux/Client.Administration.cs:94", + "has": [ + "GetAsync(Server, Name" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "ClearAsync" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "ClearAsync types reset into the pane with send-keys, and sends no clear-history.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:157", + "has": [ + "SendKeysAsync(new SendKeysRequest { Text = \"reset\" }" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "ClearHistoryAsync" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "ClearHistoryAsync sends clear-history; clear-prompt-history is a different command, sent by Server.ClearPromptHistoryAsync.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:192", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "FindWindowAsync" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "FindWindowAsync sends find-window, which has its own entry; it does not list panes or windows.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Display.cs:136", + "has": [ + "\"find-window\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "WaitForTextAsync" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "WaitForTextAsync waits on pane activity through PaneTextWaiter; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Waiting.cs:66", + "has": [ + "PaneTextWaiter.WaitAsync(" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:67", + "has": [ + "PaneActivityHub.Shared" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxPane", + "kind": "no-send", + "why": "PsmuxPane wraps the psmux multiplexer on Windows, which is not tmux; its capture goes to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxServer", + "kind": "no-send", + "why": "The Psmux types wrap the psmux multiplexer on Windows, which is not tmux; their reads go to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxSession", + "kind": "no-send", + "why": "The Psmux types wrap the psmux multiplexer on Windows, which is not tmux; their reads go to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxWindow", + "kind": "no-send", + "why": "The Psmux types wrap the psmux multiplexer on Windows, which is not tmux; their reads go to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "ownerSuffix": "Request", + "kind": "builds", + "why": "A request describes the arguments of one command and turns itself into a command value; the library sends it from the method that takes it.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:30", + "has": [ + "Returns this request as one tmux command" + ] + }, + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:34", + "has": [ + "TmuxCommand ToCommand(" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "ClearPromptHistoryAsync" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "ClearPromptHistoryAsync sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "src/LibTmux/Server.Interaction.cs:98", + "has": [ + "\"clear-prompt-history\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "FindWindowAsync" + ], + "commands": [ + "find-window" + ], + "kind": "other-command", + "why": "FindWindowAsync reads one window by id with list-windows -a or display-message; it does not send find-window.", + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:191", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "ServerGeneration", + "names": [ + "StartTime" + ], + "commands": [ + "start-server" + ], + "kind": "values", + "why": "StartTime is the start time of the tmux server a generation names; it does not start one.", + "evidence": [ + { + "at": "src/LibTmux/Connection/ServerGeneration.cs:27", + "has": [ + "StartTime" + ] + } + ] + }, + { + "port": "csharp", + "owner": "ServerMirror", + "names": [ + "WaitForNewerAsync" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "WaitForNewerAsync waits for the mirror's next published epoch; it does not send wait-for.", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerMirror.cs:175", + "has": [ + "WaitForNewerAsync(long epoch" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Session", + "names": [ + "FindWindowAsync" + ], + "commands": [ + "find-window" + ], + "kind": "other-command", + "why": "Session.FindWindowAsync lists the session's windows with list-windows -t; it does not send find-window.", + "evidence": [ + { + "at": "src/LibTmux/Session.Relations.cs:100", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Session.Relations.cs:101", + "has": [ + "\"-t\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Session", + "names": [ + "SelectNextWindowAsync", + "SelectPreviousWindowAsync", + "SelectLastWindowAsync" + ], + "commands": [ + "select-window" + ], + "kind": "other-command", + "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:163", + "has": [ + "\"next-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:176", + "has": [ + "\"previous-window\"" + ] + }, + { + "at": "src/LibTmux/Session.WindowNavigation.cs:16", + "has": [ + "\"last-window\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "TmuxBuffers", + "names": [ + "GetAsync", + "GetAllAsync", + "GetLinesAsync" + ], + "commands": [ + "list-buffers", + "show-buffer" + ], + "kind": "other-command", + "why": "GetAsync reads one buffer with show-buffer and GetAllAsync lists them with list-buffers; each sends its own, and not the other's.", + "evidence": [ + { + "at": "src/LibTmux/Server.Buffers.cs:59", + "has": [ + "show-buffer" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:89", + "has": [ + "list-buffers" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Window", + "names": [ + "FindPaneAsync" + ], + "commands": [ + "find-window", + "list-windows" + ], + "kind": "other-command", + "why": "FindPaneAsync reads the window's panes with list-panes through GetPanesAsync; it does not send find-window or list-windows.", + "evidence": [ + { + "at": "src/LibTmux/Window.Panes.cs:112", + "has": [ + "GetPanesAsync(" + ] + }, + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Window", + "names": [ + "SelectNextLayoutAsync", + "SelectPreviousLayoutAsync", + "SelectLastPaneAsync" + ], + "commands": [ + "select-layout", + "select-window", + "select-pane" + ], + "kind": "other-command", + "why": "These send next-layout and previous-layout, and last-pane, and not select-layout or select-window.", + "evidence": [ + { + "at": "src/LibTmux/Window.Layout.cs:122", + "has": [ + "\"next-layout\"" + ] + }, + { + "at": "src/LibTmux/Window.Layout.cs:135", + "has": [ + "\"previous-layout\"" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:40", + "has": [ + "\"last-pane\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "CommandOperation", + "names": [ + "wait_for" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "These wait on a future, a deadline or the control connection's notifications; none sends tmux's wait-for.", + "evidence": [ + { + "at": "include/libtmux/async.hpp:162", + "has": [ + "wait_for(std::chrono::milliseconds timeout) const" + ] + }, + { + "at": "include/libtmux/control.hpp:296", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "CommandRuntime", + "names": [ + "wait_ready_for" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_ready_for waits on the runtime's own readiness; it sends no wait-for.", + "evidence": [ + { + "at": "include/libtmux/async.hpp:110", + "has": [ + "wait_ready_for(std::chrono::milliseconds timeout)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Connection", + "names": [ + "wait_for_notifications" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_notifications blocks for the next control-mode notification; it sends no wait-for.", + "evidence": [ + { + "at": "include/libtmux/control.hpp:296", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + }, + { + "at": "include/libtmux/notification.hpp:143", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "NotificationWatch", + "names": [ + "wait_for_notifications" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_notifications blocks for the next control-mode notification; it sends no wait-for.", + "evidence": [ + { + "at": "include/libtmux/notification.hpp:143", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "src/entities.cpp:1549", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/entities.cpp:1565", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "wait_for_text" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_text polls the pane's captured text until it matches or a deadline passes; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "src/wait.cpp:131", + "has": [ + "\"capture-pane\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Server", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment, and sends no kill-server.", + "evidence": [ + { + "at": "src/server.cpp:1356", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Server", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/server.cpp:1100", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Server", + "names": [ + "wait_for_text" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_text polls the pane's captured text until it matches or a deadline passes; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "src/wait.cpp:131", + "has": [ + "\"capture-pane\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Session", + "names": [ + "attach_command" + ], + "commands": [ + "attach-session" + ], + "kind": "builds", + "why": "attach_command returns the attach command for the caller to run in a terminal; it sends nothing.", + "evidence": [ + { + "at": "include/libtmux/entities.hpp:474", + "has": [ + "expected attach_command() const" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Session", + "names": [ + "select_next_window", + "select_previous_window", + "select_last_window" + ], + "commands": [ + "select-window" + ], + "kind": "other-command", + "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", + "evidence": [ + { + "at": "src/entities.cpp:303", + "has": [ + "next-window" + ] + }, + { + "at": "src/entities.cpp:311", + "has": [ + "previous-window" + ] + }, + { + "at": "src/entities.cpp:319", + "has": [ + "last-window" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Session", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/entities.cpp:444", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Window", + "names": [ + "select_last_pane" + ], + "commands": [ + "last-pane", + "last-window" + ], + "kind": "other-command", + "why": "select_last_pane sends select-pane -l, which has its own entry; there is no last-pane or last-window in it.", + "evidence": [ + { + "at": "src/entities.cpp:743", + "has": [ + "select-pane" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Window", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/entities.cpp:669", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Chain", + "names": [ + "newWindow" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "Chain.newWindow adds a new-window command to a chain; the chain sends it when it is executed.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:226", + "has": [ + "chain.Then(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:228", + "has": [ + "\"new-window\"" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Pane", + "names": [ + "findOnScreen" + ], + "commands": [ + "list-panes" + ], + "kind": "other-command", + "why": "findOnScreen asks tmux to search the pane's screen with display-message, through Pane.FindOnScreenAsync; it lists no panes.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:168", + "has": [ + "pane.FindOnScreenAsync(" + ] + }, + { + "at": "src/LibTmux/Pane.Display.cs:307", + "has": [ + "DisplayMessageAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Pane", + "names": [ + "waitForText", + "waitFor", + "sendAndWaitFor" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "These wait for pane text through Pane.WaitForTextAsync and SendKeysAsync, which poll the pane; they do not send tmux's wait-for.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:173", + "has": [ + "pane.WaitForTextAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:176", + "has": [ + "pane.WaitForTextAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:193", + "has": [ + "pane.SendKeysAndWaitAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Server", + "names": [ + "tryFindWindow" + ], + "commands": [ + "find-window" + ], + "kind": "other-command", + "why": "tryFindWindow reads one window with Server.FindWindowAsync, which lists windows; it does not send find-window.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:126", + "has": [ + "server.FindWindowAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "WindowSpec", + "names": [ + "Splits" + ], + "commands": [ + "split-window" + ], + "kind": "values", + "why": "Splits is a field of a window spec, the splits the window should have; it sends nothing.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Spec.fsi:37", + "has": [ + "Splits" + ] + } + ] + }, + { + "port": "go", + "owner": "Client", + "names": [ + "Refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "Refresh reads the client again with Server.Client; it does not send refresh-client.", + "evidence": [ + { + "at": "tmux/lookup.go:128", + "has": [ + "c.server.Client(ctx, c.clientName)" + ] + } + ] + }, + { + "port": "go", + "owner": "GlobalSessionScope", + "names": [ + "SetDestroyUnattached", + "SetDetachOnDestroy", + "SetDisplayPanesActiveColour", + "SetDisplayPanesColour", + "SetDisplayPanesTime", + "SetLockAfterTime", + "SetLockCommand", + "SetPromptCommandCursorStyle", + "SetUpdateEnvironment" + ], + "commands": [ + "command-prompt", + "display-panes", + "kill-session", + "lock-session", + "set-environment" + ], + "kind": "other-command", + "why": "The typed setters of GlobalSessionScope write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:5078", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:5081", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "GlobalWindowScope", + "names": [ + "SetAggressiveResize", + "SetAllowRename", + "SetAutomaticRename", + "SetAutomaticRenameFormat", + "SetClockModeColour", + "SetClockModeStyle", + "SetCopyModeCurrentLineNumberStyle", + "SetCopyModeCurrentMatchStyle", + "SetCopyModeLineNumberStyle", + "SetCopyModeLineNumbers", + "SetCopyModeMarkStyle", + "SetCopyModeMatchStyle", + "SetCopyModePositionFormat", + "SetCopyModePositionStyle", + "SetCopyModeSelectionStyle", + "SetWindowStatusLastStyle", + "SetWrapSearch" + ], + "commands": [ + "clock-mode", + "copy-mode", + "last-window", + "list-windows", + "rename-window", + "resize-window" + ], + "kind": "other-command", + "why": "The typed setters of GlobalWindowScope write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4492", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4495", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "OptionValue", + "names": [ + "Get" + ], + "commands": [ + "show-options" + ], + "kind": "values", + "why": "OptionValue holds one option the way a reply reported it; Get returns it.", + "evidence": [ + { + "at": "tmux/option_value.go:31", + "has": [ + "type OptionValue[T any] struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "Clear" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "Clear types reset into the pane through SendKeys; it sends no clear-history.", + "evidence": [ + { + "at": "tmux/pane_input.go:428", + "has": [ + "command := \"reset\"" + ] + }, + { + "at": "tmux/pane_input.go:429", + "has": [ + "p.SendKeys(ctx, SendKeysRequest{Command: &command})" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "ClearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "ClearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "tmux/pane_input.go:405", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "FindWindow" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "FindWindow sends find-window, which has its own entry; it lists no panes or windows.", + "evidence": [ + { + "at": "tmux/pane_modes.go:256", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "Last", + "PipePID", + "SearchString", + "StartCommandList" + ], + "commands": [ + "last-pane", + "list-commands", + "list-panes", + "pipe-pane" + ], + "kind": "values", + "why": "These accessors of Pane read a field of the projection the handle holds; they send no command.", + "evidence": [ + { + "at": "tmux/format_generated.go:1228", + "has": [ + "func (" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "SetCopyModePositionFormat", + "SetScrollOnClear" + ], + "commands": [ + "clear-history", + "copy-mode" + ], + "kind": "other-command", + "why": "The typed setters of Pane write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4896", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4901", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "PaneObservation", + "names": [ + "Close", + "CloseContext" + ], + "commands": [ + "kill-pane" + ], + "kind": "no-send", + "why": "Close and CloseContext close the control client the observation reads from; neither sends kill-pane.", + "evidence": [ + { + "at": "tmux/control_observation.go:275", + "has": [ + "o.client.Close()" + ] + }, + { + "at": "tmux/control_observation.go:283", + "has": [ + "o.client.CloseContext(ctx)" + ] + } + ] + }, + { + "port": "go", + "owner": "PaneObservation", + "names": [ + "WaitFor" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "WaitFor reads pane output notifications from the control client until match is satisfied; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "tmux/pane_wait.go:51", + "has": [ + "o.state.acquireReadToken(ctx)" + ] + }, + { + "at": "tmux/pane_wait.go:66", + "has": [ + "o.read(ctx, block)" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "ClearPromptHistory" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "ClearPromptHistory sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "tmux/prompt_history.go:69", + "has": [ + "clear-prompt-history" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "DeleteBuffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "DeleteBuffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:161", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "RemoveEnvironment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "RemoveEnvironment unsets a variable with set-environment, and sends no kill-server.", + "evidence": [ + { + "at": "tmux/environment.go:234", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "SetBufferLimit", + "SetInputBufferSize" + ], + "commands": [ + "set-buffer" + ], + "kind": "other-command", + "why": "The typed setters of Server write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4718", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4721", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "ShowMessages" + ], + "commands": [ + "display-message" + ], + "kind": "other-command", + "why": "ShowMessages sends show-messages; display-message is a different command.", + "evidence": [ + { + "at": "tmux/server_keys.go:237", + "has": [ + "show-messages" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "AttachedList", + "GroupAttachedList", + "GroupList", + "LastWindowIndex" + ], + "commands": [ + "last-window", + "list-sessions" + ], + "kind": "values", + "why": "These accessors of Session read a field of the projection the handle holds; they send no command.", + "evidence": [ + { + "at": "tmux/format_generated.go:906", + "has": [ + "func (" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "GetEnvironment" + ], + "commands": [ + "list-sessions" + ], + "kind": "other-command", + "why": "GetEnvironment reads a variable with show-environment; it lists no sessions.", + "evidence": [ + { + "at": "tmux/environment.go:279", + "has": [ + "show-environment" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "RemoveEnvironment" + ], + "commands": [ + "kill-session" + ], + "kind": "other-command", + "why": "RemoveEnvironment unsets a variable with set-environment, and sends no kill-session.", + "evidence": [ + { + "at": "tmux/environment.go:234", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "SetDestroyUnattached", + "SetDetachOnDestroy", + "SetDisplayPanesActiveColour", + "SetDisplayPanesColour", + "SetDisplayPanesTime", + "SetLockAfterTime", + "SetLockCommand", + "SetPromptCommandCursorStyle", + "SetUpdateEnvironment" + ], + "commands": [ + "command-prompt", + "display-panes", + "kill-session", + "lock-session", + "set-environment" + ], + "kind": "other-command", + "why": "The typed setters of Session write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:5068", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:5073", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "ownerSuffix": "Values", + "kind": "values", + "why": "A Values type is the struct one show-options or format reply decodes into; its members are fields, not commands.", + "evidence": [ + { + "at": "tmux/option_generated.go:1816", + "has": [ + "type ServerOptionValues struct" + ] + }, + { + "at": "tmux/option_generated.go:3203", + "has": [ + "type ServerHookValues struct" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Window", + "names": [ + "ActiveClientsList", + "ActiveSessionsList", + "LastFlag", + "LinkedSessionsList" + ], + "commands": [ + "last-window", + "list-clients", + "list-sessions", + "list-windows" + ], + "kind": "values", + "why": "These accessors of Window read a field of the projection the handle holds; they send no command.", + "evidence": [ + { + "at": "tmux/format_generated.go:973", + "has": [ + "func (" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Window", + "names": [ + "SetAggressiveResize", + "SetAllowRename", + "SetAutomaticRename", + "SetAutomaticRenameFormat", + "SetClockModeColour", + "SetClockModeStyle", + "SetCopyModeCurrentLineNumberStyle", + "SetCopyModeCurrentMatchStyle", + "SetCopyModeLineNumberStyle", + "SetCopyModeLineNumbers", + "SetCopyModeMarkStyle", + "SetCopyModeMatchStyle", + "SetCopyModePositionFormat", + "SetCopyModePositionStyle", + "SetCopyModeSelectionStyle", + "SetWindowStatusLastStyle", + "SetWrapSearch" + ], + "commands": [ + "clock-mode", + "copy-mode", + "last-window", + "list-windows", + "rename-window", + "resize-window" + ], + "kind": "other-command", + "why": "The typed setters of Window write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4482", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4487", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "java", + "names": [ + "serverStartTime", + "startTime" + ], + "commands": [ + "start-server" + ], + "in": "libtmux/src/", + "kind": "values", + "why": "These accessors return the start time of the tmux process a capture came from; they do not start a server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java:248", + "has": [ + "public OptionalLong serverStartTime()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:455", + "has": [ + "long startTime" + ] + } + ] + }, + { + "port": "java", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "Client.refresh re-reads this client from a fresh listing; redraw is the method that sends refresh-client.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:137", + "has": [ + "server.refresh(snapshot)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:80", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "java", + "owner": "OptionKey", + "names": [ + "read" + ], + "commands": [ + "show-options" + ], + "kind": "values", + "why": "OptionKey.read decodes the text a show-options reply carried into the key's type; it sends nothing.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/OptionKey.java:78", + "has": [ + "T read(String reported)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/OptionKey.java:79", + "has": [ + "read.apply(reported)" + ] + } + ] + }, + { + "port": "java", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history, which has its own entry; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1052", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "java", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close releases the transport this server owns; it does not send kill-server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1302", + "has": [ + "public void close()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1307", + "has": [ + "transport.close()" + ] + } + ] + }, + { + "port": "java", + "owner": "ServerMirror", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close stops the mirror's listener and detaches its control client; it does not kill the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java:218", + "has": [ + "public void close()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java:220", + "has": [ + "listener.interrupt()" + ] + } + ] + }, + { + "port": "julia", + "names": [ + "get_hook" + ], + "commands": [ + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads a hook's command array with show-options -H, and sends no show-hooks.", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "[\"show-options\", \"-A\", \"-H\"" + ] + }, + { + "at": "src/configuration.jl:439", + "has": [ + "_configuration_hook_rows(" + ] + } + ] + }, + { + "port": "julia", + "owner": "OwnedServer", + "names": [ + "_lock" + ], + "commands": [ + "lock-server" + ], + "kind": "values", + "why": "_lock is the lock field of an OwnedServer, not a command.", + "evidence": [ + { + "at": "src/lifecycle.jl:57", + "has": [ + "_lock::ReentrantLock" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh re-reads the client from a fresh listing; redraw sends refresh-client.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:137", + "has": [ + "server.refresh(snapshot)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:80", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "CommandChain", + "kind": "builds", + "why": "A CommandChain method records a step on the Java chain; the chain sends them when it is run.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:83", + "has": [ + "public CommandChain then(String... argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:84", + "has": [ + "batch.add(argv)" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1052", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close releases the Java server's transport, as Server.close does; it does not send kill-server.", + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt:164", + "has": [ + "java.close()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1307", + "has": [ + "transport.close()" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "WindowBuilder", + "names": [ + "split" + ], + "commands": [ + "split-window" + ], + "kind": "builds", + "why": "WindowBuilder.split records a split on the window spec being built, which sends nothing until the window is created.", + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt:124", + "has": [ + "public fun split(" + ] + }, + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt:125", + "has": [ + "splits += configure" + ] + } + ] + }, + { + "port": "lua", + "owner": "Configurable", + "kind": "no-send", + "why": "Configurable declares the shared option and hook methods as fields of a type; the handles that implement them are the symbols that send.", + "evidence": [ + { + "at": "lua/libtmux/_internal/entity.lua:390", + "has": [ + "---@class libtmux.Configurable" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:12", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "copy_command" + ], + "commands": [ + "copy-mode" + ], + "kind": "other-command", + "why": "copy_command sends send-keys -X to the pane's copy mode; it does not send copy-mode.", + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:16", + "has": [ + "send-keys" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "get_hook" + ], + "commands": [ + "list-panes", + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "get_option", + "list_options", + "list_hooks" + ], + "commands": [ + "list-panes" + ], + "kind": "other-command", + "why": "These read options and hooks with show-options, which has its own entry; they send no list-panes.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "move_to" + ], + "commands": [ + "move-pane" + ], + "kind": "other-command", + "why": "move_to moves a pane with join-pane, which has its own entry; it does not send move-pane.", + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:395", + "has": [ + "join-pane" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close releases the connections the server handle owns; the tmux daemon keeps running and no kill-server is sent.", + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:510", + "has": [ + "function Server:close()" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:513", + "has": [ + "state.bound:close()" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "get_hook" + ], + "commands": [ + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment, and not kill-server or kill-session.", + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "set_buffer" + ], + "commands": [ + "set-buffer" + ], + "kind": "other-command", + "why": "set_buffer stores text with load-buffer, which has its own entry; it does not send set-buffer.", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "load-buffer" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "attach" + ], + "commands": [ + "attach-session" + ], + "kind": "no-send", + "why": "attach is refused: interactive attachment is not supported, and the operation is recorded as not sent.", + "evidence": [ + { + "at": "lua/libtmux/_internal/client.lua:246", + "has": [ + "interactive attachment requires a Session" + ] + }, + { + "at": "lua/libtmux/_internal/client.lua:254", + "has": [ + "effect = \"not_sent\"" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "get_environment", + "list_environment" + ], + "commands": [ + "list-sessions" + ], + "kind": "other-command", + "why": "get_environment and list_environment read with show-environment, which has its own entry; they send no list-sessions.", + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "show-environment" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "get_hook" + ], + "commands": [ + "list-sessions", + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "get_option", + "list_options", + "list_hooks" + ], + "commands": [ + "list-sessions" + ], + "kind": "other-command", + "why": "These read options and hooks with show-options, which has its own entry; they send no list-sessions.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-session" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment, and not kill-server or kill-session.", + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "lua", + "owner": "Window", + "names": [ + "get_hook" + ], + "commands": [ + "list-windows", + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Window", + "names": [ + "get_option", + "list_options", + "list_hooks" + ], + "commands": [ + "list-windows" + ], + "kind": "other-command", + "why": "These read options and hooks with show-options, which has its own entry; they send no list-windows.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "Get-TmuxPaneContent" + ], + "commands": [ + "list-panes" + ], + "kind": "other-command", + "why": "Get-TmuxPaneContent captures the pane's text with capture-pane through Pane.CaptureAsync; it lists no panes.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxPaneContentCommand.cs:119", + "has": [ + "Pane.CaptureAsync(" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "New-TmuxWindowLink" + ], + "commands": [ + "new-window" + ], + "kind": "other-command", + "why": "New-TmuxWindowLink links an existing window into another session with link-window; it creates no window.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/NewTmuxWindowLinkCommand.cs:65", + "has": [ + "Window.LinkAsync(" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "Remove-TmuxWindowLink" + ], + "commands": [ + "kill-window", + "link-window" + ], + "kind": "other-command", + "why": "Remove-TmuxWindowLink removes a window's placement with unlink-window; it does not kill the window or link one.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/RemoveTmuxWindowLinkCommand.cs:28", + "has": [ + "Window.UnlinkAsync(" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "Select-TmuxPane", + "Select-TmuxWindow" + ], + "commands": [ + "select-pane", + "select-window" + ], + "kind": "no-send", + "why": "Select-TmuxPane and Select-TmuxWindow pick objects from the pipeline with a query, as Select-Object does; they send no select-pane or select-window.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SelectTmuxPaneCommand.cs:12", + "has": [ + "QuerySelection" + ] + }, + { + "at": "src/LibTmux.PowerShell/SelectTmuxPaneCommand.cs:42", + "has": [ + "selection.Process(" + ] + }, + { + "at": "src/LibTmux.PowerShell/SelectTmuxWindowCommand.cs:12", + "has": [ + "QuerySelection" + ] + } + ] + }, + { + "port": "py", + "owner": "Client", + "names": [ + "refresh", + "_refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh reads the client again with list-clients; it does not send refresh-client.", + "evidence": [ + { + "at": "src/libtmux/client.py:119", + "has": [ + "list_cmd=\"list-clients\"" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "_show_options_raw", + "_show_options_dict", + "_show_options", + "show_options", + "_show_option_raw", + "_show_option", + "show_option", + "show_hooks", + "_show_hook", + "show_hook" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "The Pane option and hook readers are the mixins' methods, which send show-options and show-hooks; none sends display-panes.", + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "\"show-hooks\"" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "clear" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "clear types reset into the pane with send_keys; it sends no clear-history.", + "evidence": [ + { + "at": "src/libtmux/pane.py:2613", + "has": [ + "self.send_keys(\"reset\")" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "src/libtmux/pane.py:2607", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "find_window" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "find_window sends find-window, which has its own entry; it lists no panes or windows.", + "evidence": [ + { + "at": "src/libtmux/pane.py:2233", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "get", + "resize_pane", + "select_pane", + "split_window" + ], + "commands": [ + "list-panes", + "resize-pane", + "select-pane", + "split-window" + ], + "in": "src/libtmux/pane.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/pane.py:1206", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/pane.py:2800", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/pane.py:2815", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/pane.py:2857", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "_list_panes", + "_list_sessions", + "_list_windows", + "kill_server", + "list_sessions" + ], + "commands": [ + "kill-server", + "list-panes", + "list-sessions", + "list-windows" + ], + "in": "src/libtmux/server.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/server.py:2717", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2736", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2814", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2856", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2873", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "clear_prompt_history" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "clear_prompt_history sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "src/libtmux/server.py:1811", + "has": [ + "clear-prompt-history" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "src/libtmux/server.py:1902", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment -r, and sends no kill-server.", + "evidence": [ + { + "at": "src/libtmux/common.py:159", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "show_messages" + ], + "commands": [ + "display-message" + ], + "kind": "other-command", + "why": "show_messages sends show-messages; display-message is a different command.", + "evidence": [ + { + "at": "src/libtmux/server.py:1559", + "has": [ + "show-messages" + ] + } + ] + }, + { + "port": "py", + "owner": "Session", + "names": [ + "_list_windows", + "attach_session", + "find_where", + "get", + "get_by_id", + "kill_session", + "list_windows" + ], + "commands": [ + "attach-session", + "kill-session", + "list-sessions", + "list-windows" + ], + "in": "src/libtmux/session.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/session.py:1088", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1103", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1118", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1147", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1175", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1189", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1218", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "py", + "owner": "Session", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-session" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment -r, and sends no kill-session.", + "evidence": [ + { + "at": "src/libtmux/common.py:159", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "py", + "owner": "Window", + "names": [ + "_list_panes", + "find_where", + "get", + "get_by_id", + "kill_window", + "list_panes", + "select_window", + "split_window" + ], + "commands": [ + "find-window", + "kill-window", + "list-panes", + "list-windows", + "select-window", + "split-window" + ], + "in": "src/libtmux/window.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/window.py:1764", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1795", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1810", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1886", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1915", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1943", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1957", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1986", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "rs", + "names": [ + "get" + ], + "commands": [ + "list-clients", + "list-panes", + "list-sessions", + "list-windows" + ], + "in": "crates/libtmux/src/", + "kind": "values", + "why": "get reads a field of the projection the handle already holds; it sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/client.rs:537", + "has": [ + "pub fn get>" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1308", + "has": [ + "pub fn get>" + ] + }, + { + "at": "crates/libtmux/src/session.rs:905", + "has": [ + "pub fn get>" + ] + }, + { + "at": "crates/libtmux/src/window.rs:1192", + "has": [ + "pub fn get>" + ] + } + ] + }, + { + "port": "rs", + "owner": "CapturePane", + "names": [ + "new" + ], + "commands": [ + "new-pane" + ], + "kind": "builds", + "why": "CapturePane::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:516", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh reads the client again from list-clients; it does not send refresh-client.", + "evidence": [ + { + "at": "crates/libtmux/src/client.rs:165", + "has": [ + "listing::clients(&self.core, None)" + ] + } + ] + }, + { + "port": "rs", + "owner": "KillPane", + "names": [ + "new" + ], + "commands": [ + "new-pane" + ], + "kind": "builds", + "why": "KillPane::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:566", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "KillWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "KillWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:303", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewSession", + "names": [ + "new" + ], + "commands": [ + "new-session" + ], + "kind": "builds", + "why": "NewSession::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/sessions.rs:66", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewSessionOptions", + "names": [ + "new" + ], + "commands": [ + "new-session" + ], + "kind": "values", + "why": "NewSessionOptions::new and NewWindowOptions::new build the options of a creation, and select sets one; they send nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:2223", + "has": [ + "pub fn new(name: impl Into)" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "NewWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:76", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewWindowOptions", + "names": [ + "new", + "select" + ], + "commands": [ + "new-window", + "select-window" + ], + "kind": "values", + "why": "NewSessionOptions::new and NewWindowOptions::new build the options of a creation, and select sets one; they send nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/session.rs:1067", + "has": [ + "pub fn new(name: impl Into)" + ] + }, + { + "at": "crates/libtmux/src/session.rs:1126", + "has": [ + "pub const fn select(mut self) -> Self" + ] + } + ] + }, + { + "port": "rs", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:924", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "rs", + "owner": "Pane", + "names": [ + "display" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "display shows a message with display-message; it sends no display-panes.", + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:877", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "rs", + "owner": "Pane", + "names": [ + "wait_for_text", + "wait_for_quiet" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_text and wait_for_quiet poll the pane's captured text until a condition holds; they do not send tmux's wait-for.", + "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:315", + "has": [ + "self.look_until(within" + ] + } + ] + }, + { + "port": "rs", + "owner": "RenameWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "RenameWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:262", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "SelectPane", + "names": [ + "new" + ], + "commands": [ + "new-pane" + ], + "kind": "builds", + "why": "SelectPane::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:473", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "SelectWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "SelectWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:215", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "clear_prompt_history" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "clear_prompt_history sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:1364", + "has": [ + "clear-prompt-history" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:1106", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "find_window" + ], + "commands": [ + "list-windows" + ], + "kind": "other-command", + "why": "find_window sends find-window; it lists no windows.", + "evidence": [ + { + "at": "crates/libtmux/src/server/interactive.rs:164", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "lock_channel", + "with_channel_lock" + ], + "commands": [ + "lock-server" + ], + "kind": "other-command", + "why": "lock_channel and with_channel_lock take a channel lock with wait-for -L, and unlock_channel releases it with -U; they send no lock-server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/wait_for.rs:262", + "has": [ + "channel_command(Some(\"-L\"), channel)" + ] + }, + { + "at": "crates/libtmux/src/internal/wait_for.rs:341", + "has": [ + "channel_command(Some(\"-U\"), channel)" + ] + } + ] + }, + { + "port": "rs", + "owner": "ServerGeneration", + "names": [ + "start_time" + ], + "commands": [ + "start-server" + ], + "kind": "values", + "why": "start_time is the start time of the tmux server a generation names; it does not start one.", + "evidence": [ + { + "at": "crates/libtmux/src/target.rs:303", + "has": [ + "pub fn start_time(self) -> SystemTime" + ] + } + ] + }, + { + "port": "rs", + "owner": "SessionName", + "names": [ + "new" + ], + "commands": [ + "new-session" + ], + "kind": "values", + "why": "SessionName::new checks and wraps a session name; it sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/target.rs:695", + "has": [ + "pub fn new(name: impl Into)" + ] + } + ] + }, + { + "port": "rs", + "owner": "SplitWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "SplitWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:146", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "TestServerBuilder", + "names": [ + "start" + ], + "commands": [ + "start-server" + ], + "kind": "no-send", + "why": "TestServerBuilder starts a tmux process with -D for a test, as a process; it sends no start-server command.", + "evidence": [ + { + "at": "crates/libtmux/src/test.rs:492", + "has": [ + "ProcessCommand::new(&self.executable)" + ] + }, + { + "at": "crates/libtmux/src/test.rs:494", + "has": [ + ".arg(\"-D\")" + ] + } + ] + }, + { + "port": "rs", + "owner": "Window", + "names": [ + "last_activity" + ], + "commands": [ + "last-window" + ], + "kind": "values", + "why": "last_activity is the time tmux last saw activity in the window, read from the projection the handle holds.", + "evidence": [ + { + "at": "crates/libtmux/src/window.rs:294", + "has": [ + "pub fn last_activity(&self) -> SystemTime" + ] + } + ] + }, + { + "port": "rs", + "owner": "Window", + "names": [ + "next_layout", + "previous_layout" + ], + "commands": [ + "next-layout", + "next-window", + "previous-layout", + "previous-window" + ], + "kind": "other-command", + "why": "next_layout and previous_layout send select-layout with -n and -p, which has its own entry; they send neither next-layout, next-window nor previous-window.", + "evidence": [ + { + "at": "crates/libtmux/src/window.rs:597", + "has": [ + "self.step_layout(\"-n\")" + ] + }, + { + "at": "crates/libtmux/src/window.rs:614", + "has": [ + "Command::new(\"select-layout\")" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Pane", + "names": [ + "copy_command" + ], + "commands": [ + "copy-mode" + ], + "kind": "other-command", + "why": "copy_command sends send-keys -X to the pane's copy mode; it does not send copy-mode.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:400", + "has": [ + "\"send-keys\", \"-X\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Pane", + "names": [ + "display" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "display formats text with display-message, through Server#display; it sends no display-panes.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:248", + "has": [ + "server.display(format, target: ref" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:21", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "PaneSnapshot", + "names": [ + "capture_id" + ], + "commands": [ + "capture-pane" + ], + "kind": "values", + "why": "A captured record answers from the capture it holds, and the capture id and window links are values of it; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:15", + "has": [ + "@capture_id = graph.capture_id" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close shuts the server handle's requests and controls, and in an Async scope closes the scope; it does not send kill-server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:87", + "has": [ + "def close" + ] + }, + { + "at": "gems/libtmux-async/lib/libtmux/async/server.rb:24", + "has": [ + "@scope.close" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:63", + "has": [ + "\"delete-buffer\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "list_window_links" + ], + "commands": [ + "link-window" + ], + "kind": "other-command", + "why": "list_window_links lists windows with list-windows and reads their links; it does not send link-window.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "read_buffer" + ], + "commands": [ + "show-buffer" + ], + "kind": "other-command", + "why": "read_buffer reads a buffer with save-buffer to standard output; it sends no show-buffer.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:59", + "has": [ + "\"save-buffer\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "start" + ], + "commands": [ + "start-server" + ], + "kind": "no-send", + "why": "Server.start spawns an owned tmux daemon as a process with -D; it sends no start-server command.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/owned.rb:58", + "has": [ + "Process.spawn(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/owned.rb:59", + "has": [ + "\"-u\", \"-D\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "window_link" + ], + "commands": [ + "link-window" + ], + "kind": "no-send", + "why": "window_link resolves a window-link reference to a handle; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:78", + "has": [ + "resolve(ref, :window_link)" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Session", + "names": [ + "list_window_links" + ], + "commands": [ + "link-window", + "list-sessions" + ], + "kind": "other-command", + "why": "list_window_links lists a session's windows with list-windows -t and reads their links; it lists no sessions and sends no link-window.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:265", + "has": [ + ":acquire_links, [\"-t\", target]" + ] + } + ] + }, + { + "port": "ruby", + "owner": "SessionSnapshot", + "names": [ + "window_links" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "window_links reads the window links of a capture from the capture; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:220", + "has": [ + "collection(:window_link)" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Snapshot", + "names": [ + "window_links" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "window_links reads the window links of a capture from the capture; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:220", + "has": [ + "collection(:window_link)" + ] + } + ] + }, + { + "port": "ruby", + "owner": "WindowSnapshot", + "names": [ + "window_links" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "window_links reads the window links of a capture from the capture; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:220", + "has": [ + "collection(:window_link)" + ] + } + ] + }, + { + "port": "scala", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh re-reads the client from a fresh listing; redraw sends refresh-client.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:137", + "has": [ + "server.refresh(snapshot)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:80", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "scala", + "owner": "CommandChain", + "kind": "builds", + "why": "A CommandChain method adds a step to the chain, which runs them when run is called.", + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala:17", + "has": [ + "private def append(" + ] + }, + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala:19", + "has": [ + "steps :+ step" + ] + } + ] + }, + { + "port": "scala", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1052", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:213", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "deleteBuffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "deleteBuffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "Sources/LibTmux/Buffers.swift:61", + "has": [ + "\"delete-buffer\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "kill" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "kill removes a session, window or pane with kill-session, kill-window and kill-pane; killServer is the one that sends kill-server.", + "evidence": [ + { + "at": "Sources/LibTmux/Mutations.swift:109", + "has": [ + "\"kill-session\"" + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:116", + "has": [ + "\"kill-window\"" + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:123", + "has": [ + "\"kill-pane\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "removeEnvironment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "removeEnvironment unsets a variable with set-environment -r, and sends no kill-server.", + "evidence": [ + { + "at": "Sources/LibTmux/Environment.swift:135", + "has": [ + "\"set-environment\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "selectLastPane" + ], + "commands": [ + "select-pane" + ], + "kind": "other-command", + "why": "selectLastPane sends last-pane, and not select-pane.", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:55", + "has": [ + "\"last-pane\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "selectNextWindow", + "selectPreviousWindow", + "selectLastWindow" + ], + "commands": [ + "select-window" + ], + "kind": "other-command", + "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:28", + "has": [ + "\"next-window\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:35", + "has": [ + "\"previous-window\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:43", + "has": [ + "\"last-window\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "waitForOutput" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "waitForOutput polls the pane's captured output in an OutputWaitSession; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "Sources/LibTmux/WaitForOutput.swift:157", + "has": [ + "OutputWaitSession(" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "windowLinks" + ], + "commands": [ + "link-window" + ], + "kind": "other-command", + "why": "windowLinks lists the windows with list-windows -a and reads their links; it does not send link-window.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:274", + "has": [ + "\"list-windows\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Snapshot", + "names": [ + "windowLinks", + "init" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "A Snapshot holds the window links of one capture and answers from them; it sends nothing.", + "evidence": [ + { + "at": "Sources/LibTmux/Snapshot.swift:60", + "has": [ + "public func windowLinks(of session: Session)" + ] + }, + { + "at": "Sources/LibTmux/Snapshot.swift:62", + "has": [ + "fromIncarnation(windowLinks)" + ] + } + ] + }, + { + "port": "swift", + "owner": "WindowAppearance", + "names": [ + "link" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "link is the window link one list-windows row describes; it is a value, not a command.", + "evidence": [ + { + "at": "Sources/LibTmux/Window.swift:63", + "has": [ + "public let link: WindowLink" + ] + } + ] + }, + { + "port": "ts", + "owner": "ConnectedServer", + "names": [ + "close", + "waitFor" + ], + "commands": [ + "kill-server", + "wait-for" + ], + "kind": "no-send", + "why": "ConnectedServer is the interface of a server with a live control connection; its close ends the connection and its waitFor waits on the observed state, and neither sends kill-server or wait-for.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:1038", + "has": [ + "export interface ConnectedServer extends Server" + ] + }, + { + "at": "packages/libtmux/src/types.ts:1040", + "has": [ + "close(): Promise" + ] + }, + { + "at": "packages/libtmux/src/types.ts:1089", + "has": [ + "waitFor(" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/pane_io.ts:65", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "findWindow" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "findWindow sends find-window, which has its own entry; it lists no panes or windows.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/interactive.ts:94", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "killIfWindowUnshared" + ], + "commands": [ + "kill-window" + ], + "kind": "other-command", + "why": "killIfWindowUnshared kills a pane with kill-pane, only while its window is not linked elsewhere; it does not kill a window.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:195", + "has": [ + "[\"kill-pane\", \"-t\", target]" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "showHooks" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "showHooks reads hooks with show-hooks; it does not send display-panes.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/hooks.ts:31", + "has": [ + "show-hooks" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "showOptions", + "showResolvedOptions" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "showOptions and showResolvedOptions read options with show-options; they do not send display-panes.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/options.ts:150", + "has": [ + "\"show-options\"" + ] + } + ] + }, + { + "port": "ts", + "owner": "PanePlans", + "kind": "builds", + "why": "The plan getters return planned operations for Server.batch to run; they send nothing themselves.", + "evidence": [ + { + "at": "packages/libtmux/src/pane.ts:269", + "has": [ + "get plan(): PanePlans" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "has": [ + "export function planKill(" + ] + } + ] + }, + { + "port": "ts", + "owner": "PaneWhere", + "kind": "values", + "why": "A Where type names the fields a selection may test; its members are field names, not commands.", + "evidence": [ + { + "at": "packages/libtmux/src/selection.ts:252", + "has": [ + "export interface PaneWhere" + ] + }, + { + "at": "packages/libtmux/src/selection.ts:318", + "has": [ + "readonly searchString?: ScalarCriteria" + ] + } + ] + }, + { + "port": "ts", + "owner": "SaveBufferOptions", + "names": [ + "append" + ], + "kind": "values", + "why": "append is a flag in an options object, not a command.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:412", + "has": [ + "export interface SaveBufferOptions" + ] + }, + { + "at": "packages/libtmux/src/types.ts:414", + "has": [ + "readonly append?: boolean" + ] + } + ] + }, + { + "port": "ts", + "owner": "Server", + "names": [ + "deleteBuffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "deleteBuffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/server_utils.ts:116", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "ts", + "owner": "Server", + "names": [ + "removeEnvironment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "removeEnvironment unsets a variable with set-environment, and sends no kill-server.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/environment.ts:147", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "ts", + "owner": "Session", + "names": [ + "getEnvironment", + "removeEnvironment" + ], + "commands": [ + "list-sessions", + "kill-session" + ], + "kind": "other-command", + "why": "getEnvironment reads a variable with show-environment, and removeEnvironment unsets it with set-environment; neither lists or kills a session.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/environment.ts:71", + "has": [ + "show-environment" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/environment.ts:147", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "ts", + "owner": "SessionPlans", + "kind": "builds", + "why": "The plan getters return planned operations for Server.batch to run; they send nothing themselves.", + "evidence": [ + { + "at": "packages/libtmux/src/session.ts:324", + "has": [ + "get plan(): SessionPlans" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "has": [ + "export function planKill(" + ] + } + ] + }, + { + "port": "ts", + "owner": "SessionWhere", + "kind": "values", + "why": "A Where type names the fields a selection may test; its members are field names, not commands.", + "evidence": [ + { + "at": "packages/libtmux/src/selection.ts:154", + "has": [ + "export interface SessionWhere" + ] + }, + { + "at": "packages/libtmux/src/selection.ts:165", + "has": [ + "readonly attachedList?: ScalarCriteria" + ] + } + ] + }, + { + "port": "ts", + "owner": "SetHookOptions", + "names": [ + "append" + ], + "kind": "values", + "why": "append is a flag in an options object, not a command.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:418", + "has": [ + "export interface SetHookOptions" + ] + }, + { + "at": "packages/libtmux/src/types.ts:426", + "has": [ + "readonly append?: boolean" + ] + } + ] + }, + { + "port": "ts", + "owner": "SetOptionOptions", + "names": [ + "append" + ], + "kind": "values", + "why": "append is a flag in an options object, not a command.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:369", + "has": [ + "export interface SetOptionOptions" + ] + }, + { + "at": "packages/libtmux/src/types.ts:371", + "has": [ + "readonly append?: boolean" + ] + } + ] + }, + { + "port": "ts", + "owner": "Window", + "names": [ + "removePlacement" + ], + "commands": [ + "kill-window" + ], + "kind": "other-command", + "why": "removePlacement removes one link of a window with unlink-window -k, and does not kill the window.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:208", + "has": [ + "[\"unlink-window\", \"-k\", \"-t\", target]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:79", + "has": [ + "planRemoveWindowPlacement(" + ] + } + ] + }, + { + "port": "ts", + "owner": "WindowPlans", + "kind": "builds", + "why": "The plan getters return planned operations for Server.batch to run; they send nothing themselves.", + "evidence": [ + { + "at": "packages/libtmux/src/window.ts:299", + "has": [ + "get plan(): WindowPlans" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "has": [ + "export function planKill(" + ] + } + ] + }, + { + "port": "ts", + "owner": "WindowWhere", + "kind": "values", + "why": "A Where type names the fields a selection may test; its members are field names, not commands.", + "evidence": [ + { + "at": "packages/libtmux/src/selection.ts:200", + "has": [ + "export interface WindowWhere" + ] + }, + { + "at": "packages/libtmux/src/selection.ts:221", + "has": [ + "readonly lastFlag?" + ] + } + ] + } + ] +} diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json index 42684ceef..50325215b 100644 --- a/site/src/data/tmux-usage/csharp.json +++ b/site/src/data/tmux-usage/csharp.json @@ -97,6 +97,100 @@ "revision": "ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc", "schemaVersion": 1, "symbols": { + "LibTmux.Client.GetAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Client.Administration.cs:79" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Client.GetAttachedPaneAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Client.Administration.cs:114", + "src/LibTmux/Client.Administration.cs:172" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123", + "src/LibTmux/Client.Administration.cs:142", + "src/LibTmux/Client.Administration.cs:172" + ], + "reviewed": true, + "scope": "window" + } + ], + "LibTmux.Client.GetAttachedSessionAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Client.Administration.cs:114", + "src/LibTmux/Client.Administration.cs:156" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Collections.cs:18", + "src/LibTmux/Client.Administration.cs:123", + "src/LibTmux/Client.Administration.cs:156" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Client.GetAttachedWindowAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Client.Administration.cs:114", + "src/LibTmux/Client.Administration.cs:164" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:153", + "src/LibTmux/Client.Administration.cs:133", + "src/LibTmux/Client.Administration.cs:164" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux.Client.ResolveAttachmentAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Client.Administration.cs:114" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.ControlModeSubscriptions.SubscribeSessionAsync": [ { "command": "refresh-client", @@ -126,7 +220,8 @@ { "command": "capture-pane", "evidence": [ - "src/LibTmux/Pane.Capture.cs:22" + "src/LibTmux/Pane.Capture.cs:144", + "src/LibTmux/Pane.Capture.cs:18" ], "scope": null } @@ -355,6 +450,21 @@ "scope": null } ], + "LibTmux.Pane.SendKeysAndWaitAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:169" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.Pane.SendKeysAsync": [ { "command": "send-keys", @@ -374,6 +484,37 @@ "scope": null } ], + "LibTmux.Pane.SendTextAndWaitAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:169", + "src/LibTmux/Pane.Waiting.cs:103" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Pane.SendTextAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Input.cs:119" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.Pane.SetTitleAsync": [ { "command": "select-pane", @@ -406,8 +547,12 @@ { "command": "attach-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:355" + "src/LibTmux/Session.Lifecycle.cs:418", + "src/LibTmux/Server.Lifecycle.cs:352", + "src/LibTmux/Server.Lifecycle.cs:351" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -423,13 +568,38 @@ ], "reviewed": true, "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:106", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": "server" } ], "LibTmux.Server.ClearPromptHistoryAsync": [ { "command": "clear-prompt-history", "evidence": [ - "src/LibTmux/Server.Interaction.cs:97" + "src/LibTmux/Server.Interaction.cs:98" ], "scope": null } @@ -438,7 +608,7 @@ { "command": "server-access", "evidence": [ - "src/LibTmux/Server.Administration.cs:18", + "src/LibTmux/Server.Administration.cs:19", "src/LibTmux/Server.Administration.cs:45" ], "scope": null @@ -464,6 +634,33 @@ "scope": null } ], + "LibTmux.Server.CreateOwnedSessionAsync": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:368", + "src/LibTmux/Server.Lifecycle.cs:173", + "src/LibTmux/Server.Lifecycle.cs:135", + "src/LibTmux/Server.Lifecycle.cs:328" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.CreateSessionAsync": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:368", + "src/LibTmux/Server.Lifecycle.cs:173", + "src/LibTmux/Server.Lifecycle.cs:135" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.Server.CreateSessionWithReceiptAsync": [ { "command": "list-sessions", @@ -475,7 +672,8 @@ { "command": "new-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:186" + "src/LibTmux/Server.Lifecycle.cs:368", + "src/LibTmux/Server.Lifecycle.cs:173" ], "scope": null } @@ -519,6 +717,21 @@ "scope": null } ], + "LibTmux.Server.FindPaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Server.Identity.cs:305", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:303" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux.Server.FindSessionAsync": [ { "command": "list-sessions", @@ -528,6 +741,21 @@ "scope": null } ], + "LibTmux.Server.FindWindowAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Server.Identity.cs:268", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:266" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux.Server.GetAttachedSessionsAsync": [ { "command": "list-sessions", @@ -565,6 +793,22 @@ "scope": null } ], + "LibTmux.Server.GetPaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Server.Identity.cs:305", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:303", + "src/LibTmux/Server.Identity.cs:288" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux.Server.GetPanesAsync": [ { "command": "list-panes", @@ -578,11 +822,23 @@ { "command": "show-prompt-history", "evidence": [ - "src/LibTmux/Server.Interaction.cs:116" + "src/LibTmux/Server.Interaction.cs:117" ], "scope": null } ], + "LibTmux.Server.GetSessionAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Identity.cs:231", + "src/LibTmux/Server.Identity.cs:229", + "src/LibTmux/Server.Identity.cs:214" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux.Server.GetSessionsAsync": [ { "command": "list-sessions", @@ -592,6 +848,22 @@ "scope": null } ], + "LibTmux.Server.GetWindowAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Server.Identity.cs:268", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:266", + "src/LibTmux/Server.Identity.cs:251" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux.Server.GetWindowsAsync": [ { "command": "list-windows", @@ -687,11 +959,25 @@ { "command": "run-shell", "evidence": [ - "src/LibTmux/Server.Execution.cs:85" + "src/LibTmux/Server.Execution.cs:17", + "src/LibTmux/Server.Execution.cs:80" ], "scope": null } ], + "LibTmux.Server.SearchClientsAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Queries.cs:41", + "src/LibTmux/Query/NativeFilterSearch.cs:68" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.Server.SearchPanesAsync": [ { "command": "list-panes", @@ -808,18 +1094,38 @@ { "command": "attach-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:275" + "src/LibTmux/Session.Lifecycle.cs:418", + "src/LibTmux/Session.Lifecycle.cs:273" ], "scope": null } ], + "LibTmux.Session.CreateOwnedWindowAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:464", + "src/LibTmux/Session.Lifecycle.cs:337", + "src/LibTmux/Session.Lifecycle.cs:336", + "src/LibTmux/Session.Lifecycle.cs:289", + "src/LibTmux/Session.WindowNavigation.cs:32" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.Session.CreateWindowAsync": [ { "command": "new-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:464", + "src/LibTmux/Session.Lifecycle.cs:337", + "src/LibTmux/Session.Lifecycle.cs:336", "src/LibTmux/Session.Lifecycle.cs:289" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -827,9 +1133,13 @@ { "command": "new-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:464", + "src/LibTmux/Session.Lifecycle.cs:337", + "src/LibTmux/Session.Lifecycle.cs:336", "src/LibTmux/Session.Lifecycle.cs:315" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -869,6 +1179,18 @@ "scope": "session" } ], + "LibTmux.Session.GetWindowAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:100", + "src/LibTmux/Session.Relations.cs:101", + "src/LibTmux/Session.Relations.cs:63" + ], + "reviewed": true, + "scope": "session" + } + ], "LibTmux.Session.GetWindowsAsync": [ { "command": "list-windows", @@ -986,6 +1308,19 @@ "scope": null } ], + "LibTmux.TmuxBuffers.DeleteAsync": [ + { + "command": "delete-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:71", + "src/LibTmux/Server.Buffers.cs:73", + "src/LibTmux/Buffers/TmuxBuffers.cs:78" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.TmuxBuffers.GetAllAsync": [ { "command": "list-buffers", @@ -1006,6 +1341,19 @@ "scope": null } ], + "LibTmux.TmuxBuffers.GetLinesAsync": [ + { + "command": "list-buffers", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:78", + "src/LibTmux/Server.Buffers.cs:96", + "src/LibTmux/Server.Buffers.cs:97", + "src/LibTmux/Buffers/TmuxBuffers.cs:94" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux.TmuxBuffers.LoadAsync": [ { "command": "load-buffer", @@ -1129,6 +1477,19 @@ "scope": null } ], + "LibTmux.TmuxKeys.BindAsync": [ + { + "command": "bind-key", + "evidence": [ + "src/LibTmux/Server.Keys.cs:17", + "src/LibTmux/Server.Keys.cs:12", + "src/LibTmux/Keys/TmuxKeys.cs:29" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.TmuxKeys.GetAllAsync": [ { "command": "list-keys", @@ -1139,6 +1500,19 @@ "scope": null } ], + "LibTmux.TmuxKeys.UnbindAsync": [ + { + "command": "unbind-key", + "evidence": [ + "src/LibTmux/Server.Keys.cs:39", + "src/LibTmux/Server.Keys.cs:33", + "src/LibTmux/Keys/TmuxKeys.cs:44" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "LibTmux.TmuxOptions.GetAllAsync": [ { "command": "show-options", @@ -1205,6 +1579,18 @@ "scope": null } ], + "LibTmux.Window.FindPaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123", + "src/LibTmux/Window.Panes.cs:112" + ], + "forwardable": true, + "reviewed": true, + "scope": "window" + } + ], "LibTmux.Window.GetActivePaneAsync": [ { "command": "list-panes", @@ -1230,6 +1616,18 @@ "scope": "server" } ], + "LibTmux.Window.GetPaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123", + "src/LibTmux/Window.Panes.cs:112", + "src/LibTmux/Window.Panes.cs:98" + ], + "reviewed": true, + "scope": "window" + } + ], "LibTmux.Window.GetPanesAsync": [ { "command": "list-panes", diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json index 3cffcd262..2d9ed48d0 100644 --- a/site/src/data/tmux-usage/fsharp.json +++ b/site/src/data/tmux-usage/fsharp.json @@ -163,6 +163,42 @@ } } ], + "LibTmux.FSharp.Options.get": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:215" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:55", + "src/LibTmux/Options/TmuxOptions.cs:82" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.GetAsync" + } + } + ], + "LibTmux.FSharp.Options.set": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:218" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:170", + "src/LibTmux/Options/TmuxOptions.cs:200" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.SetAsync" + } + } + ], "LibTmux.FSharp.Pane.capture": [ { "command": "capture-pane", @@ -172,13 +208,57 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Capture.cs:22" + "src/LibTmux/Pane.Capture.cs:144", + "src/LibTmux/Pane.Capture.cs:18" ], "port": "csharp", "symbol": "LibTmux.Pane.CaptureAsync" } } ], + "LibTmux.FSharp.Pane.sendAndWait": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:185" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:169", + "src/LibTmux/Pane.Waiting.cs:103" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Pane.SendTextAndWaitAsync" + } + } + ], + "LibTmux.FSharp.Pane.sendAndWaitFor": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:193" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:169" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Pane.SendKeysAndWaitAsync" + } + } + ], "LibTmux.FSharp.Pane.sendKeys": [ { "command": "send-keys", @@ -227,6 +307,22 @@ "symbol": "LibTmux.Session.GetPanesAsync" } }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:99", + "src/LibTmux.FSharp/Hierarchy.fs:109" + ], + "reviewed": true, + "scope": "window", + "via": { + "evidence": [ + "src/LibTmux/Window.Relations.cs:123" + ], + "port": "csharp", + "symbol": "LibTmux.Window.GetPanesAsync" + } + }, { "command": "list-sessions", "evidence": [ @@ -241,6 +337,23 @@ "symbol": "LibTmux.Session.RefreshAsync" } }, + { + "command": "new-session", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:368", + "src/LibTmux/Server.Lifecycle.cs:173", + "src/LibTmux/Server.Lifecycle.cs:135" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Server.CreateSessionAsync" + } + }, { "command": "new-window", "evidence": [ @@ -249,10 +362,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:464", + "src/LibTmux/Session.Lifecycle.cs:337", + "src/LibTmux/Session.Lifecycle.cs:336", "src/LibTmux/Session.Lifecycle.cs:289" ], "port": "csharp", + "reviewed": true, "symbol": "LibTmux.Session.CreateWindowAsync" } } @@ -274,6 +390,29 @@ } } ], + "LibTmux.FSharp.Server.tryFindPane": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:132" + ], + "reviewed": true, + "scope": "server", + "via": { + "evidence": [ + "src/LibTmux/Server.Identity.cs:305", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:303" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Server.FindPaneAsync" + } + } + ], "LibTmux.FSharp.Server.tryFindSession": [ { "command": "list-sessions", @@ -289,6 +428,29 @@ "symbol": "LibTmux.Server.FindSessionAsync" } } + ], + "LibTmux.FSharp.Server.tryFindWindow": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:126" + ], + "reviewed": true, + "scope": "server", + "via": { + "evidence": [ + "src/LibTmux/Server.Identity.cs:268", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:266" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Server.FindWindowAsync" + } + } ] } } diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index c1c93efe7..97edd5d97 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -97,6 +97,196 @@ "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", "schemaVersion": 1, "symbols": { + "tmux.GlobalSessionScope.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:242" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:171" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:187" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:419" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:56" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:297" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:281" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:249" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:192" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:194" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:432" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:77" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:304" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:303" + ], + "reviewed": true, + "scope": null + } + ], "tmux.NotificationStream.ContinuePane": [ { "command": "refresh-client", @@ -124,6 +314,33 @@ "scope": null } ], + "tmux.Pane.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:290" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:253" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Pane.BreakPane": [ { "command": "break-pane", @@ -190,6 +407,18 @@ } ], "tmux.Pane.CaptureToFile": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:157", + "tmux/pane_capture.go:194" + ], + "reviewed": true, + "scope": null + }, { "command": "save-buffer", "evidence": [ @@ -490,6 +719,47 @@ "scope": null } ], + "tmux.Pane.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:235" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:492" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:138" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Pane.SetTitle": [ { "command": "select-pane", @@ -499,6 +769,18 @@ "scope": null } ], + "tmux.Pane.Split": [ + { + "command": "split-window", + "evidence": [ + "tmux/pane_create.go:421", + "tmux/pane_create.go:354", + "tmux/pane_create.go:327" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Pane.Swap": [ { "command": "swap-pane", @@ -508,6 +790,46 @@ "scope": null } ], + "tmux.Pane.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:345" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:370" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:150" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Server.AttachSession": [ { "command": "attach-session", @@ -789,6 +1111,17 @@ "tmux/connection.go:185" ], "scope": null + }, + { + "command": "new-session", + "evidence": [ + "tmux/session_lifecycle.go:91", + "tmux/connection.go:185", + "tmux/connection.go:299", + "tmux/connection.go:169" + ], + "reviewed": true, + "scope": null } ], "tmux.Server.OpenControl": [ @@ -939,6 +1272,19 @@ "scope": null } ], + "tmux.Server.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:35" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Server.ShowBuffer": [ { "command": "show-buffer", @@ -1073,6 +1419,19 @@ "scope": null } ], + "tmux.Server.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:267" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Server.WaitFor": [ { "command": "wait-for", @@ -1082,6 +1441,33 @@ "scope": null } ], + "tmux.Session.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:268" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:217" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Session.Attach": [ { "command": "attach-session", @@ -1111,6 +1497,18 @@ "scope": null } ], + "tmux.Session.Kill": [ + { + "command": "kill-session", + "evidence": [ + "tmux/lifecycle_kill.go:132", + "tmux/lifecycle_kill.go:153", + "tmux/lifecycle_kill.go:95" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Session.KillWindow": [ { "command": "kill-window", @@ -1234,6 +1632,47 @@ "scope": null } ], + "tmux.Session.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:213" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:458" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:102" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Session.ShowEnvironment": [ { "command": "show-environment", @@ -1272,6 +1711,60 @@ "scope": null } ], + "tmux.Session.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:323" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:329" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:279" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:237" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Window.DisplayMessage": [ { "command": "display-message", @@ -1444,6 +1937,59 @@ "scope": null } ], + "tmux.Window.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:224" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:475" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:122" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.SplitPane": [ + { + "command": "split-window", + "evidence": [ + "tmux/pane_create.go:421", + "tmux/pane_create.go:354", + "tmux/pane_create.go:308" + ], + "reviewed": true, + "scope": null + } + ], "tmux.Window.Swap": [ { "command": "swap-window", @@ -1462,6 +2008,33 @@ "scope": null } ], + "tmux.Window.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:334" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:344" + ], + "reviewed": true, + "scope": null + } + ], "tmuxtest.NewControlMode": [ { "command": "attach-session", diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index 9802c841c..69d426b73 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -601,6 +601,19 @@ "scope": null } ], + "io.github.libtmux.Pane.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Pane.Pane.clearHistory": [ { "command": "clear-history", @@ -716,6 +729,19 @@ "scope": null } ], + "io.github.libtmux.Pane.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Pane.Pane.retitle": [ { "command": "select-pane", @@ -734,6 +760,21 @@ "scope": null } ], + "io.github.libtmux.Pane.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Pane.Pane.sendKeys": [ { "command": "list-panes", @@ -752,6 +793,21 @@ "scope": null } ], + "io.github.libtmux.Pane.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Pane.Pane.sendLiteral": [ { "command": "list-panes", @@ -770,6 +826,20 @@ "scope": null } ], + "io.github.libtmux.Pane.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Pane.Pane.stopPiping": [ { "command": "pipe-pane", @@ -893,6 +963,19 @@ "scope": null } ], + "io.github.libtmux.Server.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Server.Server.paneFields": [ { "command": "list-panes", @@ -996,6 +1079,19 @@ "scope": null } ], + "io.github.libtmux.Session.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Session.Session.nextWindow": [ { "command": "next-window", @@ -1352,6 +1448,20 @@ "scope": null } ], + "io.github.libtmux.Window.Window.split": [ + { + "command": "split-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], "io.github.libtmux.Window.Window.unlink": [ { "command": "unlink-window", diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index bbbca27b7..5cecf058a 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -138,6 +138,17 @@ "scope": null } ], + "LibTmux.capture_pane": [ + { + "command": "capture-pane", + "evidence": [ + "src/control_io.jl:101", + "src/control_io.jl:173" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux.delete_buffer": [ { "command": "delete-buffer", @@ -201,11 +212,38 @@ "scope": null } ], + "LibTmux.kill_pane": [ + { + "command": "kill-pane", + "evidence": [ + "src/control_topology.jl:66" + ], + "scope": null + } + ], + "LibTmux.kill_session": [ + { + "command": "kill-session", + "evidence": [ + "src/control_topology.jl:66" + ], + "scope": null + } + ], + "LibTmux.kill_window": [ + { + "command": "kill-window", + "evidence": [ + "src/control_topology.jl:66" + ], + "scope": null + } + ], "LibTmux.link_window": [ { "command": "link-window", "evidence": [ - "src/topology.jl:123" + "src/control_topology.jl:282" ], "scope": null } @@ -241,7 +279,7 @@ { "command": "move-window", "evidence": [ - "src/topology.jl:170" + "src/control_topology.jl:282" ], "scope": null } @@ -379,6 +417,24 @@ "scope": null } ], + "LibTmux.rename_session": [ + { + "command": "rename-session", + "evidence": [ + "src/control_topology.jl:160" + ], + "scope": null + } + ], + "LibTmux.rename_window": [ + { + "command": "rename-window", + "evidence": [ + "src/control_topology.jl:160" + ], + "scope": null + } + ], "LibTmux.render_format": [ { "command": "list-panes", @@ -389,6 +445,42 @@ "scope": "window" } ], + "LibTmux.resize_pane": [ + { + "command": "resize-pane", + "evidence": [ + "src/control_topology.jl:100" + ], + "scope": null + } + ], + "LibTmux.resize_window": [ + { + "command": "resize-window", + "evidence": [ + "src/control_topology.jl:100" + ], + "scope": null + } + ], + "LibTmux.respawn_pane": [ + { + "command": "respawn-pane", + "evidence": [ + "src/control_topology.jl:229" + ], + "scope": null + } + ], + "LibTmux.respawn_window": [ + { + "command": "respawn-window", + "evidence": [ + "src/control_topology.jl:229" + ], + "scope": null + } + ], "LibTmux.run_command": [ { "command": "delete-buffer", diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 81b3c3bda..5f602c19a 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -115,6 +115,23 @@ } } ], + "io.github.libtmux.kotlin.Buffers.`set`": [ + { + "command": "set-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:69" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" + ], + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.set" + } + } + ], "io.github.libtmux.kotlin.Buffers.delete": [ { "command": "delete-buffer", @@ -319,6 +336,42 @@ } } ], + "io.github.libtmux.kotlin.Environment.`get`": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:83" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:85" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.get" + } + } + ], + "io.github.libtmux.kotlin.Environment.`set`": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:353", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156" + ], + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.set" + } + } + ], "io.github.libtmux.kotlin.Environment.isRemoved": [ { "command": "show-environment", @@ -391,6 +444,23 @@ } } ], + "io.github.libtmux.kotlin.Hooks.`set`": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" + ], + "port": "java", + "symbol": "io.github.libtmux.Hooks.Hooks.set" + } + } + ], "io.github.libtmux.kotlin.Hooks.all": [ { "command": "show-hooks", @@ -612,6 +682,40 @@ } } ], + "io.github.libtmux.kotlin.Options.get": [ + { + "command": "show-options", + "evidence": [ + "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:27" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:93" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + } + } + ], + "io.github.libtmux.kotlin.Options.set": [ + { + "command": "set-option", + "evidence": [ + "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:35" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:325" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + } + } + ], "io.github.libtmux.kotlin.Options.setExpanded": [ { "command": "set-option", @@ -697,6 +801,26 @@ } } ], + "io.github.libtmux.kotlin.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:531" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.capture" + } + } + ], "io.github.libtmux.kotlin.Pane.clearHistory": [ { "command": "clear-history", @@ -916,6 +1040,26 @@ } } ], + "io.github.libtmux.kotlin.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:764" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.respawnIn" + } + } + ], "io.github.libtmux.kotlin.Pane.retitle": [ { "command": "select-pane", @@ -950,6 +1094,28 @@ } } ], + "io.github.libtmux.kotlin.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:546" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.send" + } + } + ], "io.github.libtmux.kotlin.Pane.sendKeys": [ { "command": "list-panes", @@ -984,6 +1150,28 @@ } } ], + "io.github.libtmux.kotlin.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:649" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.sendLine" + } + } + ], "io.github.libtmux.kotlin.Pane.sendLiteral": [ { "command": "list-panes", @@ -1018,6 +1206,27 @@ } } ], + "io.github.libtmux.kotlin.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:891" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.split" + } + } + ], "io.github.libtmux.kotlin.Pane.stopPiping": [ { "command": "pipe-pane", @@ -1202,6 +1411,26 @@ } } ], + "io.github.libtmux.kotlin.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Server.Server.newSession" + } + } + ], "io.github.libtmux.kotlin.Server.paneFields": [ { "command": "list-panes", @@ -1392,6 +1621,26 @@ } } ], + "io.github.libtmux.kotlin.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:213" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Session.Session.newWindow" + } + } + ], "io.github.libtmux.kotlin.Session.nextWindow": [ { "command": "next-window", @@ -1749,6 +1998,27 @@ } } ], + "io.github.libtmux.kotlin.Window.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:189" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Window.Window.split" + } + } + ], "io.github.libtmux.kotlin.Window.unlink": [ { "command": "unlink-window", diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json index cdd824207..889d83e9d 100644 --- a/site/src/data/tmux-usage/powershell.json +++ b/site/src/data/tmux-usage/powershell.json @@ -122,7 +122,8 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:275" + "src/LibTmux/Session.Lifecycle.cs:418", + "src/LibTmux/Session.Lifecycle.cs:273" ], "port": "csharp", "symbol": "LibTmux.Session.AttachAsync" @@ -146,6 +147,78 @@ } } ], + "LibTmux\\Get-TmuxClientAttachment": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxClientAttachmentCommand.cs:23" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Client.Administration.cs:114" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Client.ResolveAttachmentAsync" + } + } + ], + "LibTmux\\Get-TmuxEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxEnvironmentCommand.cs:39" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:67" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxEnvironment.GetAllAsync" + } + } + ], + "LibTmux\\Get-TmuxHook": [ + { + "command": "show-hooks", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxHookCommand.cs:69" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:443", + "src/LibTmux/Hooks/TmuxHooks.cs:118" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.GetAllAsync" + } + } + ], + "LibTmux\\Get-TmuxOption": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxOptionCommand.cs:67" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:155" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.GetAllAsync" + } + } + ], "LibTmux\\Get-TmuxPane": [ { "command": "list-panes", @@ -205,7 +278,8 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Capture.cs:22" + "src/LibTmux/Pane.Capture.cs:144", + "src/LibTmux/Pane.Capture.cs:18" ], "port": "csharp", "symbol": "LibTmux.Pane.CaptureAsync" @@ -228,6 +302,28 @@ } } ], + "LibTmux\\Get-TmuxSession": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxSessionCommand.cs:35" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:106", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + } + } + ], "LibTmux\\Get-TmuxWindow": [ { "command": "list-windows", @@ -291,6 +387,25 @@ } } ], + "LibTmux\\New-TmuxSession": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux.PowerShell/NewTmuxSessionCommand.cs:84" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:368", + "src/LibTmux/Server.Lifecycle.cs:173", + "src/LibTmux/Server.Lifecycle.cs:135" + ], + "port": "csharp", + "reviewed": true, + "symbol": "LibTmux.Server.CreateSessionAsync" + } + } + ], "LibTmux\\New-TmuxWindow": [ { "command": "new-window", @@ -300,10 +415,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:340", + "src/LibTmux/Session.Lifecycle.cs:464", + "src/LibTmux/Session.Lifecycle.cs:337", + "src/LibTmux/Session.Lifecycle.cs:336", "src/LibTmux/Session.Lifecycle.cs:289" ], "port": "csharp", + "reviewed": true, "symbol": "LibTmux.Session.CreateWindowAsync" } } @@ -390,6 +508,19 @@ } } ], + "LibTmux\\Send-TmuxKey": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:35", + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:46", + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:45", + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:47" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux\\Send-TmuxText": [ { "command": "send-keys", @@ -407,6 +538,42 @@ } } ], + "LibTmux\\Set-TmuxEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:59", + "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:66" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:127" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxEnvironment.SetAsync" + } + } + ], + "LibTmux\\Set-TmuxHook": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:74", + "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:82" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:285" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.SetAsync" + } + } + ], "LibTmux\\Set-TmuxLayout": [ { "command": "select-layout", @@ -424,6 +591,25 @@ } } ], + "LibTmux\\Set-TmuxOption": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:86", + "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:102" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:170", + "src/LibTmux/Options/TmuxOptions.cs:200" + ], + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.SetAsync" + } + } + ], "LibTmux\\Set-TmuxPaneSize": [ { "command": "resize-pane", diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json index 4676db178..6d70dc017 100644 --- a/site/src/data/tmux-usage/py.json +++ b/site/src/data/tmux-usage/py.json @@ -205,6 +205,28 @@ "scope": null } ], + "libtmux.hooks.HooksMixin.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240", + "src/libtmux/hooks.py:518" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.hooks.HooksMixin.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.hooks.HooksMixin.show_hooks": [ { "command": "show-hooks", @@ -223,6 +245,17 @@ "scope": null } ], + "libtmux.options.OptionsMixin._show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.options.OptionsMixin._show_option_raw": [ { "command": "show-options", @@ -232,6 +265,29 @@ "scope": null } ], + "libtmux.options.OptionsMixin._show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.options.OptionsMixin._show_options_dict": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.options.OptionsMixin._show_options_raw": [ { "command": "show-options", @@ -250,6 +306,31 @@ "scope": null } ], + "libtmux.options.OptionsMixin.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.options.OptionsMixin.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.options.OptionsMixin.unset_option": [ { "command": "set-option", @@ -268,6 +349,17 @@ "scope": null } ], + "libtmux.Pane._show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Pane._show_option_raw": [ { "command": "show-options", @@ -277,6 +369,29 @@ "scope": null } ], + "libtmux.Pane._show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane._show_options_dict": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Pane._show_options_raw": [ { "command": "show-options", @@ -554,6 +669,17 @@ "scope": null } ], + "libtmux.Pane.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240", + "src/libtmux/hooks.py:518" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Pane.set_option": [ { "command": "set-option", @@ -572,6 +698,17 @@ "scope": null } ], + "libtmux.Pane.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Pane.show_hooks": [ { "command": "show-hooks", @@ -581,6 +718,31 @@ "scope": null } ], + "libtmux.Pane.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Pane.split": [ { "command": "split-window", @@ -635,6 +797,17 @@ "scope": null } ], + "libtmux.Server._show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Server._show_option_raw": [ { "command": "show-options", @@ -644,6 +817,29 @@ "scope": null } ], + "libtmux.Server._show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server._show_options_dict": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Server._show_options_raw": [ { "command": "show-options", @@ -1027,6 +1223,17 @@ "scope": null } ], + "libtmux.Server.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240", + "src/libtmux/hooks.py:518" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Server.set_option": [ { "command": "set-option", @@ -1054,6 +1261,17 @@ "scope": null } ], + "libtmux.Server.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Server.show_hooks": [ { "command": "show-hooks", @@ -1072,6 +1290,31 @@ "scope": null } ], + "libtmux.Server.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Server.show_prompt_history": [ { "command": "show-prompt-history", @@ -1180,6 +1423,17 @@ "scope": null } ], + "libtmux.Session._show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Session._show_option_raw": [ { "command": "show-options", @@ -1189,6 +1443,29 @@ "scope": null } ], + "libtmux.Session._show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session._show_options_dict": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Session._show_options_raw": [ { "command": "show-options", @@ -1387,6 +1664,17 @@ "scope": null } ], + "libtmux.Session.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240", + "src/libtmux/hooks.py:518" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Session.set_option": [ { "command": "set-option", @@ -1405,6 +1693,17 @@ "scope": null } ], + "libtmux.Session.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Session.show_hooks": [ { "command": "show-hooks", @@ -1414,6 +1713,31 @@ "scope": null } ], + "libtmux.Session.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Session.switch_client": [ { "command": "switch-client", @@ -1468,6 +1792,17 @@ "scope": null } ], + "libtmux.Window._show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Window._show_option_raw": [ { "command": "show-options", @@ -1477,6 +1812,29 @@ "scope": null } ], + "libtmux.Window._show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window._show_options_dict": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Window._show_options_raw": [ { "command": "show-options", @@ -1556,6 +1914,28 @@ "scope": null } ], + "libtmux.Window.new_pane": [ + { + "command": "new-pane", + "evidence": [ + "src/libtmux/pane.py:1572", + "src/libtmux/window.py:707" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.new_window": [ + { + "command": "new-window", + "evidence": [ + "src/libtmux/session.py:939", + "src/libtmux/window.py:1599" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Window.next_layout": [ { "command": "next-layout", @@ -1682,6 +2062,17 @@ "scope": null } ], + "libtmux.Window.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:240", + "src/libtmux/hooks.py:518" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Window.set_option": [ { "command": "set-option", @@ -1691,6 +2082,28 @@ "scope": null } ], + "libtmux.Window.set_window_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705", + "src/libtmux/window.py:1833" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Window.show_hooks": [ { "command": "show-hooks", @@ -1700,6 +2113,69 @@ "scope": null } ], + "libtmux.Window.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_window_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296", + "src/libtmux/window.py:1872" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_window_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037", + "src/libtmux/window.py:1849" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.split": [ + { + "command": "split-window", + "evidence": [ + "src/libtmux/pane.py:1404", + "src/libtmux/window.py:609" + ], + "reviewed": true, + "scope": null + } + ], "libtmux.Window.swap": [ { "command": "swap-window", diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json index 10dae5b5e..260179512 100644 --- a/site/src/data/tmux-usage/rs.json +++ b/site/src/data/tmux-usage/rs.json @@ -236,6 +236,17 @@ "scope": null } ], + "pane.Pane.append_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/pane/settings.rs:147" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.break_out": [ { "command": "break-pane", @@ -245,6 +256,17 @@ "scope": null } ], + "pane.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:174", + "crates/libtmux/src/pane/observe.rs:121" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.capture_lines": [ { "command": "capture-pane", @@ -425,6 +447,28 @@ "scope": null } ], + "pane.Pane.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/pane/settings.rs:177" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/pane/settings.rs:87" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.set_title": [ { "command": "select-pane", @@ -434,6 +478,18 @@ "scope": null } ], + "pane.Pane.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/pane/settings.rs:128" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.split": [ { "command": "capture-pane", @@ -470,6 +526,28 @@ "scope": null } ], + "pane.Pane.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/pane/settings.rs:190" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/pane/settings.rs:160" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.wait_for_quiet": [ { "command": "capture-pane", @@ -543,6 +621,17 @@ "scope": null } ], + "server.Server.append_array_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/server/settings.rs:400" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.bind_key": [ { "command": "bind-key", @@ -764,6 +853,17 @@ "scope": null } ], + "server.Server.set_array_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/server/settings.rs:376" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.set_buffer": [ { "command": "set-buffer", @@ -773,6 +873,108 @@ "scope": null } ], + "server.Server.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:47", + "crates/libtmux/src/server/settings.rs:258" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_global_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/server/settings.rs:155" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_global_window_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/server/settings.rs:431" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/server/settings.rs:473" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:582", + "crates/libtmux/src/server/settings.rs:545" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/server/settings.rs:102" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_typed_global_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/server/settings.rs:194" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_typed_global_window_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/server/settings.rs:461" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/server/settings.rs:130" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.source_file": [ { "command": "source-file", @@ -818,6 +1020,74 @@ "scope": null } ], + "server.Server.unset_array_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/server/settings.rs:416" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:76", + "crates/libtmux/src/server/settings.rs:315" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/server/settings.rs:482" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/server/settings.rs:139" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.wait_for_channel": [ + { + "command": "wait-for", + "evidence": [ + "crates/libtmux/src/internal/wait_for.rs:363", + "crates/libtmux/src/internal/wait_for.rs:248", + "crates/libtmux/src/internal/wait_for.rs:221", + "crates/libtmux/src/server/channels.rs:225" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.append_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/session/settings.rs:170" + ], + "reviewed": true, + "scope": null + } + ], "session.Session.detach_clients": [ { "command": "detach-client", @@ -931,6 +1201,131 @@ "scope": null } ], + "session.Session.search_windows": [ + { + "command": "list-windows", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:156", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/session.rs:280", + "crates/libtmux/src/session.rs:324" + ], + "reviewed": true, + "scope": "session" + } + ], + "session.Session.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:47", + "crates/libtmux/src/session/settings.rs:373" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/session/settings.rs:207" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:582", + "crates/libtmux/src/session/settings.rs:284" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/session/settings.rs:90" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/session/settings.rs:151" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:76", + "crates/libtmux/src/session/settings.rs:538" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/session/settings.rs:220" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/session/settings.rs:190" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.windows": [ + { + "command": "list-windows", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:156", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/session.rs:280" + ], + "reviewed": true, + "scope": "session" + } + ], + "window.Window.append_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/window/settings.rs:150" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.display": [ { "command": "display-message", @@ -1071,6 +1466,19 @@ "scope": null } ], + "window.Window.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/window/navigation.rs:23", + "crates/libtmux/src/window/navigation.rs:67" + ], + "reviewed": true, + "scope": "window" + } + ], "window.Window.select": [ { "command": "select-window", @@ -1089,6 +1497,51 @@ "scope": null } ], + "window.Window.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/window/settings.rs:187" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:582", + "crates/libtmux/src/window/settings.rs:268" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/window/settings.rs:90" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/window/settings.rs:131" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.split": [ { "command": "split-window", @@ -1116,6 +1569,28 @@ ], "scope": null } + ], + "window.Window.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/window/settings.rs:200" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/window/settings.rs:170" + ], + "reviewed": true, + "scope": null + } ] } } diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json index 4c3bd2263..25288e7e3 100644 --- a/site/src/data/tmux-usage/ruby.json +++ b/site/src/data/tmux-usage/ruby.json @@ -172,6 +172,50 @@ "scope": null } ], + "LibTmux::Async::Server#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:163" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#list_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:155" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Async::Server#list_window_links": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:207", + "gems/libtmux/lib/libtmux/operations.rb:74" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#list_windows": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:159" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux::Async::Server#new_session": [ { "command": "new-session", @@ -190,6 +234,19 @@ "scope": null } ], + "LibTmux::Async::Server#search_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228", + "gems/libtmux/lib/libtmux/source_query.rb:42", + "gems/libtmux/lib/libtmux/server.rb:232" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux::Async::Server#set_environment": [ { "command": "set-environment", @@ -200,6 +257,44 @@ "scope": null } ], + "LibTmux::Async::Server#snapshot": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:94", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:72", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:84", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux::Async::Server#source_file": [ { "command": "source-file", @@ -265,6 +360,18 @@ "scope": null } ], + "LibTmux::Hooks#get": [ + { + "command": "show-hooks", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:167" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Hooks#list": [ { "command": "show-hooks", @@ -315,6 +422,18 @@ "scope": null } ], + "LibTmux::Options#get": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:83" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Options#list": [ { "command": "show-hooks", @@ -401,6 +520,18 @@ "scope": null } ], + "LibTmux::Pane#kill": [ + { + "command": "kill-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:88", + "gems/libtmux/lib/libtmux/server.rb:436", + "gems/libtmux/lib/libtmux/entity.rb:87" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Pane#move": [ { "command": "move-pane", @@ -473,6 +604,17 @@ "scope": null } ], + "LibTmux::Pane#split": [ + { + "command": "split-window", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:528", + "gems/libtmux/lib/libtmux/entity.rb:165" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Pane#swap": [ { "command": "swap-pane", @@ -557,6 +699,39 @@ "scope": "server" } ], + "LibTmux::Server#list_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:155" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Server#list_window_links": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:207", + "gems/libtmux/lib/libtmux/operations.rb:74" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Server#list_windows": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:159" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux::Server#new_session": [ { "command": "new-session", @@ -575,6 +750,19 @@ "scope": null } ], + "LibTmux::Server#search_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228", + "gems/libtmux/lib/libtmux/source_query.rb:42", + "gems/libtmux/lib/libtmux/server.rb:232" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux::Server#set_environment": [ { "command": "set-environment", @@ -585,6 +773,44 @@ "scope": null } ], + "LibTmux::Server#snapshot": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:94", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:72", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:84", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + } + ], "LibTmux::Server#source_file": [ { "command": "source-file", @@ -630,6 +856,18 @@ "scope": null } ], + "LibTmux::Session#kill": [ + { + "command": "kill-session", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:88", + "gems/libtmux/lib/libtmux/server.rb:436", + "gems/libtmux/lib/libtmux/operations.rb:255" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Session#link_window": [ { "command": "link-window", @@ -650,6 +888,39 @@ "scope": "session" } ], + "LibTmux::Session#list_window_links": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:207", + "gems/libtmux/lib/libtmux/operations.rb:265" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux::Session#list_windows": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/entity.rb:109" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux::Session#new_window": [ + { + "command": "new-window", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:509", + "gems/libtmux/lib/libtmux/entity.rb:104" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Session#rename": [ { "command": "rename-session", @@ -659,6 +930,17 @@ "scope": null } ], + "LibTmux::Session#set_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:223", + "gems/libtmux/lib/libtmux/operations.rb:276" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Session#unset_environment": [ { "command": "set-environment", @@ -668,6 +950,18 @@ "scope": null } ], + "LibTmux::Window#kill": [ + { + "command": "kill-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:88", + "gems/libtmux/lib/libtmux/server.rb:436", + "gems/libtmux/lib/libtmux/entity.rb:87" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::Window#list_panes": [ { "command": "list-panes", @@ -715,6 +1009,17 @@ "scope": null } ], + "LibTmux::Window#split": [ + { + "command": "split-window", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:528", + "gems/libtmux/lib/libtmux/entity.rb:127" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux::WindowLink#display": [ { "command": "display-message", diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index 4f9a6e080..24a8c6256 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -678,6 +678,40 @@ } } ], + "io.github.libtmux.scaladsl.cats.Options.get": [ + { + "command": "show-options", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:60" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:93" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.set": [ + { + "command": "set-option", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:74" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:325" + ], + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + } + } + ], "io.github.libtmux.scaladsl.cats.Options.setExpanded": [ { "command": "set-option", @@ -768,6 +802,27 @@ } } ], + "io.github.libtmux.scaladsl.cats.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:531" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.capture" + } + } + ], "io.github.libtmux.scaladsl.cats.Pane.clearHistory": [ { "command": "clear-history", @@ -1000,6 +1055,27 @@ } } ], + "io.github.libtmux.scaladsl.cats.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:764" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.respawnIn" + } + } + ], "io.github.libtmux.scaladsl.cats.Pane.retitle": [ { "command": "select-pane", @@ -1036,6 +1112,29 @@ } } ], + "io.github.libtmux.scaladsl.cats.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:546" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.send" + } + } + ], "io.github.libtmux.scaladsl.cats.Pane.sendKeys": [ { "command": "list-panes", @@ -1072,6 +1171,29 @@ } } ], + "io.github.libtmux.scaladsl.cats.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:649" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.sendLine" + } + } + ], "io.github.libtmux.scaladsl.cats.Pane.sendLiteral": [ { "command": "list-panes", @@ -1108,6 +1230,28 @@ } } ], + "io.github.libtmux.scaladsl.cats.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:891" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.split" + } + } + ], "io.github.libtmux.scaladsl.cats.Pane.stopPiping": [ { "command": "pipe-pane", @@ -1303,6 +1447,27 @@ } } ], + "io.github.libtmux.scaladsl.cats.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Server.Server.newSession" + } + } + ], "io.github.libtmux.scaladsl.cats.Server.paneFields": [ { "command": "list-panes", @@ -1504,6 +1669,27 @@ } } ], + "io.github.libtmux.scaladsl.cats.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:213" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Session.Session.newWindow" + } + } + ], "io.github.libtmux.scaladsl.cats.Session.nextWindow": [ { "command": "next-window", @@ -1882,6 +2068,28 @@ } } ], + "io.github.libtmux.scaladsl.cats.Window.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:189" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Window.Window.split" + } + } + ], "io.github.libtmux.scaladsl.cats.Window.unlink": [ { "command": "unlink-window", @@ -2008,6 +2216,27 @@ } } ], + "io.github.libtmux.scaladsl.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:531" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.capture" + } + } + ], "io.github.libtmux.scaladsl.Pane.clearHistory": [ { "command": "clear-history", @@ -2240,6 +2469,27 @@ } } ], + "io.github.libtmux.scaladsl.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:764" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.respawnIn" + } + } + ], "io.github.libtmux.scaladsl.Pane.retitle": [ { "command": "select-pane", @@ -2276,6 +2526,29 @@ } } ], + "io.github.libtmux.scaladsl.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:546" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.send" + } + } + ], "io.github.libtmux.scaladsl.Pane.sendKeys": [ { "command": "list-panes", @@ -2312,6 +2585,29 @@ } } ], + "io.github.libtmux.scaladsl.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:649" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.sendLine" + } + } + ], "io.github.libtmux.scaladsl.Pane.sendLiteral": [ { "command": "list-panes", @@ -2348,6 +2644,28 @@ } } ], + "io.github.libtmux.scaladsl.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:891" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Pane.Pane.split" + } + } + ], "io.github.libtmux.scaladsl.Pane.stopPiping": [ { "command": "pipe-pane", @@ -2490,6 +2808,27 @@ } } ], + "io.github.libtmux.scaladsl.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Server.Server.newSession" + } + } + ], "io.github.libtmux.scaladsl.Server.paneFields": [ { "command": "list-panes", @@ -2691,6 +3030,27 @@ } } ], + "io.github.libtmux.scaladsl.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:213" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Session.Session.newWindow" + } + } + ], "io.github.libtmux.scaladsl.Session.nextWindow": [ { "command": "next-window", @@ -3015,6 +3375,28 @@ } } ], + "io.github.libtmux.scaladsl.Window.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:189" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "port": "java", + "reviewed": true, + "symbol": "io.github.libtmux.Window.Window.split" + } + } + ], "io.github.libtmux.scaladsl.Window.unlink": [ { "command": "unlink-window", diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index dde3d53ec..87f787361 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -306,6 +306,19 @@ "scope": null } ], + "pane.Pane.killIfWindowUnshared": [ + { + "command": "kill-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:195", + "packages/libtmux/src/_internal/operations/plans.ts:192", + "packages/libtmux/src/_internal/operations/mutations.ts:86", + "packages/libtmux/src/pane.ts:255" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.pasteBuffer": [ { "command": "paste-buffer", @@ -385,6 +398,17 @@ "scope": null } ], + "pane.Pane.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/pane.ts:207" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.setTitle": [ { "command": "select-pane", @@ -405,6 +429,17 @@ "scope": null } ], + "pane.Pane.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/pane.ts:181" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.showResolvedOptions": [ { "command": "show-options", @@ -415,6 +450,20 @@ "scope": null } ], + "pane.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:97", + "packages/libtmux/src/_internal/operations/plans.ts:154", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:70", + "packages/libtmux/src/pane.ts:233" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.swapWith": [ { "command": "swap-pane", @@ -435,6 +484,17 @@ "scope": null } ], + "pane.Pane.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/pane.ts:218" + ], + "reviewed": true, + "scope": null + } + ], "pane.Pane.unzoom": [ { "command": "if-shell", @@ -579,6 +639,20 @@ "scope": null } ], + "server.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:35", + "packages/libtmux/src/_internal/operations/plans.ts:120", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:52", + "packages/libtmux/src/server.ts:1115" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.removeEnvironment": [ { "command": "set-environment", @@ -629,6 +703,17 @@ "scope": null } ], + "server.Server.setGlobalOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/server.ts:872" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.setHook": [ { "command": "set-hook", @@ -639,6 +724,17 @@ "scope": null } ], + "server.Server.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/server.ts:809" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.showBuffer": [ { "command": "show-buffer", @@ -669,6 +765,17 @@ "scope": null } ], + "server.Server.showGlobalOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/server.ts:856" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.showHooks": [ { "command": "show-hooks", @@ -679,6 +786,17 @@ "scope": null } ], + "server.Server.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/server.ts:783" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.showResolvedOptions": [ { "command": "show-options", @@ -723,6 +841,17 @@ "scope": null } ], + "server.Server.unsetGlobalOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/server.ts:886" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.unsetHook": [ { "command": "set-hook", @@ -733,6 +862,17 @@ "scope": null } ], + "server.Server.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/server.ts:820" + ], + "reviewed": true, + "scope": null + } + ], "server.Server.validateLayouts": [ { "command": "display-message", @@ -772,6 +912,20 @@ "scope": null } ], + "session.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:71", + "packages/libtmux/src/_internal/operations/plans.ts:133", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:61", + "packages/libtmux/src/session.ts:307" + ], + "reviewed": true, + "scope": null + } + ], "session.Session.removeEnvironment": [ { "command": "set-environment", @@ -846,6 +1000,17 @@ "scope": null } ], + "session.Session.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/session.ts:144" + ], + "reviewed": true, + "scope": null + } + ], "session.Session.showEnvironment": [ { "command": "show-environment", @@ -866,6 +1031,17 @@ "scope": null } ], + "session.Session.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/session.ts:118" + ], + "reviewed": true, + "scope": null + } + ], "session.Session.showResolvedOptions": [ { "command": "show-options", @@ -896,6 +1072,17 @@ "scope": null } ], + "session.Session.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/session.ts:155" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.kill": [ { "command": "kill-window", @@ -925,6 +1112,28 @@ "scope": null } ], + "window.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:412", + "packages/libtmux/src/window.ts:318" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:412", + "packages/libtmux/src/window.ts:329" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.rename": [ { "command": "rename-window", @@ -994,6 +1203,17 @@ "scope": null } ], + "window.Window.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/window.ts:259" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.showHooks": [ { "command": "show-hooks", @@ -1004,6 +1224,17 @@ "scope": null } ], + "window.Window.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/window.ts:233" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.showResolvedOptions": [ { "command": "show-options", @@ -1014,6 +1245,20 @@ "scope": null } ], + "window.Window.split": [ + { + "command": "split-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:97", + "packages/libtmux/src/_internal/operations/plans.ts:154", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:70", + "packages/libtmux/src/window.ts:285" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.swapWith": [ { "command": "swap-window", @@ -1044,6 +1289,17 @@ "scope": null } ], + "window.Window.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/window.ts:270" + ], + "reviewed": true, + "scope": null + } + ], "window.Window.unzoom": [ { "command": "if-shell", diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts index 9ccb5911e..f8990a1f9 100644 --- a/site/src/lib/tmux-library-usage.ts +++ b/site/src/lib/tmux-library-usage.ts @@ -101,7 +101,7 @@ const VERB_ALIASES: Record = { /** The lower-case words of a member name: `sendKeysAsync`, `send_keys` and `Send-TmuxText` each give `send` first. */ function memberWords(name: string): string[] { return name.replace(/([a-z0-9])([A-Z])/g, '$1 $2').split(/[^A-Za-z0-9]+/).map((word) => word.toLowerCase()) - .filter((word) => word && word !== 'async' && word !== 'tmux').map((word) => word.replace(/s$/, '')) + .filter((word) => word && word !== 'async' && word !== 'tmux').map((word) => (/(?:ss|us|is)$/.test(word) ? word : word.replace(/s$/, ''))) } /** Whether a member's name carries the verb of the command: `sendKeys` for `send-keys`, `Create` for `new`. */ @@ -111,6 +111,9 @@ export function namesCommand(command: string, member: string): boolean { return memberWords(member).some((word) => accepted.includes(word)) } +/** The member a symbol id ends with, without the owners before it or the argument labels after it: `Server.capture(_:includingHistory:)` gives `capture`. */ +const memberName = (id: string): string => id.replace(/\(.*$/s, '').split(/[.#:\\]+/).at(-1) ?? id + /** * Whether a use belongs on the command's own pages, and not only on the method's. * @@ -119,7 +122,7 @@ export function namesCommand(command: string, member: string): boolean { export function isListed(use: UsageUse, ...members: string[]): boolean { if (use.reviewed) return true if (use.via) return isListed({ command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed }, ...members, use.via.symbol) - return use.evidence.length - 1 <= LISTED_MAX_HOPS || members.some((member) => namesCommand(use.command, member.split(/[.#:\\]+/).at(-1) ?? member)) + return use.evidence.length - 1 <= LISTED_MAX_HOPS || members.some((member) => namesCommand(use.command, memberName(member))) } const symbolIndexes = new Map>() diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index da5aeca7b..bcb8c1cd3 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -58,7 +58,9 @@ describe('the recorded usage', () => { expect(cell('server', 'py')).toEqual(['Server.panes', 'Server.search_panes']) expect(cell('session', 'py')).toEqual(['Session.panes', 'Session.search_panes']) expect(cell('window', 'cxx')).toEqual(['Window::panes']) - expect(cell('server', 'ruby')).toEqual(['Server#list_panes']) + // Ruby's Async scope inherits the core server's methods, so both handles are listed, told apart by their namespace. + expect(cell('server', 'ruby')).toEqual(expect.arrayContaining(['Async::Server#list_panes', 'LibTmux::Server#list_panes'])) + expect(cell('session', 'ruby')).toEqual(['Session#list_panes']) expect(cell('window', 'go')).toEqual(['Window.SearchPanes']) // A snapshot-based port sends the command in its snapshot call. expect(cell('server', 'ts')).toEqual(['Server.snapshot']) @@ -89,7 +91,8 @@ describe('the recorded usage', () => { expect(cell('server', 'scala')).toEqual(expect.arrayContaining(['cats.Server.panes', 'scaladsl.Server.panes'])) // F# builds a session and then lists the panes of the session it made, and not of the server. expect(cell('session', 'fsharp')).toEqual(['newSession']) - expect(cell('server', 'fsharp')).toBeUndefined() + // tryFindPane reads one pane by id through Server.FindPaneAsync, a server-wide lookup, and says so in a reviewed claim. + expect(cell('server', 'fsharp')).toEqual(['tryFindPane']) const kotlin = tmuxUsageOf('kotlin', 'io.github.libtmux.kotlin.Server.panes') expect(kotlin.find((entry) => entry.command === 'list-panes')!.scopes[0]).toMatchObject({ via: { port: 'java', symbol: 'io.github.libtmux.Server.Server.panes', evidence: ['libtmux/src/main/java/io/github/libtmux/Server.java:998'] }, @@ -152,6 +155,9 @@ describe('which sends through a helper are listed', () => { expect(isListed(use({ reviewed: true }), 'unrelated')).toBe(true) expect(isListed(use(), 'unrelated')).toBe(false) expect(isListed(use(), 'Pane.sendKeys')).toBe(true) + // Swift ids carry argument labels, which hold colons of their own. + expect(isListed(use({ command: 'capture-pane' }), 'Server.capture(_:includingHistory:)')).toBe(true) + expect(isListed(use({ command: 'list-panes' }), 'Server.sendKeys(_:to:literally:)')).toBe(false) // A wrapper is listed by its own name or the core method's, and by a reviewed core entry. const wrapped = (over: Partial> = {}) => use({ evidence: ['w.kt:5'], via: { port: 'java', symbol: 'core.Pane.sendKeys', evidence: ['A.java:1', 'A.java:2'], ...over } }) expect(isListed(wrapped(), 'wrapper.Pane.run')).toBe(true) diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index e1427600f..a16cf7bc8 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest' import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' import { MAX_SHARED_BY, applyExclusions, classify, definitionsOf, deriveUsage, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' +import { carriesCommand, memberWords, selects, settleCandidates, sweepCandidates } from '../../scripts/lib/tmux-usage-sweep.mjs' import { scanFSharp, scanJulia } from '../../scripts/lib/tmux-usage-lexical.mjs' import { guardFlag, libraryScopes, scopeProblems } from '../../scripts/lib/tmux-usage-scopes.mjs' @@ -45,7 +46,8 @@ describe('scanning a send site', () => { ' raise Unsupported("list-panes")', '', ].join('\n')) - expect(functions[0].sites.map((site) => [site.line, site.flags])).toEqual([[2, 'Fa'], [4, '']]) + // A name given to an error that says it is unsupported is a message too, whether or not flags follow it. + expect(functions[0].sites.map((site) => [site.line, site.flags])).toEqual([[2, 'Fa']]) }) it('does not lend a neighbouring command its flags', async () => { @@ -493,3 +495,74 @@ describe('reading Julia and F# by their text', () => { expect(byName.helper.calls.size).toBe(0) }) }) + +describe('finding the methods a scan misses', () => { + const method = (name: string, owner: string, over: Record = {}) => ({ id: `S.${owner}.${name}`, name, parentName: owner, file: 'src/libtmux/lib.py', kind: 'method', ...over }) + const find = (symbols: ReturnType[], has: string[] = [], commands = ['new-session', 'new-window', 'kill-pane', 'send-keys']) => + sweepCandidates({ port: 'py', commands, symbols, has: new Set(has) }) as { candidates: { symbol: string; command: string }[]; siblings: number } + + it('reads the verb and the noun of a command in a method name, in whole words', () => { + expect(carriesCommand('new-session', 'newSession', 'Server')).toBe(true) + expect(carriesCommand('capture-pane', 'capture', 'Pane')).toBe(true) + expect(carriesCommand('send-keys', 'sendKeys', 'Pane')).toBe(true) + // The controls: another noun, another verb, and a word that only ends like a plural. + expect(carriesCommand('kill-window', 'kill', 'Pane')).toBe(false) + expect(carriesCommand('list-panes', 'sendKeys', 'Pane')).toBe(false) + expect(memberWords('previousLayout')).toEqual(['previous', 'layout']) + expect(memberWords('newWindow(in:named:startDirectory:)')).toEqual(['new', 'window']) + expect(carriesCommand('previous-window', 'previous', 'Window')).toBe(true) + }) + + it('finds a method named for a command that has no entry, in the library and not in a test or a consumer', () => { + const symbols = [method('new_session', 'Server'), method('helper', 'Server'), method('new_session', 'Fixture', { file: 'tests/fixtures.py' }), + method('new_session', 'Plugin', { file: 'src/other_package/plugin.py' }), method('new_session', 'Field', { kind: 'attribute' }), method('GetHashCode', 'Server')] + expect(find(symbols).candidates.map((item) => `${item.symbol} ${item.command}`)).toEqual(['S.Server.new_session new-session']) + // The control: once the data records an entry for it, there is nothing to find. + expect(find(symbols, ['S.Server.new_session\0new-session']).candidates).toEqual([]) + }) + + it('settles a method named for one command by the sibling command it is recorded as sending', () => { + const symbols = [method('newWindow', 'Session')] + // Session.newWindow carries new-session only through its owner; its own noun is the window's. + expect(find(symbols, ['S.Session.newWindow\0new-window'])).toEqual({ candidates: [], siblings: 1 }) + expect(find(symbols).candidates.map((item) => item.command)).toEqual(['new-session', 'new-window']) + }) + + describe('settling what is found', () => { + const candidates = [{ symbol: 'S.Pane.clear', name: 'clear', owner: 'Pane', command: 'clear-history', file: 'src/libtmux/pane.py' }] + const review = (over: Record = {}) => ({ + port: 'py', kind: 'other-command', why: 'clear types reset with send-keys.', owner: 'Pane', names: ['clear'], commands: ['clear-history'], + evidence: [{ at: 'src/libtmux/pane.py:2', has: ['send_keys("reset")'] }], ...over, + }) + const source = (path: string) => (path === 'src/libtmux/pane.py' ? 'def clear(self):\n self.send_keys("reset")\n' : undefined) + const settle = (reviews: unknown[], covering: unknown[] = [], readSource: typeof source | null = source) => + settleCandidates({ port: 'py', candidates, reviews: reviews as Parameters[0]['reviews'], covering: covering as never, readSource: readSource ?? undefined }) + + it('leaves a candidate with no review unreviewed, and settles one whose review holds', () => { + expect(settle([]).unreviewed).toEqual(candidates) + expect(settle([review()])).toEqual({ unreviewed: [], reviewed: 1, problems: [] }) + expect(selects({ owner: 'Pane', names: ['clear'] }, { ...candidates[0] })).toBe(true) + expect(selects({ owner: 'Pane', names: ['reset'] }, { ...candidates[0] })).toBe(false) + }) + + it.each([ + ['a line that no longer holds the text', { evidence: [{ at: 'src/libtmux/pane.py:2', has: ['clear-history'] }] }, /does not contain/], + ['a line past the end of the file', { evidence: [{ at: 'src/libtmux/pane.py:99' }] }, /not a line of the pinned source/], + ['a review that settles nothing', { names: ['gone'] }, /settles no candidate, so it is stale/], + ['no reason', { why: ' ' }, /gives no reason/], + ['no evidence', { evidence: [] }, /cites no evidence/], + ['a kind that is not one of the four', { kind: 'probably-fine' }, /is not one of/], + ['a review that names nothing', { owner: undefined, names: undefined, commands: undefined }, /names no owner, member or command/], + ])('refuses %s, and leaves the candidate unreviewed', (_name, over, message) => { + const result = settle([review(over)]) + expect(result.problems.join('\n')).toMatch(message) + expect(result.unreviewed).toEqual(candidates) + }) + + it('does not read the evidence without a checkout, and lets a covering rule settle without being checked', () => { + expect(settle([review({ evidence: [{ at: 'nowhere.py:1', has: ['x'] }] })], [], null)).toEqual({ unreviewed: [], reviewed: 1, problems: [] }) + expect(settle([], [{ port: 'py', owner: 'Pane', names: ['to_command'] }])).toEqual({ unreviewed: candidates, reviewed: 0, problems: [] }) + expect(settle([], [{ port: 'py', owner: 'Pane', names: ['clear'] }]).unreviewed).toEqual([]) + }) + }) +}) From 10bf8bcd434956df3a1bf84f52bfaa7cbceb3cf4 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 19 Oct 2026 23:24:46 -0500 Subject: [PATCH 11/53] fix(site[tmux-usage]) Cite each line at its own revision and drop sends that vary by release why: An independent read of the sweep at the pinned revisions found entries that were true only because generation agreed with itself. - F# is pinned at an older revision of the repository than the C# model, and its entries cited C# lines read at the C# model's revision. Regenerating reproduced the same lines, so the check passed while 31 of 51 hop lines read as something else where F# is pinned: Server.newSession cited Server.Lifecycle.cs:368 for a send that is at :147, with "new-session" at :269. - C# Server.FindSessionAsync, GetSessionAsync, FindWindowAsync, GetWindowAsync, FindPaneAsync and GetPaneAsync, and F# tryFindSession, tryFindWindow and tryFindPane, were recorded as list-sessions, list-windows and list-panes. Those names are only passed to choose the format of the row. The lookup lists with -a below tmux 3.3 and asks display-message from 3.3. The C# revision of the sweep raises the floor to 3.3a and removes the fallback, so display-message is the one command it sends. The F# revision supports 3.2a, so both branches are reachable and no one command holds on every supported release. - Some first lines were not the send: a throw (Java Environment.get), an error label (rs Pane.split, Session.new_window, Pane.capture_with), a builder bound to a name in a function that goes on to send it (rs set-option, set-hook), a label argument (rs set-environment), the arguments of a call that builds (Julia resize), and the wrong overload (the PowerShell hook cmdlet). - The C# and PowerShell models moved to libtmux-dotnet 5b486ea9 (alpha.22) and libtmux-powershell 00a482f6, so their usage was stale, and Python recorded its private _show_option helpers, and a method of the private libtmux._internal module, as API. - A command quoted into the arguments of another is run by tmux, not sent: Pane.killIfWindowUnshared sends if-shell with kill-pane inside it. what: - Read back every cited line. `--check --source` takes the entries as committed, reads each cited line at the revision the entry names, and refuses it when the line does not say what the entry claims: a scanned entry's first line spells the command and each later line calls the function around the one before it, a reviewed entry holds its claim's text at its claim's lines, a forwarded entry's own line calls the core method and its `via` is read as an entry of the core at the revision it names, and no first line throws, builds an error or, in a claim, only binds the command in a function that goes on to send it. - Name the revision of every `via`. A wrapper in the same repository as its core library reads the core where the wrapper is pinned, so F# stands on the C# library as it was at 4f1b997b2, extracted and scanned there, with the claims and exclusions that carry that revision. PowerShell lives in another repository and stands on the C# release it depends on, 5b486ea9. `--check` without sources refuses a via that names another revision. - Add the `version-gated` review for a lookup that sends one command on some supported releases and another on the rest. It cites the gate, both branches and the floor below the gate, and the sweep refuses it without them. - Move the C# and PowerShell claims, exclusions and reviews to the new revisions by the diff and then by the text each cites, and regenerate. - Stop crediting `failed(...)`, `decode_error(...)` and `from_refused_result` literals and the commands nested in the arguments of if-shell, run-shell, set-hook, bind-key and the other commands that run commands. The rule is that the library sends the outer command and records only that one, wherever the nested one sits: ts zoom and unzoom no longer list resize-pane, C++ Pane::break_out no longer lists break-pane, display-message and rename-window, Go Session.Start no longer lists wait-for (a pane-died hook's command), Java Server.control no longer lists display-message, and Pane.killIfWindowUnshared records if-shell and not kill-pane. - Point the named lines at the line that sends: Java Environment.get and isRemoved at the cmd call in entry (lines 191 to 194), Julia resize_pane and resize_window at the effect call (control_topology.jl:102), rs append_option at the run call (options.rs:172), rs unset_environment at the mutate call (environment.rs:74), the PowerShell hook cmdlet at the single-request overload (TmuxHooks.cs:239 to 253), and F# newSession's window scope at Hierarchy.fs:109 alone. A claim may cite the rest of a call that spans lines with `span`. - Leave private symbols out: an underscore name or an underscore module or type around it (dunders stay), a `private` modifier or an internal scope is not read from the model and is refused in a document. - Test each rule with its negative case: the audit with synthetic sources, the scanner, `span`, an exclusion's `commands`, a `version-gated` review, the via revision and private symbols in the generator tests, and the negative script, which also changes a committed F# via line and reads it back from the checkout. Measured on the pinned sources. Entries per port before and after (1,824 to 1,774): py 224/193, ruby 102/102, lua 92/92, julia 72/72, ts 121/118, rs 153/150, go 194/193, java 148/146, kotlin 113/112, scala 181/181, csharp 171/168, fsharp 20/17, powershell 34/34, cxx 109/106, swift 90/90. Claims 344/339 (17 added, 22 dropped), reviews 182/183. Python lost 31 private symbols: 30 _show_* helpers and ControlMode.__enter__ of libtmux._internal. C# lost the six lookups' list entries, Session.RefreshAsync's and CreateSessionWithReceiptAsync's list-sessions (the same name passed to the lookup), and ServerMirror.OpenAsync's refresh-client, which alpha.22 moved into EnterControlModeAsync. It gained display-message for the six lookups. F# lost the three lookups and newSession's list-sessions, and gained newSession's display-message through CreateWindowAsync. A scan for sends near a version test in every port found no other fallback to a different command: the rest are a flag chosen by version or a refusal below a release. Known limit: a first line that is a Command::new builder in a scanned entry, and a bare literal that is a label in position, are not refused, because a scan cannot tell them from the literal of a send; a claim's first line is held to the stricter rule. --- scripts/README.md | 57 +- scripts/gen-tmux-usage.mjs | 163 ++- scripts/gen-tmux-usage.negative.mjs | 54 +- scripts/lib/tmux-usage-audit.mjs | 137 ++ scripts/lib/tmux-usage-derive.mjs | 33 +- scripts/lib/tmux-usage-forward.mjs | 5 +- scripts/lib/tmux-usage-scan.mjs | 35 +- scripts/lib/tmux-usage-sweep.mjs | 18 +- scripts/tmux-usage/claims.json | 1685 +++++++++++----------- scripts/tmux-usage/exclusions.json | 249 ++++ scripts/tmux-usage/not-senders.json | 130 +- site/src/data/tmux-usage/csharp.json | 288 ++-- site/src/data/tmux-usage/cxx.json | 28 +- site/src/data/tmux-usage/fsharp.json | 147 +- site/src/data/tmux-usage/go.json | 9 - site/src/data/tmux-usage/java.json | 29 +- site/src/data/tmux-usage/julia.json | 8 +- site/src/data/tmux-usage/kotlin.json | 138 +- site/src/data/tmux-usage/powershell.json | 74 +- site/src/data/tmux-usage/py.json | 314 ---- site/src/data/tmux-usage/rs.json | 121 +- site/src/data/tmux-usage/scala.json | 191 ++- site/src/data/tmux-usage/ts.json | 28 +- site/src/lib/tmux-library-usage.ts | 2 +- site/test/tmux-library-usage.test.ts | 81 +- site/test/tmux-usage-derive.test.ts | 247 +++- 26 files changed, 2615 insertions(+), 1656 deletions(-) create mode 100644 scripts/lib/tmux-usage-audit.mjs diff --git a/scripts/README.md b/scripts/README.md index 49e5b120e..c6c591c32 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -174,8 +174,15 @@ through the port checkouts named in `ports.ts` or `LIBTMUX_DOCS_CHECKOUT_`. A symbol is credited when a command-name literal, with the flags beside it, sits in its own body or in one private helper it calls. A literal that is compared against, named by a `case`, or -passed to a call that checks or fails (`validate...`, `...Error`) names a -command and does not send it, and is not a site. +passed to a call that checks or fails (`validate...`, `failed(...)`, `...Error`) +names a command and does not send it, and is not a site. Neither is a command +that sits in the arguments of one that runs commands (`if-shell`, `run-shell`, +`set-hook`, `bind-key`, `command-prompt`, `confirm-before` and the like): in +`["if-shell", "-F", cond, quoteCommand(["resize-pane", "-Z"])]` the library +sends `if-shell`, and tmux runs `resize-pane` when the condition holds. + +Only public API is recorded: a symbol with an underscore name, a `private` +modifier or an internal scope is left out of the scan and refused in a document. Three files beside the script hold what a scan cannot decide, and each line of them is verified against the pinned source, so generation fails when one no @@ -191,12 +198,50 @@ longer holds: evidence; a wrapper that only builds a request sends nothing and is named in the page's "No method in" line. - `exclusions.json`: the symbols that carry a command's name and only build or - record it (a plan, a chain, a request that turns itself into a command). Each - cites the lines that show it, and an exclusion that removes nothing fails. + record it (a plan, a chain, a request that turns itself into a command), or + that pass the name of a list command only to choose the format of the row they + read. Each cites the lines that show it, an exclusion that removes nothing + fails, and `commands` limits it to those commands of the symbols it names. - `not-senders.json`: why a public method whose own name carries a command has no entry for it, one of `builds`, `other-command` (it sends a different - command), `values` (a field or a value holder) or `no-send`. Each cites the - lines that show it, and a review that settles nothing is stale and fails. + command, or runs it only inside the arguments of one that runs commands), + `values` (a field or a value holder), `no-send`, or `version-gated`. Each + cites the lines that show it, and a review that settles nothing is stale and + fails. + +An entry must hold on every tmux release the port supports at its revision. A +method that sends one command on some of those releases and another on the rest +is `version-gated`, and is recorded as neither; its review cites the gate, both +branches and the line that sets the supported floor below the gate, so that the +range the gate splits is shown to be supported. When a later revision raises the +floor past the gate, the fallback is gone and the method is recorded as sending +the command that remains. A refusal below some release (`new-pane` before 3.7) is +not a gate of this kind: the method sends that command whenever it sends. + +A claim, an exclusion or a review without a `revision` is read against the +revision its port's model was extracted from. One with a `revision` is read +against that revision instead, which is how a wrapper that shares a repository +with its core library is given the core as it stood where the wrapper is +pinned: F# is pinned at an older revision than the C# model, so its entries stand +on the C# library read there, with the claims and exclusions that carry that +revision. A wrapper in another repository, such as the PowerShell cmdlets, +stands on the release it depends on. Every `via` names the revision of the core +lines it cites. + +A claim's evidence names the line that sends, `has` its text, and `span` the +following lines of the same statement that may hold the rest when a call spans +lines: the first text must be on the cited line itself. + +`--check --source` also reads back every line each entry cites, at the revision +it names, and refuses the entry when the line does not say what the entry +claims: a scanned entry's first line spells the command and each later line +calls the function around the one before it, a reviewed entry's lines hold the +text its claim names, a forwarded entry's own line calls the core method and its +`via` is read as an entry of the core at the revision it names, and no entry's +first line reports a failure (`throw`, an error constructor, `failed(...)`) or, +for a claim, binds the command to a name in a function that goes on to send it. +It reads the entries as committed, so an error made in generation that +regeneration reproduces is still seen. A method named for a command and recorded as sending nothing of it is how a miss is found, and the check refuses it until a claim records the send or a diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index 6e6f6af26..4957e4447 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -25,12 +25,14 @@ * gen-tmux-usage.mjs --ports a,b only these ports, and the core libraries their wrappers stand on */ import { spawnSync } from 'node:child_process' -import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' -import { homedir } from 'node:os' +import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { homedir, tmpdir } from 'node:os' import { dirname, join, resolve } from 'node:path' import { fileURLToPath } from 'node:url' +import { extractProject } from '../packages/api-model/src/project.ts' import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' -import { applyExclusions, deriveUsage, verifyClaims } from './lib/tmux-usage-derive.mjs' +import { applyExclusions, deriveUsage, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' +import { auditEvidence } from './lib/tmux-usage-audit.mjs' import { forwardUsage } from './lib/tmux-usage-forward.mjs' import { settleCandidates, sweepCandidates } from './lib/tmux-usage-sweep.mjs' import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' @@ -100,6 +102,17 @@ function knownCommands() { return names } +/** Every spelling of each command a literal may use, name first: `new-window` is also `neww`. */ +function commandSpellings() { + const spellings = new Map() + for (const version of readJson(join(dataDir, 'tmux/versions.json')).versions) { + for (const command of readJson(join(dataDir, `tmux/${version.version}.json`)).commands) { + spellings.set(command.name, [...new Set([...(spellings.get(command.name) ?? [command.name]), ...(command.alias ? [command.alias] : [])])]) + } + } + return spellings +} + const sortKeys = (value) => Array.isArray(value) ? value.map(sortKeys) : value && typeof value === 'object' ? Object.fromEntries(Object.entries(value).sort(([a], [b]) => a.localeCompare(b)).map(([key, item]) => [key, sortKeys(item)])) : value @@ -109,11 +122,21 @@ export const DEFINITION_OPTIONS = { lua: { sharedOwner: true }, julia: { freeFun /** A consumer example declares symbols of its own that the library does not. */ const EXAMPLES = /(?:^|\/)(?:examples?|tests?|benchmarks?|docs?)\// -/** Callable public symbols, in the shape the derivation reads. */ +/** + * Whether a model symbol is private by its own marks: an underscore name, an underscore module or type around it + * (`libtmux._internal.control_mode`), a `private` modifier, an internal scope. Dunder names are the language's + * protocol and stay. The reference orders the same members last, as its private tier. + */ +const UNDERSCORE = /^_(?!_)/ +export const isPrivateSymbol = (symbol) => (symbol.name.startsWith('_') && !/^__\w+__$/.test(symbol.name)) + || (symbol.publicId ?? symbol.id).replace(/\(.*$/s, '').split(/[.:#\\/]+/).slice(0, -1).some((segment) => UNDERSCORE.test(segment)) + || Boolean(symbol.modifiers?.includes('private')) || symbol.apiScope === 'internal' + +/** Callable public symbols, in the shape the derivation reads: a library's private helpers are not API to use. */ export function publicSymbols(model) { const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) return model.symbols - .filter((symbol) => symbol.apiScope !== 'internal' && symbol.source?.file && !EXAMPLES.test(symbol.source.file) + .filter((symbol) => !isPrivateSymbol(symbol) && symbol.source?.file && !EXAMPLES.test(symbol.source.file) && ['function', 'method', 'property', 'attribute'].includes(symbol.kind)) .map((symbol) => ({ id: symbol.publicId ?? symbol.id, @@ -191,6 +214,28 @@ function derivePort({ port, scanned, commands, scopes, claims, report, sends }) return { found, problems } } +/** + * Where a core library keeps the source its public symbols come from, for reading it at another revision than its model. + * Only a core that a wrapper shares a repository with, and is pinned apart from, needs this. + */ +const CORE_EXTRACTION = { csharp: { roots: ['src/LibTmux'], options: { inheritedMembers: true } } } + +/** The public symbols of a core library as they were at a revision, extracted from that revision's own files. */ +async function modelAtRevision({ port, checkout, revision }) { + const config = CORE_EXTRACTION[port] + if (!config) throw new Error(`${port}: no source roots are configured to read its symbols at ${revision.slice(0, 8)}`) + const dir = mkdtempSync(join(tmpdir(), 'tmux-usage-')) + try { + const unpacked = spawnSync('tar', ['-x', '-C', dir], { input: git(checkout, 'archive', revision, ...config.roots), maxBuffer: 1 << 28 }) + if (unpacked.status !== 0) throw new Error(`${port}: cannot unpack ${revision.slice(0, 8)}: ${unpacked.stderr}`) + const model = await extractProject({ port, root: join(dir, config.roots[0]), roots: config.roots.map((root) => join(dir, root)), revision, options: config.options }) + for (const symbol of model.symbols) if (symbol.source?.file?.startsWith(`${dir}/`)) symbol.source.file = symbol.source.file.slice(dir.length + 1) + return model + } finally { + rmSync(dir, { recursive: true, force: true }) + } +} + /** The Operation annotation above the core method that sends, the line that makes a generated wrapper forward to it. */ function operationAnnotation(core, kinds) { const pattern = new RegExp(`@Operation\\(\\s*Kind\\.(?:${kinds.join('|')})\\s*\\)`) @@ -221,7 +266,7 @@ function forwardPort({ port, config, scanned, core, coreScan, readEvidence }) { } const result = forwardUsage({ parent: config.parent, functions: scanned.functions, types: scanned.types, symbols: scanned.symbols, - core: { entries: core.entries, symbols: core.symbols }, generated, + core: { entries: core.entries, symbols: core.symbols, revision: core.revision }, generated, }) return { entries: result.entries, problems } } @@ -237,20 +282,34 @@ export function checkoutFor(port) { return expand(override || port.checkout) } +/** + * The revision a wrapper's cited core lines are read at: the wrapper's own when it shares a repository with the core + * library, because the two are built together there, and the core's model otherwise, which is the release the wrapper + * depends on. A wrapper with no core library cites none. + */ +export const viaRevisionFor = (model, coreModel) => (coreModel ? (coreModel.repo === model.repo ? model.revision : coreModel.revision) : undefined) + /** What a committed file must satisfy without any checkout. */ -export function documentProblems(document, model, scopes, commands) { +export function documentProblems(document, model, scopes, commands, viaRevision) { const problems = [] if (document.schemaVersion !== SCHEMA_VERSION) problems.push(`schemaVersion ${document.schemaVersion}`) if (document.revision !== model.revision) problems.push(`records ${document.revision}, but the API model is at ${model.revision}`) if (JSON.stringify(document.commands) !== JSON.stringify([...commands].sort())) problems.push(`covers ${JSON.stringify(document.commands)}, expected ${JSON.stringify([...commands].sort())}`) const ids = new Set(model.symbols.map((symbol) => symbol.publicId ?? symbol.id)) + const privateIds = new Set(model.symbols.filter(isPrivateSymbol).map((symbol) => symbol.publicId ?? symbol.id)) for (const [symbol, uses] of Object.entries(document.symbols)) { if (!ids.has(symbol)) problems.push(`${symbol}: not a symbol of the API model`) + else if (privateIds.has(symbol)) problems.push(`${symbol}: is private, and only public API is recorded`) for (const use of uses) { const scoped = scopes.commands[use.command]?.scopes if (!commands.includes(use.command)) problems.push(`${symbol}: ${use.command} is not a recorded command`) if (scoped ? !scoped.some((scope) => scope.id === use.scope) : use.scope !== null) problems.push(`${symbol}: ${use.scope} is not a scope of ${use.command}`) if (!use.evidence?.length || use.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: evidence must be file:line`) + if (use.via) { + if (!use.via.evidence?.length || use.via.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: via evidence must be file:line`) + // The lines of a core library are read where the wrapper is pinned when both live in one repository, and where the core's own model is otherwise. + if (use.via.revision !== viaRevision) problems.push(`${symbol}: via ${use.via.symbol} cites ${use.via.port} lines at ${use.via.revision ?? 'no revision'}, which must be ${viaRevision ?? 'absent, for a port with no core library'}`) + } } } return problems @@ -282,6 +341,7 @@ export async function main() { const report = [] const failures = [] const known = regenerate ? knownCommands() : new Set() + const spellings = commandSpellings() mkdirSync(usageDir, { recursive: true }) for (const command of commandsToRecord) { @@ -301,15 +361,57 @@ export async function main() { const only = args.includes('--ports') ? new Set(option('--ports').split(',')) : undefined const wanted = (port) => !only || only.has(port.slug) || [...only].some((slug) => forwarders[slug]?.parent === port.slug) const ordered = ports.filter(wanted).sort((a, b) => Number(Boolean(forwarders[a.slug])) - Number(Boolean(forwarders[b.slug]))) - const byPort = new Map() + const models = new Map(ports.map((port) => [port.slug, readJson(join(dataDir, `api/${port.slug}.json`))])) + const viaRevisionOf = (slug) => viaRevisionFor(models.get(slug), forwarders[slug] && models.get(forwarders[slug].parent)) + + /** Every scan made, by port and revision, for the audit to read the lines an entry cites from. */ + const scans = new Map() + const scanKey = (slug, revision) => `${slug}@${revision}` + /** A port's result at its model's revision, and a core library's at the revision a wrapper in its repository is pinned at. */ + const passes = new Map() + + /** Scan a port's library at a revision and derive what it sends, from the scan and the claims and exclusions that hold there. */ + async function derivePass({ port, model, core }) { + const pinned = models.get(port.slug).revision + const rules = (list) => list.filter((rule) => rule.port === port.slug && ruleHolds(rule, model.revision, pinned)) + const scanned = await scanPort({ port: port.slug, model, commands: commandsToRecord, checkout: checkoutFor(port), known }) + scans.set(scanKey(port.slug, model.revision), { read: scanned.readSource, functions: scanned.functions }) + const sends = (parent, symbol, command, scope) => { + const entry = core?.found.get(`${symbol}\0${command}\0${scope}`) + return parent === core?.port && entry ? { ...entry, revision: core.revision } : undefined + } + const { found, problems } = derivePort({ port: port.slug, scanned, commands: commandsToRecord, scopes, claims: rules(claims), report, sends }) + const excluded = applyExclusions({ exclusions: rules(exclusions), found, symbols: scanned.symbols, readSource: scanned.readSource }) + return { port: port.slug, revision: model.revision, found, scanned, problems: [...problems, ...excluded.problems] } + } + + /** The core library as the wrapper sees it: read where the wrapper is pinned if they share a repository, else at the core's model. */ + async function corePassFor(port, config) { + const parent = ports.find((candidate) => candidate.slug === config.parent) + const revision = viaRevisionOf(port.slug) + if (revision === models.get(parent.slug).revision) return passes.get(parent.slug) + const key = scanKey(parent.slug, revision) + if (!passes.has(key)) { + const model = await modelAtRevision({ port: parent.slug, checkout: checkoutFor(parent), revision }) + const pass = await derivePass({ port: parent, model, core: undefined }) + failures.push(...pass.problems) + passes.set(key, pass) + } + return passes.get(key) + } + + const claimFor = (slug, symbol, command, scope, revision) => claims.find((claim) => claim.port === slug && claim.symbol === symbol + && claim.command === command && claim.scope === scope && ruleHolds(claim, revision, models.get(slug).revision)) + let compared = 0 for (const port of ordered) { - const model = readJson(join(dataDir, `api/${port.slug}.json`)) + const model = models.get(port.slug) const path = join(usageDir, `${port.slug}.json`) + let committed if (check) { if (!existsSync(path)) { failures.push(`${port.slug}: no ${path}`); continue } - const committed = readJson(path) - for (const problem of documentProblems(committed, model, scopes, commandsToRecord)) failures.push(`${port.slug}: ${problem}`) + committed = readJson(path) + for (const problem of documentProblems(committed, model, scopes, commandsToRecord, viaRevisionOf(port.slug))) failures.push(`${port.slug}: ${problem}`) if (!args.includes('--source')) { failures.push(...sweepProblems({ port: port.slug, model, document: committed, reviews, exclusions, report })) continue @@ -320,28 +422,31 @@ export async function main() { if (check) { console.log(`gen-tmux-usage: ${port.slug}: no checkout at ${checkout}; skipped regeneration`); continue } throw new Error(`${port.slug}: no checkout at ${checkout}; set LIBTMUX_DOCS_CHECKOUT_${port.slug.toUpperCase()}`) } - const scanned = await scanPort({ port: port.slug, model, commands: commandsToRecord, checkout, known }) - const sends = (parent, symbol, command, scope) => byPort.get(parent)?.found.get(`${symbol}\0${command}\0${scope}`) - const { found, problems } = derivePort({ port: port.slug, scanned, commands: commandsToRecord, scopes, claims, report, sends }) - failures.push(...problems) - const excluded = applyExclusions({ exclusions: exclusions.filter((exclusion) => exclusion.port === port.slug), found, symbols: scanned.symbols, readSource: scanned.readSource }) - failures.push(...excluded.problems) const config = forwarders[port.slug] - if (config) { - const core = byPort.get(config.parent) - if (!core) failures.push(`${port.slug}: its core library ${config.parent} was not generated`) - else { - const forwarded = forwardPort({ - port: port.slug, config, scanned, coreScan: core.scanned, readEvidence: scanned.readSource, - core: { entries: [...core.found.values()], symbols: new Map(core.scanned.symbols.map((symbol) => [symbol.id, symbol])) }, - }) - failures.push(...forwarded.problems) - mergeEntries(found, forwarded.entries) - } + const core = config ? await corePassFor(port, config) : undefined + if (config && !core) failures.push(`${port.slug}: its core library ${config.parent} was not generated`) + const pass = await derivePass({ port, model, core }) + const { found, scanned } = pass + failures.push(...pass.problems) + if (config && core) { + const forwarded = forwardPort({ + port: port.slug, config, scanned, coreScan: core.scanned, readEvidence: scanned.readSource, + core: { entries: [...core.found.values()], symbols: new Map(core.scanned.symbols.map((symbol) => [symbol.id, symbol])), revision: core.revision }, + }) + failures.push(...forwarded.problems) + mergeEntries(found, forwarded.entries) } - byPort.set(port.slug, { found, scanned }) + passes.set(port.slug, pass) const document = portDocument(port.slug, model, [...found.values()], commandsToRecord) failures.push(...sweepProblems({ port: port.slug, model, document, reviews, exclusions, report, readSource: scanned.readSource })) + // The committed entries are the ones audited, because a check has to read what is published and not what a scan makes of it. + const subject = committed ?? document + failures.push(...auditEvidence({ + port: port.slug, revision: model.revision, claimFor, spellings: (command) => spellings.get(command) ?? [command], + sourcesAt: (slug, revision) => scans.get(scanKey(slug, revision)), + generated: config?.generated && { evidence: config.generated.evidence.map((item) => item.at) }, + uses: Object.entries(subject.symbols).flatMap(([symbol, uses]) => uses.map((use) => ({ symbol, ...use }))), + })) const text = `${JSON.stringify(document, null, 2)}\n` if (check) { if (text !== readFileSync(path, 'utf8')) failures.push(`${port.slug}: stale; run node scripts/gen-tmux-usage.mjs`) diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 87d2eeaf6..7af8c528d 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -8,9 +8,13 @@ * revision that moved on, a symbol the model dropped, a scope the command does * not have, evidence that is not a line, a port whose file went missing, a * command the file does not cover, a file that covers fewer commands than - * the manual documents, and a method named for a command that nothing records. + * the manual documents, a method named for a command that nothing records, a + * private helper recorded as API, a wrapper that cites its core library's lines + * at a revision other than the one they must be read at, and (with the sources + * checked out) core lines that read as something else at the revision cited. */ -import { cpSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { cpSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { homedir } from 'node:os' import { tmpdir } from 'node:os' import { dirname, join } from 'node:path' import { execFileSync } from 'node:child_process' @@ -28,6 +32,15 @@ function run(dir) { } } +/** The same check with the sources read, for the ports named. */ +function runSource(dir, ports) { + try { + return { code: 0, out: execFileSync('node', [script, '--check', '--source', '--ports', ports, '--data', dir], { encoding: 'utf8', stdio: 'pipe' }) } + } catch (error) { + return { code: error.status, out: `${error.stdout ?? ''}${error.stderr ?? ''}` } + } +} + const dirs = [] function fixture() { const dir = mkdtempSync(join(tmpdir(), 'gen-tmux-usage-')) @@ -98,5 +111,42 @@ edit(covered, 'ruby', (document) => { delete document.symbols['LibTmux::Pane#sen const coveredRun = run(covered) check('the same miss fails in another port, and the other ports stay quiet', coveredRun.code !== 0 && /ruby: .*send_keys/.test(coveredRun.out) && !/py: .*methods named/.test(coveredRun.out), coveredRun.out) +const privateHelper = fixture() +edit(privateHelper, 'py', (document) => { document.symbols['libtmux.Server._show_option'] = first(document)[1] }) +const privateRun = run(privateHelper) +check('a private helper recorded as API fails', privateRun.code !== 0 && /py: libtmux.Server._show_option: is private, and only public API is recorded/.test(privateRun.out), privateRun.out) + +const viaMoved = fixture() +edit(viaMoved, 'fsharp', (document) => { + const via = Object.values(document.symbols).flat().find((use) => use.via).via + via.revision = JSON.parse(readFileSync(join(committed, '..', 'api', 'csharp.json'), 'utf8')).revision +}) +const viaMovedRun = run(viaMoved) +check('core lines cited at the core model\'s revision instead of the wrapper\'s fail', viaMovedRun.code !== 0 && /fsharp: .* cites csharp lines at 5b486ea9\w+, which must be 4f1b997b2\w+/.test(viaMovedRun.out), viaMovedRun.out) + +const viaUnnamed = fixture() +edit(viaUnnamed, 'powershell', (document) => { delete Object.values(document.symbols).flat().find((use) => use.via).via.revision }) +const viaUnnamedRun = run(viaUnnamed) +check('a via that names no revision fails', viaUnnamedRun.code !== 0 && /powershell: .* at no revision/.test(viaUnnamedRun.out), viaUnnamedRun.out) + +// Reading the sources needs the checkout the wrapper is pinned in; without it the check skips regeneration and there is nothing to refuse. +if (existsSync(join(process.env.LIBTMUX_DOCS_CHECKOUT_FSHARP ?? join(homedir(), 'work/libtmux/libtmux-dotnet'), '.git'))) { + const control = runSource(fixture(), 'fsharp') + check('the committed F# entries read as cited at the F# revision', control.code === 0, control.out) + // The first line the F# new-session entry cited before the C# core was read where F# is pinned. + const reviewed = fixture() + edit(reviewed, 'fsharp', (document) => { + document.symbols['LibTmux.FSharp.Server.newSession'].find((candidate) => candidate.command === 'new-session').via.evidence[0] = 'src/LibTmux/Server.Lifecycle.cs:368' + }) + const reviewedRun = runSource(reviewed, 'fsharp') + check('a reviewed core line that is not the one its claim cites fails', reviewedRun.code !== 0 && /Server.Lifecycle.cs:368 where its claim cites src\/LibTmux\/Server.Lifecycle.cs:269/.test(reviewedRun.out), reviewedRun.out) + const scanned = fixture() + edit(scanned, 'fsharp', (document) => { + document.symbols['LibTmux.FSharp.Pane.sendKeys'].find((candidate) => candidate.command === 'send-keys').via.evidence[0] = 'src/LibTmux/Pane.Input.cs:8' + }) + const scannedRun = runSource(scanned, 'fsharp') + check('a scanned core line that does not spell the command fails', scannedRun.code !== 0 && /src\/LibTmux\/Pane.Input.cs:8 does not spell send-keys/.test(scannedRun.out), scannedRun.out) +} else console.log('skip core lines read at the revision cited: no checkout of the .NET repository') + for (const dir of dirs) rmSync(dir, { recursive: true, force: true }) if (failures) process.exit(1) diff --git a/scripts/lib/tmux-usage-audit.mjs b/scripts/lib/tmux-usage-audit.mjs new file mode 100644 index 000000000..56ece8fc2 --- /dev/null +++ b/scripts/lib/tmux-usage-audit.mjs @@ -0,0 +1,137 @@ +/** + * Read back every line a usage entry cites, at the revision the entry says it cites it at. + * + * Generation builds the lines from one scan, so a mistake in that scan comes out looking consistent: a wrapper + * that stands on a core library read at another revision cites core lines that read differently where the + * wrapper is pinned, and regenerating reproduces them. This audit starts from the entries as committed and asks + * the source instead. Each cited line must exist at the revision named for it, and must say what the entry + * claims of it: + * + * - a scanned entry cites a line that spells the command, and each later line calls the function around the + * line before it; + * - a reviewed entry cites the lines its claim names, holding the text the claim says they hold; + * - a forwarded entry cites a line that calls the core method, and its `via` is audited at the revision it + * names, as an entry of the core library; + * - no entry's first line reports a failure: a `throw`, an error constructor or a `failed(...)` call spells a + * command to describe what went wrong with it, and sends nothing. A reviewed entry's first line is not a + * builder that only binds the command to a name either, because a claim is read for the line that sends. + */ +import { bareName } from './tmux-usage-derive.mjs' + +const split = (cite) => { + const colon = cite.lastIndexOf(':') + return { file: cite.slice(0, colon), line: Number(cite.slice(colon + 1)) } +} + +/** A line that throws or builds an error names a command to say it failed. */ +export const REPORTS_FAILURE = /\b(?:throw|raise|panic!)\b|\bThrowIf\w*\(|\bErr\(|\w[Ee]rror\s*\(|\bfail(?:ed)?\s*\(|\b[Ff]ailure\s*\(|\bException\s*\(/ + +/** + * A statement that keeps a command in a variable, or a continuation that applies a scope to one, runs nothing. It + * is the line to cite when the function only builds the command for its caller to send, and the wrong one when the + * same function goes on to send it: `run(...)` or `execute(...)` a few lines later is the line that sends. + */ +export const BINDS_ONLY = /^(?:let|var|val|const)\b[^=]*=\s*(?:[\w.]+\()?\s*Command::new\(|^\.apply\(Command::new\(/ +const DISPATCHERS = new Set(['run', 'mutate', 'cmd', 'execute', 'send', 'dispatch', 'dispatch_without_deadline']) + +/** + * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], reviewed?: boolean, + * via?: { port: string, symbol: string, revision: string, evidence: string[], reviewed?: boolean } }} Use + * @typedef {{ read: (path: string) => string | undefined, functions: { file: string, name: string, start: number, end: number, calls: Map }[] }} Sources + * + * @param {{ + * port: string, + * revision: string, + * uses: Use[], + * claimFor: (port: string, symbol: string, command: string, scope: string | null, revision: string) => { evidence: { at: string, has?: string[], span?: number }[] } | undefined, + * sourcesAt: (port: string, revision: string) => Sources | undefined, + * spellings: (command: string) => string[], + * generated?: { evidence: string[] }, + * }} input `generated` is the evidence a generated wrapper's entries open with, which names the generator and not a call. + * @returns {string[]} + */ +export function auditEvidence({ port, revision, uses, claimFor, sourcesAt, spellings, generated }) { + const problems = [] + const enclosing = (sources, file, line) => sources.functions + .filter((fn) => fn.file === file && fn.start <= line && line <= fn.end) + .sort((a, b) => b.start - a.start)[0] + + /** Audit one chain of cited lines as an entry of `at`; `label` names what is being audited. */ + const chain = ({ label, at, atRevision, use, ownGenerated }) => { + const sources = sourcesAt(at, atRevision) + if (!sources) { problems.push(`${label}: no scan of ${at} at ${atRevision.slice(0, 8)} to read the cited lines from`); return } + const texts = [] + for (const cite of use.evidence) { + const { file, line } = split(cite) + const text = sources.read(file)?.split('\n')[line - 1] + if (text === undefined || !text.trim()) problems.push(`${label}: ${cite} is not a line of ${at} at ${atRevision.slice(0, 8)}`) + texts.push(text) + } + if (texts.some((text) => text === undefined || !text.trim())) return + if (ownGenerated) { + // A generated wrapper opens with the generator's own lines and ends at the annotation that makes it forward. + if (!/@Operation\b/.test(texts.at(-1))) problems.push(`${label}: ${use.evidence.at(-1)} is not the @Operation annotation of the core method: ${texts.at(-1).trim().slice(0, 90)}`) + return + } + + if (REPORTS_FAILURE.test(texts[0]) && !use.reviewed) { + problems.push(`${label}: ${use.evidence[0]} reports a failure and sends nothing: ${texts[0].trim().slice(0, 90)}`) + } + if (use.reviewed) { + const claim = claimFor(at, use.symbol, use.command, use.scope, atRevision) + if (!claim) problems.push(`${label}: reviewed, but no claim of ${at} holds it at ${atRevision.slice(0, 8)}`) + else { + claim.evidence.forEach((item, index) => { + const { line } = split(item.at) + if (item.at !== use.evidence[index]) { problems.push(`${label}: cites ${use.evidence[index]} where its claim cites ${item.at}`); return } + const lines = sources.read(split(item.at).file).split('\n') + const statement = lines.slice(line - 1, line - 1 + (item.span ?? 1)).join('\n') + for (const [position, needle] of (item.has ?? []).entries()) { + if (!(position === 0 ? lines[line - 1] : statement).includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + } + }) + } + const { file: firstFile, line: firstLine } = split(use.evidence[0]) + const builder = enclosing(sources, firstFile, firstLine) + if (BINDS_ONLY.test(texts[0].trim()) && builder && [...builder.calls.keys()].some((name) => DISPATCHERS.has(name))) { + problems.push(`${label}: ${use.evidence[0]} only binds the command to a name in ${builder.name}, which goes on to send it; cite the line that sends it: ${texts[0].trim().slice(0, 90)}`) + } + if (REPORTS_FAILURE.test(texts[0])) problems.push(`${label}: ${use.evidence[0]} reports a failure and sends nothing: ${texts[0].trim().slice(0, 90)}`) + } else if (use.via) { + // A wrapper's own line calls the core method by name. + if (!texts.at(-1).includes(bareName(use.via.symbol))) { + problems.push(`${label}: ${use.evidence.at(-1)} does not call ${bareName(use.via.symbol)}: ${texts.at(-1).trim().slice(0, 90)}`) + } + } else { + const spelled = spellings(use.command) + const dollar = at === 'julia' && /\$\w+/.test(texts[0]) + if (!dollar && !spelled.some((spelling) => texts[0].includes(spelling))) { + problems.push(`${label}: ${use.evidence[0]} does not spell ${use.command}: ${texts[0].trim().slice(0, 90)}`) + } + for (let index = 1; index < texts.length; index++) { + const { file, line } = split(use.evidence[index - 1]) + const fn = enclosing(sources, file, line) + if (!fn) problems.push(`${label}: ${use.evidence[index - 1]} is in no function, so ${use.evidence[index]} calls nothing`) + else if (!texts[index].includes(bareName(fn.name))) { + problems.push(`${label}: ${use.evidence[index]} does not call ${fn.name}, the function around ${use.evidence[index - 1]}: ${texts[index].trim().slice(0, 90)}`) + } + } + } + } + + for (const use of uses) { + const label = `${port}: ${use.symbol} ${use.command}${use.scope ? ` ${use.scope}` : ''}` + const ownGenerated = Boolean(generated && use.via && generated.evidence.every((cite, index) => use.evidence[index] === cite)) + chain({ label, at: port, atRevision: revision, use, ownGenerated }) + if (use.via) { + if (!use.via.revision) problems.push(`${label}: its via names no revision`) + else { + chain({ + label: `${label} (via ${use.via.port} ${use.via.symbol})`, at: use.via.port, atRevision: use.via.revision, + use: { symbol: use.via.symbol, command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed }, + }) + } + } + } + return problems +} diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs index 5e37ceb0a..114f0900f 100644 --- a/scripts/lib/tmux-usage-derive.mjs +++ b/scripts/lib/tmux-usage-derive.mjs @@ -24,6 +24,13 @@ export function classify(spec, flags) { return 'unknown' } +/** + * Whether a claim, an exclusion or a review is read against the source at `revision`. One without a `revision` holds + * for the revision its port's model was extracted at; one with a `revision` holds for the revision it starts with, + * which is how a wrapper that shares a repository with its core library reads the core where the wrapper is pinned. + */ +export const ruleHolds = (rule, revision, pinned) => (rule.revision ? revision.startsWith(rule.revision) : revision === pinned) + /** `panes(where:)`, `Server.panes` and `Server#list_panes` all name their last identifier. */ export function bareName(name) { // Kotlin and Scala quote a name that is also a keyword: Buffers.`set`. @@ -160,7 +167,7 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio * cannot take on trust, such as one that passes the depth a reviewed claim depends on. It then * stands only while that symbol sends the command at the same scope, and keeps that symbol's lines. * - * @typedef {{ at: string, has?: string[], in?: string }} Evidence + * @typedef {{ at: string, has?: string[], span?: number, in?: string }} Evidence * @typedef {{ port: string, symbol: string, command: string, scope: string | null, evidence: Evidence[], forwardable?: boolean, via?: { port: string, symbol: string } }} Claim * @param {{ * claims: Claim[], @@ -169,7 +176,7 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio * types: { file: string, name?: string, start: number, end: number }[], * symbols: UsageSymbol[], * readSource: (path: string) => string | undefined, - * sends?: (port: string, symbol: string, command: string, scope: string | null) => { evidence: string[], reviewed?: boolean } | undefined, + * sends?: (port: string, symbol: string, command: string, scope: string | null) => { evidence: string[], revision: string, reviewed?: boolean } | undefined, * }} input * @returns {{ entries: UsageEntry[], problems: string[] }} */ @@ -192,11 +199,14 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour let broken = false for (const item of claim.evidence) { const [file, line] = [item.at.slice(0, item.at.lastIndexOf(':')), Number(item.at.slice(item.at.lastIndexOf(':') + 1))] - const text = readSource(file) - const sourceLine = text?.split('\n')[line - 1] + const lines = readSource(file)?.split('\n') + const sourceLine = lines?.[line - 1] if (sourceLine === undefined) { fail(`${item.at} is not a line of the pinned source`); broken = true; continue } - for (const needle of item.has ?? []) { - if (!sourceLine.includes(needle)) { fail(`${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } + // A call that spans lines names its command a few lines below the call: the first text is on the cited + // line, which is the one that sends, and the rest are in the next `span` lines of the same statement. + const statement = lines.slice(line - 1, line - 1 + (item.span ?? 1)).join('\n') + for (const [position, needle] of (item.has ?? []).entries()) { + if (!(position === 0 ? sourceLine : statement).includes(needle)) { fail(`${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } } if (item.in !== undefined) { if (item.in !== claim.symbol) { fail(`${item.at} anchors to ${item.in}, not the claimed symbol`); broken = true; continue } @@ -217,7 +227,7 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour entries.push({ symbol: claim.symbol, command: claim.command, scope: claim.scope, evidence: claim.evidence.map((item) => item.at), hops: claim.evidence.length - 1, reviewed: true, ...(claim.forwardable ? { forwardable: true } : {}), - ...(core ? { via: { port: claim.via.port, symbol: claim.via.symbol, evidence: core.evidence, ...(core.reviewed ? { reviewed: true } : {}) } } : {}), + ...(core ? { via: { port: claim.via.port, symbol: claim.via.symbol, revision: core.revision, evidence: core.evidence, ...(core.reviewed ? { reviewed: true } : {}) } } : {}), }) } } @@ -232,7 +242,10 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour * show they build or record the command, which must still hold at the pinned source. An exclusion * that removes nothing has gone stale and fails, as a claim does. * - * @typedef {{ port: string, why: string, owner?: string, names?: string[], in?: string, evidence: Evidence[] }} Exclusion + * `commands` limits an exclusion to those commands of the symbols it names: a lookup that passes the name of a list + * command only to choose the format of its rows sends another command, and its other entries stay. + * + * @typedef {{ port: string, why: string, owner?: string, names?: string[], commands?: string[], in?: string, evidence: Evidence[] }} Exclusion * @param {{ * exclusions: Exclusion[], * found: Map, @@ -245,7 +258,7 @@ export function applyExclusions({ exclusions, found, symbols, readSource }) { const removed = [] const problems = [] for (const exclusion of exclusions) { - const label = `${exclusion.port}: exclusion of ${exclusion.owner ?? ''}${exclusion.names ? `.${exclusion.names.join('|')}` : ''}` + const label = `${exclusion.port}: exclusion of ${exclusion.owner ?? ''}${exclusion.names ? `.${exclusion.names.join('|')}` : ''}${exclusion.commands ? ` for ${exclusion.commands.join(',')}` : ''}` if (!exclusion.owner && !exclusion.names) { problems.push(`${label}: names neither an owner nor member names`); continue } if (!exclusion.evidence?.length) { problems.push(`${label}: cites no evidence`); continue } let broken = false @@ -263,7 +276,7 @@ export function applyExclusions({ exclusions, found, symbols, readSource }) { && (!exclusion.in || symbol.file.startsWith(exclusion.in))).map((symbol) => symbol.id)) let count = 0 for (const [key, entry] of found) { - if (matched.has(entry.symbol)) { found.delete(key); removed.push(entry); count++ } + if (matched.has(entry.symbol) && (!exclusion.commands || exclusion.commands.includes(entry.command))) { found.delete(key); removed.push(entry); count++ } } if (!count) problems.push(`${label}: removes no entry, so it is stale`) } diff --git a/scripts/lib/tmux-usage-forward.mjs b/scripts/lib/tmux-usage-forward.mjs index 4fbea606e..b30d68f3a 100644 --- a/scripts/lib/tmux-usage-forward.mjs +++ b/scripts/lib/tmux-usage-forward.mjs @@ -20,9 +20,10 @@ import { bareName, definitionsOf } from './tmux-usage-derive.mjs' * functions: import('./tmux-usage-derive.mjs').LocatedFunction[], * types: { file: string, name?: string, start: number, end: number }[], * symbols: WrapperSymbol[], - * core: { entries: CoreEntry[], symbols: Map }, + * core: { entries: CoreEntry[], symbols: Map, revision: string }, * generated?: { under: string[], evidence: string[], forwards: (entry: CoreEntry) => string | undefined }, * }} input + * `core.revision` is the revision the core lines were read at, and every entry says so in its `via`. * @returns {{ entries: object[], silent: string[] }} `silent` names the wrapper symbols that call no core sender. */ export function forwardUsage({ parent, functions, types, symbols, core, generated }) { @@ -40,7 +41,7 @@ export function forwardUsage({ parent, functions, types, symbols, core, generate const key = `${symbol.id}\0${entry.command}\0${entry.scope}` const result = { symbol: symbol.id, command: entry.command, scope: entry.scope, evidence, hops: 1, - via: { port: parent, symbol: entry.symbol, evidence: entry.evidence, ...(entry.reviewed ? { reviewed: true } : {}) }, + via: { port: parent, symbol: entry.symbol, revision: core.revision, evidence: entry.evidence, ...(entry.reviewed ? { reviewed: true } : {}) }, } if (!entries.has(key)) entries.set(key, result) forwarding.add(symbol.id) diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index 70be08307..cbe85239e 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -217,10 +217,12 @@ function recordCall(fn, name, receiver, line) { /** * A call that checks a command rather than runs it names it as a label: `validateArgument("select-layout", ...)` * says whose argument it is in the error it may raise, `newCommandError("new-session", result)` names the - * command a failure belongs to, and `ThrowIfFailed(result, "new-session")` says which command failed, and `preflight(ctx, "set-option", name)` checks a command before it is built. The verb ends at a word boundary, so `checkedRun` is a runner and - * `checkArguments` is not. + * command a failure belongs to, `ThrowIfFailed(result, "new-session")` says which command failed, `server.failed("show-environment", result)` + * builds the error to throw for it, `map_err(decode_error("new-window"))` names the command a decode error belongs to, and + * `preflight(ctx, "set-option", name)` checks a command before it is built. The verb ends at a word boundary, + * so `checkedRun` is a runner and `checkArguments` is not. */ -const CHECKING = /^(?:[Vv]alidate|[Vv]erify|[Ee]nsure|[Rr]eject|[Rr]equire|[Cc]heck|[Ii]nvalid|[Uu]nsupported|[Tt]hrow|[Pp]reflight)(?![a-z])|(?:Error|Failure|Exception)$/ +const CHECKING = /^(?:[Vv]alidate|[Vv]erify|[Ee]nsure|[Rr]eject|[Rr]equire|[Cc]heck|[Ii]nvalid|[Uu]nsupported|[Tt]hrow|[Pp]reflight|[Ff]ail(?:ed)?)(?![a-z])|(?:[Ee]rror|[Ff]ailure|[Ee]xception|refused_result)$/ /** Whether the nearest call around a literal only checks something about the command it names. */ function namedForChecking(grammar, node, CALL) { @@ -231,6 +233,30 @@ function namedForChecking(grammar, node, CALL) { return false } +/** + * Commands whose arguments are commands for tmux to run later, in the shell or in its own parser. A command named + * in their argument list is run by tmux when the outer command runs, and the library sends only the outer one: + * `["if-shell", "-F", cond, quoteCommand(["resize-pane", "-Z"])]` sends if-shell. + */ +const RUNS_COMMANDS = new Set(['if-shell', 'run-shell', 'set-hook', 'bind-key', 'command-prompt', 'confirm-before', 'display-menu', 'choose-tree', 'choose-buffer', 'choose-client', 'pipe-pane']) +/** Nodes that only wrap one element of an argument list or array. */ +const ELEMENTS = /^(?:argument|value_argument|literal_element|element|array_element|keyed_element|pair)$/ + +/** Whether a literal is a later argument of a group that opens with a command that runs commands. */ +function nestedInCommand(node, STR, commandOf) { + for (let child = node, cursor = node.parent; cursor && WRAPPERS.has(cursor.type); child = cursor, cursor = cursor.parent) { + const first = cursor.descendantsOfType([...STR]).find((literal) => { + let at = literal.parent + while (at && at.id !== cursor.id && ELEMENTS.test(at.type)) at = at.parent + return at?.id === cursor.id + }) + if (!first || first.id === node.id || child.startIndex <= first.startIndex) continue + const outer = commandOf(first) + if (outer && RUNS_COMMANDS.has(outer.command)) return true + } + return false +} + /** The part of a `case`, `when` or `match` arm that is tested against, as opposed to the part that runs. */ const LABELS = /^(?:switch_label|case_switch_label|case_pattern_switch_label|constant_pattern|match_pattern|when_condition|switch_pattern|case_pattern|case_label)$/ /** Arms whose tested part is a named field: the node under that field is the label. */ @@ -366,7 +392,8 @@ export async function scanSource({ grammar, text, commands, known }) { } const literal = commands.size && isCommandLiteral(node) - if (literal && commands.has(literal.command) && !inSignature(node) && !onWindowsOnlyPath(node) && !namedForChecking(grammar, node, CALL) && !isComparand(node)) { + if (literal && commands.has(literal.command) && !inSignature(node) && !onWindowsOnlyPath(node) && !namedForChecking(grammar, node, CALL) && !isComparand(node) + && !nestedInCommand(node, STR, isCommandLiteral)) { const { flags } = flagsAround(node, literal.command) const site = { command: literal.command, line: row(node), flags: [...flags].sort().join('') } ;(stack.at(-1)?.sites ?? orphans).push(site) diff --git a/scripts/lib/tmux-usage-sweep.mjs b/scripts/lib/tmux-usage-sweep.mjs index ea9d28af5..c1bca8201 100644 --- a/scripts/lib/tmux-usage-sweep.mjs +++ b/scripts/lib/tmux-usage-sweep.mjs @@ -103,9 +103,19 @@ const carriesOwn = (command, member) => memberWords(member).includes(singular(co /** * What a review says it covers: the symbols of one owner or by member name, for some commands, in some files. - * @typedef {{ port: string, kind: 'builds' | 'other-command' | 'values' | 'no-send', why: string, owner?: string, ownerSuffix?: string, names?: string[], commands?: string[], in?: string, evidence: { at: string, has?: string[] }[] }} Review + * + * An entry must hold on every tmux release the port supports at its revision. A method that sends one command on + * some releases and another on the rest is `version-gated`: it is recorded as neither, because each would be false + * on part of the supported range. Its review cites the gate, the branch it opens, the branch it closes, and the + * line that sets the supported floor below the gate, so the range the gate splits is shown to be supported. A gate + * the floor has moved past is not a review but a plain `other-command`: only the branch that remains is sent. + * + * @typedef {{ port: string, kind: 'builds' | 'other-command' | 'values' | 'no-send' | 'version-gated', why: string, owner?: string, ownerSuffix?: string, names?: string[], commands?: string[], in?: string, evidence: { at: string, has?: string[] }[] }} Review */ -export const REVIEW_KINDS = ['builds', 'other-command', 'values', 'no-send'] +export const REVIEW_KINDS = ['builds', 'other-command', 'values', 'no-send', 'version-gated'] + +/** A gate review shows the gate, both branches and the floor, each by the text that is on the cited line. */ +const GATE_EVIDENCE = 4 /** Whether a rule that names an owner, member names and a file prefix selects a candidate. */ export function selects(rule, candidate) { @@ -134,6 +144,10 @@ export function settleCandidates({ port, candidates, reviews, covering = [], rea if (!REVIEW_KINDS.includes(review.kind)) { problems.push(`${label}: kind ${JSON.stringify(review.kind)} is not one of ${REVIEW_KINDS.join(', ')}`); continue } if (!review.why?.trim()) { problems.push(`${label}: gives no reason`); continue } if (!review.evidence?.length) { problems.push(`${label}: cites no evidence`); continue } + if (review.kind === 'version-gated' && (review.evidence.length < GATE_EVIDENCE || review.evidence.some((item) => !item.has?.length))) { + problems.push(`${label}: a version-gated review cites the gate, both branches and the supported floor, ${GATE_EVIDENCE} lines at least, each with the text that shows it`) + continue + } let broken = false for (const item of readSource ? review.evidence : []) { const file = item.at.slice(0, item.at.lastIndexOf(':')) diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 745b10fb4..0b8d81cda 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -7,6 +7,12 @@ "command": "list-panes", "scope": "server", "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, { "at": "crates/libtmux/src/internal/listing.rs:204", "has": [ @@ -36,6 +42,12 @@ "command": "list-panes", "scope": "session", "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, { "at": "crates/libtmux/src/internal/listing.rs:204", "has": [ @@ -65,6 +77,12 @@ "command": "list-panes", "scope": "window", "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, { "at": "crates/libtmux/src/internal/listing.rs:204", "has": [ @@ -95,9 +113,27 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/pane/observe.rs:174", + "at": "crates/libtmux/src/pane.rs:1618", "has": [ - "capture-pane" + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1613", + "has": [ + "self.into_command(pane)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:169", + "has": [ + "options.lower(" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" ] }, { @@ -116,10 +152,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/pane/settings.rs:87", @@ -137,10 +175,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/internal/options.rs:206", @@ -164,10 +204,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/pane/settings.rs:147", @@ -185,10 +227,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:222", + "at": "crates/libtmux/src/internal/options.rs:220", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/pane/settings.rs:160", @@ -239,10 +283,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:102", @@ -260,10 +306,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/internal/options.rs:206", @@ -287,10 +335,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:222", + "at": "crates/libtmux/src/internal/options.rs:220", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:139", @@ -308,10 +358,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:155", @@ -329,10 +381,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/internal/options.rs:206", @@ -356,10 +410,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/environment.rs:47", + "at": "crates/libtmux/src/internal/environment.rs:45", "has": [ - "set-environment" - ] + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 }, { "at": "crates/libtmux/src/server/settings.rs:258", @@ -377,10 +433,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/environment.rs:76", + "at": "crates/libtmux/src/internal/environment.rs:74", "has": [ - "set-environment" - ] + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 }, { "at": "crates/libtmux/src/server/settings.rs:315", @@ -398,10 +456,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:376", @@ -419,10 +479,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:400", @@ -440,10 +502,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:222", + "at": "crates/libtmux/src/internal/options.rs:220", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:416", @@ -461,10 +525,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:431", @@ -482,10 +548,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/internal/options.rs:206", @@ -509,10 +577,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/session/settings.rs:90", @@ -530,10 +600,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/internal/options.rs:206", @@ -557,10 +629,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/session/settings.rs:170", @@ -578,10 +652,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:222", + "at": "crates/libtmux/src/internal/options.rs:220", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/session/settings.rs:190", @@ -599,10 +675,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/environment.rs:47", + "at": "crates/libtmux/src/internal/environment.rs:45", "has": [ - "set-environment" - ] + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 }, { "at": "crates/libtmux/src/session/settings.rs:373", @@ -620,10 +698,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/environment.rs:76", + "at": "crates/libtmux/src/internal/environment.rs:74", "has": [ - "set-environment" - ] + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 }, { "at": "crates/libtmux/src/session/settings.rs:538", @@ -641,10 +721,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/window/settings.rs:90", @@ -662,10 +744,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/internal/options.rs:206", @@ -689,10 +773,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:165", + "at": "crates/libtmux/src/internal/options.rs:172", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/window/settings.rs:150", @@ -710,10 +796,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:222", + "at": "crates/libtmux/src/internal/options.rs:220", "has": [ - "set-option" - ] + "run(", + "\"set-option\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/window/settings.rs:170", @@ -731,10 +819,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:266", + "at": "crates/libtmux/src/internal/options.rs:261", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/pane/settings.rs:177", @@ -752,10 +842,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:283", + "at": "crates/libtmux/src/internal/options.rs:278", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/pane/settings.rs:190", @@ -773,10 +865,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:266", + "at": "crates/libtmux/src/internal/options.rs:261", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:473", @@ -794,10 +888,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:283", + "at": "crates/libtmux/src/internal/options.rs:278", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/server/settings.rs:482", @@ -815,9 +911,9 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:582", + "at": "crates/libtmux/src/internal/options.rs:607", "has": [ - "Command::new(\"set-hook\")" + "run(core, \"set-hook\"" ] }, { @@ -836,10 +932,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:266", + "at": "crates/libtmux/src/internal/options.rs:261", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/session/settings.rs:207", @@ -857,10 +955,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:283", + "at": "crates/libtmux/src/internal/options.rs:278", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/session/settings.rs:220", @@ -878,9 +978,9 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:582", + "at": "crates/libtmux/src/internal/options.rs:607", "has": [ - "Command::new(\"set-hook\")" + "run(core, \"set-hook\"" ] }, { @@ -899,10 +999,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:266", + "at": "crates/libtmux/src/internal/options.rs:261", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/window/settings.rs:187", @@ -920,10 +1022,12 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:283", + "at": "crates/libtmux/src/internal/options.rs:278", "has": [ - "Command::new(\"set-hook\")" - ] + "run(", + "\"set-hook\"" + ], + "span": 3 }, { "at": "crates/libtmux/src/window/settings.rs:200", @@ -941,9 +1045,9 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/options.rs:582", + "at": "crates/libtmux/src/internal/options.rs:607", "has": [ - "Command::new(\"set-hook\")" + "run(core, \"set-hook\"" ] }, { @@ -961,6 +1065,12 @@ "command": "list-windows", "scope": "session", "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:160", + "has": [ + "list(core, LIST_COMMAND" + ] + }, { "at": "crates/libtmux/src/internal/listing.rs:156", "has": [ @@ -988,6 +1098,12 @@ "command": "list-windows", "scope": "session", "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:160", + "has": [ + "list(core, LIST_COMMAND" + ] + }, { "at": "crates/libtmux/src/internal/listing.rs:156", "has": [ @@ -1021,6 +1137,12 @@ "command": "list-panes", "scope": "window", "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, { "at": "crates/libtmux/src/internal/listing.rs:204", "has": [ @@ -1048,6 +1170,39 @@ } ] }, + { + "port": "rs", + "symbol": "pane.Pane.capture_with", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:1618", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1613", + "has": [ + "self.into_command(pane)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:169", + "has": [ + "options.lower(" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ], + "in": "pane.Pane.capture_with" + } + ] + }, { "port": "ts", "symbol": "server.Server.snapshot", @@ -1561,41 +1716,29 @@ }, { "port": "ts", - "symbol": "pane.Pane.killIfWindowUnshared", - "command": "kill-pane", + "symbol": "window.Window.nextLayout", + "command": "next-layout", "scope": null, "evidence": [ { - "at": "packages/libtmux/src/_internal/operations/plans.ts:195", - "has": [ - "[\"kill-pane\", \"-t\", target]" - ] - }, - { - "at": "packages/libtmux/src/_internal/operations/plans.ts:192", - "has": [ - "conditionalTargetMutation(" - ] - }, - { - "at": "packages/libtmux/src/_internal/operations/mutations.ts:86", + "at": "packages/libtmux/src/_internal/operations/topology.ts:412", "has": [ - "planKillPaneIfUnshared(target).argv" + "`${step}-layout`" ] }, { - "at": "packages/libtmux/src/pane.ts:255", + "at": "packages/libtmux/src/window.ts:318", "has": [ - "killPaneIfWindowUnshared(" + "cycleLayout(runtimeForHandle(this), this.id, \"next\")" ], - "in": "pane.Pane.killIfWindowUnshared" + "in": "window.Window.nextLayout" } ] }, { "port": "ts", - "symbol": "window.Window.nextLayout", - "command": "next-layout", + "symbol": "window.Window.previousLayout", + "command": "previous-layout", "scope": null, "evidence": [ { @@ -1605,32 +1748,44 @@ ] }, { - "at": "packages/libtmux/src/window.ts:318", + "at": "packages/libtmux/src/window.ts:329", "has": [ - "cycleLayout(runtimeForHandle(this), this.id, \"next\")" + "cycleLayout(runtimeForHandle(this), this.id, \"previous\")" ], - "in": "window.Window.nextLayout" + "in": "window.Window.previousLayout" } ] }, { "port": "ts", - "symbol": "window.Window.previousLayout", - "command": "previous-layout", + "symbol": "pane.Pane.killIfWindowUnshared", + "command": "if-shell", "scope": null, "evidence": [ { - "at": "packages/libtmux/src/_internal/operations/topology.ts:412", + "at": "packages/libtmux/src/_internal/operations/plans.ts:179", "has": [ - "`${step}-layout`" + "\"if-shell\"" ] }, { - "at": "packages/libtmux/src/window.ts:329", + "at": "packages/libtmux/src/_internal/operations/plans.ts:192", "has": [ - "cycleLayout(runtimeForHandle(this), this.id, \"previous\")" + "conditionalTargetMutation(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:86", + "has": [ + "planKillPaneIfUnshared(target).argv" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:255", + "has": [ + "killPaneIfWindowUnshared(" ], - "in": "window.Window.previousLayout" + "in": "pane.Pane.killIfWindowUnshared" } ] }, @@ -4357,40 +4512,108 @@ ] }, { - "port": "csharp", - "symbol": "LibTmux.Server.CaptureSnapshotAsync", - "command": "list-panes", - "scope": "server", + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.get", + "command": "show-environment", + "scope": null, + "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:120", - "has": [ - "\"list-panes\"", - "[\"-a\"" - ] - }, - { - "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:357", "has": [ - "ReadRowsAsync" + "command(\"show-environment\", tail)" ] }, { - "at": "src/LibTmux/Server.Snapshots.cs:119", + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:192", "has": [ - ".ReadAsync(live, depth, sessionFilter" + "showArgv(SHELL_FORM)" ] }, { - "at": "src/LibTmux/Server.Snapshots.cs:98", + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "has": [ - "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + "cmd(argv)" ] }, { - "at": "src/LibTmux/Server.Snapshots.cs:91", + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:85", "has": [ - "CaptureSnapshotAsync(depth, TimeProvider.System" + "entry(name)" + ], + "in": "io.github.libtmux.Environment.Environment.get" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.isRemoved", + "command": "show-environment", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "has": [ + "command(\"show-environment\", tail)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "has": [ + "showArgv(SHELL_FORM)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "has": [ + "cmd(argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:96", + "has": [ + "entry(name)" + ], + "in": "io.github.libtmux.Environment.Environment.isRemoved" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "has": [ + "\"list-panes\"", + "[\"-a\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" ], "in": "LibTmux.Server.CaptureSnapshotAsync" } @@ -4614,7 +4837,7 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Server.Clients.cs:36", + "at": "src/LibTmux/Server.Clients.cs:41", "has": [ ".FetchAsync(\"list-clients\"" ] @@ -4642,19 +4865,19 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Server.Lifecycle.cs:368", + "at": "src/LibTmux/Server.Lifecycle.cs:374", "has": [ "\"new-session\"" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:173", + "at": "src/LibTmux/Server.Lifecycle.cs:179", "has": [ "BuildNewSessionArguments(options" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:135", + "at": "src/LibTmux/Server.Lifecycle.cs:141", "has": [ "CreateSessionWithReceiptAsync(" ], @@ -4670,25 +4893,25 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Server.Lifecycle.cs:368", + "at": "src/LibTmux/Server.Lifecycle.cs:374", "has": [ "\"new-session\"" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:173", + "at": "src/LibTmux/Server.Lifecycle.cs:179", "has": [ "BuildNewSessionArguments(options" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:135", + "at": "src/LibTmux/Server.Lifecycle.cs:141", "has": [ "CreateSessionWithReceiptAsync(" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:328", + "at": "src/LibTmux/Server.Lifecycle.cs:334", "has": [ "CreateSessionAsync(request" ], @@ -4704,19 +4927,19 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:418", + "at": "src/LibTmux/Session.Lifecycle.cs:424", "has": [ "\"attach-session\"" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:352", + "at": "src/LibTmux/Server.Lifecycle.cs:358", "has": [ "Session.BuildAttachArguments(" ] }, { - "at": "src/LibTmux/Server.Lifecycle.cs:351", + "at": "src/LibTmux/Server.Lifecycle.cs:357", "has": [ "Dispatch(" ], @@ -4732,25 +4955,25 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:464", + "at": "src/LibTmux/Session.Lifecycle.cs:470", "has": [ "\"new-window\"" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:337", + "at": "src/LibTmux/Session.Lifecycle.cs:343", "has": [ "BuildNewWindowArguments(" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:336", + "at": "src/LibTmux/Session.Lifecycle.cs:342", "has": [ "_commandDispatcher.ExecuteAsync(" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:289", + "at": "src/LibTmux/Session.Lifecycle.cs:295", "has": [ "CreateWindowCoreAsync(" ], @@ -4766,25 +4989,25 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:464", + "at": "src/LibTmux/Session.Lifecycle.cs:470", "has": [ "\"new-window\"" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:337", + "at": "src/LibTmux/Session.Lifecycle.cs:343", "has": [ "BuildNewWindowArguments(" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:336", + "at": "src/LibTmux/Session.Lifecycle.cs:342", "has": [ "_commandDispatcher.ExecuteAsync(" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:315", + "at": "src/LibTmux/Session.Lifecycle.cs:321", "has": [ "CreateWindowCoreAsync(" ], @@ -4800,25 +5023,25 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:464", + "at": "src/LibTmux/Session.Lifecycle.cs:470", "has": [ "\"new-window\"" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:337", + "at": "src/LibTmux/Session.Lifecycle.cs:343", "has": [ "BuildNewWindowArguments(" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:336", + "at": "src/LibTmux/Session.Lifecycle.cs:342", "has": [ "_commandDispatcher.ExecuteAsync(" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:289", + "at": "src/LibTmux/Session.Lifecycle.cs:295", "has": [ "CreateWindowCoreAsync(" ] @@ -4854,225 +5077,6 @@ } ] }, - { - "port": "csharp", - "symbol": "LibTmux.Server.FindWindowAsync", - "command": "list-windows", - "scope": "server", - "evidence": [ - { - "at": "src/LibTmux/Server.Identity.cs:268", - "has": [ - "\"list-windows\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "has": [ - "[\"-a\"]" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "has": [ - "FetchAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", - "has": [ - "ReadFromListingAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/RelationReader.cs:53", - "has": [ - ".FetchOneAsync(listCommand" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:266", - "has": [ - "RelationReader.FindAsync(" - ], - "in": "LibTmux.Server.FindWindowAsync" - } - ] - }, - { - "port": "csharp", - "symbol": "LibTmux.Server.FindPaneAsync", - "command": "list-panes", - "scope": "server", - "evidence": [ - { - "at": "src/LibTmux/Server.Identity.cs:305", - "has": [ - "\"list-panes\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "has": [ - "[\"-a\"]" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "has": [ - "FetchAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", - "has": [ - "ReadFromListingAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/RelationReader.cs:53", - "has": [ - ".FetchOneAsync(listCommand" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:303", - "has": [ - "RelationReader.FindAsync(" - ], - "in": "LibTmux.Server.FindPaneAsync" - } - ] - }, - { - "port": "csharp", - "symbol": "LibTmux.Server.GetSessionAsync", - "command": "list-sessions", - "scope": null, - "evidence": [ - { - "at": "src/LibTmux/Server.Identity.cs:231", - "has": [ - "\"list-sessions\"" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:229", - "has": [ - "RelationReader.FindAsync(" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:214", - "has": [ - "FindSessionAsync(id" - ], - "in": "LibTmux.Server.GetSessionAsync" - } - ] - }, - { - "port": "csharp", - "symbol": "LibTmux.Server.GetWindowAsync", - "command": "list-windows", - "scope": "server", - "evidence": [ - { - "at": "src/LibTmux/Server.Identity.cs:268", - "has": [ - "\"list-windows\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "has": [ - "[\"-a\"]" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "has": [ - "FetchAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", - "has": [ - "ReadFromListingAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/RelationReader.cs:53", - "has": [ - ".FetchOneAsync(listCommand" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:266", - "has": [ - "RelationReader.FindAsync(" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:251", - "has": [ - "FindWindowAsync(id" - ], - "in": "LibTmux.Server.GetWindowAsync" - } - ] - }, - { - "port": "csharp", - "symbol": "LibTmux.Server.GetPaneAsync", - "command": "list-panes", - "scope": "server", - "evidence": [ - { - "at": "src/LibTmux/Server.Identity.cs:305", - "has": [ - "\"list-panes\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "has": [ - "[\"-a\"]" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "has": [ - "FetchAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", - "has": [ - "ReadFromListingAsync(" - ] - }, - { - "at": "src/LibTmux/Materialization/RelationReader.cs:53", - "has": [ - ".FetchOneAsync(listCommand" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:303", - "has": [ - "RelationReader.FindAsync(" - ] - }, - { - "at": "src/LibTmux/Server.Identity.cs:288", - "has": [ - "FindPaneAsync(id" - ], - "in": "LibTmux.Server.GetPaneAsync" - } - ] - }, { "port": "csharp", "symbol": "LibTmux.Session.GetWindowAsync", @@ -5134,13 +5138,13 @@ "scope": null, "evidence": [ { - "at": "src/LibTmux/Server.Clients.cs:36", + "at": "src/LibTmux/Server.Clients.cs:41", "has": [ ".FetchAsync(\"list-clients\"" ] }, { - "at": "src/LibTmux/Server.Clients.cs:22", + "at": "src/LibTmux/Server.Clients.cs:27", "has": [ "ReadClientsAsync(" ] @@ -5161,13 +5165,13 @@ "scope": null, "evidence": [ { - "at": "src/LibTmux/Server.Clients.cs:36", + "at": "src/LibTmux/Server.Clients.cs:41", "has": [ ".FetchAsync(\"list-clients\"" ] }, { - "at": "src/LibTmux/Server.Clients.cs:22", + "at": "src/LibTmux/Server.Clients.cs:27", "has": [ "ReadClientsAsync(" ] @@ -5221,13 +5225,13 @@ "scope": null, "evidence": [ { - "at": "src/LibTmux/Server.Clients.cs:36", + "at": "src/LibTmux/Server.Clients.cs:41", "has": [ ".FetchAsync(\"list-clients\"" ] }, { - "at": "src/LibTmux/Server.Clients.cs:22", + "at": "src/LibTmux/Server.Clients.cs:27", "has": [ "ReadClientsAsync(" ] @@ -5281,13 +5285,13 @@ "scope": null, "evidence": [ { - "at": "src/LibTmux/Server.Clients.cs:36", + "at": "src/LibTmux/Server.Clients.cs:41", "has": [ ".FetchAsync(\"list-clients\"" ] }, { - "at": "src/LibTmux/Server.Clients.cs:22", + "at": "src/LibTmux/Server.Clients.cs:27", "has": [ "ReadClientsAsync(" ] @@ -5459,13 +5463,13 @@ "forwardable": true, "evidence": [ { - "at": "src/LibTmux/Server.Clients.cs:36", + "at": "src/LibTmux/Server.Clients.cs:41", "has": [ ".FetchAsync(\"list-clients\"" ] }, { - "at": "src/LibTmux/Server.Clients.cs:22", + "at": "src/LibTmux/Server.Clients.cs:27", "has": [ "ReadClientsAsync(" ] @@ -5480,65 +5484,404 @@ ] }, { - "port": "fsharp", - "symbol": "LibTmux.FSharp.Server.newSession", - "command": "list-panes", - "scope": "window", - "via": { - "port": "csharp", - "symbol": "LibTmux.Window.GetPanesAsync" - }, + "port": "csharp", + "symbol": "LibTmux.Server.FindSessionAsync", + "command": "display-message", + "scope": null, "evidence": [ { - "at": "src/LibTmux.FSharp/Hierarchy.fs:99", + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", "has": [ - "session.CreateWindowAsync(" + "\"display-message\"" ] }, { - "at": "src/LibTmux.FSharp/Hierarchy.fs:109", + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", "has": [ - "created.GetPanesAsync(" + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:229", + "has": [ + "RelationReader.FindAsync(" ], - "in": "LibTmux.FSharp.Server.newSession" + "in": "LibTmux.Server.FindSessionAsync" } ] }, { - "port": "fsharp", - "symbol": "LibTmux.FSharp.Server.tryFindWindow", - "command": "list-windows", - "scope": "server", - "via": { - "port": "csharp", - "symbol": "LibTmux.Server.FindWindowAsync" - }, + "port": "csharp", + "symbol": "LibTmux.Server.GetSessionAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:229", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:214", + "has": [ + "FindSessionAsync(" + ], + "in": "LibTmux.Server.GetSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindWindowAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:266", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetWindowAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:266", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:251", + "has": [ + "FindWindowAsync(" + ], + "in": "LibTmux.Server.GetWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindPaneAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:303", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetPaneAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:303", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:288", + "has": [ + "FindPaneAsync(" + ], + "in": "LibTmux.Server.GetPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.SetAsync", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:214", + "has": [ + "[\"set-hook\"]" + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:244", + "has": [ + "BuildSetArguments(request)" + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:247", + "has": [ + "DispatchAsync(arguments" + ], + "in": "LibTmux.TmuxHooks.SetAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendTextAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:196", + "has": [ + "SendKeysAsync(keys, token)" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:130", + "has": [ + "SendKeysAndWaitAsync(" + ], + "in": "LibTmux.Pane.SendTextAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendKeysAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, "evidence": [ { - "at": "src/LibTmux.FSharp/Hierarchy.fs:126", + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", "has": [ - "server.FindWindowAsync(" + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:196", + "has": [ + "SendKeysAsync(keys, token)" ], - "in": "LibTmux.FSharp.Server.tryFindWindow" + "in": "LibTmux.Pane.SendKeysAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Server.CreateSessionAsync", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:269", + "has": [ + "yield return \"new-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:147", + "has": [ + "BuildNewSessionArguments(options)" + ], + "in": "LibTmux.Server.CreateSessionAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Session.CreateWindowAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:396", + "has": [ + "yield return \"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:289", + "has": [ + "BuildNewWindowArguments(options" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:288", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ], + "in": "LibTmux.Session.CreateWindowAsync" } ] }, { "port": "fsharp", - "symbol": "LibTmux.FSharp.Server.tryFindPane", + "symbol": "LibTmux.FSharp.Server.newSession", "command": "list-panes", - "scope": "server", + "scope": "window", "via": { "port": "csharp", - "symbol": "LibTmux.Server.FindPaneAsync" + "symbol": "LibTmux.Window.GetPanesAsync" }, "evidence": [ { - "at": "src/LibTmux.FSharp/Hierarchy.fs:132", + "at": "src/LibTmux.FSharp/Hierarchy.fs:109", "has": [ - "server.FindPaneAsync(" + "created.GetPanesAsync(" ], - "in": "LibTmux.FSharp.Server.tryFindPane" + "in": "LibTmux.FSharp.Server.newSession" } ] }, @@ -5850,6 +6193,48 @@ } ] }, + { + "port": "julia", + "symbol": "LibTmux.resize_pane", + "command": "resize-pane", + "scope": null, + "evidence": [ + { + "at": "src/control_topology.jl:92", + "has": [ + "\"resize-pane\"" + ] + }, + { + "at": "src/control_topology.jl:102", + "has": [ + "_control_topology_effect(context, args)" + ], + "in": "LibTmux.resize_pane" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.resize_window", + "command": "resize-window", + "scope": null, + "evidence": [ + { + "at": "src/control_topology.jl:92", + "has": [ + "\"resize-window\"" + ] + }, + { + "at": "src/control_topology.jl:102", + "has": [ + "_control_topology_effect(context, args)" + ], + "in": "LibTmux.resize_window" + } + ] + }, { "port": "lua", "symbol": "libtmux.Pane:capture", @@ -8267,54 +8652,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.options.OptionsMixin._show_options_dict", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ], - "in": "libtmux.options.OptionsMixin._show_options_dict" - } - ] - }, - { - "port": "py", - "symbol": "libtmux.options.OptionsMixin._show_options", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ] - }, - { - "at": "src/libtmux/options.py:977", - "has": [ - "_show_options_dict(" - ], - "in": "libtmux.options.OptionsMixin._show_options" - } - ] - }, { "port": "py", "symbol": "libtmux.options.OptionsMixin.show_options", @@ -8348,27 +8685,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.options.OptionsMixin._show_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:1134", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:1185", - "has": [ - "_show_option_raw(" - ], - "in": "libtmux.options.OptionsMixin._show_option" - } - ] - }, { "port": "py", "symbol": "libtmux.options.OptionsMixin.show_option", @@ -8437,103 +8753,55 @@ }, { "at": "src/libtmux/options.py:977", - "has": [ - "_show_options_dict(" - ] - }, - { - "at": "src/libtmux/options.py:1037", - "has": [ - "_show_options(" - ] - }, - { - "at": "src/libtmux/window.py:1849", - "has": [ - "show_options(" - ], - "in": "libtmux.Window.show_window_options" - } - ] - }, - { - "port": "py", - "symbol": "libtmux.Window.show_window_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:1134", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:1185", - "has": [ - "_show_option_raw(" - ] - }, - { - "at": "src/libtmux/options.py:1296", - "has": [ - "_show_option(" - ] - }, - { - "at": "src/libtmux/window.py:1872", - "has": [ - "show_option(" - ], - "in": "libtmux.Window.show_window_option" - } - ] - }, - { - "port": "py", - "symbol": "libtmux.Pane._show_options_dict", - "command": "show-options", - "scope": null, - "evidence": [ + "has": [ + "_show_options_dict(" + ] + }, { - "at": "src/libtmux/options.py:886", + "at": "src/libtmux/options.py:1037", "has": [ - "show-options" + "_show_options(" ] }, { - "at": "src/libtmux/options.py:928", + "at": "src/libtmux/window.py:1849", "has": [ - "_show_options_raw(" + "show_options(" ], - "in": "libtmux.Pane._show_options_dict" + "in": "libtmux.Window.show_window_options" } ] }, { "port": "py", - "symbol": "libtmux.Pane._show_options", + "symbol": "libtmux.Window.show_window_option", "command": "show-options", "scope": null, "evidence": [ { - "at": "src/libtmux/options.py:886", + "at": "src/libtmux/options.py:1134", "has": [ "show-options" ] }, { - "at": "src/libtmux/options.py:928", + "at": "src/libtmux/options.py:1185", "has": [ - "_show_options_raw(" + "_show_option_raw(" ] }, { - "at": "src/libtmux/options.py:977", + "at": "src/libtmux/options.py:1296", "has": [ - "_show_options_dict(" + "_show_option(" + ] + }, + { + "at": "src/libtmux/window.py:1872", + "has": [ + "show_option(" ], - "in": "libtmux.Pane._show_options" + "in": "libtmux.Window.show_window_option" } ] }, @@ -8570,27 +8838,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Pane._show_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:1134", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:1185", - "has": [ - "_show_option_raw(" - ], - "in": "libtmux.Pane._show_option" - } - ] - }, { "port": "py", "symbol": "libtmux.Pane.show_option", @@ -8660,54 +8907,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Server._show_options_dict", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ], - "in": "libtmux.Server._show_options_dict" - } - ] - }, - { - "port": "py", - "symbol": "libtmux.Server._show_options", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ] - }, - { - "at": "src/libtmux/options.py:977", - "has": [ - "_show_options_dict(" - ], - "in": "libtmux.Server._show_options" - } - ] - }, { "port": "py", "symbol": "libtmux.Server.show_options", @@ -8741,27 +8940,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Server._show_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:1134", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:1185", - "has": [ - "_show_option_raw(" - ], - "in": "libtmux.Server._show_option" - } - ] - }, { "port": "py", "symbol": "libtmux.Server.show_option", @@ -8831,54 +9009,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Session._show_options_dict", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ], - "in": "libtmux.Session._show_options_dict" - } - ] - }, - { - "port": "py", - "symbol": "libtmux.Session._show_options", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ] - }, - { - "at": "src/libtmux/options.py:977", - "has": [ - "_show_options_dict(" - ], - "in": "libtmux.Session._show_options" - } - ] - }, { "port": "py", "symbol": "libtmux.Session.show_options", @@ -8912,27 +9042,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Session._show_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:1134", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:1185", - "has": [ - "_show_option_raw(" - ], - "in": "libtmux.Session._show_option" - } - ] - }, { "port": "py", "symbol": "libtmux.Session.show_option", @@ -9002,54 +9111,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Window._show_options_dict", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ], - "in": "libtmux.Window._show_options_dict" - } - ] - }, - { - "port": "py", - "symbol": "libtmux.Window._show_options", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:886", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:928", - "has": [ - "_show_options_raw(" - ] - }, - { - "at": "src/libtmux/options.py:977", - "has": [ - "_show_options_dict(" - ], - "in": "libtmux.Window._show_options" - } - ] - }, { "port": "py", "symbol": "libtmux.Window.show_options", @@ -9083,27 +9144,6 @@ } ] }, - { - "port": "py", - "symbol": "libtmux.Window._show_option", - "command": "show-options", - "scope": null, - "evidence": [ - { - "at": "src/libtmux/options.py:1134", - "has": [ - "show-options" - ] - }, - { - "at": "src/libtmux/options.py:1185", - "has": [ - "_show_option_raw(" - ], - "in": "libtmux.Window._show_option" - } - ] - }, { "port": "py", "symbol": "libtmux.Window.show_option", @@ -9236,6 +9276,33 @@ } ] }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "if-shell", + "scope": null, + "evidence": [ + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1289", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1451", + "has": [ + "break_out_unnamed(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, { "port": "kotlin", "symbol": "io.github.libtmux.kotlin.Options.get", diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index 975403983..b45653c4a 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -160,6 +160,255 @@ ] } ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "FindSessionAsync", + "GetSessionAsync", + "FindWindowAsync", + "GetWindowAsync", + "FindPaneAsync", + "GetPaneAsync", + "CreateSessionWithReceiptAsync" + ], + "commands": [ + "list-sessions", + "list-windows", + "list-panes" + ], + "why": "A lookup by id passes the name of a list command only to pick the format of the row it reads; it sends display-message -p -t, and the fallback that listed with -a below tmux 3.3 is gone with the 3.3a floor.", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:231", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:124", + "has": [ + "CreateProjection(listCommand)" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "owner": "Server", + "names": [ + "FindSessionAsync", + "GetSessionAsync", + "FindWindowAsync", + "GetWindowAsync", + "FindPaneAsync", + "GetPaneAsync", + "CreateSessionAsync" + ], + "commands": [ + "list-sessions", + "list-windows", + "list-panes" + ], + "why": "A lookup by id passes the name of a list command only to pick the format of its row. It lists with -a only below tmux 3.3 and sends display-message from 3.3, and this revision supports 3.2a, so no one command holds on every supported release.", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:152", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:77", + "has": [ + "!TmuxCapabilities.IsSupported(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:79", + "has": [ + "\"missing_target_format_safety\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:81", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:179", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Constants/TmuxConstants.cs:6", + "has": [ + "Parse(\"3.2a\")" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Session", + "names": [ + "RefreshAsync" + ], + "commands": [ + "list-sessions" + ], + "why": "A session refreshes itself by id and passes the name of a list command only to pick the format of the row; it sends display-message -p -t, and the fallback that listed below tmux 3.3 is gone with the 3.3a floor.", + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:52", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:124", + "has": [ + "CreateProjection(listCommand)" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "owner": "Session", + "names": [ + "RefreshAsync" + ], + "commands": [ + "list-sessions" + ], + "why": "A session refreshes itself by id and passes the name of a list command only to pick the format of the row. It lists with -a only below tmux 3.3 and sends display-message from 3.3, and this revision supports 3.2a, so no one command holds on every supported release.", + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:46", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:77", + "has": [ + "!TmuxCapabilities.IsSupported(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:81", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:179", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Constants/TmuxConstants.cs:6", + "has": [ + "Parse(\"3.2a\")" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "Start" + ], + "commands": [ + "wait-for" + ], + "why": "The signal is the command of a pane-died hook: Start sends set-hook, and tmux runs wait-for -S when the pane dies.", + "evidence": [ + { + "at": "tmux/session_run.go:162", + "has": [ + "SetHook(ctx, \"pane-died\", \"wait-for -S \"" + ] + } + ] + }, + { + "port": "java", + "owner": "Server", + "names": [ + "control" + ], + "commands": [ + "display-message" + ], + "why": "The identity read is the then-branch of the fence's if-shell, so Server.control sends if-shell and tmux runs display-message.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:836", + "has": [ + "fence.guarded(captured, \"display-message" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:77", + "has": [ + "List.of(\"if-shell\", \"-F\", condition, command, stale)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "break_out" + ], + "commands": [ + "break-pane", + "display-message", + "rename-window" + ], + "why": "Both branches are the then and else commands of the if-shell that break_out sends; tmux runs them.", + "evidence": [ + { + "at": "src/entities.cpp:1279", + "has": [ + "\"break-pane -d -s \"" + ] + }, + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1366", + "has": [ + "\"rename-window -t \"" + ] + } + ] } ] } diff --git a/scripts/tmux-usage/not-senders.json b/scripts/tmux-usage/not-senders.json index 3b992adce..c6d27f1b9 100644 --- a/scripts/tmux-usage/not-senders.json +++ b/scripts/tmux-usage/not-senders.json @@ -89,7 +89,7 @@ "why": "FindWindowAsync sends find-window, which has its own entry; it does not list panes or windows.", "evidence": [ { - "at": "src/LibTmux/Pane.Display.cs:136", + "at": "src/LibTmux/Pane.Display.cs:135", "has": [ "\"find-window\"" ] @@ -211,7 +211,7 @@ "why": "ClearPromptHistoryAsync sends clear-prompt-history, and not clear-history.", "evidence": [ { - "at": "src/LibTmux/Server.Interaction.cs:98", + "at": "src/LibTmux/Server.Interaction.cs:70", "has": [ "\"clear-prompt-history\"" ] @@ -228,18 +228,18 @@ "find-window" ], "kind": "other-command", - "why": "FindWindowAsync reads one window by id with list-windows -a or display-message; it does not send find-window.", + "why": "FindWindowAsync reads one window by id with display-message -p -t; it does not send find-window.", "evidence": [ { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", "has": [ - "\"list-windows\"" + "\"display-message\"" ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:191", + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", "has": [ - "\"display-message\"" + "ReadAsync(" ] } ] @@ -325,13 +325,13 @@ "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:163", + "at": "src/LibTmux/Session.Lifecycle.cs:169", "has": [ "\"next-window\"" ] }, { - "at": "src/LibTmux/Session.Lifecycle.cs:176", + "at": "src/LibTmux/Session.Lifecycle.cs:182", "has": [ "\"previous-window\"" ] @@ -1762,26 +1762,6 @@ } ] }, - { - "port": "julia", - "owner": "OwnedServer", - "names": [ - "_lock" - ], - "commands": [ - "lock-server" - ], - "kind": "values", - "why": "_lock is the lock field of an OwnedServer, not a command.", - "evidence": [ - { - "at": "src/lifecycle.jl:57", - "has": [ - "_lock::ReentrantLock" - ] - } - ] - }, { "port": "kotlin", "owner": "Client", @@ -4411,6 +4391,98 @@ ] } ] + }, + { + "port": "fsharp", + "owner": "Server", + "names": [ + "tryFindSession", + "tryFindWindow", + "tryFindPane" + ], + "commands": [ + "list-sessions", + "list-windows", + "list-panes" + ], + "kind": "version-gated", + "why": "The lookups call FindSessionAsync, FindWindowAsync and FindPaneAsync, which list with -a below tmux 3.3 and send display-message from 3.3. This revision supports 3.2a, so neither command holds on every supported release.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:120", + "has": [ + "server.FindSessionAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:126", + "has": [ + "server.FindWindowAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:132", + "has": [ + "server.FindPaneAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:77", + "has": [ + "!TmuxCapabilities.IsSupported(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:81", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:179", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Constants/TmuxConstants.cs:6", + "has": [ + "Parse(\"3.2a\")" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "killIfWindowUnshared" + ], + "commands": [ + "kill-pane" + ], + "kind": "other-command", + "why": "The kill-pane is quoted into the then-branch of an if-shell; the method sends if-shell and tmux runs kill-pane when the condition holds.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:195", + "has": [ + "[\"kill-pane\", \"-t\", target]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:184", + "has": [ + "quoteCommand(command)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:179", + "has": [ + "\"if-shell\"" + ] + } + ] } ] } diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json index 50325215b..0c55941a1 100644 --- a/site/src/data/tmux-usage/csharp.json +++ b/site/src/data/tmux-usage/csharp.json @@ -94,15 +94,15 @@ ], "port": "csharp", "repo": "libtmux/libtmux-dotnet", - "revision": "ec8b6ab2a4f65e23664f43fba538ba200d4ae8bc", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "schemaVersion": 1, "symbols": { "LibTmux.Client.GetAsync": [ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", "src/LibTmux/Client.Administration.cs:79" ], "reviewed": true, @@ -113,8 +113,8 @@ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", "src/LibTmux/Client.Administration.cs:114", "src/LibTmux/Client.Administration.cs:172" ], @@ -136,8 +136,8 @@ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", "src/LibTmux/Client.Administration.cs:114", "src/LibTmux/Client.Administration.cs:156" ], @@ -159,8 +159,8 @@ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", "src/LibTmux/Client.Administration.cs:114", "src/LibTmux/Client.Administration.cs:164" ], @@ -182,8 +182,8 @@ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", "src/LibTmux/Client.Administration.cs:114" ], "forwardable": true, @@ -240,7 +240,7 @@ { "command": "choose-buffer", "evidence": [ - "src/LibTmux/Pane.Display.cs:348" + "src/LibTmux/Pane.Display.cs:335" ], "scope": null } @@ -249,7 +249,7 @@ { "command": "choose-client", "evidence": [ - "src/LibTmux/Pane.Display.cs:354" + "src/LibTmux/Pane.Display.cs:341" ], "scope": null } @@ -258,8 +258,8 @@ { "command": "choose-tree", "evidence": [ - "src/LibTmux/Pane.Display.cs:61", - "src/LibTmux/Pane.Display.cs:365" + "src/LibTmux/Pane.Display.cs:60", + "src/LibTmux/Pane.Display.cs:352" ], "scope": null } @@ -286,7 +286,7 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Pane.Display.cs:240" + "src/LibTmux/Pane.Display.cs:227" ], "scope": null } @@ -295,7 +295,7 @@ { "command": "display-panes", "evidence": [ - "src/LibTmux/Pane.Display.cs:199" + "src/LibTmux/Pane.Display.cs:198" ], "scope": null } @@ -304,8 +304,8 @@ { "command": "display-popup", "evidence": [ - "src/LibTmux/Pane.Display.cs:20", - "src/LibTmux/Pane.Display.cs:181" + "src/LibTmux/Pane.Display.cs:19", + "src/LibTmux/Pane.Display.cs:180" ], "scope": null } @@ -323,7 +323,7 @@ { "command": "clock-mode", "evidence": [ - "src/LibTmux/Pane.Display.cs:335" + "src/LibTmux/Pane.Display.cs:322" ], "scope": null } @@ -332,8 +332,8 @@ { "command": "copy-mode", "evidence": [ - "src/LibTmux/Pane.Display.cs:104", - "src/LibTmux/Pane.Display.cs:327" + "src/LibTmux/Pane.Display.cs:103", + "src/LibTmux/Pane.Display.cs:314" ], "scope": null } @@ -342,7 +342,7 @@ { "command": "customize-mode", "evidence": [ - "src/LibTmux/Pane.Display.cs:341" + "src/LibTmux/Pane.Display.cs:328" ], "scope": null } @@ -351,8 +351,8 @@ { "command": "find-window", "evidence": [ - "src/LibTmux/Pane.Display.cs:136", - "src/LibTmux/Pane.Display.cs:378" + "src/LibTmux/Pane.Display.cs:135", + "src/LibTmux/Pane.Display.cs:365" ], "scope": null } @@ -547,9 +547,9 @@ { "command": "attach-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:418", - "src/LibTmux/Server.Lifecycle.cs:352", - "src/LibTmux/Server.Lifecycle.cs:351" + "src/LibTmux/Session.Lifecycle.cs:424", + "src/LibTmux/Server.Lifecycle.cs:358", + "src/LibTmux/Server.Lifecycle.cs:357" ], "forwardable": true, "reviewed": true, @@ -599,7 +599,7 @@ { "command": "clear-prompt-history", "evidence": [ - "src/LibTmux/Server.Interaction.cs:98" + "src/LibTmux/Server.Interaction.cs:70" ], "scope": null } @@ -608,8 +608,8 @@ { "command": "server-access", "evidence": [ - "src/LibTmux/Server.Administration.cs:19", - "src/LibTmux/Server.Administration.cs:45" + "src/LibTmux/Server.Administration.cs:12", + "src/LibTmux/Server.Administration.cs:37" ], "scope": null } @@ -618,8 +618,8 @@ { "command": "confirm-before", "evidence": [ - "src/LibTmux/Server.Interaction.cs:132", - "src/LibTmux/Server.Interaction.cs:167" + "src/LibTmux/Server.Interaction.cs:102", + "src/LibTmux/Server.Interaction.cs:137" ], "scope": null } @@ -628,8 +628,8 @@ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:291", - "src/LibTmux/Server.Lifecycle.cs:256" + "src/LibTmux/Server.Lifecycle.cs:297", + "src/LibTmux/Server.Lifecycle.cs:262" ], "scope": null } @@ -638,10 +638,10 @@ { "command": "new-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:368", - "src/LibTmux/Server.Lifecycle.cs:173", - "src/LibTmux/Server.Lifecycle.cs:135", - "src/LibTmux/Server.Lifecycle.cs:328" + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:141", + "src/LibTmux/Server.Lifecycle.cs:334" ], "forwardable": true, "reviewed": true, @@ -652,9 +652,9 @@ { "command": "new-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:368", - "src/LibTmux/Server.Lifecycle.cs:173", - "src/LibTmux/Server.Lifecycle.cs:135" + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:141" ], "forwardable": true, "reviewed": true, @@ -662,18 +662,11 @@ } ], "LibTmux.Server.CreateSessionWithReceiptAsync": [ - { - "command": "list-sessions", - "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:208" - ], - "scope": null - }, { "command": "new-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:368", - "src/LibTmux/Server.Lifecycle.cs:173" + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179" ], "scope": null } @@ -682,8 +675,8 @@ { "command": "detach-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:172", - "src/LibTmux/Server.Clients.cs:68" + "src/LibTmux/Server.Clients.cs:177", + "src/LibTmux/Server.Clients.cs:73" ], "scope": null } @@ -692,8 +685,8 @@ { "command": "detach-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:172", - "src/LibTmux/Server.Clients.cs:50" + "src/LibTmux/Server.Clients.cs:177", + "src/LibTmux/Server.Clients.cs:55" ], "scope": null } @@ -702,8 +695,8 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Server.Display.cs:19", - "src/LibTmux/Server.Display.cs:72" + "src/LibTmux/Server.Display.cs:18", + "src/LibTmux/Server.Display.cs:62" ], "scope": null } @@ -712,55 +705,56 @@ { "command": "refresh-client", "evidence": [ - "src/LibTmux/Server.ControlMode.cs:70" + "src/LibTmux/Server.ControlMode.cs:84", + "src/LibTmux/Server.ControlMode.cs:32" ], "scope": null } ], "LibTmux.Server.FindPaneAsync": [ { - "command": "list-panes", + "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:305", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", "src/LibTmux/Materialization/RelationReader.cs:53", "src/LibTmux/Server.Identity.cs:303" ], "reviewed": true, - "scope": "server" + "scope": null } ], "LibTmux.Server.FindSessionAsync": [ { - "command": "list-sessions", + "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:231" + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:229" ], + "reviewed": true, "scope": null } ], "LibTmux.Server.FindWindowAsync": [ { - "command": "list-windows", + "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:268", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", "src/LibTmux/Materialization/RelationReader.cs:53", "src/LibTmux/Server.Identity.cs:266" ], "reviewed": true, - "scope": "server" + "scope": null } ], "LibTmux.Server.GetAttachedSessionsAsync": [ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Server.Collections.cs:35" + "src/LibTmux/Server.Collections.cs:38" ], "scope": null } @@ -769,8 +763,8 @@ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22" + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27" ], "scope": null } @@ -779,7 +773,7 @@ { "command": "list-commands", "evidence": [ - "src/LibTmux/Server.Administration.cs:112" + "src/LibTmux/Server.Administration.cs:104" ], "scope": null } @@ -788,32 +782,30 @@ { "command": "show-messages", "evidence": [ - "src/LibTmux/Server.Administration.cs:93" + "src/LibTmux/Server.Administration.cs:85" ], "scope": null } ], "LibTmux.Server.GetPaneAsync": [ { - "command": "list-panes", + "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:305", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", "src/LibTmux/Materialization/RelationReader.cs:53", "src/LibTmux/Server.Identity.cs:303", "src/LibTmux/Server.Identity.cs:288" ], "reviewed": true, - "scope": "server" + "scope": null } ], "LibTmux.Server.GetPanesAsync": [ { "command": "list-panes", "evidence": [ - "src/LibTmux/Server.Collections.cs:72" + "src/LibTmux/Server.Collections.cs:75" ], "scope": "server" } @@ -822,16 +814,18 @@ { "command": "show-prompt-history", "evidence": [ - "src/LibTmux/Server.Interaction.cs:117" + "src/LibTmux/Server.Interaction.cs:87" ], "scope": null } ], "LibTmux.Server.GetSessionAsync": [ { - "command": "list-sessions", + "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:231", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", "src/LibTmux/Server.Identity.cs:229", "src/LibTmux/Server.Identity.cs:214" ], @@ -850,25 +844,23 @@ ], "LibTmux.Server.GetWindowAsync": [ { - "command": "list-windows", + "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:268", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", "src/LibTmux/Materialization/RelationReader.cs:53", "src/LibTmux/Server.Identity.cs:266", "src/LibTmux/Server.Identity.cs:251" ], "reviewed": true, - "scope": "server" + "scope": null } ], "LibTmux.Server.GetWindowsAsync": [ { "command": "list-windows", "evidence": [ - "src/LibTmux/Server.Collections.cs:58" + "src/LibTmux/Server.Collections.cs:61" ], "scope": "server" } @@ -877,7 +869,7 @@ { "command": "has-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:114" + "src/LibTmux/Server.Lifecycle.cs:120" ], "scope": null } @@ -905,7 +897,7 @@ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:40" + "src/LibTmux/Server.Lifecycle.cs:44" ], "scope": null } @@ -914,7 +906,7 @@ { "command": "kill-server", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:69" + "src/LibTmux/Server.Lifecycle.cs:75" ], "scope": null } @@ -923,7 +915,7 @@ { "command": "kill-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:90" + "src/LibTmux/Server.Lifecycle.cs:96" ], "scope": null } @@ -932,7 +924,7 @@ { "command": "lock-server", "evidence": [ - "src/LibTmux/Server.Administration.cs:80" + "src/LibTmux/Server.Administration.cs:72" ], "scope": null } @@ -941,7 +933,7 @@ { "command": "lock-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:77" + "src/LibTmux/Server.Clients.cs:82" ], "scope": null } @@ -950,7 +942,7 @@ { "command": "refresh-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:102" + "src/LibTmux/Server.Clients.cs:107" ], "scope": null } @@ -969,7 +961,7 @@ { "command": "list-clients", "evidence": [ - "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:41", "src/LibTmux/Server.Queries.cs:41", "src/LibTmux/Query/NativeFilterSearch.cs:68" ], @@ -1009,8 +1001,8 @@ { "command": "command-prompt", "evidence": [ - "src/LibTmux/Server.Interaction.cs:32", - "src/LibTmux/Server.Interaction.cs:82" + "src/LibTmux/Server.Interaction.cs:11", + "src/LibTmux/Server.Interaction.cs:58" ], "scope": null } @@ -1019,8 +1011,8 @@ { "command": "display-menu", "evidence": [ - "src/LibTmux/Server.Interaction.cs:178", - "src/LibTmux/Server.Interaction.cs:228" + "src/LibTmux/Server.Interaction.cs:148", + "src/LibTmux/Server.Interaction.cs:198" ], "scope": null } @@ -1029,7 +1021,7 @@ { "command": "source-file", "evidence": [ - "src/LibTmux/Server.Administration.cs:67" + "src/LibTmux/Server.Administration.cs:59" ], "scope": null } @@ -1047,7 +1039,7 @@ { "command": "suspend-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:86" + "src/LibTmux/Server.Clients.cs:91" ], "scope": null } @@ -1056,7 +1048,7 @@ { "command": "switch-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:121" + "src/LibTmux/Server.Clients.cs:126" ], "scope": null } @@ -1065,7 +1057,7 @@ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:55" + "src/LibTmux/Server.Lifecycle.cs:61" ], "scope": null } @@ -1080,22 +1072,12 @@ "scope": null } ], - "LibTmux.ServerMirror.OpenAsync": [ - { - "command": "refresh-client", - "evidence": [ - "src/LibTmux/Snapshots/ServerMirror.cs:294", - "src/LibTmux/Snapshots/ServerMirror.cs:157" - ], - "scope": null - } - ], "LibTmux.Session.AttachAsync": [ { "command": "attach-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:418", - "src/LibTmux/Session.Lifecycle.cs:273" + "src/LibTmux/Session.Lifecycle.cs:424", + "src/LibTmux/Session.Lifecycle.cs:279" ], "scope": null } @@ -1104,10 +1086,10 @@ { "command": "new-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:464", - "src/LibTmux/Session.Lifecycle.cs:337", - "src/LibTmux/Session.Lifecycle.cs:336", - "src/LibTmux/Session.Lifecycle.cs:289", + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:295", "src/LibTmux/Session.WindowNavigation.cs:32" ], "forwardable": true, @@ -1119,10 +1101,10 @@ { "command": "new-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:464", - "src/LibTmux/Session.Lifecycle.cs:337", - "src/LibTmux/Session.Lifecycle.cs:336", - "src/LibTmux/Session.Lifecycle.cs:289" + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:295" ], "forwardable": true, "reviewed": true, @@ -1133,10 +1115,10 @@ { "command": "new-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:464", - "src/LibTmux/Session.Lifecycle.cs:337", - "src/LibTmux/Session.Lifecycle.cs:336", - "src/LibTmux/Session.Lifecycle.cs:315" + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:321" ], "forwardable": true, "reviewed": true, @@ -1147,7 +1129,7 @@ { "command": "detach-client", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:136" + "src/LibTmux/Session.Lifecycle.cs:142" ], "scope": null } @@ -1204,7 +1186,7 @@ { "command": "kill-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:95" + "src/LibTmux/Session.Lifecycle.cs:101" ], "scope": null } @@ -1213,7 +1195,7 @@ { "command": "kill-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:189" + "src/LibTmux/Session.Lifecycle.cs:195" ], "scope": null } @@ -1222,16 +1204,7 @@ { "command": "lock-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:120" - ], - "scope": null - } - ], - "LibTmux.Session.RefreshAsync": [ - { - "command": "list-sessions", - "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:46" + "src/LibTmux/Session.Lifecycle.cs:126" ], "scope": null } @@ -1240,7 +1213,7 @@ { "command": "rename-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:73" + "src/LibTmux/Session.Lifecycle.cs:79" ], "scope": null } @@ -1249,7 +1222,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:239" + "src/LibTmux/Session.Lifecycle.cs:245" ], "scope": "session" } @@ -1258,7 +1231,7 @@ { "command": "list-windows", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:218" + "src/LibTmux/Session.Lifecycle.cs:224" ], "scope": "session" } @@ -1276,7 +1249,7 @@ { "command": "next-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:163" + "src/LibTmux/Session.Lifecycle.cs:169" ], "scope": null } @@ -1285,7 +1258,7 @@ { "command": "previous-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:176" + "src/LibTmux/Session.Lifecycle.cs:182" ], "scope": null } @@ -1294,7 +1267,7 @@ { "command": "select-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:151" + "src/LibTmux/Session.Lifecycle.cs:157" ], "scope": null } @@ -1303,7 +1276,7 @@ { "command": "switch-client", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:199" + "src/LibTmux/Session.Lifecycle.cs:205" ], "scope": null } @@ -1463,8 +1436,11 @@ { "command": "set-hook", "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:285" + "src/LibTmux/Hooks/TmuxHooks.cs:214", + "src/LibTmux/Hooks/TmuxHooks.cs:244", + "src/LibTmux/Hooks/TmuxHooks.cs:247" ], + "reviewed": true, "scope": null } ], @@ -1574,7 +1550,7 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Window.Display.cs:50" + "src/LibTmux/Window.Display.cs:38" ], "scope": null } diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json index 369d005f7..31d1f3dbd 100644 --- a/site/src/data/tmux-usage/cxx.json +++ b/site/src/data/tmux-usage/cxx.json @@ -178,36 +178,14 @@ } ], "libtmux::Pane::break_out": [ - { - "command": "break-pane", - "evidence": [ - "src/entities.cpp:1279", - "src/entities.cpp:1451" - ], - "scope": null - }, - { - "command": "display-message", - "evidence": [ - "src/entities.cpp:1281", - "src/entities.cpp:1451" - ], - "scope": null - }, { "command": "if-shell", "evidence": [ - "src/entities.cpp:1283", + "src/entities.cpp:1287", + "src/entities.cpp:1289", "src/entities.cpp:1451" ], - "scope": null - }, - { - "command": "rename-window", - "evidence": [ - "src/entities.cpp:1366", - "src/entities.cpp:1452" - ], + "reviewed": true, "scope": null } ], diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json index 2d9ed48d0..6d5b8c886 100644 --- a/site/src/data/tmux-usage/fsharp.json +++ b/site/src/data/tmux-usage/fsharp.json @@ -106,9 +106,10 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.ControlMode.cs:70" + "src/LibTmux/Server.ControlMode.cs:69" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Server.EnterControlModeAsync" } } @@ -122,9 +123,10 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.ControlMode.cs:70" + "src/LibTmux/Server.ControlMode.cs:69" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Server.EnterControlModeAsync" } } @@ -138,10 +140,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Snapshots/ServerMirror.cs:294", - "src/LibTmux/Snapshots/ServerMirror.cs:157" + "src/LibTmux/Snapshots/ServerMirror.cs:278", + "src/LibTmux/Snapshots/ServerMirror.cs:145" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.ServerMirror.OpenAsync" } } @@ -155,10 +158,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Snapshots/ServerMirror.cs:294", - "src/LibTmux/Snapshots/ServerMirror.cs:157" + "src/LibTmux/Snapshots/ServerMirror.cs:278", + "src/LibTmux/Snapshots/ServerMirror.cs:145" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.ServerMirror.OpenAsync" } } @@ -177,6 +181,7 @@ "src/LibTmux/Options/TmuxOptions.cs:82" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.TmuxOptions.GetAsync" } } @@ -191,10 +196,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:170", - "src/LibTmux/Options/TmuxOptions.cs:200" + "src/LibTmux/Options/TmuxOptions.cs:167", + "src/LibTmux/Options/TmuxOptions.cs:197" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.TmuxOptions.SetAsync" } } @@ -208,10 +214,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Capture.cs:144", + "src/LibTmux/Pane.Capture.cs:87", "src/LibTmux/Pane.Capture.cs:18" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Pane.CaptureAsync" } } @@ -229,11 +236,12 @@ "src/LibTmux/Pane.Input.cs:71", "src/LibTmux/Pane.Input.cs:94", "src/LibTmux/Pane.Input.cs:100", - "src/LibTmux/Pane.Waiting.cs:169", - "src/LibTmux/Pane.Waiting.cs:103" + "src/LibTmux/Pane.Waiting.cs:196", + "src/LibTmux/Pane.Waiting.cs:130" ], "port": "csharp", "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Pane.SendTextAndWaitAsync" } } @@ -251,10 +259,11 @@ "src/LibTmux/Pane.Input.cs:71", "src/LibTmux/Pane.Input.cs:94", "src/LibTmux/Pane.Input.cs:100", - "src/LibTmux/Pane.Waiting.cs:169" + "src/LibTmux/Pane.Waiting.cs:196" ], "port": "csharp", "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Pane.SendKeysAndWaitAsync" } } @@ -272,6 +281,7 @@ "src/LibTmux/Pane.Input.cs:94" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Pane.SendKeysAsync" } } @@ -285,14 +295,31 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Topology.cs:232" + "src/LibTmux/Pane.Topology.cs:231" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Pane.SplitAsync" } } ], "LibTmux.FSharp.Server.newSession": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:99" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:336", + "src/LibTmux/Session.Lifecycle.cs:284" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Session.CreateWindowAsync" + } + }, { "command": "list-panes", "evidence": [ @@ -304,13 +331,13 @@ "src/LibTmux/Session.Relations.cs:167" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Session.GetPanesAsync" } }, { "command": "list-panes", "evidence": [ - "src/LibTmux.FSharp/Hierarchy.fs:99", "src/LibTmux.FSharp/Hierarchy.fs:109" ], "reviewed": true, @@ -320,23 +347,10 @@ "src/LibTmux/Window.Relations.cs:123" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Window.GetPanesAsync" } }, - { - "command": "list-sessions", - "evidence": [ - "src/LibTmux.FSharp/Hierarchy.fs:112" - ], - "scope": null, - "via": { - "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:46" - ], - "port": "csharp", - "symbol": "LibTmux.Session.RefreshAsync" - } - }, { "command": "new-session", "evidence": [ @@ -345,12 +359,12 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:368", - "src/LibTmux/Server.Lifecycle.cs:173", - "src/LibTmux/Server.Lifecycle.cs:135" + "src/LibTmux/Server.Lifecycle.cs:269", + "src/LibTmux/Server.Lifecycle.cs:147" ], "port": "csharp", "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Server.CreateSessionAsync" } }, @@ -362,13 +376,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:464", - "src/LibTmux/Session.Lifecycle.cs:337", - "src/LibTmux/Session.Lifecycle.cs:336", - "src/LibTmux/Session.Lifecycle.cs:289" + "src/LibTmux/Session.Lifecycle.cs:396", + "src/LibTmux/Session.Lifecycle.cs:289", + "src/LibTmux/Session.Lifecycle.cs:288" ], "port": "csharp", "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Session.CreateWindowAsync" } } @@ -386,71 +400,10 @@ "src/LibTmux/Server.Clients.cs:22" ], "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Server.GetClientsAsync" } } - ], - "LibTmux.FSharp.Server.tryFindPane": [ - { - "command": "list-panes", - "evidence": [ - "src/LibTmux.FSharp/Hierarchy.fs:132" - ], - "reviewed": true, - "scope": "server", - "via": { - "evidence": [ - "src/LibTmux/Server.Identity.cs:305", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", - "src/LibTmux/Materialization/RelationReader.cs:53", - "src/LibTmux/Server.Identity.cs:303" - ], - "port": "csharp", - "reviewed": true, - "symbol": "LibTmux.Server.FindPaneAsync" - } - } - ], - "LibTmux.FSharp.Server.tryFindSession": [ - { - "command": "list-sessions", - "evidence": [ - "src/LibTmux.FSharp/Hierarchy.fs:120" - ], - "scope": null, - "via": { - "evidence": [ - "src/LibTmux/Server.Identity.cs:231" - ], - "port": "csharp", - "symbol": "LibTmux.Server.FindSessionAsync" - } - } - ], - "LibTmux.FSharp.Server.tryFindWindow": [ - { - "command": "list-windows", - "evidence": [ - "src/LibTmux.FSharp/Hierarchy.fs:126" - ], - "reviewed": true, - "scope": "server", - "via": { - "evidence": [ - "src/LibTmux/Server.Identity.cs:268", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:136", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:137", - "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:93", - "src/LibTmux/Materialization/RelationReader.cs:53", - "src/LibTmux/Server.Identity.cs:266" - ], - "port": "csharp", - "reviewed": true, - "symbol": "LibTmux.Server.FindWindowAsync" - } - } ] } } diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 97edd5d97..7373eb838 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -1683,15 +1683,6 @@ "scope": null } ], - "tmux.Session.Start": [ - { - "command": "wait-for", - "evidence": [ - "tmux/session_run.go:162" - ], - "scope": null - } - ], "tmux.Session.SwitchClient": [ { "command": "switch-client", diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index 69d426b73..8fb3cbff7 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -275,9 +275,13 @@ { "command": "show-environment", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "libtmux/src/main/java/io/github/libtmux/Environment.java:85" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -285,9 +289,13 @@ { "command": "show-environment", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "libtmux/src/main/java/io/github/libtmux/Environment.java:96" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -402,14 +410,6 @@ "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:129" ], "scope": null - }, - { - "command": "kill-server", - "evidence": [ - "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", - "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:129" - ], - "scope": null } ], "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own": [ @@ -902,15 +902,6 @@ "scope": null } ], - "io.github.libtmux.Server.Server.control": [ - { - "command": "display-message", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:836" - ], - "scope": null - } - ], "io.github.libtmux.Server.Server.expand": [ { "command": "display-message", diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 5cecf058a..791c86fe2 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -449,8 +449,10 @@ { "command": "resize-pane", "evidence": [ - "src/control_topology.jl:100" + "src/control_topology.jl:92", + "src/control_topology.jl:102" ], + "reviewed": true, "scope": null } ], @@ -458,8 +460,10 @@ { "command": "resize-window", "evidence": [ - "src/control_topology.jl:100" + "src/control_topology.jl:92", + "src/control_topology.jl:102" ], + "reviewed": true, "scope": null } ], diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 5f602c19a..08e9a4629 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -111,6 +111,7 @@ "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.batch.Batch.Batch.run" } } @@ -128,6 +129,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.set" } } @@ -145,6 +147,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.delete" } } @@ -162,6 +165,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.list" } } @@ -179,6 +183,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.load" } } @@ -196,6 +201,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.save" } } @@ -213,6 +219,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.show" } } @@ -230,6 +237,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:48" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.detach" } } @@ -247,6 +255,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:54" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.detachOthers" } } @@ -264,6 +273,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:80" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.redraw" } } @@ -281,6 +291,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:69" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.switchTo" } } @@ -298,6 +309,7 @@ "libtmux/src/main/java/io/github/libtmux/Commands.java:21" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Commands.Commands.list" } } @@ -315,6 +327,7 @@ "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:473" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.control.ControlClient.ControlClient.unwatch" } } @@ -332,6 +345,7 @@ "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:454" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.control.ControlClient.ControlClient.watch" } } @@ -346,10 +360,14 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "libtmux/src/main/java/io/github/libtmux/Environment.java:85" ], "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.get" } } @@ -368,6 +386,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:156" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.set" } } @@ -382,10 +401,14 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "libtmux/src/main/java/io/github/libtmux/Environment.java:96" ], "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.isRemoved" } } @@ -404,6 +427,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:179" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.remove" } } @@ -422,6 +446,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:162" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.setExpanded" } } @@ -440,6 +465,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:168" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.unset" } } @@ -457,6 +483,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.set" } } @@ -474,6 +501,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.all" } } @@ -491,6 +519,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.append" } } @@ -508,6 +537,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.run" } } @@ -525,6 +555,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.unset" } } @@ -542,6 +573,7 @@ "libtmux/src/main/java/io/github/libtmux/Keys.java:57" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Keys.Keys.bind" } } @@ -559,6 +591,7 @@ "libtmux/src/main/java/io/github/libtmux/Keys.java:88" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Keys.Keys.list" } } @@ -576,6 +609,7 @@ "libtmux/src/main/java/io/github/libtmux/Keys.java:69" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Keys.Keys.unbind" } } @@ -593,6 +627,7 @@ "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.MessageLog.MessageLog.lines" } } @@ -611,6 +646,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.all" } }, @@ -627,6 +663,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.all" } } @@ -644,6 +681,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:349" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.append" } } @@ -662,6 +700,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.effective" } }, @@ -678,6 +717,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.effective" } } @@ -695,6 +735,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:93" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.get" } } @@ -712,6 +753,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:325" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.set" } } @@ -729,6 +771,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:364" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.setExpanded" } } @@ -746,6 +789,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:338" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.setIfAbsent" } } @@ -763,6 +807,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:370" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.unset" } } @@ -781,6 +826,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.breakOut" } }, @@ -797,6 +843,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.breakOut" } } @@ -817,6 +864,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.capture" } } @@ -834,6 +882,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.clearHistory" } } @@ -851,6 +900,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:227" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.copyMode" } } @@ -868,6 +918,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:254" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.exitMode" } } @@ -885,6 +936,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:737" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.expand" } } @@ -902,6 +954,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.joinTo" } } @@ -919,6 +972,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.kill" } } @@ -936,6 +990,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:975" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" } }, @@ -951,6 +1006,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:979" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" } } @@ -968,6 +1024,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:930" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" } } @@ -985,6 +1042,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:810" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.pipeTo" } } @@ -1002,6 +1060,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:215" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.resize" } } @@ -1019,6 +1078,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:285" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.resizeTo" } } @@ -1036,6 +1096,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:757" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.respawn" } } @@ -1056,6 +1117,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.respawnIn" } } @@ -1073,6 +1135,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:275" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.retitle" } } @@ -1090,6 +1153,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:260" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.select" } } @@ -1112,6 +1176,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.send" } } @@ -1130,6 +1195,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" } }, @@ -1146,6 +1212,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:576" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" } } @@ -1168,6 +1235,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLine" } } @@ -1186,6 +1254,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" } }, @@ -1202,6 +1271,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:617" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" } } @@ -1223,6 +1293,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.split" } } @@ -1240,6 +1311,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:816" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.stopPiping" } } @@ -1257,6 +1329,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.swapWith" } } @@ -1274,6 +1347,7 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.clear" } }, @@ -1290,6 +1364,7 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.clear" } } @@ -1307,6 +1382,7 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.history" } } @@ -1324,6 +1400,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:415" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.expand" } } @@ -1341,6 +1418,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:216" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.isAlive" } } @@ -1358,6 +1436,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:314" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killServer" } }, @@ -1373,6 +1452,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:314" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killServer" } } @@ -1390,6 +1470,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:192" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killSession" } } @@ -1407,6 +1488,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:447" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.lock" } } @@ -1427,6 +1509,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.newSession" } } @@ -1444,6 +1527,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:538" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.paneFields" } } @@ -1461,6 +1545,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:998" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.panes" } } @@ -1478,6 +1563,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:228" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.requireAlive" } } @@ -1495,6 +1581,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:905" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.sessions" } } @@ -1515,6 +1602,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.snapshot" } } @@ -1532,6 +1620,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:626" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.sourceFile" } } @@ -1549,6 +1638,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:960" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.windows" } } @@ -1566,6 +1656,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:135" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.detachClients" } } @@ -1583,6 +1674,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:252" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.expand" } } @@ -1600,6 +1692,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:271" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.kill" } } @@ -1617,6 +1710,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:129" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.lastWindow" } } @@ -1637,6 +1731,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.newWindow" } } @@ -1654,6 +1749,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:112" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.nextWindow" } } @@ -1671,6 +1767,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:118" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.previousWindow" } } @@ -1688,6 +1785,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:264" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.rename" } } @@ -1705,6 +1803,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:104" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.selectWindow" } } @@ -1722,6 +1821,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:55" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.capturing" } } @@ -1739,6 +1839,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:68" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.choose" } } @@ -1756,6 +1857,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:36" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.run" } } @@ -1773,6 +1875,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:376" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.applyLayout" } } @@ -1790,6 +1893,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:397" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.displayPopup" } } @@ -1807,6 +1911,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:209" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.expand" } } @@ -1824,6 +1929,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:403" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.kill" } } @@ -1841,6 +1947,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:236" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.linkTo" } } @@ -1858,6 +1965,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:257" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.moveTo" } } @@ -1875,6 +1983,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:329" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.nextLayout" } } @@ -1892,6 +2001,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:335" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.previousLayout" } } @@ -1909,6 +2019,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:225" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.rename" } } @@ -1926,6 +2037,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:281" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.resizeTo" } } @@ -1943,6 +2055,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:382" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.respawn" } } @@ -1960,6 +2073,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:311" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.rotate" } } @@ -1977,6 +2091,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:116" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.select" } } @@ -1994,6 +2109,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:323" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.selectLayout" } } @@ -2015,6 +2131,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.split" } } @@ -2032,25 +2149,10 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:246" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.unlink" } } - ], - "io.github.libtmux.kotlin.withControl": [ - { - "command": "display-message", - "evidence": [ - "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt:36" - ], - "scope": null, - "via": { - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:836" - ], - "port": "java", - "symbol": "io.github.libtmux.Server.Server.control" - } - } ] } } diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json index 889d83e9d..b8ceb2b9e 100644 --- a/site/src/data/tmux-usage/powershell.json +++ b/site/src/data/tmux-usage/powershell.json @@ -94,7 +94,7 @@ ], "port": "powershell", "repo": "libtmux/libtmux-powershell", - "revision": "b06c64f844f3173de66b187eaeaf3915814318c6", + "revision": "00a482f6be0f3b24a0c2bf52018efe401aef8c13", "schemaVersion": 1, "symbols": { "LibTmux\\Connect-TmuxControl": [ @@ -106,9 +106,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.ControlMode.cs:70" + "src/LibTmux/Server.ControlMode.cs:84", + "src/LibTmux/Server.ControlMode.cs:32" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.EnterControlModeAsync" } } @@ -122,10 +124,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:418", - "src/LibTmux/Session.Lifecycle.cs:273" + "src/LibTmux/Session.Lifecycle.cs:424", + "src/LibTmux/Session.Lifecycle.cs:279" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Session.AttachAsync" } } @@ -139,10 +142,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22" + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.GetClientsAsync" } } @@ -157,12 +161,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.Clients.cs:36", - "src/LibTmux/Server.Clients.cs:22", + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", "src/LibTmux/Client.Administration.cs:114" ], "port": "csharp", "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Client.ResolveAttachmentAsync" } } @@ -180,6 +185,7 @@ "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:67" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.TmuxEnvironment.GetAllAsync" } } @@ -198,6 +204,7 @@ "src/LibTmux/Hooks/TmuxHooks.cs:118" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.TmuxHooks.GetAllAsync" } } @@ -215,6 +222,7 @@ "src/LibTmux/Options/TmuxOptions.cs:155" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.TmuxOptions.GetAllAsync" } } @@ -237,6 +245,7 @@ ], "port": "csharp", "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.CaptureSnapshotAsync" } }, @@ -251,6 +260,7 @@ "src/LibTmux/Session.Relations.cs:167" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Session.GetPanesAsync" } }, @@ -265,6 +275,7 @@ "src/LibTmux/Window.Relations.cs:123" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.GetPanesAsync" } } @@ -282,6 +293,7 @@ "src/LibTmux/Pane.Capture.cs:18" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.CaptureAsync" } } @@ -298,6 +310,7 @@ "src/LibTmux/Server.Identity.cs:122" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.InspectAsync" } } @@ -320,6 +333,7 @@ ], "port": "csharp", "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.CaptureSnapshotAsync" } } @@ -336,6 +350,7 @@ "src/LibTmux/Session.Relations.cs:153" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Session.GetWindowsAsync" } } @@ -353,6 +368,7 @@ "src/LibTmux/Window.Move.cs:53" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.MoveAsync" } }, @@ -368,6 +384,7 @@ "src/LibTmux/Window.Move.cs:31" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.MoveAsync" } }, @@ -383,6 +400,7 @@ "src/LibTmux/Window.Move.cs:29" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.MoveAsync" } } @@ -396,12 +414,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:368", - "src/LibTmux/Server.Lifecycle.cs:173", - "src/LibTmux/Server.Lifecycle.cs:135" + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:141" ], "port": "csharp", "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.CreateSessionAsync" } } @@ -415,13 +434,14 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:464", - "src/LibTmux/Session.Lifecycle.cs:337", - "src/LibTmux/Session.Lifecycle.cs:336", - "src/LibTmux/Session.Lifecycle.cs:289" + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:295" ], "port": "csharp", "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Session.CreateWindowAsync" } } @@ -439,6 +459,7 @@ "src/LibTmux/Window.Links.cs:53" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.LinkAsync" } } @@ -455,6 +476,7 @@ "src/LibTmux/Pane.Topology.cs:292" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.KillAsync" } } @@ -468,9 +490,10 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:95" + "src/LibTmux/Session.Lifecycle.cs:101" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Session.KillAsync" } } @@ -487,6 +510,7 @@ "src/LibTmux/Window.Lifecycle.cs:56" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.KillAsync" } } @@ -504,6 +528,7 @@ "src/LibTmux/Window.Links.cs:69" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.UnlinkAsync" } } @@ -534,6 +559,7 @@ "src/LibTmux/Pane.Input.cs:94" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.SendKeysAsync" } } @@ -552,6 +578,7 @@ "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:127" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.TmuxEnvironment.SetAsync" } } @@ -567,9 +594,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:285" + "src/LibTmux/Hooks/TmuxHooks.cs:214", + "src/LibTmux/Hooks/TmuxHooks.cs:244", + "src/LibTmux/Hooks/TmuxHooks.cs:247" ], "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.TmuxHooks.SetAsync" } } @@ -587,6 +618,7 @@ "src/LibTmux/Window.Layout.cs:102" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.SelectLayoutAsync" } } @@ -606,6 +638,7 @@ "src/LibTmux/Options/TmuxOptions.cs:200" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.TmuxOptions.SetAsync" } } @@ -623,6 +656,7 @@ "src/LibTmux/Pane.Topology.cs:334" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.ResizeAsync" } } @@ -640,6 +674,7 @@ "src/LibTmux/Window.Layout.cs:24" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Window.ResizeAsync" } } @@ -656,6 +691,7 @@ "src/LibTmux/Pane.Topology.cs:232" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.SplitAsync" } } @@ -669,9 +705,11 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.ControlMode.cs:70" + "src/LibTmux/Server.ControlMode.cs:84", + "src/LibTmux/Server.ControlMode.cs:32" ], "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Server.EnterControlModeAsync" } } diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json index 6d70dc017..14561ec90 100644 --- a/site/src/data/tmux-usage/py.json +++ b/site/src/data/tmux-usage/py.json @@ -97,15 +97,6 @@ "revision": "8e0ce38400618bd783e6276270dd7f5d8cb283ea", "schemaVersion": 1, "symbols": { - "libtmux._internal.control_mode.ControlMode.__enter__": [ - { - "command": "attach-session", - "evidence": [ - "src/libtmux/_internal/control_mode.py:78" - ], - "scope": null - } - ], "libtmux.Client.from_client_name": [ { "command": "list-clients", @@ -178,15 +169,6 @@ "scope": null } ], - "libtmux.hooks.HooksMixin._show_hook": [ - { - "command": "show-hooks", - "evidence": [ - "src/libtmux/hooks.py:364" - ], - "scope": null - } - ], "libtmux.hooks.HooksMixin.run_hook": [ { "command": "set-hook", @@ -245,58 +227,6 @@ "scope": null } ], - "libtmux.options.OptionsMixin._show_option": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134", - "src/libtmux/options.py:1185" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.options.OptionsMixin._show_option_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134" - ], - "scope": null - } - ], - "libtmux.options.OptionsMixin._show_options": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928", - "src/libtmux/options.py:977" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.options.OptionsMixin._show_options_dict": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.options.OptionsMixin._show_options_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886" - ], - "scope": null - } - ], "libtmux.options.OptionsMixin.set_option": [ { "command": "set-option", @@ -340,67 +270,6 @@ "scope": null } ], - "libtmux.Pane._show_hook": [ - { - "command": "show-hooks", - "evidence": [ - "src/libtmux/hooks.py:364" - ], - "scope": null - } - ], - "libtmux.Pane._show_option": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134", - "src/libtmux/options.py:1185" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Pane._show_option_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134" - ], - "scope": null - } - ], - "libtmux.Pane._show_options": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928", - "src/libtmux/options.py:977" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Pane._show_options_dict": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Pane._show_options_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886" - ], - "scope": null - } - ], "libtmux.Pane.break_pane": [ { "command": "break-pane", @@ -788,67 +657,6 @@ "scope": null } ], - "libtmux.Server._show_hook": [ - { - "command": "show-hooks", - "evidence": [ - "src/libtmux/hooks.py:364" - ], - "scope": null - } - ], - "libtmux.Server._show_option": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134", - "src/libtmux/options.py:1185" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Server._show_option_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134" - ], - "scope": null - } - ], - "libtmux.Server._show_options": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928", - "src/libtmux/options.py:977" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Server._show_options_dict": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Server._show_options_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886" - ], - "scope": null - } - ], "libtmux.Server.attach_session": [ { "command": "attach-session", @@ -1414,67 +1222,6 @@ "scope": "server" } ], - "libtmux.Session._show_hook": [ - { - "command": "show-hooks", - "evidence": [ - "src/libtmux/hooks.py:364" - ], - "scope": null - } - ], - "libtmux.Session._show_option": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134", - "src/libtmux/options.py:1185" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Session._show_option_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134" - ], - "scope": null - } - ], - "libtmux.Session._show_options": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928", - "src/libtmux/options.py:977" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Session._show_options_dict": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Session._show_options_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886" - ], - "scope": null - } - ], "libtmux.Session.attach": [ { "command": "attach-session", @@ -1783,67 +1530,6 @@ "scope": "session" } ], - "libtmux.Window._show_hook": [ - { - "command": "show-hooks", - "evidence": [ - "src/libtmux/hooks.py:364" - ], - "scope": null - } - ], - "libtmux.Window._show_option": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134", - "src/libtmux/options.py:1185" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Window._show_option_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:1134" - ], - "scope": null - } - ], - "libtmux.Window._show_options": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928", - "src/libtmux/options.py:977" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Window._show_options_dict": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886", - "src/libtmux/options.py:928" - ], - "reviewed": true, - "scope": null - } - ], - "libtmux.Window._show_options_raw": [ - { - "command": "show-options", - "evidence": [ - "src/libtmux/options.py:886" - ], - "scope": null - } - ], "libtmux.Window.display_message": [ { "command": "display-message", diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json index 260179512..a3df40614 100644 --- a/site/src/data/tmux-usage/rs.json +++ b/site/src/data/tmux-usage/rs.json @@ -240,7 +240,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/pane/settings.rs:147" ], "reviewed": true, @@ -260,7 +260,10 @@ { "command": "capture-pane", "evidence": [ - "crates/libtmux/src/pane/observe.rs:174", + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:1613", + "crates/libtmux/src/pane/observe.rs:169", + "crates/libtmux/src/pane/observe.rs:171", "crates/libtmux/src/pane/observe.rs:121" ], "reviewed": true, @@ -280,8 +283,12 @@ { "command": "capture-pane", "evidence": [ - "crates/libtmux/src/pane/observe.rs:174" + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:1613", + "crates/libtmux/src/pane/observe.rs:169", + "crates/libtmux/src/pane/observe.rs:171" ], + "reviewed": true, "scope": null } ], @@ -451,7 +458,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/internal/options.rs:261", "crates/libtmux/src/pane/settings.rs:177" ], "reviewed": true, @@ -462,7 +469,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/pane/settings.rs:87" ], "reviewed": true, @@ -482,7 +489,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/internal/options.rs:206", "crates/libtmux/src/pane/settings.rs:128" ], @@ -502,7 +509,7 @@ { "command": "split-window", "evidence": [ - "crates/libtmux/src/internal/listing.rs:440", + "crates/libtmux/src/internal/listing.rs:444", "crates/libtmux/src/pane.rs:515" ], "scope": null @@ -530,7 +537,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/internal/options.rs:278", "crates/libtmux/src/pane/settings.rs:190" ], "reviewed": true, @@ -541,7 +548,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/internal/options.rs:220", "crates/libtmux/src/pane/settings.rs:160" ], "reviewed": true, @@ -549,14 +556,6 @@ } ], "pane.Pane.wait_for_quiet": [ - { - "command": "capture-pane", - "evidence": [ - "crates/libtmux/src/pane/observe.rs:491", - "crates/libtmux/src/pane/observe.rs:367" - ], - "scope": null - }, { "command": "display-message", "evidence": [ @@ -567,14 +566,6 @@ } ], "pane.Pane.wait_for_text": [ - { - "command": "capture-pane", - "evidence": [ - "crates/libtmux/src/pane/observe.rs:491", - "crates/libtmux/src/pane/observe.rs:315" - ], - "scope": null - }, { "command": "display-message", "evidence": [ @@ -585,14 +576,6 @@ } ], "pane.Pane.wait_until": [ - { - "command": "capture-pane", - "evidence": [ - "crates/libtmux/src/pane/observe.rs:491", - "crates/libtmux/src/pane/observe.rs:446" - ], - "scope": null - }, { "command": "display-message", "evidence": [ @@ -625,7 +608,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/server/settings.rs:400" ], "reviewed": true, @@ -809,6 +792,7 @@ { "command": "list-panes", "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", "crates/libtmux/src/internal/listing.rs:204", "crates/libtmux/src/internal/listing.rs:58", "crates/libtmux/src/server/discovery.rs:41" @@ -857,7 +841,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/server/settings.rs:376" ], "reviewed": true, @@ -877,7 +861,7 @@ { "command": "set-environment", "evidence": [ - "crates/libtmux/src/internal/environment.rs:47", + "crates/libtmux/src/internal/environment.rs:45", "crates/libtmux/src/server/settings.rs:258" ], "reviewed": true, @@ -888,7 +872,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/server/settings.rs:155" ], "reviewed": true, @@ -899,7 +883,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/server/settings.rs:431" ], "reviewed": true, @@ -910,7 +894,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/internal/options.rs:261", "crates/libtmux/src/server/settings.rs:473" ], "reviewed": true, @@ -921,7 +905,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:582", + "crates/libtmux/src/internal/options.rs:607", "crates/libtmux/src/server/settings.rs:545" ], "reviewed": true, @@ -932,7 +916,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/server/settings.rs:102" ], "reviewed": true, @@ -943,7 +927,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/internal/options.rs:206", "crates/libtmux/src/server/settings.rs:194" ], @@ -955,7 +939,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/internal/options.rs:206", "crates/libtmux/src/server/settings.rs:461" ], @@ -967,7 +951,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/internal/options.rs:206", "crates/libtmux/src/server/settings.rs:130" ], @@ -1024,7 +1008,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/internal/options.rs:220", "crates/libtmux/src/server/settings.rs:416" ], "reviewed": true, @@ -1035,7 +1019,7 @@ { "command": "set-environment", "evidence": [ - "crates/libtmux/src/internal/environment.rs:76", + "crates/libtmux/src/internal/environment.rs:74", "crates/libtmux/src/server/settings.rs:315" ], "reviewed": true, @@ -1046,7 +1030,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/internal/options.rs:278", "crates/libtmux/src/server/settings.rs:482" ], "reviewed": true, @@ -1057,7 +1041,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/internal/options.rs:220", "crates/libtmux/src/server/settings.rs:139" ], "reviewed": true, @@ -1081,7 +1065,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/session/settings.rs:170" ], "reviewed": true, @@ -1156,7 +1140,7 @@ { "command": "new-window", "evidence": [ - "crates/libtmux/src/internal/listing.rs:423", + "crates/libtmux/src/internal/listing.rs:427", "crates/libtmux/src/session.rs:495" ], "scope": null @@ -1175,6 +1159,7 @@ { "command": "list-panes", "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", "crates/libtmux/src/internal/listing.rs:204", "crates/libtmux/src/internal/listing.rs:60", "crates/libtmux/src/session.rs:440" @@ -1205,6 +1190,7 @@ { "command": "list-windows", "evidence": [ + "crates/libtmux/src/internal/listing.rs:160", "crates/libtmux/src/internal/listing.rs:156", "crates/libtmux/src/internal/listing.rs:59", "crates/libtmux/src/session.rs:280", @@ -1218,7 +1204,7 @@ { "command": "set-environment", "evidence": [ - "crates/libtmux/src/internal/environment.rs:47", + "crates/libtmux/src/internal/environment.rs:45", "crates/libtmux/src/session/settings.rs:373" ], "reviewed": true, @@ -1229,7 +1215,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/internal/options.rs:261", "crates/libtmux/src/session/settings.rs:207" ], "reviewed": true, @@ -1240,7 +1226,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:582", + "crates/libtmux/src/internal/options.rs:607", "crates/libtmux/src/session/settings.rs:284" ], "reviewed": true, @@ -1251,7 +1237,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/session/settings.rs:90" ], "reviewed": true, @@ -1262,7 +1248,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/internal/options.rs:206", "crates/libtmux/src/session/settings.rs:151" ], @@ -1274,7 +1260,7 @@ { "command": "set-environment", "evidence": [ - "crates/libtmux/src/internal/environment.rs:76", + "crates/libtmux/src/internal/environment.rs:74", "crates/libtmux/src/session/settings.rs:538" ], "reviewed": true, @@ -1285,7 +1271,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/internal/options.rs:278", "crates/libtmux/src/session/settings.rs:220" ], "reviewed": true, @@ -1296,7 +1282,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/internal/options.rs:220", "crates/libtmux/src/session/settings.rs:190" ], "reviewed": true, @@ -1307,6 +1293,7 @@ { "command": "list-windows", "evidence": [ + "crates/libtmux/src/internal/listing.rs:160", "crates/libtmux/src/internal/listing.rs:156", "crates/libtmux/src/internal/listing.rs:59", "crates/libtmux/src/session.rs:280" @@ -1319,7 +1306,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/window/settings.rs:150" ], "reviewed": true, @@ -1403,6 +1390,7 @@ { "command": "list-panes", "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", "crates/libtmux/src/internal/listing.rs:204", "crates/libtmux/src/internal/listing.rs:59", "crates/libtmux/src/window/navigation.rs:23" @@ -1470,6 +1458,7 @@ { "command": "list-panes", "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", "crates/libtmux/src/internal/listing.rs:204", "crates/libtmux/src/internal/listing.rs:59", "crates/libtmux/src/window/navigation.rs:23", @@ -1501,7 +1490,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:266", + "crates/libtmux/src/internal/options.rs:261", "crates/libtmux/src/window/settings.rs:187" ], "reviewed": true, @@ -1512,7 +1501,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:582", + "crates/libtmux/src/internal/options.rs:607", "crates/libtmux/src/window/settings.rs:268" ], "reviewed": true, @@ -1523,7 +1512,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/window/settings.rs:90" ], "reviewed": true, @@ -1534,7 +1523,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:165", + "crates/libtmux/src/internal/options.rs:172", "crates/libtmux/src/internal/options.rs:206", "crates/libtmux/src/window/settings.rs:131" ], @@ -1546,7 +1535,7 @@ { "command": "split-window", "evidence": [ - "crates/libtmux/src/internal/listing.rs:440", + "crates/libtmux/src/internal/listing.rs:444", "crates/libtmux/src/window.rs:367" ], "scope": null @@ -1574,7 +1563,7 @@ { "command": "set-hook", "evidence": [ - "crates/libtmux/src/internal/options.rs:283", + "crates/libtmux/src/internal/options.rs:278", "crates/libtmux/src/window/settings.rs:200" ], "reviewed": true, @@ -1585,7 +1574,7 @@ { "command": "set-option", "evidence": [ - "crates/libtmux/src/internal/options.rs:222", + "crates/libtmux/src/internal/options.rs:220", "crates/libtmux/src/window/settings.rs:170" ], "reviewed": true, diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index 24a8c6256..ff140362d 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -111,6 +111,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.delete" } } @@ -129,6 +130,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.list" } } @@ -147,6 +149,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.load" } } @@ -165,6 +168,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.save" } } @@ -183,6 +187,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.set" } } @@ -201,6 +206,7 @@ "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.show" } } @@ -219,6 +225,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:48" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.detach" } } @@ -237,6 +244,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:54" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.detachOthers" } } @@ -255,6 +263,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:80" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.redraw" } } @@ -273,6 +282,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:69" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.switchTo" } } @@ -291,6 +301,7 @@ "libtmux/src/main/java/io/github/libtmux/Commands.java:21" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Commands.Commands.list" } } @@ -308,6 +319,7 @@ "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced" } } @@ -323,10 +335,14 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "libtmux/src/main/java/io/github/libtmux/Environment.java:85" ], "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.get" } } @@ -342,10 +358,14 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:201", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", "libtmux/src/main/java/io/github/libtmux/Environment.java:96" ], "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.isRemoved" } } @@ -365,6 +385,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:179" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.remove" } } @@ -384,6 +405,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:156" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.set" } } @@ -403,6 +425,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:162" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.setExpanded" } } @@ -422,6 +445,7 @@ "libtmux/src/main/java/io/github/libtmux/Environment.java:168" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Environment.Environment.unset" } } @@ -440,6 +464,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.all" } } @@ -458,6 +483,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.append" } } @@ -476,6 +502,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.run" } } @@ -494,6 +521,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.set" } } @@ -512,6 +540,7 @@ "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Hooks.Hooks.unset" } } @@ -530,6 +559,7 @@ "libtmux/src/main/java/io/github/libtmux/Keys.java:57" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Keys.Keys.bind" } } @@ -548,6 +578,7 @@ "libtmux/src/main/java/io/github/libtmux/Keys.java:88" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Keys.Keys.list" } } @@ -566,6 +597,7 @@ "libtmux/src/main/java/io/github/libtmux/Keys.java:69" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Keys.Keys.unbind" } } @@ -584,6 +616,7 @@ "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.MessageLog.MessageLog.lines" } } @@ -603,6 +636,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.all" } }, @@ -620,6 +654,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.all" } } @@ -638,6 +673,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:349" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.append" } } @@ -657,6 +693,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.effective" } }, @@ -674,6 +711,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.effective" } } @@ -691,6 +729,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:93" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.get" } } @@ -708,6 +747,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:325" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.set" } } @@ -726,6 +766,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:364" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.setExpanded" } } @@ -744,6 +785,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:338" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.setIfAbsent" } } @@ -762,6 +804,7 @@ "libtmux/src/main/java/io/github/libtmux/Options.java:370" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.unset" } } @@ -781,6 +824,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.breakOut" } }, @@ -798,6 +842,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.breakOut" } } @@ -819,6 +864,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.capture" } } @@ -837,6 +883,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.clearHistory" } } @@ -855,6 +902,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:227" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.copyMode" } } @@ -873,6 +921,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:254" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.exitMode" } } @@ -891,6 +940,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:737" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.expand" } } @@ -909,6 +959,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.joinTo" } } @@ -927,6 +978,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.kill" } } @@ -945,6 +997,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:975" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" } }, @@ -961,6 +1014,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:979" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" } } @@ -979,6 +1033,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:930" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" } } @@ -997,6 +1052,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:810" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.pipeTo" } } @@ -1015,6 +1071,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:215" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.resize" } } @@ -1033,6 +1090,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:285" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.resizeTo" } } @@ -1051,6 +1109,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:757" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.respawn" } } @@ -1072,6 +1131,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.respawnIn" } } @@ -1090,6 +1150,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:275" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.retitle" } } @@ -1108,6 +1169,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:260" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.select" } } @@ -1131,6 +1193,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.send" } } @@ -1150,6 +1213,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" } }, @@ -1167,6 +1231,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:576" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" } } @@ -1190,6 +1255,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLine" } } @@ -1209,6 +1275,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" } }, @@ -1226,6 +1293,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:617" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" } } @@ -1248,6 +1316,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.split" } } @@ -1266,6 +1335,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:816" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.stopPiping" } } @@ -1284,6 +1354,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.swapWith" } } @@ -1302,6 +1373,7 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.clear" } }, @@ -1319,6 +1391,7 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.clear" } } @@ -1337,6 +1410,7 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.history" } } @@ -1355,6 +1429,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:415" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.expand" } } @@ -1373,6 +1448,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:216" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.isAlive" } } @@ -1391,6 +1467,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:314" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killServer" } }, @@ -1407,6 +1484,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:314" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killServer" } } @@ -1425,6 +1503,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:192" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killSession" } } @@ -1443,6 +1522,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:447" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.lock" } } @@ -1464,6 +1544,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.newSession" } } @@ -1482,6 +1563,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:538" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.paneFields" } } @@ -1500,6 +1582,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:998" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.panes" } } @@ -1518,6 +1601,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:228" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.requireAlive" } } @@ -1536,6 +1620,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:905" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.sessions" } } @@ -1557,6 +1642,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.snapshot" } } @@ -1575,6 +1661,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:626" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.sourceFile" } } @@ -1593,6 +1680,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:960" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.windows" } } @@ -1611,6 +1699,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:135" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.detachClients" } } @@ -1629,6 +1718,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:252" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.expand" } } @@ -1647,6 +1737,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:271" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.kill" } } @@ -1665,6 +1756,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:129" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.lastWindow" } } @@ -1686,6 +1778,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.newWindow" } } @@ -1704,6 +1797,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:112" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.nextWindow" } } @@ -1722,6 +1816,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:118" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.previousWindow" } } @@ -1740,6 +1835,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:264" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.rename" } } @@ -1758,6 +1854,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:104" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.selectWindow" } } @@ -1776,6 +1873,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:55" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.capturing" } } @@ -1794,6 +1892,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:68" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.choose" } } @@ -1812,6 +1911,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:36" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.run" } } @@ -1830,6 +1930,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:376" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.applyLayout" } } @@ -1848,6 +1949,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:397" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.displayPopup" } } @@ -1866,6 +1968,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:209" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.expand" } } @@ -1884,6 +1987,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:403" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.kill" } } @@ -1902,6 +2006,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:236" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.linkTo" } } @@ -1920,6 +2025,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:257" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.moveTo" } } @@ -1938,6 +2044,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:329" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.nextLayout" } } @@ -1956,6 +2063,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:335" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.previousLayout" } } @@ -1974,6 +2082,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:225" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.rename" } } @@ -1992,6 +2101,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:281" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.resizeTo" } } @@ -2010,6 +2120,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:382" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.respawn" } } @@ -2028,6 +2139,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:311" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.rotate" } } @@ -2046,6 +2158,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:116" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.select" } } @@ -2064,6 +2177,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:323" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.selectLayout" } } @@ -2086,6 +2200,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.split" } } @@ -2104,6 +2219,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:246" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.unlink" } } @@ -2122,6 +2238,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:48" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.detach" } } @@ -2140,6 +2257,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:54" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.detachOthers" } } @@ -2158,6 +2276,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:80" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.redraw" } } @@ -2176,6 +2295,7 @@ "libtmux/src/main/java/io/github/libtmux/Client.java:69" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Client.Client.switchTo" } } @@ -2195,6 +2315,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.breakOut" } }, @@ -2212,6 +2333,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.breakOut" } } @@ -2233,6 +2355,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.capture" } } @@ -2251,6 +2374,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.clearHistory" } } @@ -2269,6 +2393,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:227" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.copyMode" } } @@ -2287,6 +2412,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:254" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.exitMode" } } @@ -2305,6 +2431,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:737" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.expand" } } @@ -2323,6 +2450,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.joinTo" } } @@ -2341,6 +2469,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.kill" } } @@ -2359,6 +2488,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:975" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" } }, @@ -2375,6 +2505,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:979" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" } } @@ -2393,6 +2524,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:930" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" } } @@ -2411,6 +2543,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:810" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.pipeTo" } } @@ -2429,6 +2562,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:215" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.resize" } } @@ -2447,6 +2581,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:285" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.resizeTo" } } @@ -2465,6 +2600,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:757" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.respawn" } } @@ -2486,6 +2622,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.respawnIn" } } @@ -2504,6 +2641,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:275" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.retitle" } } @@ -2522,6 +2660,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:260" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.select" } } @@ -2545,6 +2684,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.send" } } @@ -2564,6 +2704,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" } }, @@ -2581,6 +2722,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:576" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" } } @@ -2604,6 +2746,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLine" } } @@ -2623,6 +2766,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" } }, @@ -2640,6 +2784,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:617" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" } } @@ -2662,6 +2807,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.split" } } @@ -2680,6 +2826,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:816" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.stopPiping" } } @@ -2698,6 +2845,7 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.swapWith" } } @@ -2716,6 +2864,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:415" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.expand" } } @@ -2734,6 +2883,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:216" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.isAlive" } } @@ -2752,6 +2902,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:314" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killServer" } }, @@ -2768,6 +2919,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:314" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killServer" } } @@ -2786,6 +2938,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:192" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killSession" } } @@ -2804,6 +2957,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:447" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.lock" } } @@ -2825,6 +2979,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.newSession" } } @@ -2843,6 +2998,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:538" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.paneFields" } } @@ -2861,6 +3017,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:998" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.panes" } } @@ -2879,6 +3036,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:228" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.requireAlive" } } @@ -2897,6 +3055,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:905" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.sessions" } } @@ -2918,6 +3077,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.snapshot" } } @@ -2936,6 +3096,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:626" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.sourceFile" } } @@ -2954,6 +3115,7 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:960" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.windows" } } @@ -2972,6 +3134,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:135" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.detachClients" } } @@ -2990,6 +3153,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:252" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.expand" } } @@ -3008,6 +3172,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:271" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.kill" } } @@ -3026,6 +3191,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:129" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.lastWindow" } } @@ -3047,6 +3213,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.newWindow" } } @@ -3065,6 +3232,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:112" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.nextWindow" } } @@ -3083,6 +3251,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:118" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.previousWindow" } } @@ -3101,6 +3270,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:264" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.rename" } } @@ -3119,6 +3289,7 @@ "libtmux/src/main/java/io/github/libtmux/Session.java:104" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Session.Session.selectWindow" } } @@ -3137,6 +3308,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:376" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.applyLayout" } } @@ -3155,6 +3327,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:397" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.displayPopup" } } @@ -3173,6 +3346,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:209" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.expand" } } @@ -3191,6 +3365,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:403" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.kill" } } @@ -3209,6 +3384,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:236" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.linkTo" } } @@ -3227,6 +3403,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:257" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.moveTo" } } @@ -3245,6 +3422,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:329" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.nextLayout" } } @@ -3263,6 +3441,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:335" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.previousLayout" } } @@ -3281,6 +3460,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:225" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.rename" } } @@ -3299,6 +3479,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:281" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.resizeTo" } } @@ -3317,6 +3498,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:382" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.respawn" } } @@ -3335,6 +3517,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:311" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.rotate" } } @@ -3353,6 +3536,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:116" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.select" } } @@ -3371,6 +3555,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:323" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.selectLayout" } } @@ -3393,6 +3578,7 @@ ], "port": "java", "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.split" } } @@ -3411,6 +3597,7 @@ "libtmux/src/main/java/io/github/libtmux/Window.java:246" ], "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Window.Window.unlink" } } diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index 87f787361..0b12b9543 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -308,9 +308,9 @@ ], "pane.Pane.killIfWindowUnshared": [ { - "command": "kill-pane", + "command": "if-shell", "evidence": [ - "packages/libtmux/src/_internal/operations/plans.ts:195", + "packages/libtmux/src/_internal/operations/plans.ts:179", "packages/libtmux/src/_internal/operations/plans.ts:192", "packages/libtmux/src/_internal/operations/mutations.ts:86", "packages/libtmux/src/pane.ts:255" @@ -503,14 +503,6 @@ "packages/libtmux/src/pane.ts:400" ], "scope": null - }, - { - "command": "resize-pane", - "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:297", - "packages/libtmux/src/pane.ts:400" - ], - "scope": null } ], "pane.Pane.zoom": [ @@ -522,14 +514,6 @@ ], "scope": null }, - { - "command": "resize-pane", - "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:276", - "packages/libtmux/src/pane.ts:386" - ], - "scope": null - }, { "command": "select-pane", "evidence": [ @@ -1308,14 +1292,6 @@ "packages/libtmux/src/window.ts:387" ], "scope": null - }, - { - "command": "resize-pane", - "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:297", - "packages/libtmux/src/window.ts:387" - ], - "scope": null } ] } diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts index f8990a1f9..3b152547f 100644 --- a/site/src/lib/tmux-library-usage.ts +++ b/site/src/lib/tmux-library-usage.ts @@ -36,7 +36,7 @@ export interface UsageUse { /** A reviewed claim the generator checked line by line, not a scan result. */ reviewed?: boolean /** The core library symbol a wrapper forwards to, and the lines that show it sends. */ - via?: { port: string; symbol: string; evidence: string[]; reviewed?: boolean } + via?: { port: string; symbol: string; revision?: string; evidence: string[]; reviewed?: boolean } } export interface UsageDocument { diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index bcb8c1cd3..2b0a2fbf5 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs' import { experimental_AstroContainer } from 'astro/container' import { Window } from 'happy-dom' import { afterEach, describe, expect, it, vi } from 'vitest' -import { documentProblems } from '../../scripts/gen-tmux-usage.mjs' +import { documentProblems, isPrivateSymbol, publicSymbols, viaRevisionFor } from '../../scripts/gen-tmux-usage.mjs' import { API_MODELS } from '../src/lib/api-models' import { PORTS } from '../src/lib/ports' import { symbolMarkdown } from '../src/lib/symbol-markdown' @@ -33,8 +33,68 @@ describe('the recorded usage', () => { /** Every command either pinned manual documents. */ const manualCommands = [...new Set(Object.values(TMUX_MANUALS).flatMap((manual) => manual.commands.map((command) => command.name)))].sort() + const forwarders = JSON.parse(readFileSync(new URL('../../scripts/tmux-usage/forwarders.json', import.meta.url), 'utf8')).forwarders + const viaRevision = (slug: string) => viaRevisionFor(API_MODELS[slug], forwarders[slug] && API_MODELS[forwarders[slug].parent]) + it.each(PORTS.map((port) => port.slug))('is bound to the pinned API model of %s', (slug) => { - expect(documentProblems(TMUX_USAGE[slug], API_MODELS[slug], scopeTable, manualCommands)).toEqual([]) + expect(documentProblems(TMUX_USAGE[slug], API_MODELS[slug], scopeTable, manualCommands, viaRevision(slug))).toEqual([]) + }) + + it('reads the core lines of a wrapper where the wrapper is pinned when both live in one repository', () => { + // F# is pinned at a revision older than the C# model, and cites the C# lines as they read there. + expect(API_MODELS.fsharp.revision).not.toBe(API_MODELS.csharp.revision) + expect(viaRevision('fsharp')).toBe(API_MODELS.fsharp.revision) + // PowerShell lives in its own repository and depends on the C# release, so it cites that release's lines. + expect(viaRevision('powershell')).toBe(API_MODELS.csharp.revision) + expect(viaRevision('kotlin')).toBe(API_MODELS.kotlin.revision) + expect(viaRevision('py')).toBeUndefined() + for (const [symbol, uses] of Object.entries(TMUX_USAGE.fsharp.symbols)) { + for (const use of uses) if (use.via) expect(use.via.revision, `${symbol} ${use.command}`).toBe(API_MODELS.fsharp.revision) + } + }) + + it('refuses a via that cites core lines at a revision other than the one they must be read at', () => { + const document = TMUX_USAGE.fsharp + const [symbol, uses] = Object.entries(document.symbols).find(([, list]) => list.some((use) => use.via))! + const moved = (revision: string | undefined) => ({ + ...document, symbols: { ...document.symbols, [symbol]: uses.map((use) => (use.via ? { ...use, via: { ...use.via, revision } } : use)) }, + }) + expect(documentProblems(moved(API_MODELS.csharp.revision), API_MODELS.fsharp, scopeTable, manualCommands, viaRevision('fsharp')).join('\n')) + .toMatch(new RegExp(`cites csharp lines at ${API_MODELS.csharp.revision}, which must be ${API_MODELS.fsharp.revision}`)) + expect(documentProblems(moved(undefined), API_MODELS.fsharp, scopeTable, manualCommands, viaRevision('fsharp')).join('\n')).toMatch(/at no revision/) + // The control: the document as committed. + expect(documentProblems(document, API_MODELS.fsharp, scopeTable, manualCommands, viaRevision('fsharp'))).toEqual([]) + }) + + it('records public API only: a private helper is neither read from the model nor accepted in a document', () => { + const model = { + ...API_MODELS.py, + symbols: [ + ...API_MODELS.py.symbols, + { id: 'libtmux.Server._show_option', name: '_show_option', kind: 'method', modifiers: [], parent: 'libtmux.Server', source: { file: 'src/libtmux/server.py', line: 1 } }, + { id: 'libtmux.Server.__repr__', name: '__repr__', kind: 'method', modifiers: [], parent: 'libtmux.Server', source: { file: 'src/libtmux/server.py', line: 2 } }, + { id: 'libtmux.Server.hidden', name: 'hidden', kind: 'method', modifiers: ['private'], parent: 'libtmux.Server', source: { file: 'src/libtmux/server.py', line: 3 } }, + { id: 'libtmux._internal.control_mode.ControlMode.__enter__', name: '__enter__', kind: 'method', modifiers: [], parent: 'libtmux._internal.control_mode.ControlMode', source: { file: 'src/libtmux/_internal/control_mode.py', line: 4 } }, + ], + } + const names = publicSymbols(model).map((symbol: { id: string }) => symbol.id) + expect(names).not.toContain('libtmux.Server._show_option') + expect(names).not.toContain('libtmux.Server.hidden') + // A method of a private module is private, whatever its own name. + expect(names).not.toContain('libtmux._internal.control_mode.ControlMode.__enter__') + // A dunder is the language's protocol, not a helper. + expect(names).toContain('libtmux.Server.__repr__') + expect(isPrivateSymbol({ name: '_x', id: 'libtmux.Server._x' })).toBe(true) + expect(isPrivateSymbol({ name: '__init__', id: 'libtmux.Server.__init__' })).toBe(false) + expect(isPrivateSymbol({ name: '__enter__', id: 'libtmux._internal.control_mode.ControlMode.__enter__' })).toBe(true) + expect(isPrivateSymbol({ name: 'x', id: 'libtmux.Server.x', apiScope: 'internal' })).toBe(true) + const document = { ...TMUX_USAGE.py, symbols: { ...TMUX_USAGE.py.symbols, 'libtmux.Server._show_option': [{ command: 'show-options', scope: null, evidence: ['a.py:1'] }] } } + expect(documentProblems(document, model, scopeTable, manualCommands)).toEqual(['libtmux.Server._show_option: is private, and only public API is recorded']) + // None of the committed documents records a private symbol. + for (const slug of PORTS.map((port) => port.slug)) { + const privates = API_MODELS[slug].symbols.filter(isPrivateSymbol).map((symbol: { publicId?: string; id: string }) => symbol.publicId ?? symbol.id) + expect(Object.keys(TMUX_USAGE[slug].symbols).filter((id) => privates.includes(id)), slug).toEqual([]) + } }) it('records every command of the manual, for every port', () => { @@ -45,7 +105,7 @@ describe('the recorded usage', () => { it('refuses a document that records fewer commands than the manual, or one the model does not have', () => { const document = TMUX_USAGE.py - expect(documentProblems({ ...document, commands: ['list-panes'] }, API_MODELS.py, scopeTable, manualCommands)).toEqual([expect.stringMatching(/^covers \["list-panes"\]/)]) + expect(documentProblems({ ...document, commands: ['list-panes'] }, API_MODELS.py, scopeTable, manualCommands, undefined)).toEqual([expect.stringMatching(/^covers \["list-panes"\]/)]) expect(documentProblems({ ...document, revision: 'stale' }, API_MODELS.py, scopeTable, manualCommands)).toEqual([expect.stringMatching(/^records stale/)]) const bogus = { ...document, symbols: { ...document.symbols, 'libtmux.Server.nope': [{ command: 'kill-pane', scope: null, evidence: ['a.py:1'] }] } } expect(documentProblems(bogus, API_MODELS.py, scopeTable, manualCommands)).toEqual(['libtmux.Server.nope: not a symbol of the API model']) @@ -91,14 +151,25 @@ describe('the recorded usage', () => { expect(cell('server', 'scala')).toEqual(expect.arrayContaining(['cats.Server.panes', 'scaladsl.Server.panes'])) // F# builds a session and then lists the panes of the session it made, and not of the server. expect(cell('session', 'fsharp')).toEqual(['newSession']) - // tryFindPane reads one pane by id through Server.FindPaneAsync, a server-wide lookup, and says so in a reviewed claim. - expect(cell('server', 'fsharp')).toEqual(['tryFindPane']) + // tryFindPane reads one pane by id through Server.FindPaneAsync, which lists below tmux 3.3 and asks display-message + // from there, and the F# revision supports 3.2a: neither command holds on every release, so none is recorded. + expect(cell('server', 'fsharp')).toBeUndefined() + expect(tmuxUsageOf('fsharp', 'LibTmux.FSharp.Server.tryFindPane')).toEqual([]) const kotlin = tmuxUsageOf('kotlin', 'io.github.libtmux.kotlin.Server.panes') expect(kotlin.find((entry) => entry.command === 'list-panes')!.scopes[0]).toMatchObject({ via: { port: 'java', symbol: 'io.github.libtmux.Server.Server.panes', evidence: ['libtmux/src/main/java/io/github/libtmux/Server.java:998'] }, }) }) + it('lists a lookup by the command it sends, and not by the list name it passes to choose a format', () => { + const labels = (port: string, command: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports.filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label))) + // The 3.3a floor of this revision drops the fallback that listed with -a, so every supported release asks display-message. + expect(labels('csharp', 'display-message')).toEqual(expect.arrayContaining(['Server.FindPaneAsync', 'Server.GetPaneAsync', 'Server.FindWindowAsync', 'Server.FindSessionAsync'])) + for (const name of ['Server.FindPaneAsync', 'Server.GetWindowAsync', 'Server.FindSessionAsync', 'Session.RefreshAsync']) { + for (const command of ['list-panes', 'list-windows', 'list-sessions']) expect(labels('csharp', command), `${name} ${command}`).not.toContain(name) + } + }) + it('lists the object that owns the scope before a method that sends the command for its own purpose', () => { expect(cell('window', 'py')).toEqual(['Window.panes', 'Window.search_panes', 'Pane.from_pane_id']) expect(cell('session', 'rs')).toEqual(['Session.panes', 'ControlSender.watch_only']) diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index a16cf7bc8..ebc200906 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -1,7 +1,8 @@ import { readFileSync } from 'node:fs' import { describe, expect, it } from 'vitest' import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' -import { MAX_SHARED_BY, applyExclusions, classify, definitionsOf, deriveUsage, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { MAX_SHARED_BY, applyExclusions, classify, definitionsOf, deriveUsage, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { auditEvidence } from '../../scripts/lib/tmux-usage-audit.mjs' import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' import { carriesCommand, memberWords, selects, settleCandidates, sweepCandidates } from '../../scripts/lib/tmux-usage-sweep.mjs' import { scanFSharp, scanJulia } from '../../scripts/lib/tmux-usage-lexical.mjs' @@ -50,6 +51,61 @@ describe('scanning a send site', () => { expect(functions[0].sites.map((site) => [site.line, site.flags])).toEqual([[2, 'Fa']]) }) + it('does not read a command named to describe a failure, or quoted for tmux to run inside another command', async () => { + const java = await scanSource({ + grammar: 'java', known: new Set(['show-environment', 'kill-server', 'if-shell']), commands: new Set(['show-environment', 'kill-server', 'if-shell']), + text: [ + 'class Environment {', + ' Entry entry(String name) {', + ' throw server.failed("show-environment", result);', + ' }', + ' Map listing() {', + ' return server.run(List.of("show-environment", "-s"));', + ' }', + ' void close(long pid) {', + ' server.cmd("if-shell", "-F", "#{==:#{pid}," + pid + "}", "kill-server", stale);', + ' }', + ' void both() {', + ' server.request(List.of(List.of("if-shell", "-F", "x", "kill-server"), List.of("kill-server")));', + ' }', + '}', + ].join('\n'), + }) + const sites = (name: string) => java.functions.find((fn) => fn.name === name)!.sites.map((site) => `${site.command}@${site.line}`) + // A failure built for a command names it and sends nothing; reading the listing sends it. + expect(sites('entry')).toEqual([]) + expect(sites('listing')).toEqual(['show-environment@6']) + // kill-server is the then-command of the if-shell: tmux runs it, and the library sends the if-shell. + expect(sites('close')).toEqual(['if-shell@9']) + // The control: a second command in a sequence of requests, outside any if-shell, is a send of its own. + expect(sites('both')).toEqual(['if-shell@12', 'kill-server@12']) + + const rust = await scanSource({ + grammar: 'rust', known: new Set(['split-window', 'if-shell', 'resize-pane']), commands: new Set(['split-window', 'if-shell', 'resize-pane']), + text: [ + 'fn plan() {', + ' let plan = projection(&version).map_err(decode_error("split-window"))?;', + ' let refused = Error::from_refused_result("split-window", &result);', + ' send(Command::new("resize-pane"));', + '}', + ].join('\n'), + }) + expect(rust.functions[0].sites.map((site) => `${site.command}@${site.line}`)).toEqual(['resize-pane@4']) + + const typescript = await scanSource({ + grammar: 'typescript', known: new Set(['if-shell', 'resize-pane']), commands: new Set(['if-shell', 'resize-pane']), + text: [ + 'async function unzoom(at) {', + ' await runCommand(["if-shell", "-F", ...at, "#{zoomed}", quoteCommand(["resize-pane", "-Z", ...at])])', + '}', + 'async function resize(at) {', + ' await runCommands([["select-pane", ...at], ["resize-pane", "-Z", ...at]])', + '}', + ].join('\n'), + }) + expect(typescript.functions.map((fn) => [fn.name, fn.sites.map((site) => site.command)])).toEqual([['unzoom', ['if-shell']], ['resize', ['resize-pane']]]) + }) + it('does not lend a neighbouring command its flags', async () => { const { functions } = await scan('python', [ 'def capture():', @@ -300,6 +356,33 @@ describe('reviewed claims', () => { }) }) + it('reads the rest of a statement that spans lines, as long as the first text is on the cited line', () => { + const wrapped = [ + 'fn set() {', + ' run(', + ' core,', + ' "set-option",', + ' )', + '}', + ].join('\n') + const run = (over: Record) => verifyClaims({ + claims: [{ port: 'rs', symbol: 'server.Server.panes', command: 'list-panes', scope: 'server', evidence: [{ at: 'set.rs:2', ...over }, { at: 'server.rs:3', in: 'server.Server.panes' }] }] as never, + spec, functions, types: [], symbols, readSource: (path: string) => (path === 'server.rs' ? source : path === 'set.rs' ? wrapped : undefined), + }) + // The send call is on the cited line, and the command is two lines below it, inside the same call. + expect(run({ has: ['run(', '"set-option"'], span: 3 }).problems).toEqual([]) + // Without the span the command is not on the cited line, and a command above the cited line is never read. + expect(run({ has: ['run(', '"set-option"'] }).problems.join('\n')).toMatch(/does not contain "\\"set-option\\""/) + expect(run({ has: ['"set-option"', 'run('], span: 3 }).problems.join('\n')).toMatch(/does not contain "\\"set-option\\""/) + }) + + it('holds a rule that names a revision for that revision only, and one that names none for the revision its model was extracted at', () => { + expect(ruleHolds({}, 'aaa', 'aaa')).toBe(true) + expect(ruleHolds({}, 'bbb', 'aaa')).toBe(false) + expect(ruleHolds({ revision: 'bbb' }, 'bbb111', 'aaa')).toBe(true) + expect(ruleHolds({ revision: 'bbb' }, 'aaa', 'aaa')).toBe(false) + }) + it.each([ ['a line that no longer holds the text', { evidence: [{ at: 'server.rs:6', has: ['.arg("-s")'] }, { at: 'server.rs:3', in: 'server.Server.panes' }] }, /does not contain/], ['a line past the end of the file', { evidence: [{ at: 'server.rs:99' }, { at: 'server.rs:3', in: 'server.Server.panes' }] }, /not a line of the pinned source/], @@ -382,6 +465,19 @@ describe('symbols that only build a command', () => { expect(apply([exclusion({ owner: undefined })]).problems[0]).toMatch(/neither an owner nor member names/) }) + it('removes only the commands an exclusion names, so the other commands of the same symbols stay', () => { + const held = new Map([ + ...found(), + ['tmux.Plan.KillPane|display-message', { ...entry('tmux.Plan.KillPane'), command: 'display-message' }], + ]) + const { removed, problems } = apply([exclusion({ commands: ['kill-pane'] })], held) + expect(problems).toEqual([]) + expect(removed.map((item: { symbol: string; command: string }) => `${item.symbol} ${item.command}`)).toEqual(['tmux.Plan.KillPane kill-pane']) + expect([...held.values()].map((item: { symbol: string; command: string }) => `${item.symbol} ${item.command}`)).toContain('tmux.Plan.KillPane display-message') + // The control: naming a command the symbols do not send removes nothing, and says the exclusion is stale. + expect(apply([exclusion({ commands: ['new-window'] })]).problems.join('\n')).toMatch(/removes no entry, so it is stale/) + }) + it.each([ ['a line that no longer holds the text', { evidence: [{ at: 'tmux/plan.go:2', has: ['p.steps = append('] }] }, /does not contain/], ['a line past the end of the file', { evidence: [{ at: 'tmux/plan.go:99' }] }, /not a line of the pinned source/], @@ -402,7 +498,7 @@ describe('crediting a wrapper with the core method it calls', () => { ['core.Server.snapshot', { name: 'snapshot', parentName: 'Server' }], ]) const coreEntry = (symbol: string, scope: string, over: Record = {}) => ({ symbol, command: 'list-panes', scope, evidence: ['Core.java:10'], ...over }) - const core = (entries: ReturnType[]) => ({ entries, symbols: coreSymbols }) + const core = (entries: ReturnType[]) => ({ entries, symbols: coreSymbols, revision: 'c0ffee' }) const wrapper = (name: string, parentName: string, id = `w.${parentName}.${name}`) => ({ id, name, parentName, file: 'W.kt', line: 1 }) const fn = (name: string, owner: string, calls: [string, number][], receivers: [string, string[]][] = []) => located({ file: 'W.kt', name, owner, start: 1, nameLine: 1, end: 9, calls: new Map(calls), receivers: new Map(receivers.map(([callee, who]) => [callee, new Set(who)])) }) @@ -413,7 +509,8 @@ describe('crediting a wrapper with the core method it calls', () => { const { entries } = forward([fn('panes', 'Server', [['panes', 4]], [['panes', ['server']]])], [wrapper('panes', 'Server')], [coreEntry('core.Server.panes', 'server')]) expect(entries).toEqual([{ symbol: 'w.Server.panes', command: 'list-panes', scope: 'server', evidence: ['W.kt:4'], hops: 1, - via: { port: 'java', symbol: 'core.Server.panes', evidence: ['Core.java:10'] }, + // The via says which revision of the core library its lines were read at. + via: { port: 'java', symbol: 'core.Server.panes', revision: 'c0ffee', evidence: ['Core.java:10'] }, }]) }) @@ -535,7 +632,7 @@ describe('finding the methods a scan misses', () => { evidence: [{ at: 'src/libtmux/pane.py:2', has: ['send_keys("reset")'] }], ...over, }) const source = (path: string) => (path === 'src/libtmux/pane.py' ? 'def clear(self):\n self.send_keys("reset")\n' : undefined) - const settle = (reviews: unknown[], covering: unknown[] = [], readSource: typeof source | null = source) => + const settle = (reviews: unknown[], covering: unknown[] = [], readSource: ((path: string) => string | undefined) | null = source) => settleCandidates({ port: 'py', candidates, reviews: reviews as Parameters[0]['reviews'], covering: covering as never, readSource: readSource ?? undefined }) it('leaves a candidate with no review unreviewed, and settles one whose review holds', () => { @@ -551,7 +648,7 @@ describe('finding the methods a scan misses', () => { ['a review that settles nothing', { names: ['gone'] }, /settles no candidate, so it is stale/], ['no reason', { why: ' ' }, /gives no reason/], ['no evidence', { evidence: [] }, /cites no evidence/], - ['a kind that is not one of the four', { kind: 'probably-fine' }, /is not one of/], + ['a kind that is not one of the five', { kind: 'probably-fine' }, /is not one of builds, other-command, values, no-send, version-gated/], ['a review that names nothing', { owner: undefined, names: undefined, commands: undefined }, /names no owner, member or command/], ])('refuses %s, and leaves the candidate unreviewed', (_name, over, message) => { const result = settle([review(over)]) @@ -559,6 +656,44 @@ describe('finding the methods a scan misses', () => { expect(result.unreviewed).toEqual(candidates) }) + describe('a method that sends one command on some supported releases and another on the rest', () => { + const lines = ['def find(self):', ' if version < (3, 3):', ' return self.cmd("list-windows", "-a")', ' return self.cmd("display-message", "-p")', 'FLOOR = (3, 2)'] + const gated = (over: Record = {}) => review({ + kind: 'version-gated', names: ['clear'], why: 'Lists below 3.3 and asks display-message from 3.3; the floor is 3.2.', + evidence: [ + { at: 'src/libtmux/pane.py:2', has: ['version < (3, 3)'] }, + { at: 'src/libtmux/pane.py:3', has: ['"list-windows"'] }, + { at: 'src/libtmux/pane.py:4', has: ['"display-message"'] }, + { at: 'src/libtmux/pane.py:5', has: ['FLOOR = (3, 2)'] }, + ], ...over, + }) + const read = (path: string) => (path === 'src/libtmux/pane.py' ? lines.join('\n') : undefined) + + it('is settled by a review that shows the gate, both branches and the floor below it', () => { + expect(settle([gated()], [], read)).toEqual({ unreviewed: [], reviewed: 1, problems: [] }) + }) + + it.each([ + ['the floor left out', { evidence: gatedEvidence().slice(0, 3) }], + ['a line cited without the text that shows it', { evidence: [...gatedEvidence().slice(0, 3), { at: 'src/libtmux/pane.py:5' }] }], + ['the gate left out', { evidence: [{ at: 'src/libtmux/pane.py:3', has: ['"list-windows"'] }] }], + ])('refuses %s, and leaves the candidate unreviewed', (_name, over) => { + const result = settle([gated(over)], [], read) + expect(result.problems.join('\n')).toMatch(/a version-gated review cites the gate, both branches and the supported floor/) + expect(result.unreviewed).toEqual(candidates) + }) + + it('refuses a gate whose cited text is not on the line', () => { + const result = settle([gated({ evidence: gatedEvidence().map((item, index) => (index === 0 ? { ...item, has: ['version < (3, 4)'] } : item)) })], [], read) + expect(result.problems.join('\n')).toMatch(/does not contain "version < \(3, 4\)"/) + expect(result.unreviewed).toEqual(candidates) + }) + + function gatedEvidence() { + return gated().evidence as { at: string; has?: string[] }[] + } + }) + it('does not read the evidence without a checkout, and lets a covering rule settle without being checked', () => { expect(settle([review({ evidence: [{ at: 'nowhere.py:1', has: ['x'] }] })], [], null)).toEqual({ unreviewed: [], reviewed: 1, problems: [] }) expect(settle([], [{ port: 'py', owner: 'Pane', names: ['to_command'] }])).toEqual({ unreviewed: candidates, reviewed: 0, problems: [] }) @@ -566,3 +701,105 @@ describe('finding the methods a scan misses', () => { }) }) }) + +describe('reading back the lines an entry cites', () => { + const library = ['def panes(self):', ' return fetch("list-panes", ["-a"])', '', 'def search(self):', ' return panes()', '', 'def broken(self):', ' raise Unsupported("list-panes")'].join('\n') + const fn = (name: string, start: number, end: number, calls: [string, number][] = []) => ({ file: 'lib.py', name, start, end, calls: new Map(calls) }) + const sources = { read: (path: string) => (path === 'lib.py' ? library : undefined), functions: [fn('panes', 1, 2), fn('search', 4, 5, [['panes', 5]]), fn('broken', 7, 8)] } + const use = (over: Record = {}) => ({ symbol: 'S.search', command: 'list-panes', scope: 'server', evidence: ['lib.py:2', 'lib.py:5'], ...over }) + const audit = (uses: unknown[], over: Record = {}) => auditEvidence({ + port: 'py', revision: 'r1', uses: uses as never, claimFor: () => undefined, spellings: (command: string) => [command], + sourcesAt: (port: string, revision: string) => (port === 'py' && revision === 'r1' ? sources : undefined), ...over, + } as never) + + it('accepts a scanned entry whose first line spells the command and whose next line calls the function around it', () => { + expect(audit([use()])).toEqual([]) + // The command may be spelled by its alias. + expect(audit([use({ command: 'lsp' })], { spellings: () => ['list-panes', 'lsp'] })).toEqual([]) + }) + + it.each([ + ['a line past the end of the file', { evidence: ['lib.py:99', 'lib.py:5'] }, /lib.py:99 is not a line of py at r1/], + ['a file the revision does not have', { evidence: ['gone.py:1'] }, /gone.py:1 is not a line of py at r1/], + ['a first line that does not spell the command', { evidence: ['lib.py:5'] }, /lib.py:5 does not spell list-panes/], + ['a later line that does not call the function around the line before it', { evidence: ['lib.py:2', 'lib.py:7'] }, /lib.py:7 does not call panes/], + ['a later line that follows a line in no function', { evidence: ['lib.py:3', 'lib.py:5'] }, /not a line of py|is in no function/], + ['a first line that throws', { evidence: ['lib.py:8'] }, /lib.py:8 reports a failure and sends nothing/], + ])('refuses %s', (_name, over, message) => { + expect(audit([use(over)]).join('\n')).toMatch(message) + }) + + it('reads a reviewed entry against its claim, line by line', () => { + const claim = (over: Record = {}) => ({ evidence: [{ at: 'lib.py:2', has: ['fetch("list-panes"'] }, { at: 'lib.py:5', has: ['panes()'], in: 'S.search' }], ...over }) + const reviewed = (evidence = ['lib.py:2', 'lib.py:5']) => use({ reviewed: true, evidence }) + expect(audit([reviewed()], { claimFor: () => claim() })).toEqual([]) + expect(audit([reviewed()]).join('\n')).toMatch(/reviewed, but no claim of py holds it at r1/) + expect(audit([reviewed(['lib.py:2', 'lib.py:4'])], { claimFor: () => claim() }).join('\n')).toMatch(/cites lib.py:4 where its claim cites lib.py:5/) + expect(audit([reviewed()], { claimFor: () => claim({ evidence: [{ at: 'lib.py:2', has: ['"list-windows"'] }, { at: 'lib.py:5' }] }) }).join('\n')).toMatch(/does not contain "\\"list-windows\\""/) + }) + + it('refuses a reviewed first line that only binds the command in a function that goes on to send it, and not one that builds it for a caller', () => { + const rust = [ + 'async fn set(core: &Core) {', + ' let mut command = scope.apply(Command::new("set-option"));', + ' run(core, "set-option", command).await', + '}', + 'fn channel_command() -> Command {', + ' let command = Command::new("wait-for");', + ' command', + '}', + ].join('\n') + const functions = [ + { file: 'o.rs', name: 'set', start: 1, end: 4, calls: new Map([['run', 3], ['apply', 2]]) }, + { file: 'o.rs', name: 'channel_command', start: 5, end: 8, calls: new Map() }, + ] + const rs = { read: () => rust, functions } + const run = (line: number) => auditEvidence({ + port: 'rs', revision: 'r1', claimFor: () => ({ evidence: [] }), spellings: (command: string) => [command], + sourcesAt: () => rs, uses: [{ symbol: 'o.set', command: 'set-option', scope: null, reviewed: true, evidence: [`o.rs:${line}`] }] as never, + } as never) + expect(run(2).join('\n')).toMatch(/o.rs:2 only binds the command to a name in set, which goes on to send it/) + expect(run(3)).toEqual([]) + expect(run(6)).toEqual([]) + }) + + describe('a wrapper that stands on a core library', () => { + // The wrapper cites the call, and the core lines are read at the revision the via names. + const wrapper = { read: (path: string) => (path === 'w.fs' ? 'let panes server =\n server.PanesAsync()' : undefined), functions: [] } + const core = (text: string) => ({ read: (path: string) => (path === 'Core.cs' ? text : undefined), functions: [{ file: 'Core.cs', name: 'PanesAsync', start: 1, end: 3, calls: new Map() }] }) + const at = { 'fs@r1': wrapper, 'cs@r1': core('Task PanesAsync() =>\n Fetch("list-panes");'), 'cs@r2': core('Task PanesAsync() =>\n Fetch();\n // list-panes lived here') } + const forwarded = (revision: string | undefined, evidence = ['Core.cs:2']) => ({ + symbol: 'S.Server.newSession', command: 'list-panes', scope: 'session', evidence: ['w.fs:2'], + via: { port: 'cs', symbol: 'Lib.Server.PanesAsync', revision, evidence }, + }) + const audits = (uses: unknown[]) => auditEvidence({ + port: 'fs', revision: 'r1', uses: uses as never, claimFor: () => undefined, spellings: (command: string) => [command], + sourcesAt: (port: string, revision: string) => (at as unknown as Record)[`${port}@${revision}`], + } as never) + + it('accepts core lines that read as cited at the revision the via names', () => { + expect(audits([forwarded('r1')])).toEqual([]) + }) + + it('refuses core lines read at a revision where they say something else, which is what citing the wrong revision does', () => { + expect(audits([forwarded('r2')]).join('\n')).toMatch(/via cs Lib.Server.PanesAsync\): Core.cs:2 does not spell list-panes/) + }) + + it('refuses a via that names no revision, a revision nothing was scanned at, and a wrapper line that does not call the core method', () => { + expect(audits([forwarded(undefined)]).join('\n')).toMatch(/its via names no revision/) + expect(audits([forwarded('r9')]).join('\n')).toMatch(/no scan of cs at r9/) + expect(audits([{ ...forwarded('r1'), evidence: ['w.fs:1'] }]).join('\n')).toMatch(/w.fs:1 does not call PanesAsync/) + }) + + it('reads a generated wrapper by its generator lines and the annotation that makes it forward, and not as a call', () => { + const generated = { read: (path: string) => (path === 'gen.kt' ? 'java.get(name)' : path === 'Core.java' ? '@Operation(Kind.READ)\npublic get() {}' : undefined), functions: [] } + const run = (annotation: string) => auditEvidence({ + port: 'kt', revision: 'r1', generated: { evidence: ['gen.kt:1'] }, claimFor: () => undefined, spellings: (command: string) => [command], + sourcesAt: (port: string) => (port === 'kt' ? generated : { read: () => 'x', functions: [] }) as never, + uses: [{ symbol: 'K.get', command: 'show-environment', scope: null, evidence: ['gen.kt:1', annotation], via: { port: 'kt', symbol: 'J.get', revision: 'r1', evidence: ['Core.java:2'] } }] as never, + } as never) + expect(run('Core.java:1').filter((problem: string) => /Operation/.test(problem))).toEqual([]) + expect(run('Core.java:2').join('\n')).toMatch(/Core.java:2 is not the @Operation annotation of the core method/) + }) + }) +}) From e2115dc06510cb00c154ec9ea80e4c02a773e77c Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 01:20:00 -0500 Subject: [PATCH 12/53] fix(site[tmux-usage]) Record a command only where a call sends it why: A scanned entry was accepted when its cited line spelled the command, and the audit checked the same substring. A comparison, a row selector (`get_output_format("list-sessions", ...)`), a label in a thrown error, a ternary between two commands, a receiver class choosing the command and a helper that never dispatches all spell a command and send nothing. 18 recorded entries of fc33722af were of those kinds, 47 rs entries cited a `"cmd",` label line and 21 cited a `let mut x = Command::new(...)` binding instead of the call that sends, and a hop matched the name `into_command` in another type. Java also listed 25 entries of package-private classes. Positively identifying sends fixes the cause where patching the 18 would not. what: - The scan takes a command as a send only when its literal is an argument of a dispatching call in the same statement, or builds a value, bound or returned, that the same function then passes to one. Entries cite the dispatch line; a builder's caller is credited with the dispatch, the call of the builder and the literal. A condition that picks between different commands, a call that is neither a way to put a command in a collection nor a declared builder, and a name bound again by such a call (go `attach, guard = s.guardCommand(attach)`) all stop it. A body's last expression is a returned builder, `request.group.push_back(...)` is followed to `request`, and the innermost of nested dispatch calls is cited. - dispatchers.json names the dispatching and the building calls of each port, each verified against the pinned source. - A hop matches the function its call resolves to, by receiver type and not by name (`callTargets`), in derivation and in the audit. - The audit reads the same thing structurally: the first line is a dispatch site of the scan at that revision, each later line is a call of the function around the line before it. A builder alone, a comparison, a selector, a throw label, a ternary and a helper that never dispatches each fail it. - Only public API is recorded: a signature that spells private, protected, internal, fileprivate or pub(crate) is refused, and in Java a member declared without public is too (interface members exempt). - A send reached only when an argument, a name or a release asks for it is not what a default call does. Exclusions remove the auxiliary probes (ruby capture and copy_mode list-commands, go NewSession name lookup, rs and cxx layout version probes, ts copy-mode branches, java breakOut rename); claims with `when` keep the alternatives of a method's own purpose (selectWindow targets, new_session kill_session, swift link and move, breakPane). - Claims added for sends no dispatcher sees: process spawns (ruby Server#attach, java ControlClient.attach, tmuxtest.NewControlMode, cxx Connection::connect), a table walked by a loop (go Server.Snapshot), a batch run two helpers down (java Options.all), a two-builder chain (julia paste_bytes) and a cleanup registered for later (tmuxtest.NewSession). - scripts/README.md documents the rule; the unit tests have a negative case for each class, and gen-tmux-usage.negative.mjs replays an entry cited at each kind of non-send line against the sources. Measured against fc33722af, entries per port before to after: py 193 to 190, ruby 102 to 101, lua 92 to 92, julia 72 to 68, ts 118 to 116, rs 150 to 153, go 193 to 191, java 146 to 124, kotlin 112 to 114, scala 181 to 184, csharp 168 to 168, fsharp 17 to 16, powershell 34 to 34, cxx 106 to 106, swift 90 to 88 (1774 to 1745). 59 entries left and 41 turned from scanned into reviewed claims. Of the 59, 20 were not sends (py 3, ruby 4, julia 4, go 2, java 2, kotlin 1, scala 1, swift 2, rs 1), 25 were package-private Java, and 14 were not what a default call does (julia 2, ts 2, rs 1, go 3, java 1, kotlin 1, scala 2, cxx 1, fsharp 1). 30 entries were added by following builders that the name test missed, and 668 kept their key and moved to the dispatch line. Two seeded uniform samples of 60 found no entry that fails to send. Listing the entries whose cited lines sit under an if, a case or a loop, and reading each, found most of the 14; a guard written as an early return before the send is not found that way and stays a known limit. --- scripts/README.md | 112 +- scripts/gen-tmux-usage.mjs | 89 +- scripts/gen-tmux-usage.negative.mjs | 46 +- scripts/lib/tmux-usage-audit.mjs | 67 +- scripts/lib/tmux-usage-derive.mjs | 89 +- scripts/lib/tmux-usage-forward.mjs | 4 +- scripts/lib/tmux-usage-lexical.mjs | 77 +- scripts/lib/tmux-usage-scan.mjs | 296 ++- scripts/tmux-usage/claims.json | 1353 +++++++++++- scripts/tmux-usage/dispatchers.json | 2408 ++++++++++++++++++++++ scripts/tmux-usage/exclusions.json | 387 ++-- scripts/tmux-usage/not-senders.json | 192 +- site/src/data/tmux-usage/csharp.json | 281 +-- site/src/data/tmux-usage/cxx.json | 98 +- site/src/data/tmux-usage/fsharp.json | 40 +- site/src/data/tmux-usage/go.json | 308 +-- site/src/data/tmux-usage/java.json | 404 ++-- site/src/data/tmux-usage/julia.json | 148 +- site/src/data/tmux-usage/kotlin.json | 231 ++- site/src/data/tmux-usage/powershell.json | 70 +- site/src/data/tmux-usage/py.json | 191 +- site/src/data/tmux-usage/rs.json | 251 ++- site/src/data/tmux-usage/ruby.json | 105 +- site/src/data/tmux-usage/scala.json | 374 ++-- site/src/data/tmux-usage/swift.json | 177 +- site/src/data/tmux-usage/ts.json | 127 +- site/test/tmux-library-usage.test.ts | 69 +- site/test/tmux-usage-derive.test.ts | 422 +++- 28 files changed, 6578 insertions(+), 1838 deletions(-) create mode 100644 scripts/tmux-usage/dispatchers.json diff --git a/scripts/README.md b/scripts/README.md index c6c591c32..5d9edbe03 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -171,18 +171,57 @@ $ node scripts/gen-tmux-catalog.mjs --check --source ~/study/c/tmux each tmux command and at which scope, in `site/src/data/tmux-usage/.json`. It reads each port's source at the revision its API model was extracted from, through the port checkouts named in `ports.ts` or -`LIBTMUX_DOCS_CHECKOUT_`. A symbol is credited when a command-name -literal, with the flags beside it, sits in its own body or in one private -helper it calls. A literal that is compared against, named by a `case`, or -passed to a call that checks or fails (`validate...`, `failed(...)`, `...Error`) -names a command and does not send it, and is not a site. Neither is a command -that sits in the arguments of one that runs commands (`if-shell`, `run-shell`, -`set-hook`, `bind-key`, `command-prompt`, `confirm-before` and the like): in +`LIBTMUX_DOCS_CHECKOUT_`. + +A command is recorded for a symbol only where it is sent. A literal that names +a command is a send when it is an argument of a call that dispatches, in the +same statement (`self.cmd("list-panes", ...)`, `run(core, Command::new("..."))`), +or when it builds a command value, bound to a name or returned, that the same +function then passes to one. The entry cites the line of that dispatch call, not +the line that spells the command. The dispatching calls of each port are in +`tmux-usage/dispatchers.json`, each with the lines of the pinned source that +show it sends what it is given (`kind: "builder"` names the calls that only +make a command value: `Command::new`, `TmuxCommand(...)`). A literal that +reaches no dispatching call sends nothing, and is not a site: + +- a command compared against or named by a `case`; +- a row or format selector (`get_output_format("list-sessions", ...)`); +- a label or the argument of a call that checks or fails (`validate...`, + `failed(...)`, `...Error`, a `throw`); +- a command chosen among others by a ternary, a `match` arm or a receiver's + class (`is_a?(Hooks) ? "set-hook" : "set-option"`), unless every alternative is + the same command (`detach-client` with and without `-E`); +- an argument of a helper that never dispatches it. + +A helper that builds a command and returns it sends nothing itself: its caller +sends it, and is credited with three lines, the dispatch call, the call of the +helper and the literal. A command that sits in the arguments of one that runs +commands (`if-shell`, `run-shell`, `set-hook`, `bind-key`, `command-prompt`, +`confirm-before` and the like) is not sent either: in `["if-shell", "-F", cond, quoteCommand(["resize-pane", "-Z"])]` the library sends `if-shell`, and tmux runs `resize-pane` when the condition holds. +What the scan follows is a literal into a dispatch call in one statement, into +a variable or collection that a later call in the function takes, and out of a +helper that returns it to the one call that dispatches it. A command that is +handed to a helper that dispatches it (`record(names, batch, options)`), that +passes through a second helper that only returns it, or that is started as a +process (`Process.spawn`, `posix_spawnp`, `exec.Command(...).Start()`) is a claim, +because no call named in `dispatchers.json` takes it. + +A symbol that calls a function that sends is credited with the command at one +more hop for each call. A hop is matched by the function the call resolves to, +not by its name: an unqualified call or one on `self` is the caller's own +type's, a call on a handle named for a type is that type's, and a call on +anything else is left unresolved, so `Pane.split` calling `options.into_command` +is not a call of `CaptureOptions::into_command`. + Only public API is recorded: a symbol with an underscore name, a `private` modifier or an internal scope is left out of the scan and refused in a document. +So is a member whose signature spells a narrower visibility (`protected`, +`internal`, `fileprivate`, `pub(crate)`), and in Java, which spells no visibility +for the default, a member declared without `public` (an interface member and an +enum constant are public without saying so). Three files beside the script hold what a scan cannot decide, and each line of them is verified against the pinned source, so generation fails when one no @@ -192,25 +231,47 @@ longer holds: scope carried by a typed argument, a call into a snapshot, a chain of more than one helper). Each claim cites the lines that make it true. A claim that names `via` stands on a core library's entry for the same command and scope. + A send that is an alternative of the method's own purpose and that only + some arguments reach (`selectWindow("next")` sending `next-window`, `new_session` + killing an existing session when `kill_session` is set) is a claim that says the + condition in `when`. - `forwarders.json`: the wrappers that stand on a core library, Kotlin and Scala on Java, F# and the PowerShell cmdlets on C#. A wrapper that calls a core method that sends is credited at the core's scope, with both hops as evidence; a wrapper that only builds a request sends nothing and is named in the page's "No method in" line. -- `exclusions.json`: the symbols that carry a command's name and only build or - record it (a plan, a chain, a request that turns itself into a command), or - that pass the name of a list command only to choose the format of the row they - read. Each cites the lines that show it, an exclusion that removes nothing - fails, and `commands` limits it to those commands of the symbols it names. +- `exclusions.json`: the symbols whose scanned send is not what a default call + does: a probe that runs only when an optional argument, a name or a tmux + release asks for it (`capture` asking `list-commands` whether a flag exists), + a branch that the caller's argument never takes (`exitCopyMode` reaching the + `copy-mode` branch of a helper that `enterCopyMode` shares), or a request + option that a wrapper never sets. Each cites the lines that show the guard, + an exclusion that removes nothing fails, and `commands` limits it to those + commands of the symbols it names. +- `dispatchers.json`: the calls that send what they are given, per port, and the + calls that only build a command value. Each cites the lines of the pinned + source that show it, and generation fails when one no longer holds. - `not-senders.json`: why a public method whose own name carries a command has - no entry for it, one of `builds`, `other-command` (it sends a different - command, or runs it only inside the arguments of one that runs commands), + no entry for it, one of `builds` (it builds a command for a caller, or only + holds one), `other-command` (it sends a different command, or runs it only + inside the arguments of one that runs commands, or passes its name to choose + the format of the row it reads), `values` (a field or a value holder), `no-send`, or `version-gated`. Each cites the lines that show it, and a review that settles nothing is stale and fails. -An entry must hold on every tmux release the port supports at its revision. A -method that sends one command on some of those releases and another on the rest +An entry records what the default call sends, on every tmux release the port +supports at its revision. What an argument changes (`new_session` killing an +existing session of the same name, `breakPane` sending `if-shell` when no +`named:` is given) belongs to a claim that says the condition in `when`, and an +auxiliary probe that only an argument asks for belongs to an exclusion. The scan +does not tell a send guarded by a parameter from an unguarded one, so these were +found by listing every entry whose cited lines sit under an `if`, a `case` or a +loop and reading each; a guard written as an early `return` or `next unless` +before the send is not found that way. Among several sends of one command in a +function, the entry cites the one reached by the fewest calls and then under the +fewest branches. A method that sends one command on some of +those releases and another on the rest is `version-gated`, and is recorded as neither; its review cites the gate, both branches and the line that sets the supported floor below the gate, so that the range the gate splits is shown to be supported. When a later revision raises the @@ -234,14 +295,17 @@ lines: the first text must be on the cited line itself. `--check --source` also reads back every line each entry cites, at the revision it names, and refuses the entry when the line does not say what the entry -claims: a scanned entry's first line spells the command and each later line -calls the function around the one before it, a reviewed entry's lines hold the -text its claim names, a forwarded entry's own line calls the core method and its -`via` is read as an entry of the core at the revision it names, and no entry's -first line reports a failure (`throw`, an error constructor, `failed(...)`) or, -for a claim, binds the command to a name in a function that goes on to send it. -It reads the entries as committed, so an error made in generation that -regeneration reproduces is still seen. +claims: a scanned entry's first line is a dispatch site of the scan of that file +(a call that sends the command, not a line that spells it), and each later line +is a call of the function around the one before it, resolved by receiver and not +by name; a reviewed entry's lines hold the text its claim names, a forwarded +entry's own line calls the core method and its `via` is read as an entry of the +core at the revision it names, and no entry's first line reports a failure +(`throw`, an error constructor, `failed(...)`) or, for a claim, binds the command +to a name in a function that goes on to send it. It reads the entries as +committed, so an error made in generation that regeneration reproduces is still +seen. `gen-tmux-usage.negative.mjs` replays an entry cited at each kind of line +that is not a send, against the sources, and expects the audit to refuse it. A method named for a command and recorded as sending nothing of it is how a miss is found, and the check refuses it until a claim records the send or a diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index 4957e4447..b160f19a4 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -44,6 +44,7 @@ const claimsPath = join(root, 'scripts/tmux-usage/claims.json') const forwardersPath = join(root, 'scripts/tmux-usage/forwarders.json') const exclusionsPath = join(root, 'scripts/tmux-usage/exclusions.json') const reviewsPath = join(root, 'scripts/tmux-usage/not-senders.json') +const dispatchersPath = join(root, 'scripts/tmux-usage/dispatchers.json') export const SCHEMA_VERSION = 1 /** The commands whose usage is recorded: every command of the pinned manuals, unless `--commands` names some. */ export const COMMANDS = 'all' @@ -132,11 +133,37 @@ export const isPrivateSymbol = (symbol) => (symbol.name.startsWith('_') && !/^__ || (symbol.publicId ?? symbol.id).replace(/\(.*$/s, '').split(/[.:#\\/]+/).slice(0, -1).some((segment) => UNDERSCORE.test(segment)) || Boolean(symbol.modifiers?.includes('private')) || symbol.apiScope === 'internal' +/** + * The declaration of a signature up to its parameters, without the annotations and attributes in front of it. + * `pub(crate)` is a visibility, not a call, so it is named before the parameters are cut off. + */ +const declarationOf = (raw) => raw + .replace(/#!?\[[^\]]*\]\s*/g, '') + .replace(/@\w+(?:\([^)]*\))?\s*/g, '') + .replace(/\bpub\((?:crate|super|self|in\s[^)]*)\)/g, 'pub_restricted') + .split('(')[0] + +/** + * Whether a member is not callable by a library's user, by the visibility its own signature spells: `private`, `protected`, + * `internal`, `fileprivate` or a restricted `pub`. Java alone leaves the visibility off for the default, so a member of a class + * declared without `public` is package-private there; a member of an interface is public without saying so, and so is an enum + * constant. A port whose model carries no signature text keeps the filter of its own extractor. + */ +const NON_PUBLIC = /\b(?:private|protected|internal|fileprivate|pub_restricted)\b/ +export const notPublic = (symbol, byId, port) => { + const raw = symbol.signatures?.[0]?.raw + if (!raw) return false + const declaration = declarationOf(raw) + if (NON_PUBLIC.test(declaration)) return true + if (port !== 'java' || ['interface', 'enum'].includes(byId.get(symbol.parent)?.kind)) return false + return !/\bpublic\b/.test(declaration) +} + /** Callable public symbols, in the shape the derivation reads: a library's private helpers are not API to use. */ export function publicSymbols(model) { const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) return model.symbols - .filter((symbol) => !isPrivateSymbol(symbol) && symbol.source?.file && !EXAMPLES.test(symbol.source.file) + .filter((symbol) => !isPrivateSymbol(symbol) && !notPublic(symbol, byId, model.port) && symbol.source?.file && !EXAMPLES.test(symbol.source.file) && ['function', 'method', 'property', 'attribute'].includes(symbol.kind)) .map((symbol) => ({ id: symbol.publicId ?? symbol.id, @@ -163,7 +190,7 @@ export function portDocument(port, model, found, commands) { } /** Read a port's source at its pinned revision: every function, and the public symbols that name them. */ -export async function scanPort({ port, model, commands, checkout, known }) { +export async function scanPort({ port, model, commands, checkout, known, dispatch, builders, trace }) { const grammar = GRAMMARS[port] const symbols = publicSymbols(model) const functions = [] @@ -171,7 +198,7 @@ export async function scanPort({ port, model, commands, checkout, known }) { const sources = grammar ? librarySources(checkout, model.revision, grammar) : new Map() const wanted = new Set(commands) for (const [path, text] of sources) { - const scanned = await scanSource({ grammar, text, commands: wanted, known }) + const scanned = await scanSource({ grammar, text, commands: wanted, known, dispatch, builders, trace }) for (const fn of scanned.functions) functions.push({ ...fn, file: path }) for (const type of scanned.types) types.push({ ...type, file: path }) } @@ -239,14 +266,14 @@ async function modelAtRevision({ port, checkout, revision }) { /** The Operation annotation above the core method that sends, the line that makes a generated wrapper forward to it. */ function operationAnnotation(core, kinds) { const pattern = new RegExp(`@Operation\\(\\s*Kind\\.(?:${kinds.join('|')})\\s*\\)`) - return (entry) => { - const last = entry.evidence.at(-1) - const file = last.slice(0, last.lastIndexOf(':')) - const line = Number(last.slice(last.lastIndexOf(':') + 1)) - const fn = core.functions.find((candidate) => candidate.file === file && candidate.start <= line && line <= candidate.end) - const text = fn && core.readSource(file)?.split('\n') - if (!fn || !text) return undefined - for (let at = fn.start; at <= fn.nameLine; at++) if (pattern.test(text[at - 1] ?? '')) return `${file}:${at}` + return (entry, symbol) => { + // The method a wrapper forwards to is the public one the entry belongs to; the lines it cites may be in a helper. + const name = symbol?.name.replace(/\(.*$/s, '') + const candidates = core.functions.filter((fn) => symbol && fn.file === symbol.file && fn.name === name && fn.start <= (symbol.line ?? 0) + 2 && (symbol.line ?? 0) <= fn.end) + for (const fn of candidates.length ? candidates : core.functions.filter((other) => symbol && other.file === symbol.file && other.name === name)) { + const text = core.readSource(fn.file)?.split('\n') + for (let at = fn.start; text && at <= fn.nameLine; at++) if (pattern.test(text[at - 1] ?? '')) return `${fn.file}:${at}` + } return undefined } } @@ -296,10 +323,11 @@ export function documentProblems(document, model, scopes, commands, viaRevision) if (document.revision !== model.revision) problems.push(`records ${document.revision}, but the API model is at ${model.revision}`) if (JSON.stringify(document.commands) !== JSON.stringify([...commands].sort())) problems.push(`covers ${JSON.stringify(document.commands)}, expected ${JSON.stringify([...commands].sort())}`) const ids = new Set(model.symbols.map((symbol) => symbol.publicId ?? symbol.id)) - const privateIds = new Set(model.symbols.filter(isPrivateSymbol).map((symbol) => symbol.publicId ?? symbol.id)) + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + const privateIds = new Set(model.symbols.filter((symbol) => isPrivateSymbol(symbol) || notPublic(symbol, byId, model.port)).map((symbol) => symbol.publicId ?? symbol.id)) for (const [symbol, uses] of Object.entries(document.symbols)) { if (!ids.has(symbol)) problems.push(`${symbol}: not a symbol of the API model`) - else if (privateIds.has(symbol)) problems.push(`${symbol}: is private, and only public API is recorded`) + else if (privateIds.has(symbol)) problems.push(`${symbol}: is private or package-private, and only public API is recorded`) for (const use of uses) { const scoped = scopes.commands[use.command]?.scopes if (!commands.includes(use.command)) problems.push(`${symbol}: ${use.command} is not a recorded command`) @@ -332,11 +360,35 @@ function sweepProblems({ port, model, document, reviews, exclusions, report, rea return problems } +/** + * The dispatch APIs of a port: the calls that take a tmux command and send it. Each names the code that defines it, and + * the definition must still be there. A command literal is recorded as a send only where it reaches one of these. + */ +export function dispatcherProblems({ port, dispatchers, readSource }) { + const problems = [] + for (const rule of dispatchers) { + const label = `${port}: dispatcher ${rule.name}` + if (!rule.name || !rule.why?.trim()) { problems.push(`${label}: names no call or gives no reason`); continue } + if (!rule.evidence?.length) { problems.push(`${label}: cites no definition`); continue } + let defined = false + for (const item of rule.evidence) { + const cut = item.at.lastIndexOf(':') + const line = readSource(item.at.slice(0, cut))?.split('\n')[Number(item.at.slice(cut + 1)) - 1] + if (line === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!line.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + if ((item.has ?? []).some((needle) => needle.includes(rule.name))) defined = true + } + if (!defined) problems.push(`${label}: no cited line shows ${rule.name} defined`) + } + return problems +} + export async function main() { const scopes = readJson(join(usageDir, 'scopes.json')) const claims = existsSync(claimsPath) ? readJson(claimsPath).claims : [] const exclusions = existsSync(exclusionsPath) ? readJson(exclusionsPath).exclusions : [] const reviews = existsSync(reviewsPath) ? readJson(reviewsPath).reviews : [] + const dispatchers = existsSync(dispatchersPath) ? readJson(dispatchersPath).dispatchers : [] const ports = await portsWithModels() const report = [] const failures = [] @@ -374,15 +426,21 @@ export async function main() { async function derivePass({ port, model, core }) { const pinned = models.get(port.slug).revision const rules = (list) => list.filter((rule) => rule.port === port.slug && ruleHolds(rule, model.revision, pinned)) - const scanned = await scanPort({ port: port.slug, model, commands: commandsToRecord, checkout: checkoutFor(port), known }) + // A dispatch API is a name, so it holds at any revision of its port; its definition is checked at the model's. + const apis = dispatchers.filter((api) => api.port === port.slug && (!api.revision || model.revision.startsWith(api.revision))) + const scanned = await scanPort({ + port: port.slug, model, commands: commandsToRecord, checkout: checkoutFor(port), known, + dispatch: new Set(apis.filter((api) => api.kind !== 'builder').map((api) => api.name)), builders: new Set(apis.filter((api) => api.kind === 'builder').map((api) => api.name)), + }) scans.set(scanKey(port.slug, model.revision), { read: scanned.readSource, functions: scanned.functions }) + const dispatchProblems = model.revision === pinned ? dispatcherProblems({ port: port.slug, dispatchers: apis, readSource: scanned.readSource }) : [] const sends = (parent, symbol, command, scope) => { const entry = core?.found.get(`${symbol}\0${command}\0${scope}`) return parent === core?.port && entry ? { ...entry, revision: core.revision } : undefined } const { found, problems } = derivePort({ port: port.slug, scanned, commands: commandsToRecord, scopes, claims: rules(claims), report, sends }) const excluded = applyExclusions({ exclusions: rules(exclusions), found, symbols: scanned.symbols, readSource: scanned.readSource }) - return { port: port.slug, revision: model.revision, found, scanned, problems: [...problems, ...excluded.problems] } + return { port: port.slug, revision: model.revision, found, scanned, problems: [...dispatchProblems, ...problems, ...excluded.problems] } } /** The core library as the wrapper sees it: read where the wrapper is pinned if they share a repository, else at the core's model. */ @@ -444,6 +502,7 @@ export async function main() { failures.push(...auditEvidence({ port: port.slug, revision: model.revision, claimFor, spellings: (command) => spellings.get(command) ?? [command], sourcesAt: (slug, revision) => scans.get(scanKey(slug, revision)), + dispatchFor: (slug) => new Set(dispatchers.filter((api) => api.port === slug).map((api) => api.name)), generated: config?.generated && { evidence: config.generated.evidence.map((item) => item.at) }, uses: Object.entries(subject.symbols).flatMap(([symbol, uses]) => uses.map((use) => ({ symbol, ...use }))), })) diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 7af8c528d..83d69e5de 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -12,6 +12,14 @@ * private helper recorded as API, a wrapper that cites its core library's lines * at a revision other than the one they must be read at, and (with the sources * checked out) core lines that read as something else at the revision cited. + * + * With the sources checked out it also replays, for each way a literal can reach a line + * without being sent, an entry that an earlier generation recorded: a comparison, a row + * or format selector, a label in a thrown error, a choice made by a condition or by the + * class of a receiver, a helper that never dispatches, a generic runner that an allowlist + * admits, and a literal cited where only its builder was. + * Each is refused by the audit that reads the cited line, and the entry beside it that + * does send is accepted. */ import { cpSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' import { homedir } from 'node:os' @@ -114,7 +122,7 @@ check('the same miss fails in another port, and the other ports stay quiet', cov const privateHelper = fixture() edit(privateHelper, 'py', (document) => { document.symbols['libtmux.Server._show_option'] = first(document)[1] }) const privateRun = run(privateHelper) -check('a private helper recorded as API fails', privateRun.code !== 0 && /py: libtmux.Server._show_option: is private, and only public API is recorded/.test(privateRun.out), privateRun.out) +check('a private helper recorded as API fails', privateRun.code !== 0 && /py: libtmux.Server._show_option: is private or package-private, and only public API is recorded/.test(privateRun.out), privateRun.out) const viaMoved = fixture() edit(viaMoved, 'fsharp', (document) => { @@ -142,11 +150,43 @@ if (existsSync(join(process.env.LIBTMUX_DOCS_CHECKOUT_FSHARP ?? join(homedir(), check('a reviewed core line that is not the one its claim cites fails', reviewedRun.code !== 0 && /Server.Lifecycle.cs:368 where its claim cites src\/LibTmux\/Server.Lifecycle.cs:269/.test(reviewedRun.out), reviewedRun.out) const scanned = fixture() edit(scanned, 'fsharp', (document) => { - document.symbols['LibTmux.FSharp.Pane.sendKeys'].find((candidate) => candidate.command === 'send-keys').via.evidence[0] = 'src/LibTmux/Pane.Input.cs:8' + document.symbols['LibTmux.FSharp.Pane.capture'].find((candidate) => candidate.command === 'capture-pane').via.evidence[0] = 'src/LibTmux/Pane.Capture.cs:22' }) const scannedRun = runSource(scanned, 'fsharp') - check('a scanned core line that does not spell the command fails', scannedRun.code !== 0 && /src\/LibTmux\/Pane.Input.cs:8 does not spell send-keys/.test(scannedRun.out), scannedRun.out) + check('a scanned core line that names the command in a failure and does not send it fails', scannedRun.code !== 0 && /src\/LibTmux\/Pane.Capture.cs:22 is not a call that sends capture-pane/.test(scannedRun.out), scannedRun.out) } else console.log('skip core lines read at the revision cited: no checkout of the .NET repository') +// A recorded entry is a call that sends, so a line that only spells the command fails whatever kind of line it is. Each case seeds, into +// a port's committed document, the entry an earlier generation recorded from such a line, and expects the audit of that port to name it. +const CHECKOUTS = { + py: '~/work/python/libtmux', java: '~/work/libtmux/libtmux-java', ts: '~/work/libtmux/libtmux-ts', swift: '~/work/libtmux/libtmux-swift', + ruby: '~/work/libtmux/libtmux-ruby', rs: '~/work/libtmux/libtmux-rs', julia: '~/work/libtmux/libtmux-julia', go: '~/work/libtmux/libtmux-go', +} +const checkoutOf = (port) => (process.env[`LIBTMUX_DOCS_CHECKOUT_${port.toUpperCase()}`] ?? CHECKOUTS[port]).replace(/^~/, homedir()) +const SENDS_NOTHING = [ + ['a format selector', 'py', 'libtmux.Server.new_session', 'list-sessions', ['src/libtmux/server.py:2341'], /py: libtmux.Server.new_session list-sessions: src\/libtmux\/server.py:2341 is not a call that sends list-sessions \(it is an argument of get_output_format/], + ['a comparison', 'java', 'io.github.libtmux.Prompt.Prompt.clear', 'show-prompt-history', ['libtmux/src/main/java/io/github/libtmux/Prompt.java:49', 'libtmux/src/main/java/io/github/libtmux/Prompt.java:44'], /java: io.github.libtmux.Prompt.Prompt.clear show-prompt-history: libtmux\/src\/main\/java\/io\/github\/libtmux\/Prompt.java:49 is not a call that sends show-prompt-history/], + ['a label in a thrown error', 'ts', 'server.Server.validateLayouts', 'display-message', ['packages/libtmux/src/_internal/operations/layout.ts:42', 'packages/libtmux/src/server.ts:955'], /ts: server.Server.validateLayouts display-message: packages\/libtmux\/src\/_internal\/operations\/layout.ts:42 is not a call that sends display-message/], + ['a ternary between two commands', 'swift', 'Server.link(_:into:)', 'move-window', ['Sources/LibTmux/WindowTransfers.swift:75', 'Sources/LibTmux/WindowTransfers.swift:20'], /swift: Server.link\(_:into:\) move-window: Sources\/LibTmux\/WindowTransfers.swift:75 is not a call that sends move-window \(a condition chooses it/], + ['the class of a receiver choosing the command', 'ruby', 'LibTmux::Hooks#unset', 'set-option', ['gems/libtmux/lib/libtmux/options.rb:107'], /ruby: LibTmux::Hooks#unset set-option: gems\/libtmux\/lib\/libtmux\/options.rb:107 is not a call that sends set-option \(a condition chooses it/], + ['a helper that never dispatches', 'java', 'io.github.libtmux.batch.Batch.Batch.length', 'display-message', ['libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94', 'libtmux/src/main/java/io/github/libtmux/batch/Batch.java:72'], /java: io.github.libtmux.batch.Batch.Batch.length display-message: libtmux\/src\/main\/java\/io\/github\/libtmux\/batch\/Batch.java:94 is not a call that sends display-message/], + ['a generic runner that an allowlist admits', 'julia', 'LibTmux.run_command', 'kill-pane', ['src/control_protocol.jl:427', 'src/control.jl:580'], /julia: LibTmux.run_command kill-pane: src\/control_protocol.jl:427 is not a call that sends kill-pane/], + ['the line that builds the command, where the call that sends is further down', 'rs', 'server.Server.command_prompt', 'command-prompt', ['crates/libtmux/src/server/interactive.rs:105'], /rs: server.Server.command_prompt command-prompt: crates\/libtmux\/src\/server\/interactive.rs:105 is not a call that sends command-prompt/], + ['the literal of a builder, with the hop to a method of another type that shares its name', 'rs', 'pane.Pane.split', 'capture-pane', ['crates/libtmux/src/pane.rs:1618', 'crates/libtmux/src/pane.rs:515'], /rs: pane.Pane.split capture-pane: crates\/libtmux\/src\/pane.rs:1618 is not a call that sends capture-pane \(it builds a value for the caller\)/], +] +const sourced = new Map() +for (const [name, port, symbol, command, lines, message] of SENDS_NOTHING) { + if (!existsSync(join(checkoutOf(port), '.git'))) { console.log(`skip ${name}: no checkout of ${port}`); continue } + if (!sourced.has(port)) { + const control = runSource(fixture(), port) + sourced.set(port, control.code === 0) + check(`the committed ${port} entries read as cited`, control.code === 0, control.out) + } + const seeded = fixture() + edit(seeded, port, (document) => { document.symbols[symbol] = [...(document.symbols[symbol] ?? []), { command, scope: null, evidence: lines }] }) + const seededRun = runSource(seeded, port) + check(`an entry cited at ${name} fails`, seededRun.code !== 0 && message.test(seededRun.out), seededRun.out) +} + for (const dir of dirs) rmSync(dir, { recursive: true, force: true }) if (failures) process.exit(1) diff --git a/scripts/lib/tmux-usage-audit.mjs b/scripts/lib/tmux-usage-audit.mjs index 56ece8fc2..79b233f48 100644 --- a/scripts/lib/tmux-usage-audit.mjs +++ b/scripts/lib/tmux-usage-audit.mjs @@ -7,8 +7,9 @@ * the source instead. Each cited line must exist at the revision named for it, and must say what the entry * claims of it: * - * - a scanned entry cites a line that spells the command, and each later line calls the function around the - * line before it; + * - a scanned entry cites the call that sends the command, which is a dispatch site of the scan of that file + * at that revision, and each later line is a call of the function around the line before it, resolved by + * what it is called on and not by its name; * - a reviewed entry cites the lines its claim names, holding the text the claim says they hold; * - a forwarded entry cites a line that calls the core method, and its `via` is audited at the revision it * names, as an entry of the core library; @@ -16,7 +17,7 @@ * command to describe what went wrong with it, and sends nothing. A reviewed entry's first line is not a * builder that only binds the command to a name either, because a claim is read for the line that sends. */ -import { bareName } from './tmux-usage-derive.mjs' +import { bareName, builtSites, callTargets } from './tmux-usage-derive.mjs' const split = (cite) => { const colon = cite.lastIndexOf(':') @@ -32,12 +33,11 @@ export const REPORTS_FAILURE = /\b(?:throw|raise|panic!)\b|\bThrowIf\w*\(|\bErr\ * same function goes on to send it: `run(...)` or `execute(...)` a few lines later is the line that sends. */ export const BINDS_ONLY = /^(?:let|var|val|const)\b[^=]*=\s*(?:[\w.]+\()?\s*Command::new\(|^\.apply\(Command::new\(/ -const DISPATCHERS = new Set(['run', 'mutate', 'cmd', 'execute', 'send', 'dispatch', 'dispatch_without_deadline']) /** * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], reviewed?: boolean, * via?: { port: string, symbol: string, revision: string, evidence: string[], reviewed?: boolean } }} Use - * @typedef {{ read: (path: string) => string | undefined, functions: { file: string, name: string, start: number, end: number, calls: Map }[] }} Sources + * @typedef {{ read: (path: string) => string | undefined, functions: { file: string, name: string, owner?: string, start: number, end: number, sites: { command: string, line: number, dispatch?: { line: number } | null, why?: string }[], calls: Map, receivers: Map> }[] }} Sources * * @param {{ * port: string, @@ -47,10 +47,12 @@ const DISPATCHERS = new Set(['run', 'mutate', 'cmd', 'execute', 'send', 'dispatc * sourcesAt: (port: string, revision: string) => Sources | undefined, * spellings: (command: string) => string[], * generated?: { evidence: string[] }, - * }} input `generated` is the evidence a generated wrapper's entries open with, which names the generator and not a call. + * dispatchFor?: (port: string) => ReadonlySet, + * }} input `generated` is the evidence a generated wrapper's entries open with, which names the generator and not a call; + * `dispatchFor` gives the names of the calls that send, for the lines of a claim that hold one. * @returns {string[]} */ -export function auditEvidence({ port, revision, uses, claimFor, sourcesAt, spellings, generated }) { +export function auditEvidence({ port, revision, uses, claimFor, sourcesAt, spellings, generated, dispatchFor = () => new Set() }) { const problems = [] const enclosing = (sources, file, line) => sources.functions .filter((fn) => fn.file === file && fn.start <= line && line <= fn.end) @@ -74,9 +76,7 @@ export function auditEvidence({ port, revision, uses, claimFor, sourcesAt, spell return } - if (REPORTS_FAILURE.test(texts[0]) && !use.reviewed) { - problems.push(`${label}: ${use.evidence[0]} reports a failure and sends nothing: ${texts[0].trim().slice(0, 90)}`) - } + const apis = dispatchFor(at) if (use.reviewed) { const claim = claimFor(at, use.symbol, use.command, use.scope, atRevision) if (!claim) problems.push(`${label}: reviewed, but no claim of ${at} holds it at ${atRevision.slice(0, 8)}`) @@ -93,27 +93,46 @@ export function auditEvidence({ port, revision, uses, claimFor, sourcesAt, spell } const { file: firstFile, line: firstLine } = split(use.evidence[0]) const builder = enclosing(sources, firstFile, firstLine) - if (BINDS_ONLY.test(texts[0].trim()) && builder && [...builder.calls.keys()].some((name) => DISPATCHERS.has(name))) { + if (BINDS_ONLY.test(texts[0].trim()) && builder && [...builder.calls.keys()].some((name) => apis.has(name))) { problems.push(`${label}: ${use.evidence[0]} only binds the command to a name in ${builder.name}, which goes on to send it; cite the line that sends it: ${texts[0].trim().slice(0, 90)}`) } - if (REPORTS_FAILURE.test(texts[0])) problems.push(`${label}: ${use.evidence[0]} reports a failure and sends nothing: ${texts[0].trim().slice(0, 90)}`) + // A line that holds a dispatch call sends, whatever else it does with the result: `if let Err(e) = mutate(...)`. + const sends = [...apis].some((name) => new RegExp(`\\b${name}\\s*[(<]`).test(texts[0])) + if (REPORTS_FAILURE.test(texts[0]) && !sends) problems.push(`${label}: ${use.evidence[0]} reports a failure and sends nothing: ${texts[0].trim().slice(0, 90)}`) } else if (use.via) { - // A wrapper's own line calls the core method by name. - if (!texts.at(-1).includes(bareName(use.via.symbol))) { - problems.push(`${label}: ${use.evidence.at(-1)} does not call ${bareName(use.via.symbol)}: ${texts.at(-1).trim().slice(0, 90)}`) + // A wrapper's own line is a call of the core method, made in the function that holds the line. + const { file: lastFile, line: lastLine } = split(use.evidence.at(-1)) + const caller = enclosing(sources, lastFile, lastLine) + if (!caller || caller.calls.get(bareName(use.via.symbol)) !== lastLine) { + problems.push(`${label}: ${use.evidence.at(-1)} is not a call of ${bareName(use.via.symbol)}: ${texts.at(-1).trim().slice(0, 90)}`) } } else { + // The first line is the call that sends the command: a dispatch site of the scan of that file at that revision. A helper + // that built the command and handed it back adds the call of the helper and the literal in it, after the dispatch call. const spelled = spellings(use.command) - const dollar = at === 'julia' && /\$\w+/.test(texts[0]) - if (!dollar && !spelled.some((spelling) => texts[0].includes(spelling))) { - problems.push(`${label}: ${use.evidence[0]} does not spell ${use.command}: ${texts[0].trim().slice(0, 90)}`) + const { file: firstFile, line: firstLine } = split(use.evidence[0]) + const built = builtSites(sources.functions) + let consumed = 1 + const holder = sources.functions.find((fn) => fn.file === firstFile && [...fn.sites, ...(built.get(fn) ?? [])].some((site) => { + if (!spelled.includes(site.command) || (site.dispatch === undefined ? site.line !== firstLine : site.dispatch?.line !== firstLine)) return false + if (!site.via) return true + const sameBuilder = use.evidence[1] === `${fn.file}:${site.via.call}` && use.evidence[2] === `${site.via.file}:${site.line}` + if (sameBuilder) consumed = 3 + return sameBuilder + })) + if (!holder) { + const other = sources.functions.filter((fn) => fn.file === firstFile).flatMap((fn) => fn.sites).find((site) => spelled.includes(site.command) && site.line === firstLine && site.dispatch === null) + problems.push(`${label}: ${use.evidence[0]} is not a call that sends ${use.command}${other ? ` (${other.why})` : ''}: ${texts[0].trim().slice(0, 90)}`) } - for (let index = 1; index < texts.length; index++) { - const { file, line } = split(use.evidence[index - 1]) - const fn = enclosing(sources, file, line) - if (!fn) problems.push(`${label}: ${use.evidence[index - 1]} is in no function, so ${use.evidence[index]} calls nothing`) - else if (!texts[index].includes(bareName(fn.name))) { - problems.push(`${label}: ${use.evidence[index]} does not call ${fn.name}, the function around ${use.evidence[index - 1]}: ${texts[index].trim().slice(0, 90)}`) + // Each later line is a call, in the function that holds it, of the function around the line before. + const named = (name) => sources.functions.filter((fn) => fn.name === name) + for (let index = consumed; holder && index < texts.length; index++) { + const callee = index === consumed ? holder : enclosing(sources, split(use.evidence[index - 1]).file, split(use.evidence[index - 1]).line) + const next = split(use.evidence[index]) + const caller = enclosing(sources, next.file, next.line) + if (!callee) problems.push(`${label}: ${use.evidence[index - 1]} is in no function, so ${use.evidence[index]} calls nothing`) + else if (!caller || caller.calls.get(callee.name) !== next.line || !callTargets(caller, callee, named(callee.name))) { + problems.push(`${label}: ${use.evidence[index]} is not a call of ${callee.owner ? `${callee.owner}.` : ''}${callee.name}, the function around ${use.evidence[index - 1]}: ${texts[index].trim().slice(0, 90)}`) } } } diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs index 114f0900f..e7cce32fb 100644 --- a/scripts/lib/tmux-usage-derive.mjs +++ b/scripts/lib/tmux-usage-derive.mjs @@ -31,6 +31,31 @@ export function classify(spec, flags) { */ export const ruleHolds = (rule, revision, pinned) => (rule.revision ? revision.startsWith(rule.revision) : revision === pinned) +const SELF_RECEIVERS = new Set(['this', 'self', 'base', 'super', 'cls', 'me']) + +/** + * Whether a call in `caller` is a call of `callee`. A name that only one function has can be nothing else. A name that + * several share is resolved by what the call is made on: an unqualified call or one on `self` is the caller's own type's + * (a free function, when the callee has no type), and a call on a handle named for a type is that type's. A call on + * anything else is left unresolved, because naming `into_command` is not naming the one in `CaptureOptions`. + * + * @param {{ calls: Map, receivers: Map>, owner?: string }} caller + * @param {{ name: string, owner?: string, file?: string }} callee + * @param {{ owner?: string, file?: string }[]} named every function of the port that has the callee's name + */ +export function callTargets(caller, callee, named) { + if (!caller.calls.has(callee.name)) return false + if (named.length <= 1) return true + const receivers = caller.receivers.get(callee.name) + // Go names its receiver, `func (p Pane) ...`, and calls its own methods on it. + const unqualified = !receivers || [...receivers].every((receiver) => SELF_RECEIVERS.has(receiver) || receiver === caller.selfName) + // A call with no handle in front of it is a free function's, and with a second free function of the name it is the one in the + // caller's own file or none: which one an import names is not read. + if (callee.owner === undefined) return !receivers && (caller.file === callee.file || named.filter((other) => other.owner === undefined).length === 1) + if (unqualified) return caller.owner === callee.owner + return receivers.has(callee.owner.toLowerCase()) +} + /** `panes(where:)`, `Server.panes` and `Server#list_panes` all name their last identifier. */ export function bareName(name) { // Kotlin and Scala quote a name that is also a keyword: Buffers.`set`. @@ -85,26 +110,49 @@ export function definitionsOf(functions, symbols, { sharedOwner = false, freeFun return definitions } +/** + * A helper that builds a command and hands it back sends nothing itself: its caller sends the value it gets, by passing the + * call to a dispatch call or the variable it binds the call to. That is a send of the caller, made with a command the helper + * spelled, and it is recorded at the dispatch call with the call of the helper and the literal after it. + * + * @returns {Map} the sites to add to each function that sends through a helper + */ +export function builtSites(functions) { + const byName = Map.groupBy(functions, (fn) => fn.name) + const built = new Map() + for (const caller of functions) { + for (const call of caller.callsites ?? []) { + const candidates = byName.get(call.name) ?? [] + for (const builder of candidates) { + const sites = builder.sites.filter((site) => site.builds) + if (builder === caller || !sites.length) continue + const pseudo = { file: caller.file, calls: new Map([[call.name, call.line]]), receivers: new Map(call.receiver ? [[call.name, new Set([call.receiver])]] : []), owner: caller.owner } + if (!callTargets(pseudo, builder, candidates)) continue + for (const site of sites) { + const list = built.get(caller) ?? [] + if (list.some((held) => held.command === site.command && held.line === site.line && held.via.call === call.line)) continue + list.push({ command: site.command, line: site.line, flags: site.flags, dispatch: call.flows, via: { call: call.line, file: builder.file, name: builder.name } }) + built.set(caller, list) + } + } + } + } + return built +} + /** * @param {{ command: string, spec?: { scopes?: { id: string, flags: string }[] }, functions: LocatedFunction[], symbols: UsageSymbol[] }} input * @returns {{ entries: UsageEntry[], unresolved: Unresolved[] }} */ export function deriveUsage({ command, spec, functions, symbols, definitionOptions }) { + const built = builtSites(functions) const byName = Map.groupBy(functions, (fn) => fn.name) const definitions = definitionsOf(functions, symbols, definitionOptions) + /** The functions that call `fn`, by what each call resolves to and not by the name alone. */ const callersOf = (fn) => { - const callers = (functions.filter((other) => other !== fn && other.calls.has(fn.name))) - const sameFile = callers.filter((other) => other.file === fn.file) - if (sameFile.length) return sameFile - const sameName = byName.get(fn.name) ?? [] - if (sameName.length === 1) return callers - // A method that forwards to a free function of its own name, `sendKeys(runtime, id, keys)`, makes a call with no - // handle in front of it, which only a free function can answer. That settles the name while the free function is the only one. - if (fn.owner === undefined && sameName.filter((other) => other.owner === undefined).length === 1) { - return callers.filter((other) => !other.receivers.has(fn.name)) - } - return [] + const named = byName.get(fn.name) ?? [] + return functions.filter((other) => other !== fn && callTargets(other, fn, named)) } /** Public symbols reached from `fn`, each with the call sites walked to reach it. */ @@ -118,7 +166,13 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio const entries = new Map() const unresolved = [] for (const fn of functions) { - const sites = fn.sites.filter((site) => site.command === command) + const found = [...fn.sites, ...(built.get(fn) ?? [])].filter((site) => site.command === command) + if (!found.length) continue + // A literal that reaches no call that sends is a label, a comparison or a choice, and records nothing. + for (const site of found.filter((candidate) => candidate.dispatch === null)) { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: site.why ?? 'it reaches no call that sends' }) + } + const sites = found.filter((site) => site.dispatch !== null) if (!sites.length) continue const scoped = sites.map((site) => ({ site, scope: classify(spec, site.flags) })) for (const { site, scope } of scoped) { @@ -146,8 +200,15 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio } for (const { symbol, trail } of reached) { const key = `${symbol.id}\0${scope}` - const entry = { symbol: symbol.id, command, scope, evidence: [`${fn.file}:${site.line}`, ...trail.toReversed()], hops: trail.length } - if (!entries.has(key) || entries.get(key).hops > entry.hops) entries.set(key, entry) + // The line to cite is the call that sends, which is where the command is dispatched and not where it is spelled. + const lines = site.via + ? [`${fn.file}:${site.dispatch.line}`, `${fn.file}:${site.via.call}`, `${site.via.file}:${site.line}`] + : [`${fn.file}:${site.dispatch?.line ?? site.line}`] + const entry = { symbol: symbol.id, command, scope, evidence: [...lines, ...trail.toReversed()], hops: trail.length + lines.length - 1 } + // The same command sent on several paths is cited where the fewest calls reach it, then where it is under the fewest branches. + Object.defineProperty(entry, 'depth', { value: site.depth ?? 0 }) + const held = entries.get(key) + if (!held || held.hops > entry.hops || (held.hops === entry.hops && held.depth > entry.depth)) entries.set(key, entry) } } } diff --git a/scripts/lib/tmux-usage-forward.mjs b/scripts/lib/tmux-usage-forward.mjs index b30d68f3a..7f0cef8f2 100644 --- a/scripts/lib/tmux-usage-forward.mjs +++ b/scripts/lib/tmux-usage-forward.mjs @@ -21,7 +21,7 @@ import { bareName, definitionsOf } from './tmux-usage-derive.mjs' * types: { file: string, name?: string, start: number, end: number }[], * symbols: WrapperSymbol[], * core: { entries: CoreEntry[], symbols: Map, revision: string }, - * generated?: { under: string[], evidence: string[], forwards: (entry: CoreEntry) => string | undefined }, + * generated?: { under: string[], evidence: string[], forwards: (entry: CoreEntry, symbol?: { name: string, file: string, line: number }) => string | undefined }, * }} input * `core.revision` is the revision the core lines were read at, and every entry says so in its `via`. * @returns {{ entries: object[], silent: string[] }} `silent` names the wrapper symbols that call no core sender. @@ -53,7 +53,7 @@ export function forwardUsage({ parent, functions, types, symbols, core, generate // A generated operation takes its name and its handle from the core method it forwards to. for (const entry of coreByName.get(bareName(symbol.name)) ?? []) { const coreSymbol = core.symbols.get(entry.symbol) - const annotation = generated.forwards(entry) + const annotation = generated.forwards(entry, coreSymbol) if (!annotation || !wrapperOwner || bareName(coreSymbol?.parentName ?? '').toLowerCase() !== wrapperOwner) continue add(symbol, entry, [...generated.evidence, annotation]) } diff --git a/scripts/lib/tmux-usage-lexical.mjs b/scripts/lib/tmux-usage-lexical.mjs index 2db01d429..81d02ff73 100644 --- a/scripts/lib/tmux-usage-lexical.mjs +++ b/scripts/lib/tmux-usage-lexical.mjs @@ -108,8 +108,12 @@ const FLAG = /^-[A-Za-z]+$/ const flagLetters = (tokens) => new Set(tokens.filter((token) => token.t === 'str').flatMap((token) => token.v.split(/\s+/).filter((word) => FLAG.test(word)).flatMap((word) => word.slice(1).split('')))) -/** Julia: `function name(...)`, the `end` at its indent, short-form `name(...) = ...`, and the sends and calls inside. */ -export function scanJulia(text, { commands, known }) { +/** + * Julia: `function name(...)`, the `end` at its indent, short-form `name(...) = ...`, and the sends and calls inside. + * @param {string} text + * @param {{ commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet }} input + */ +export function scanJulia(text, { commands, known, dispatch }) { const lines = text.split('\n') const tokens = tokenize(text, 'julia') const groups = bracketGroups(tokens) @@ -219,19 +223,74 @@ export function scanJulia(text, { commands, known }) { } return [...flagLetters(around)].sort().join('') } + const adjacentCall = (index) => tokens[index]?.t === 'id' && !JULIA_KEYWORDS.has(tokens[index].v) && tokens[index + 1]?.v === '(' && tokens[index + 1].line === tokens[index].line + && tokens[index + 1].col === tokens[index].col + tokens[index].v.length + const symbolAt = (i, ...values) => tokens[i]?.t === 'sym' && values.includes(tokens[i].v) + /** A command that is compared with, or one of several a `?:` chooses between, names a command and sends nothing. */ + const chosenOrCompared = (index) => symbolAt(index - 1, '=', '!') && symbolAt(index - 2, '=', '!', '<', '>') || (symbolAt(index + 1, '=', '!') && symbolAt(index + 2, '=')) + || tokens[index - 1]?.v === 'in' || tokens[index - 1]?.v === '∈' || tokens[index + 1]?.v === 'in' + || tokens.some((other) => other.line === tokens[index].line && symbolAt(tokens.indexOf(other), '?')) + /** The variables an `=` before the literal, in the same statement, binds it to. */ + const boundNames = (index) => { + let depth = 0 + for (let at = index - 1, steps = 0; at >= 0 && steps < 80; at--, steps++) { + const token = tokens[at] + if (token.t === 'sym' && ')]}'.includes(token.v)) depth++ + else if (token.t === 'sym' && '([{'.includes(token.v) && depth) depth-- + else if (!depth && token.t === 'id' && JULIA_KEYWORDS.has(token.v) && !['local', 'const', 'global'].includes(token.v)) return [] + else if (!depth && symbolAt(at, '=') && !symbolAt(at - 1, '=', '!', '<', '>') && !symbolAt(at + 1, '=')) { + let name = at - 1 + // `args::Vector{String} = ...` names args. + while (name >= 0 && !(tokens[name].t === 'id' && !symbolAt(name + 1, '.'))) name-- + return name >= 0 && at - name < 12 ? [tokens[name].v] : [] + } + } + return [] + } + /** Decide whether a site is sent: now when a dispatcher call encloses it, at the end of the file when it is bound. */ + const classify = (fn, site, index) => { + const never = (why) => { site.dispatch = null; site.why = why } + if (chosenOrCompared(index)) return never('a condition chooses it, or it is compared with') + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + for (const group of enclosing) { + if (adjacentCall(group.open - 1) && dispatch.has(tokens[group.open - 1].v)) { site.dispatch = { line: tokens[group.open - 1].line, name: tokens[group.open - 1].v }; return undefined } + } + const names = boundNames(index) + if (!names.length) return never('it reaches no call that sends') + ;(fn.pending ??= []).push({ site, names, after: index, command: site.command }) + return undefined + } tokens.forEach((token, index) => { const loop = loops.find((candidate) => candidate.bodyStart <= token.line && token.line <= candidate.end) const targets = loop ? loop.fns : [owner(token.line)].filter(Boolean) const command = isCommand(token) - if (command && commands.has(command)) for (const fn of targets) fn.sites.push({ command, line: token.line, flags: flagsAround(index, command) }) + if (command && commands.has(command)) { + for (const fn of targets) { + const site = { command, line: token.line, flags: flagsAround(index, command) } + if (dispatch) classify(fn, site, index) + fn.sites.push(site) + } + } // `$command` in a table loop is the command of each row. if (loop && token.v === '$' && tokens[index + 1]?.t === 'id') { for (const fn of loop.fns) { if (fn.row.commandVar === tokens[index + 1].v && commands.has(fn.row.command.split(/\s+/)[0])) { - fn.sites.push({ command: fn.row.command.split(/\s+/)[0], line: token.line, flags: flagsAround(index + 1, fn.row.command.split(/\s+/)[0]) }) + const site = { command: fn.row.command.split(/\s+/)[0], line: token.line, flags: flagsAround(index + 1, fn.row.command.split(/\s+/)[0]) } + if (dispatch) classify(fn, site, index) + fn.sites.push(site) } } } + if (dispatch && adjacentCall(index) && dispatch.has(token.v)) { + const group = groups.find((candidate) => candidate.open === index + 1) + const inside = group ? tokens.slice(group.open + 1, group.close) : [] + const call = { + name: token.v, line: token.line, start: index, + names: new Set(inside.filter((part) => part.t === 'id').map((part) => part.v)), + commands: new Set(inside.map((part) => isCommand(part)).filter(Boolean)), + } + for (const fn of targets) if (!isDefinitionName(token, index, fn)) (fn.sends ??= []).push(call) + } if (token.t === 'id' && !JULIA_KEYWORDS.has(token.v) && tokens[index + 1]?.v === '(' && tokens[index + 1].line === token.line && tokens[index + 1].col === token.col + token.v.length) { for (const fn of targets) { @@ -242,6 +301,16 @@ export function scanJulia(text, { commands, known }) { } } }) + for (const fn of functions) { + for (const { site, names, after, command } of fn.pending ?? []) { + const call = (fn.sends ?? []).find((candidate) => candidate.start > after && names.some((name) => candidate.names.has(name)) + && [...candidate.commands].every((other) => other === command)) + if (call) site.dispatch = { line: call.line, name: call.name } + else { site.dispatch = null; site.why = 'it reaches no call that sends' } + } + delete fn.pending + delete fn.sends + } return { functions, types: [], orphans: [] } } diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index cbe85239e..30f07b8de 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -94,6 +94,7 @@ const WRAPPERS = new Set([ 'reference_expression', 'borrow_expression', 'unary_expression', 'prefix_expression', 'generic_function', 'field_expression', 'member_access_expression', 'navigation_expression', 'navigation_suffix', 'selector_expression', 'member_expression', 'attribute', 'binary_expression', 'string_concatenation', 'interpolated_string_expression', + 'spread_element', 'splat_argument', 'list_splat', 'hash_splat_argument', 'spread_expression', 'range_expression', 'compound_literal_expression', ]) /** A node that starts a new function-like scope; strings inside it do not describe the call around it. */ @@ -195,9 +196,20 @@ function calleeOf(grammar, node) { } if (grammar === 'ruby') { const receiver = node.childForFieldName('receiver')?.text - return { name: node.childForFieldName('method')?.text, receiver: receiver && receiverOf(`${receiver}.x`) } + const method = node.childForFieldName('method')?.text + // `server.__send__(:execute_typed, [...])` calls execute_typed: the symbol names what is called. + const symbol = ['__send__', 'send', 'public_send'].includes(method) ? node.childForFieldName('arguments')?.namedChildren[0] : undefined + const sent = symbol && /symbol/.test(symbol.type) ? symbol.text.replace(/^:/, '') : undefined + return { name: sent ?? method, receiver: receiver && receiverOf(`${receiver}.x`) } } - return { name: lastIdentifier(callee.text), receiver: receiverOf(callee.text) } + // The callee of a chain, `Command::new("x").arg("-a").arg`, ends with the method that is called: the first parenthesis + // it holds belongs to an earlier call of the chain. + return { name: lastName(callee.text), receiver: receiverOf(callee.text) } +} + +/** The last identifier of a callee's text, which is the name that is called. */ +function lastName(text) { + return /([A-Za-z_][\w-]*)\s*(?:<[^()]*>)?\s*[!?]?$/.exec(text)?.[1] } const ownerName = (grammar, node) => { @@ -292,18 +304,176 @@ function inSignature(node) { return false } +/** Expressions that choose between operands: a literal under one is one of several, and only one is sent. */ +const CONDITIONALS = /^(?:ternary_expression|conditional_expression|conditional|if_expression|if_statement_expression|match_expression|switch_expression|switch_expression_arm|elvis_expression|null_coalescing_expression|coalesce_expression)$/ +/** The arm of a `match`, `switch` or `when` that gives a value: the literal under it is the value that arm chooses. */ +const VALUE_ARMS = /^(?:match_arm|switch_expression_arm|switch_case|switch_section|case_clause|expression_case|when_entry|when_clause|in_clause)$/ +const SHORT_CIRCUIT = new Set(['and', 'or', '||', '&&', '??', '?:']) + +/** Identifier-like nodes, whose text names a variable. */ +const NAMES = /(?:^|_)identifier$|^name$|^variable_name$|^constant$/ + +const LAMBDAS = /^(?:lambda|lambda_literal|lambda_expression|closure_expression|arrow_function|anonymous_function|function_expression|func_literal|anonymous_function_expression)$/ + +/** Whether a closure is its one expression, with no statements around it. */ +function oneExpression(lambda) { + const body = lambda.childForFieldName('body') ?? lambda.namedChildren.find((part) => /statements|block|body/.test(part.type)) + if (!body) return true + if (/^(?:block|statement_block|compound_statement)$/.test(body.type)) return false + const inner = body.type === 'statements' ? body.namedChildren : [body] + return inner.length === 1 && !/_statement$|^return|^throw/.test(inner[0].type) +} + +/** + * What a command literal is part of, read from the nodes around it: the calls it is an argument of from the + * innermost out, the statement it ends in, whether a condition chooses it, and the variables the statement + * binds it to. `dispatchOf` decides from these whether it is sent. + */ +function contextOf(grammar, node, CALL) { + const calls = [] + // How many calls were behind the literal when a condition was crossed: a condition inside a call's arguments chooses what the + // call is given, and one above the call chooses whether it is made. + let conditional + let chooser + let top = node + let cursor = node.parent + for (; cursor; cursor = cursor.parent) { + // A closure of one expression hands that expression's value to the call it is an argument of. + if ((LAMBDAS.test(cursor.type) && oneExpression(cursor)) || (cursor.type === 'statements' && cursor.parent && LAMBDAS.test(cursor.parent.type) && oneExpression(cursor.parent))) { top = cursor; continue } + const operator = cursor.type === 'binary_expression' ? (cursor.childForFieldName('operator')?.text ?? cursor.children.find((part) => !part.isNamed)?.text) : undefined + if (CONDITIONALS.test(cursor.type) || VALUE_ARMS.test(cursor.type) || (operator !== undefined && SHORT_CIRCUIT.has(operator))) { + conditional ??= calls.length + chooser = cursor + } else if (!WRAPPERS.has(cursor.type)) break + if (CALL.has(cursor.type)) { + const callee = calleeOf(grammar, cursor) + // A literal in the receiver of a call, `Command::new("x").arg("-a")`, passes through it; one in its arguments is handed to it. + const args = cursor.childForFieldName('arguments') ?? cursor.namedChildren.find((part) => /argument/.test(part.type)) + if (callee?.name) calls.push({ name: callee.name, receiver: callee.receiver, node: cursor, line: calleeRow(cursor), argument: !args || holds(args, node) }) + } + top = cursor + } + return { calls, conditional, chooser, top, boundary: cursor ?? top } +} + +/** The line a call is made on: where its callee ends, which for `sender\n .send(...)` is the `.send` and not `sender`. */ +function calleeRow(call) { + const callee = call.childForFieldName('function') ?? call.childForFieldName('name') ?? call.childForFieldName('method') ?? call.namedChildren[0] + return callee ? callee.endPosition.row + 1 : row(call) +} + +/** + * The identifiers of the object a method call is made on that a later call can take it by: `argv` in `argv.add("x")`, and both + * `request` and `group` in `request.group.push_back(x)`, because the request is what is passed on and the group is what is added to. + */ +function receiverNames(grammar, call) { + const object = grammar === 'java' ? call.childForFieldName('object') : grammar === 'ruby' ? call.childForFieldName('receiver') : (call.childForFieldName('function') ?? call.namedChildren[0]) + const text = object?.text + if (!text) return [] + const base = grammar === 'java' || grammar === 'ruby' ? text : text.replace(/[.:]+[A-Za-z_]\w*$/, '').replace(/->[A-Za-z_]\w*$/, '') + const plain = base.replace(/\([^()]*\)|\[[^\]]*\]/g, '') + const last = /([A-Za-z_]\w*)\W*$/.exec(plain)?.[1] + const root = /^\W*([A-Za-z_]\w*)/.exec(plain)?.[1] + return [...new Set([last, root])].filter((name) => name && !SELF.has(name)) +} + +/** + * Calls a command passes through on its way to a dispatch call: they put an element in a collection or make one. A call that + * is handed the command and builds from it must be a declared builder, because `get_output_format("list-sessions", v)` is handed + * the name of a command too and builds a format. + */ +const PASSING = new Set(['add', 'Add', 'push', 'push_back', 'emplace_back', 'append', 'insert', 'extend', 'arg', 'args', 'apply', 'then', 'concat', 'tinsert', + 'new', 'of', 'List', 'Seq', 'Array', 'Vec', 'asList', 'listOf', 'mutableListOf', 'arrayOf', 'ArrayList', 'LinkedList', 'vec', 'copyOf', 'make', 'string', 'str', 'String', 'Some', 'Ok', 'static_cast', 'move', 'forward', 'unique_ptr', 'make_unique']) + +/** The call that is handed a command and is neither a way to put it in a collection nor a declared builder. */ +function blockedBy(calls, builders) { + return calls.find((call) => call.argument && !PASSING.has(call.name.replace(/<.*$/s, '')) && !builders.has(call.name)) +} + +/** Receivers that are the object a method is called on, not a variable that holds something else. */ +const SELF = new Set(['self', 'this', 'Self', 'cls', 'me', 'base', 'super']) +/** Calls that add an element to the collection they are called on, or return it with one more: they build a command value. */ +const ADDS = new Set(['add', 'Add', 'push', 'push_back', 'emplace_back', 'append', 'insert', 'extend', 'arg', 'args', 'apply', 'then', 'concat', 'tinsert']) +/** Statements that run their body only on some paths. A `try` and a `finally` run on every path. */ +const BRANCHING = /(?:^|_)(?:if|elif|elsif|else|unless|switch|case|when|match|guard|conditional|ternary|for|while|until|loop|catch|except|rescue)(?:_|$)/ + +/** How many branches deep a node is inside its function, so a send on the main path can be told from one on a side path. */ +function nesting(grammar, node) { + let depth = 0 + for (let cursor = node.parent; cursor && !FUNCTIONS[grammar].includes(cursor.type); cursor = cursor.parent) if (BRANCHING.test(cursor.type)) depth++ + return depth +} + +/** Nodes that end a statement: a binding's names are looked for up to the first of them. */ +const STATEMENT = /(?:_statement|_declaration|_definition|_item|_spec|^statement|^assignment|^declaration)$/ + +/** The identifier texts at the leaves of a node. */ +function leafNames(node, found = []) { + if (NAMES.test(node.type) && node.namedChildCount === 0) found.push(node.text) + else for (const child of node.namedChildren) leafNames(child, found) + return found +} + +const RETURNING = /^\s*(?:return|yield)\b/ +const holds = (outer, inner) => outer.startIndex <= inner.startIndex && inner.endIndex <= outer.endIndex + +/** + * The variables a statement binds a command value to: the names on the left of a declaration or assignment that + * has the literal on its right, or the object a method that adds to a collection is called on (`argv.add("x")`). + */ +function bindingNames(grammar, literal, context) { + const names = new Set() + const take = (node) => { for (const name of leafNames(node)) if (!SELF.has(name)) names.add(name) } + for (let cursor = context.boundary; cursor; cursor = cursor.parent) { + for (const field of ['left', 'pattern', 'name', 'declarator']) { + const part = cursor.childForFieldName(field) + if (part && !holds(part, literal)) take(part) + } + if (STATEMENT.test(cursor.type)) break + } + // Grammars that name no field: what is declared or assigned is the first thing in the declaration. + if (!names.size) { + for (let cursor = context.boundary; cursor; cursor = cursor.parent) { + if (/declarator|assignment|declaration|definition|binding|pattern/.test(cursor.type)) { + const first = cursor.namedChildren.find((child) => !holds(child, literal) && (NAMES.test(child.type) || /pattern|variable/.test(child.type))) + if (first) { take(first); break } + } + if (STATEMENT.test(cursor.type)) break + } + } + // Whether the names are the ones a declaration or an assignment gives the value, and not the collection it is added to. + const assigned = names.size > 0 + const outer = context.calls.findLast((call) => ADDS.has(call.name)) + if (!names.size && outer) { + for (const receiver of receiverNames(grammar, outer.node)) names.add(receiver) + } + return Object.assign([...names], { assigned }) +} + +/** The name an identifier node is read as in a call's arguments. */ +function argumentNames(node) { + const found = new Set() + for (const name of leafNames(node)) found.add(name) + return found +} + /** * Every named function of a file with the command sites and calls inside it. * - * @param {{ grammar: string, text: string, commands: ReadonlySet, known: ReadonlySet }} input + * With `dispatch`, each site also says whether it is sent: `dispatch: { line, name }` when the literal is an + * argument of a call to one of those names, or builds a command value that the same function later passes to + * one; `dispatch: null`, with `why`, when it is a label, a comparison, a choice made by a condition or a value + * that no call in the function sends. + * + * @param {{ grammar: string, text: string, commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet, builders?: ReadonlySet, trace?: (site: object, context: object) => void }} input * `commands` are the names to find; `known` are all tmux command names, so * a list that holds a different command is not read as this command's flags. * @returns {Promise<{ functions: ScannedFunction[], types: { name?: string, start: number, end: number }[], orphans: Site[] }>} * `types` are the declarations that own functions, so a claim can anchor to * a class; `orphans` are the sites outside any named function. */ -export async function scanSource({ grammar, text, commands, known }) { - if (grammar === 'julia') return scanJulia(text, { commands, known }) +export async function scanSource({ grammar, text, commands, known, dispatch, builders = new Set(), trace }) { + if (grammar === 'julia') return scanJulia(text, { commands, known, dispatch }) if (grammar === 'fsharp') return scanFSharp(text) const parser = await parserFor(grammar) // The Swift grammar predates typed throws; blanking the type keeps every line and column. @@ -351,6 +521,55 @@ export async function scanSource({ grammar, text, commands, known }) { return { flags, unit } } + /** Whether a condition, crossed before the dispatch call, picks between different commands: `a ? ["detach-client"] : ["detach-client", "-E"]` does not. */ + const chooses = (context, at, own) => { + if (context.conditional === undefined || (at >= 0 && context.conditional > at)) return false + const named = new Set(context.chooser.descendantsOfType([...STR]).map((part) => isCommandLiteral(part)?.command).filter(Boolean)) + return own === undefined ? true : named.size > 1 || !named.has(own) + } + + /** Decide whether a site is sent: now when a dispatcher encloses it, at the end of its function when it is bound. */ + const classify = (site, node, owner, literal) => { + const context = contextOf(grammar, node, CALL) + trace?.(site, context) + const never = (why, builds = false) => { site.dispatch = null; site.why = why; if (builds) site.builds = true } + const at = context.calls.findIndex((call) => dispatch.has(call.name)) + if (chooses(context, at, literal.command)) return never('a condition chooses it among other commands') + const through = at < 0 ? context.calls : context.calls.slice(0, at) + const blocked = blockedBy(through, builders) + if (blocked) return never(`it is an argument of ${blocked.name}, which neither sends it nor builds a command from it`) + if (at >= 0) { site.dispatch = { line: context.calls[at].line, name: context.calls[at].name }; return undefined } + // A command put straight into a `return` or a `yield`, or the last expression of a body, is a value built for the caller. + const body = context.boundary.parent + const bodyLike = (part) => part && /body|block|statements|compound/.test(part.type) + // A body whose last child is the expression itself, as Rust's `{ Command::new("x").arg("-a") }`, hands the value back too. + const tail = (bodyLike(body) && body.namedChildren.at(-1)?.id === context.boundary.id) + || (bodyLike(context.boundary) && FUNCTIONS[grammar].includes(body?.type) && context.boundary.namedChildren.at(-1)?.id === context.top.id) + if (RETURNING.test(context.boundary.text) || tail) return never('it builds a value for the caller', true) + const names = bindingNames(grammar, node, context) + if (!names.length || !owner) return never('it reaches no call that sends') + ;(owner.pending ??= []).push({ target: site, names, after: context.boundary.endIndex, command: literal.command }) + return undefined + } + + /** + * Decide whether the value of a call is sent: the call is an argument of a dispatch call, or its result is bound to a + * variable that a later dispatch call takes. A helper that builds a command and returns it is sent by its caller this way. + */ + const trackCall = (call, node, owner) => { + const context = contextOf(grammar, node, CALL) + const at = context.calls.findIndex((outer) => dispatch.has(outer.name)) + if (chooses(context, at)) return + if (blockedBy(at < 0 ? context.calls : context.calls.slice(0, at), builders)) return + if (at >= 0) { (owner.callsites ??= []).push({ ...call, flows: { line: context.calls[at].line, name: context.calls[at].name } }); return } + const names = bindingNames(grammar, node, context) + if (names.length) (owner.pending ??= []).push({ target: { ...call }, names, after: context.boundary.endIndex, call: true }) + // `attach, guard = guard_command(attach)` puts something else under the name: what comes out is not the list that went in. + if (names.assigned && !PASSING.has(call.name.replace(/<.*$/s, '')) && !builders.has(call.name)) { + (owner.rebinds ??= []).push({ name: call.name, start: node.startIndex, bound: new Set(names), taken: argumentNames(node) }) + } + } + const walk = (node) => { let pushed = false let owned = false @@ -370,7 +589,7 @@ export async function scanSource({ grammar, text, commands, known }) { const receiver = node.childForFieldName('receiver')?.text const name = node.childForFieldName('name')?.text const type = receiver && /([A-Za-z_]\w*)\s*\)?$/.exec(receiver.replace(/\[.*\]/, ''))?.[1] - if (name) { pushFunction(name, type); pushed = true } + if (name) { pushFunction(name, type); pushed = true; stack.at(-1).selfName = /^\(\s*(\w+)\s/.exec(receiver ?? '')?.[1]?.toLowerCase() } } else if (grammar === 'go' && node.type === 'function_declaration') { pushFunction(node.childForFieldName('name').text, undefined) pushed = true @@ -396,14 +615,71 @@ export async function scanSource({ grammar, text, commands, known }) { && !nestedInCommand(node, STR, isCommandLiteral)) { const { flags } = flagsAround(node, literal.command) const site = { command: literal.command, line: row(node), flags: [...flags].sort().join('') } - ;(stack.at(-1)?.sites ?? orphans).push(site) + const owner = stack.at(-1) + if (dispatch) { site.depth = nesting(grammar, node); classify(site, node, owner, literal) } + ;(owner?.sites ?? orphans).push(site) } if (CALL.has(node.type) && stack.length) { const callee = calleeOf(grammar, node) - if (callee?.name) recordCall(stack.at(-1), callee.name, callee.receiver, row(node)) + if (callee?.name) { + recordCall(stack.at(-1), callee.name, callee.receiver, row(node)) + if (dispatch?.has(callee.name)) { + const commands = new Set(node.descendantsOfType([...STR]).map((part) => isCommandLiteral(part)?.command).filter(Boolean)) + ;(stack.at(-1).sends ??= []).push({ name: callee.name, line: calleeRow(node), start: node.startIndex, end: node.endIndex, names: argumentNames(node), commands }) + } else if (dispatch) { + trackCall({ name: callee.name, receiver: callee.receiver, line: calleeRow(node) }, node, stack.at(-1)) + // `batch.add(std::move(literal))` hands the value to `batch`, so a call that takes `batch` takes it too. + if (ADDS.has(callee.name)) { + for (const target of receiverNames(grammar, node)) (stack.at(-1).adds ??= []).push({ target, start: node.startIndex, names: argumentNames(node) }) + } + } + } } + if (dispatch && stack.length && /return|yield|jump|control_transfer/.test(node.type) && RETURNING.test(node.text)) (stack.at(-1).returns ??= []).push(argumentNames(node)) for (const child of node.namedChildren) walk(child) - if (pushed) stack.pop() + if (pushed) { + const done = stack.pop() + // The last statement of a body is its value in a language that returns the last expression. + const tail = node.childForFieldName('body')?.namedChildren.at(-1) + const returned = [...(done.returns ?? []), ...(tail ? [argumentNames(tail)] : [])] + // A command value a function builds is sent by the first later call that takes it and names no other command. + for (const { target, names: bound, after, command, call: isCall } of done.pending ?? []) { + // The names a value goes by: the variables it is bound to, and the collections it is added to after that. + const names = new Set(bound) + for (let grown = true; grown;) { + grown = false + for (const added of done.adds ?? []) { + if (added.start >= after && !names.has(added.target) && [...names].some((name) => added.names.has(name))) { names.add(added.target); grown = true } + } + } + const takes = (candidate) => candidate.start >= after && [...names].some((name) => candidate.names.has(name)) + && (isCall ? candidate.commands.size === 0 : [...candidate.commands].every((other) => other === command)) + const outer = (done.sends ?? []).find(takes) + // A dispatch call whose argument is a closure that makes the inner dispatch call is cited at the inner one, which is the call that sends. + const sends = outer && (done.sends ?? []).filter((candidate) => takes(candidate) && candidate.start >= outer.start && candidate.end <= outer.end) + .reduce((deepest, candidate) => (candidate.start > deepest.start ? candidate : deepest), outer) + // A call between the literal and the send that takes the name and binds it again has changed what the name holds. + const rebound = sends && (done.rebinds ?? []).find((change) => change.start >= after && change.start < sends.start + && [...names].some((name) => change.bound.has(name) && change.taken.has(name))) + if (rebound) { + target.dispatch = null + target.why = `its variable is rebound by ${rebound.name}, which neither sends it nor builds a command from it` + } else if (isCall) { + if (sends) (done.callsites ??= []).push({ ...target, flows: { line: sends.line, name: sends.name } }) + } else if (sends) target.dispatch = { line: sends.line, name: sends.name } + else { + target.dispatch = null + target.why = 'it reaches no call that sends' + // A command put in a variable that the function hands back is built for its caller. + if (returned.some((used) => [...names].some((name) => used.has(name)))) { target.builds = true; target.why = 'it builds a value for the caller' } + } + } + delete done.pending + delete done.sends + delete done.returns + delete done.adds + delete done.rebinds + } if (owned) owners.pop() if (namespaced) namespaces.pop() } @@ -414,5 +690,5 @@ export async function scanSource({ grammar, text, commands, known }) { /** * @typedef {{ name: string, owner?: string, start: number, nameLine: number, end: number, kind: string, sites: Site[], calls: Map, receivers: Map>, namespace?: string }} ScannedFunction - * @typedef {{ command: string, line: number, flags: string }} Site + * @typedef {{ command: string, line: number, flags: string, dispatch?: { line: number, name: string } | null, why?: string, builds?: boolean, depth?: number }} Site */ diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 0b8d81cda..35d365e41 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -1203,6 +1203,157 @@ } ] }, + { + "port": "rs", + "symbol": "server.Server.new_session", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:2286", + "has": [ + "Command::new(\"new-session\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:411", + "has": [ + "create_one(core, \"new-session\", build" + ] + }, + { + "at": "crates/libtmux/src/server.rs:898", + "has": [ + "listing::create_session(", + "options.into_command(format)" + ], + "in": "server.Server.new_session" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.new_window", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/session.rs:1139", + "has": [ + "Command::new(\"new-window\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:427", + "has": [ + "create_one(core, \"new-window\", build" + ] + }, + { + "at": "crates/libtmux/src/session.rs:495", + "has": [ + "listing::create_window(", + "options.into_command(&session, format)" + ], + "in": "session.Session.new_window" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/window.rs:1948", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:444", + "has": [ + "create_one(core, \"split-window\", build" + ] + }, + { + "at": "crates/libtmux/src/window.rs:367", + "has": [ + "listing::create_pane(", + "options.into_command(&window, format)" + ], + "in": "window.Window.split" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/window.rs:1948", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:444", + "has": [ + "create_one(core, \"split-window\", build" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:515", + "has": [ + "listing::create_pane(", + "options.into_command(&pane, format)" + ], + "in": "pane.Pane.split" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.capture_lines", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:1618", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1613", + "has": [ + "self.into_command(pane)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:169", + "has": [ + "options.lower(" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:237", + "has": [ + ".capture_with(" + ], + "in": "pane.Pane.capture_lines" + } + ] + }, { "port": "ts", "symbol": "server.Server.snapshot", @@ -1789,6 +1940,72 @@ } ] }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "start-server", + "scope": null, + "when": "the server is launched without an explicit selection, a minimal launch", + "evidence": [ + { + "at": "packages/mcp/src/startup.ts:88", + "has": [ + "server.cmd(\"start-server\"" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "show-options", + "scope": null, + "when": "the server is launched without an explicit selection, a minimal launch", + "evidence": [ + { + "at": "packages/mcp/src/startup.ts:89", + "has": [ + "server.cmd(\"show-options\"" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "display-message", + "scope": null, + "when": "the server is launched without an explicit selection, a minimal launch", + "evidence": [ + { + "at": "packages/mcp/src/startup.ts:92", + "has": [ + "server.cmd(\"display-message\"" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::Server#list_panes", @@ -2498,120 +2715,254 @@ ] }, { - "port": "go", - "symbol": "tmux.Server.NewSession", - "command": "new-session", + "port": "ruby", + "symbol": "LibTmux::Options#list", + "command": "show-options", "scope": null, + "when": "the receiver is an Options", "evidence": [ { - "at": "tmux/session_lifecycle.go:91", + "at": "gems/libtmux/lib/libtmux/options.rb:61", "has": [ - "\"new-session\"" + "\"show-options\"" ] }, { - "at": "tmux/session_lifecycle.go:62", + "at": "gems/libtmux/lib/libtmux/options.rb:65", "has": [ - "renderNewSessionArguments(" - ] - }, + "execute_typed", + "args" + ], + "in": "LibTmux::Options#list" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Hooks#list", + "command": "show-hooks", + "scope": null, + "when": "the receiver is a Hooks", + "evidence": [ { - "at": "tmux/session_lifecycle.go:230", + "at": "gems/libtmux/lib/libtmux/options.rb:61", "has": [ - "newSessionArguments(request)" + "\"show-hooks\"" ] }, { - "at": "tmux/session_lifecycle.go:234", + "at": "gems/libtmux/lib/libtmux/options.rb:65", "has": [ - "literalCmd(ctx, arguments...)" + "execute_typed", + "args" ], - "in": "tmux.Server.NewSession" + "in": "LibTmux::Hooks#list" } ] }, { - "port": "go", - "symbol": "tmux.Session.NewWindow", - "command": "new-window", + "port": "ruby", + "symbol": "LibTmux::Options#unset", + "command": "set-option", "scope": null, + "when": "the receiver is an Options", "evidence": [ { - "at": "tmux/window_lifecycle.go:157", + "at": "gems/libtmux/lib/libtmux/options.rb:107", "has": [ - "\"new-window\"" + "\"set-option\"" ] }, { - "at": "tmux/window_lifecycle.go:213", + "at": "gems/libtmux/lib/libtmux/options.rb:108", "has": [ - "newWindowArguments(" - ] - }, + "execute_typed", + "command" + ], + "in": "LibTmux::Options#unset" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Hooks#unset", + "command": "set-hook", + "scope": null, + "when": "the receiver is a Hooks", + "evidence": [ { - "at": "tmux/window_lifecycle.go:224", + "at": "gems/libtmux/lib/libtmux/options.rb:107", "has": [ - "literalCmd(ctx, arguments...)" + "\"set-hook\"" ] }, { - "at": "tmux/window_lifecycle.go:88", + "at": "gems/libtmux/lib/libtmux/options.rb:108", "has": [ - "return newWindow(" + "execute_typed", + "command" ], - "in": "tmux.Session.NewWindow" + "in": "LibTmux::Hooks#unset" } ] }, { - "port": "go", - "symbol": "tmux.Window.NewWindow", - "command": "new-window", + "port": "ruby", + "symbol": "LibTmux::Server#switch_client", + "command": "switch-client", "scope": null, "evidence": [ { - "at": "tmux/window_lifecycle.go:157", + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", "has": [ - "\"new-window\"" + "\"switch-client\"" ] }, { - "at": "tmux/window_lifecycle.go:213", + "at": "gems/libtmux/lib/libtmux/terminal.rb:42", "has": [ - "newWindowArguments(" - ] - }, + "execute_typed([command" + ], + "in": "LibTmux::Server#switch_client" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#switch_client", + "command": "switch-client", + "scope": null, + "evidence": [ { - "at": "tmux/window_lifecycle.go:224", + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", "has": [ - "literalCmd(ctx, arguments...)" + "\"switch-client\"" ] }, { - "at": "tmux/window_lifecycle.go:117", + "at": "gems/libtmux/lib/libtmux/terminal.rb:42", "has": [ - "return newWindow(" + "execute_typed([command" ], - "in": "tmux.Window.NewWindow" + "in": "LibTmux::Async::Server#switch_client" } ] }, { "port": "go", - "symbol": "tmux.Pane.Capture", - "command": "capture-pane", + "symbol": "tmux.Server.NewSession", + "command": "new-session", "scope": null, "evidence": [ { - "at": "tmux/pane_capture.go:282", + "at": "tmux/session_lifecycle.go:91", "has": [ - "\"capture-pane\"" + "\"new-session\"" ] }, { - "at": "tmux/pane_capture.go:222", + "at": "tmux/session_lifecycle.go:62", "has": [ - "p.captureArguments(" + "renderNewSessionArguments(" + ] + }, + { + "at": "tmux/session_lifecycle.go:230", + "has": [ + "newSessionArguments(request)" + ] + }, + { + "at": "tmux/session_lifecycle.go:234", + "has": [ + "literalCmd(ctx, arguments...)" + ], + "in": "tmux.Server.NewSession" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.NewWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "tmux/window_lifecycle.go:157", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "tmux/window_lifecycle.go:213", + "has": [ + "newWindowArguments(" + ] + }, + { + "at": "tmux/window_lifecycle.go:224", + "has": [ + "literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/window_lifecycle.go:88", + "has": [ + "return newWindow(" + ], + "in": "tmux.Session.NewWindow" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.NewWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "tmux/window_lifecycle.go:157", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "tmux/window_lifecycle.go:213", + "has": [ + "newWindowArguments(" + ] + }, + { + "at": "tmux/window_lifecycle.go:224", + "has": [ + "literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/window_lifecycle.go:117", + "has": [ + "return newWindow(" + ], + "in": "tmux.Window.NewWindow" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.Capture", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" ] }, { @@ -4579,6 +4930,28 @@ } ] }, + { + "port": "java", + "symbol": "io.github.libtmux.batch.Batch.Batch.run", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "has": [ + "dispatch.apply(assemble())" + ], + "in": "io.github.libtmux.batch.Batch.Batch.run" + } + ] + }, { "port": "csharp", "symbol": "LibTmux.Server.CaptureSnapshotAsync", @@ -5866,6 +6239,75 @@ } ] }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendKeysAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ], + "in": "LibTmux.Pane.SendKeysAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendKeysAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ], + "in": "LibTmux.Pane.SendKeysAsync" + } + ] + }, { "port": "fsharp", "symbol": "LibTmux.FSharp.Server.newSession", @@ -8638,15 +9080,17 @@ "scope": null, "evidence": [ { - "at": "src/libtmux/hooks.py:240", + "at": "src/libtmux/hooks.py:186", "has": [ - "set-hook" - ] + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 }, { - "at": "src/libtmux/hooks.py:518", + "at": "src/libtmux/hooks.py:525", "has": [ - "unset_hook(" + "self.set_hook(" ], "in": "libtmux.hooks.HooksMixin.set_hooks" } @@ -8893,15 +9337,17 @@ "scope": null, "evidence": [ { - "at": "src/libtmux/hooks.py:240", + "at": "src/libtmux/hooks.py:186", "has": [ - "set-hook" - ] + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 }, { - "at": "src/libtmux/hooks.py:518", + "at": "src/libtmux/hooks.py:525", "has": [ - "unset_hook(" + "self.set_hook(" ], "in": "libtmux.Pane.set_hooks" } @@ -8995,15 +9441,17 @@ "scope": null, "evidence": [ { - "at": "src/libtmux/hooks.py:240", + "at": "src/libtmux/hooks.py:186", "has": [ - "set-hook" - ] + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 }, { - "at": "src/libtmux/hooks.py:518", + "at": "src/libtmux/hooks.py:525", "has": [ - "unset_hook(" + "self.set_hook(" ], "in": "libtmux.Server.set_hooks" } @@ -9097,15 +9545,17 @@ "scope": null, "evidence": [ { - "at": "src/libtmux/hooks.py:240", + "at": "src/libtmux/hooks.py:186", "has": [ - "set-hook" - ] + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 }, { - "at": "src/libtmux/hooks.py:518", + "at": "src/libtmux/hooks.py:525", "has": [ - "unset_hook(" + "self.set_hook(" ], "in": "libtmux.Session.set_hooks" } @@ -9199,15 +9649,17 @@ "scope": null, "evidence": [ { - "at": "src/libtmux/hooks.py:240", + "at": "src/libtmux/hooks.py:186", "has": [ - "set-hook" - ] + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 }, { - "at": "src/libtmux/hooks.py:518", + "at": "src/libtmux/hooks.py:525", "has": [ - "unset_hook(" + "self.set_hook(" ], "in": "libtmux.Window.set_hooks" } @@ -9304,55 +9756,167 @@ ] }, { - "port": "kotlin", - "symbol": "io.github.libtmux.kotlin.Options.get", - "command": "show-options", + "port": "swift", + "symbol": "Server.link(_:into:)", + "command": "link-window", "scope": null, - "via": { - "port": "java", - "symbol": "io.github.libtmux.Options.Options.get" - }, + "when": "moving is false, which link passes", "evidence": [ { - "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:27", + "at": "Sources/LibTmux/WindowTransfers.swift:75", "has": [ - "java.get(name)" + "\"link-window\"" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:91", + "has": [ + "runGuarded(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:20", + "has": [ + "transfer(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:27", + "has": [ + "moving: false" ], - "in": "io.github.libtmux.kotlin.Options.get" + "in": "Server.link(_:into:)" } ] }, { - "port": "kotlin", - "symbol": "io.github.libtmux.kotlin.Options.set", - "command": "set-option", + "port": "swift", + "symbol": "Server.move(_:to:at:)", + "command": "move-window", "scope": null, - "via": { - "port": "java", - "symbol": "io.github.libtmux.Options.Options.set" - }, + "when": "moving is true, which move passes", "evidence": [ { - "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:35", + "at": "Sources/LibTmux/WindowTransfers.swift:75", "has": [ - "java.set(name, value)" + "\"move-window\"" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:91", + "has": [ + "runGuarded(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:46", + "has": [ + "transfer(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:10", + "has": [ + "moving: true" ], - "in": "io.github.libtmux.kotlin.Options.set" + "in": "Server.move(_:to:at:)" } ] }, { - "port": "scala", - "symbol": "io.github.libtmux.scaladsl.cats.Options.get", - "command": "show-options", + "port": "swift", + "symbol": "Server.breakPane(_:from:named:)", + "command": "break-pane", "scope": null, - "via": { - "port": "java", - "symbol": "io.github.libtmux.Options.Options.get" - }, + "when": "named is given", "evidence": [ { - "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:60", + "at": "Sources/LibTmux/Navigation.swift:127", + "has": [ + "TmuxCommand(\"break-pane\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:144", + "has": [ + "windowAppearance(" + ], + "in": "Server.breakPane(_:from:named:)" + } + ] + }, + { + "port": "swift", + "symbol": "Server.breakPane(_:from:named:)", + "command": "if-shell", + "scope": null, + "when": "named is nil, the default: break-pane runs inside the if-shell", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:136", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:144", + "has": [ + "windowAppearance(" + ], + "in": "Server.breakPane(_:from:named:)" + } + ] + }, + { + "port": "kotlin", + "symbol": "io.github.libtmux.kotlin.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + }, + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:27", + "has": [ + "java.get(name)" + ], + "in": "io.github.libtmux.kotlin.Options.get" + } + ] + }, + { + "port": "kotlin", + "symbol": "io.github.libtmux.kotlin.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + }, + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:35", + "has": [ + "java.set(name, value)" + ], + "in": "io.github.libtmux.kotlin.Options.set" + } + ] + }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:60", "has": [ "self.underlying.get(name)" ], @@ -9378,6 +9942,593 @@ "in": "io.github.libtmux.scaladsl.cats.Options.set" } ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#attach", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:60", + "has": [ + "\"attach-session\"" + ], + "in": "LibTmux::Server#attach" + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:62", + "has": [ + "TerminalExecution" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:88", + "has": [ + "Process.spawn(", + "*@argv" + ], + "span": 2 + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "tmux/snapshot_capture.go:43", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:49", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "tmux/snapshot_capture.go:44", + "has": [ + "\"list-windows\"", + "\"-a\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:49", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "tmux/snapshot_capture.go:45", + "has": [ + "\"list-panes\"", + "\"-a\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:49", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "tmux/snapshot_capture.go:46", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:49", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ] + }, + { + "port": "go", + "symbol": "tmuxtest.NewControlMode", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "tmux/tmuxtest/control.go:183", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "tmux/tmuxtest/control.go:185", + "has": [ + "exec.Command(arguments[0]" + ] + }, + { + "at": "tmux/tmuxtest/control.go:209", + "has": [ + "command.Start()" + ] + }, + { + "at": "tmux/tmuxtest/control.go:58", + "has": [ + "startControlMode(" + ], + "in": "tmuxtest.NewControlMode" + } + ] + }, + { + "port": "go", + "symbol": "tmuxtest.NewSession", + "command": "kill-session", + "scope": null, + "when": "the test ends: the helper registers the kill in t.Cleanup and does not send it when it returns", + "evidence": [ + { + "at": "tmux/tmuxtest/resources.go:135", + "has": [ + "runCleanupCommand(server, \"kill-session\"" + ] + }, + { + "at": "tmux/tmuxtest/harness.go:546", + "has": [ + "runCommand(ctx, server, args...)" + ] + }, + { + "at": "tmux/tmuxtest/harness.go:536", + "has": [ + "server.Cmd(ctx, args...)" + ] + }, + { + "at": "tmux/tmuxtest/resources.go:56", + "has": [ + "registerSessionCleanup(" + ], + "in": "tmuxtest.NewSession" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced", + "command": "attach-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "has": [ + "carrier.start(command)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156", + "has": [ + "connect(LOCAL" + ], + "in": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attach", + "command": "attach-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "has": [ + "carrier.start(command)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:196", + "has": [ + "connect(carrier" + ], + "in": "io.github.libtmux.control.ControlClient.ControlClient.attach" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.all", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "has": [ + "batch.add(\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "has": [ + "batch.run()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "has": [ + "withVersion(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:140", + "has": [ + "read(List.of())" + ], + "in": "io.github.libtmux.Options.Options.all" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.effective", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "has": [ + "batch.add(\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "has": [ + "batch.run()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "has": [ + "withVersion(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:319", + "has": [ + "read(List.of(\"-A\"))" + ], + "in": "io.github.libtmux.Options.Options.effective" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "paste-buffer", + "scope": null, + "evidence": [ + { + "at": "src/pane_io.jl:243", + "has": [ + "args = [\"paste-buffer\"" + ] + }, + { + "at": "src/pane_io.jl:236", + "has": [ + "_paste_flags(usage, pane, bracketed)" + ] + }, + { + "at": "src/pane_io.jl:273", + "has": [ + "_paste_args(context, pane, bracketed)" + ] + }, + { + "at": "src/pane_io.jl:278", + "has": [ + "_operation_command(", + "args..." + ], + "span": 4, + "in": "LibTmux.paste_bytes" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Connection::connect", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "src/connection.cpp:360", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "src/connection.cpp:369", + "has": [ + "::posix_spawnp(" + ] + }, + { + "at": "src/connection.cpp:1043", + "has": [ + "spawn_client(options)" + ], + "in": "libtmux::Connection::connect" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Connection::connect", + "command": "refresh-client", + "scope": null, + "evidence": [ + { + "at": "src/connection.cpp:1089", + "has": [ + "\"refresh-client\"", + "\"new-layouts\"" + ] + }, + { + "at": "src/connection.cpp:1093", + "has": [ + "connection.execute(" + ], + "in": "libtmux::Connection::connect" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Server.new_session", + "command": "kill-session", + "scope": null, + "when": "kill_session is true and a session of that name already exists", + "evidence": [ + { + "at": "src/libtmux/server.py:2312", + "has": [ + "self.cmd(\"kill-session\"", + "target=session_name" + ], + "in": "libtmux.Server.new_session" + }, + { + "at": "src/libtmux/server.py:2311", + "has": [ + "if kill_session:" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.NewSession", + "command": "kill-session", + "scope": null, + "when": "the request sets KillExisting and a session of that name exists", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:223", + "has": [ + "effective.literalCmd(ctx, \"kill-session\"" + ], + "in": "tmux.Server.NewSession" + }, + { + "at": "tmux/session_lifecycle.go:219", + "has": [ + "!request.KillExisting" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.HasSession", + "command": "has-session", + "scope": null, + "when": "the request sets Pattern; otherwise the lookup lists sessions", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:141", + "has": [ + "s.literalCmd(ctx, \"has-session\"" + ], + "in": "tmux.Server.HasSession" + }, + { + "at": "tmux/session_lifecycle.go:137", + "has": [ + "!request.Pattern" + ] + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "last-window", + "scope": null, + "when": "the target is the string \"last\"", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:34", + "has": [ + "\"last-window\"", + "target === \"last\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:378", + "has": [ + "selectWindowIn(" + ], + "in": "session.Session.selectWindow" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "next-window", + "scope": null, + "when": "the target is the string \"next\"", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:35", + "has": [ + "\"next-window\"", + "target === \"next\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:378", + "has": [ + "selectWindowIn(" + ], + "in": "session.Session.selectWindow" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "previous-window", + "scope": null, + "when": "the target is the string \"previous\"", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:37", + "has": [ + "\"previous-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:36", + "has": [ + "target === \"previous\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:378", + "has": [ + "selectWindowIn(" + ], + "in": "session.Session.selectWindow" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.validateLayouts", + "command": "display-message", + "scope": null, + "when": "a layout parses differently on some tmux releases and no daemon version is bound yet", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/layout.ts:62", + "has": [ + "[\"display-message\", \"-p\", \"#{version}\"]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/layout.ts:51", + "has": [ + "needsVersion.length === 0" + ] + }, + { + "at": "packages/libtmux/src/server.ts:955", + "has": [ + "validateLayouts(runtimeForServer(this)" + ], + "in": "server.Server.validateLayouts" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Server::validate_layouts", + "command": "display-message", + "scope": null, + "when": "a layout string needs the running tmux version to be judged (layout_needs_version)", + "evidence": [ + { + "at": "src/layout.cpp:390", + "has": [ + "backend.run({\"display-message\"" + ] + }, + { + "at": "src/layout.cpp:386", + "has": [ + "if (!sensitive)" + ] + }, + { + "at": "src/server.cpp:687", + "has": [ + "detail::validate_layouts(*backend_" + ], + "in": "libtmux::Server::validate_layouts" + } + ] } ] } diff --git a/scripts/tmux-usage/dispatchers.json b/scripts/tmux-usage/dispatchers.json new file mode 100644 index 000000000..2158aea81 --- /dev/null +++ b/scripts/tmux-usage/dispatchers.json @@ -0,0 +1,2408 @@ +{ + "schemaVersion": 1, + "dispatchers": [ + { + "port": "py", + "name": "check_call", + "why": "Runs the tmux binary with the argument list it is given and raises when it fails.", + "evidence": [ + { + "at": "src/libtmux/server.py:340", + "has": [ + "subprocess.check_call(" + ] + } + ] + }, + { + "port": "py", + "name": "cmd", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/pane.py:315", + "has": [ + "cmd" + ] + }, + { + "at": "src/libtmux/server.py:347", + "has": [ + "cmd" + ] + }, + { + "at": "src/libtmux/session.py:425", + "has": [ + "cmd" + ] + } + ] + }, + { + "port": "py", + "name": "fetch_objs", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/neo.py:1039", + "has": [ + "fetch_objs" + ] + } + ] + }, + { + "port": "py", + "name": "fetch_obj", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/neo.py:1275", + "has": [ + "fetch_obj" + ] + } + ] + }, + { + "port": "py", + "name": "_fetch_or_empty", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/server.py:65", + "has": [ + "_fetch_or_empty" + ] + } + ] + }, + { + "port": "py", + "name": "_refresh", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/neo.py:868", + "has": [ + "_refresh" + ] + } + ] + }, + { + "port": "ruby", + "name": "execute_typed", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:393", + "has": [ + "execute_typed" + ] + } + ] + }, + { + "port": "ruby", + "name": "catalog_read", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:98", + "has": [ + "catalog_read" + ] + } + ] + }, + { + "port": "ruby", + "name": "read", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:108", + "has": [ + "read" + ] + }, + { + "at": "gems/libtmux-mcp/lib/libtmux/mcp/enrollment.rb:84", + "has": [ + "read" + ] + }, + { + "at": "gems/libtmux-mcp/lib/libtmux/mcp/resources.rb:45", + "has": [ + "read" + ] + } + ] + }, + { + "port": "ruby", + "name": "reposition", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:405", + "has": [ + "reposition" + ] + } + ] + }, + { + "port": "ruby", + "name": "mutate", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:138", + "has": [ + "mutate" + ] + } + ] + }, + { + "port": "ruby", + "name": "exchange_request", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux-async/lib/libtmux/async/control.rb:71", + "has": [ + "exchange_request" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:428", + "has": [ + "exchange_request" + ] + } + ] + }, + { + "port": "ruby", + "name": "create_entity", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:456", + "has": [ + "create_entity" + ] + } + ] + }, + { + "port": "ruby", + "name": "execute_link", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:110", + "has": [ + "execute_link" + ] + } + ] + }, + { + "port": "lua", + "name": "run", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:206", + "has": [ + "run" + ] + }, + { + "at": "lua/libtmux/_internal/client.lua:168", + "has": [ + "run" + ] + }, + { + "at": "lua/libtmux/_internal/environment.lua:398", + "has": [ + "run" + ] + } + ] + }, + { + "port": "lua", + "name": "execute", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/command.lua:190", + "has": [ + "execute" + ] + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:252", + "has": [ + "execute" + ] + }, + { + "at": "lua/libtmux/_internal/process.lua:143", + "has": [ + "execute" + ] + } + ] + }, + { + "port": "lua", + "name": "program", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:138", + "has": [ + "program" + ] + } + ] + }, + { + "port": "julia", + "name": "Cmd", + "why": "Builds the process command that runs tmux with the argument list it is given.", + "evidence": [ + { + "at": "src/lifecycle.jl:270", + "has": [ + "Cmd(argv)" + ] + } + ] + }, + { + "port": "julia", + "name": "_operation_command", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/operations.jl:59", + "has": [ + "_operation_command" + ] + } + ] + }, + { + "port": "julia", + "name": "_control_topology_effect", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_topology.jl:7", + "has": [ + "_control_topology_effect" + ] + } + ] + }, + { + "port": "julia", + "name": "_control_effect", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_io.jl:22", + "has": [ + "_control_effect" + ] + } + ] + }, + { + "port": "julia", + "name": "command", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:931", + "has": [ + "command" + ] + } + ] + }, + { + "port": "julia", + "name": "_control_configuration_effect", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_options.jl:217", + "has": [ + "_control_configuration_effect" + ] + } + ] + }, + { + "port": "julia", + "name": "_snapshot_rows", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/acquisition.jl:73", + "has": [ + "_snapshot_rows" + ] + } + ] + }, + { + "port": "julia", + "name": "rows", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_io.jl:215", + "has": [ + "rows" + ] + }, + { + "at": "ext/LibTmuxTablesExt.jl:8", + "has": [ + "rows" + ] + } + ] + }, + { + "port": "julia", + "name": "run_command", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:572", + "has": [ + "run_command" + ] + }, + { + "at": "src/process.jl:477", + "has": [ + "run_command" + ] + } + ] + }, + { + "port": "julia", + "name": "_control_rows", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:502", + "has": [ + "_control_rows" + ] + } + ] + }, + { + "port": "julia", + "name": "_control_request", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:411", + "has": [ + "_control_request" + ] + } + ] + }, + { + "port": "julia", + "name": "_run_process", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/process.jl:293", + "has": [ + "_run_process" + ] + } + ] + }, + { + "port": "ts", + "name": "runCommand", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:89", + "has": [ + "runCommand" + ] + } + ] + }, + { + "port": "ts", + "name": "runCommands", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:113", + "has": [ + "runCommands" + ] + } + ] + }, + { + "port": "ts", + "name": "runCommandBytes", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:98", + "has": [ + "runCommandBytes" + ] + } + ] + }, + { + "port": "ts", + "name": "execute", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/control/observer_transport.ts:344", + "has": [ + "execute" + ] + }, + { + "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:223", + "has": [ + "execute" + ] + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:110", + "has": [ + "execute" + ] + } + ] + }, + { + "port": "ts", + "name": "killTarget", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:73", + "has": [ + "killTarget" + ] + } + ] + }, + { + "port": "ts", + "name": "selectTarget", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:389", + "has": [ + "selectTarget" + ] + } + ] + }, + { + "port": "ts", + "name": "executeGuardedList", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/codec/guarded_listing.ts:80", + "has": [ + "executeGuardedList" + ] + } + ] + }, + { + "port": "ts", + "name": "cmd", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/pane.ts:672", + "has": [ + "cmd" + ] + }, + { + "at": "packages/libtmux/src/server.ts:1348", + "has": [ + "cmd" + ] + }, + { + "at": "packages/libtmux/src/session.ts:434", + "has": [ + "cmd" + ] + } + ] + }, + { + "port": "ts", + "name": "prepareInvocationRequest", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/request.ts:44", + "has": [ + "prepareInvocationRequest" + ] + } + ] + }, + { + "port": "ts", + "name": "prepareCommandRequest", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/request.ts:30", + "has": [ + "prepareCommandRequest" + ] + } + ] + }, + { + "port": "ts", + "name": "snapshotInvocationRequest", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/transport/types.ts:25", + "has": [ + "snapshotInvocationRequest" + ] + } + ] + }, + { + "port": "ts", + "name": "freeze", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/workspace-cli/src/tmux.ts:1169", + "has": [ + "freeze" + ] + } + ] + }, + { + "port": "rs", + "name": "mutate", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:452", + "has": [ + "mutate" + ] + } + ] + }, + { + "port": "rs", + "name": "run", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/blocking.rs:72", + "has": [ + "run" + ] + }, + { + "at": "crates/libtmux/src/control/actor.rs:432", + "has": [ + "run" + ] + }, + { + "at": "crates/libtmux/src/internal/executor.rs:63", + "has": [ + "run" + ] + } + ] + }, + { + "port": "rs", + "name": "cmd", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:801", + "has": [ + "cmd" + ] + }, + { + "at": "crates/libtmux/src/server.rs:678", + "has": [ + "cmd" + ] + }, + { + "at": "crates/libtmux/src/session.rs:582", + "has": [ + "cmd" + ] + } + ] + }, + { + "port": "rs", + "name": "execute", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/control_executor.rs:28", + "has": [ + "execute" + ] + }, + { + "at": "crates/libtmux/src/internal/core.rs:423", + "has": [ + "execute" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:494", + "has": [ + "execute" + ] + } + ] + }, + { + "port": "rs", + "name": "send", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/control.rs:585", + "has": [ + "send" + ] + }, + { + "at": "crates/tmux-mcp/src/bin/tmux-mcp.rs:61", + "has": [ + "send" + ] + } + ] + }, + { + "port": "rs", + "name": "step", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/plan.rs:171", + "has": [ + "step" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:163", + "has": [ + "step" + ] + }, + { + "at": "crates/libtmux/src/session.rs:388", + "has": [ + "step" + ] + } + ] + }, + { + "port": "rs", + "name": "list", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:92", + "has": [ + "list" + ] + }, + { + "at": "crates/libtmux/src/plan/wire.rs:149", + "has": [ + "list" + ] + }, + { + "at": "crates/tmux-workspace/src/cli/document/importers.rs:85", + "has": [ + "list" + ] + } + ] + }, + { + "port": "rs", + "name": "send_ordered", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/control.rs:746", + "has": [ + "send_ordered" + ] + } + ] + }, + { + "port": "rs", + "name": "execute_chain", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/core.rs:483", + "has": [ + "execute_chain" + ] + } + ] + }, + { + "port": "go", + "name": "literalCmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/scoped_command.go:26", + "has": [ + "literalCmd" + ] + }, + { + "at": "tmux/server.go:104", + "has": [ + "literalCmd" + ] + } + ] + }, + { + "port": "go", + "name": "Cmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/control_request.go:95", + "has": [ + "Cmd" + ] + }, + { + "at": "tmux/plan.go:731", + "has": [ + "Cmd" + ] + }, + { + "at": "tmux/scoped_command.go:12", + "has": [ + "Cmd" + ] + } + ] + }, + { + "port": "go", + "name": "cmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/control_request.go:129", + "has": [ + "cmd" + ] + } + ] + }, + { + "port": "go", + "name": "runExactArgv", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/transport.go:156", + "has": [ + "runExactArgv" + ] + } + ] + }, + { + "port": "go", + "name": "runClientCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_clients.go:364", + "has": [ + "runClientCommand" + ] + } + ] + }, + { + "port": "go", + "name": "runWindowLayoutCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/window_layout.go:354", + "has": [ + "runWindowLayoutCommand" + ] + } + ] + }, + { + "port": "go", + "name": "runRedactedPaneModeCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_modes.go:325", + "has": [ + "runRedactedPaneModeCommand" + ] + } + ] + }, + { + "port": "go", + "name": "runServerKeyCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_keys.go:250", + "has": [ + "runServerKeyCommand" + ] + } + ] + }, + { + "port": "go", + "name": "runServerListCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:342", + "has": [ + "runServerListCommand" + ] + } + ] + }, + { + "port": "go", + "name": "runSimplePaneMode", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_modes.go:309", + "has": [ + "runSimplePaneMode" + ] + } + ] + }, + { + "port": "go", + "name": "navigateWindow", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/session_navigation.go:106", + "has": [ + "navigateWindow" + ] + } + ] + }, + { + "port": "go", + "name": "relocate", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_relocate.go:205", + "has": [ + "relocate" + ] + } + ] + }, + { + "port": "go", + "name": "searchSnapshot", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/search.go:167", + "has": [ + "searchSnapshot" + ] + } + ] + }, + { + "port": "go", + "name": "searchSnapshotProjected", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/search.go:180", + "has": [ + "searchSnapshotProjected" + ] + } + ] + }, + { + "port": "go", + "name": "livePoint", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/lookup.go:131", + "has": [ + "livePoint" + ] + } + ] + }, + { + "port": "go", + "name": "livePointWithTargetValidation", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/lookup.go:165", + "has": [ + "livePointWithTargetValidation" + ] + } + ] + }, + { + "port": "go", + "name": "literalCmdWithRaw", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server.go:109", + "has": [ + "literalCmdWithRaw" + ] + } + ] + }, + { + "port": "go", + "name": "runEnvironmentMutation", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/environment.go:240", + "has": [ + "runEnvironmentMutation" + ] + } + ] + }, + { + "port": "go", + "name": "runOptionMutation", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/option_mutation.go:465", + "has": [ + "runOptionMutation" + ] + } + ] + }, + { + "port": "go", + "name": "literalPaneCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/exact_target.go:63", + "has": [ + "literalPaneCommand" + ] + } + ] + }, + { + "port": "go", + "name": "literalScopedCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/scoped_command.go:57", + "has": [ + "literalScopedCommand" + ] + } + ] + }, + { + "port": "go", + "name": "runServerListCommandWithError", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:358", + "has": [ + "runServerListCommandWithError" + ] + } + ] + }, + { + "port": "go", + "name": "runRedactedServerListCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:350", + "has": [ + "runRedactedServerListCommand" + ] + } + ] + }, + { + "port": "go", + "name": "newPane", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_create.go:141", + "has": [ + "newPane" + ] + } + ] + }, + { + "port": "go", + "name": "splitPane", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_create.go:330", + "has": [ + "splitPane" + ] + } + ] + }, + { + "port": "go", + "name": "newWindow", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/window_lifecycle.go:189", + "has": [ + "newWindow" + ] + } + ] + }, + { + "port": "go", + "name": "capturePane", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_capture.go:216", + "has": [ + "capturePane" + ] + }, + { + "at": "mcp/capture_tools.go:32", + "has": [ + "capturePane" + ] + } + ] + }, + { + "port": "go", + "name": "showBuffer", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:138", + "has": [ + "showBuffer" + ] + } + ] + }, + { + "port": "go", + "name": "snapshotListing", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/snapshot_capture.go:113", + "has": [ + "snapshotListing" + ] + } + ] + }, + { + "port": "go", + "name": "runDisplayMessage", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/display_message.go:182", + "has": [ + "runDisplayMessage" + ] + } + ] + }, + { + "port": "go", + "name": "runCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/tmuxtest/harness.go:535", + "has": [ + "runCommand" + ] + }, + { + "at": "tmux/transport.go:40", + "has": [ + "runCommand" + ] + }, + { + "at": "mcp/run_command_tools.go:89", + "has": [ + "runCommand" + ] + } + ] + }, + { + "port": "go", + "name": "streamingLiteralCmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_attach.go:153", + "has": [ + "streamingLiteralCmd" + ] + } + ] + }, + { + "port": "go", + "name": "streamOut", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pipe_stream.go:57", + "has": [ + "streamOut" + ] + } + ] + }, + { + "port": "go", + "name": "startControl", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/control_startup.go:105", + "has": [ + "startControl" + ] + } + ] + }, + { + "port": "go", + "name": "streamIn", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pipe_stream.go:19", + "has": [ + "streamIn" + ] + } + ] + }, + { + "port": "go", + "name": "targetedArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/plan.go:216", + "has": [ + "targetedArguments" + ] + } + ] + }, + { + "port": "go", + "name": "untargetedArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/plan.go:234", + "has": [ + "untargetedArguments" + ] + } + ] + }, + { + "port": "go", + "name": "respawnArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/pane_process.go:109", + "has": [ + "respawnArguments" + ] + } + ] + }, + { + "port": "go", + "name": "joinPaneArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/plan_pane.go:241", + "has": [ + "joinPaneArguments" + ] + } + ] + }, + { + "port": "go", + "name": "exactPaneCommandArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/pane_modes.go:317", + "has": [ + "exactPaneCommandArguments" + ] + } + ] + }, + { + "port": "go", + "name": "respawnRequestArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/window_respawn.go:63", + "has": [ + "respawnRequestArguments" + ] + } + ] + }, + { + "port": "java", + "name": "run", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:97", + "has": [ + "run" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:372", + "has": [ + "run" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Hooks.java:113", + "has": [ + "run" + ] + } + ] + }, + { + "port": "java", + "name": "cmd", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:368", + "has": [ + "cmd" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:373", + "has": [ + "cmd" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:765", + "has": [ + "cmd" + ] + } + ] + }, + { + "port": "java", + "name": "send", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:547", + "has": [ + "send" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:312", + "has": [ + "send" + ] + } + ] + }, + { + "port": "java", + "name": "runTogether", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1265", + "has": [ + "runTogether" + ] + } + ] + }, + { + "port": "java", + "name": "withoutStartingServer", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:471", + "has": [ + "withoutStartingServer" + ] + } + ] + }, + { + "port": "java", + "name": "withVersion", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:194", + "has": [ + "withVersion" + ] + } + ] + }, + { + "port": "java", + "name": "captured", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:884", + "has": [ + "captured" + ] + } + ] + }, + { + "port": "java", + "name": "execute", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:180", + "has": [ + "execute" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java:29", + "has": [ + "execute" + ] + }, + { + "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java:239", + "has": [ + "execute" + ] + } + ] + }, + { + "port": "java", + "name": "argv", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:352", + "has": [ + "argv" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Hooks.java:146", + "has": [ + "argv" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:381", + "has": [ + "argv" + ] + } + ] + }, + { + "port": "java", + "name": "command", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:360", + "has": [ + "command" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/PaneStart.java:41", + "has": [ + "command" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java:54", + "has": [ + "command" + ] + } + ] + }, + { + "port": "java", + "name": "listing", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:204", + "has": [ + "listing" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:424", + "has": [ + "listing" + ] + }, + { + "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java:471", + "has": [ + "listing" + ] + } + ] + }, + { + "port": "java", + "name": "request", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:786", + "has": [ + "request" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java:451", + "has": [ + "request" + ] + } + ] + }, + { + "port": "csharp", + "name": "RunAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/ControlModePaneFlow.cs:92", + "has": [ + "RunAsync" + ] + }, + { + "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:243", + "has": [ + "RunAsync" + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:310", + "has": [ + "RunAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "Dispatch", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Exceptions/LibTmuxException.cs:40", + "has": [ + "Dispatch" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:454", + "has": [ + "Dispatch" + ] + }, + { + "at": "src/LibTmux.Workspace/WorkspaceActionOutcome.cs:36", + "has": [ + "Dispatch" + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:95", + "has": [ + "ExecuteAsync" + ] + }, + { + "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:56", + "has": [ + "ExecuteAsync" + ] + }, + { + "at": "src/LibTmux/Chaining/TmuxChaining.cs:23", + "has": [ + "ExecuteAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "ListAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/PaneObservation.cs:332", + "has": [ + "ListAsync" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:13", + "has": [ + "ListAsync" + ] + }, + { + "at": "src/LibTmux/Server.Collections.cs:81", + "has": [ + "ListAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "FetchAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:30", + "has": [ + "FetchAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "SearchAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Query/NativeFilterSearch.cs:73", + "has": [ + "SearchAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "SendAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:281", + "has": [ + "SendAsync" + ] + }, + { + "at": "src/LibTmux/ControlMode/IControlModeSession.cs:68", + "has": [ + "SendAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "SendRawAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:306", + "has": [ + "SendRawAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "RunUtilityAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Utilities.cs:112", + "has": [ + "RunUtilityAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "RunClientAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:194", + "has": [ + "RunClientAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "TryThroughControlAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Streaming/PaneReader.cs:438", + "has": [ + "TryThroughControlAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "Fetch", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:125", + "has": [ + "Fetch" + ] + } + ] + }, + { + "port": "csharp", + "name": "ReadUtilityAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Utilities.cs:123", + "has": [ + "ReadUtilityAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteCommandAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Command.cs:22", + "has": [ + "ExecuteCommandAsync" + ] + }, + { + "at": "src/LibTmux/Server.Command.cs:19", + "has": [ + "ExecuteCommandAsync" + ] + }, + { + "at": "src/LibTmux/Session.Command.cs:22", + "has": [ + "ExecuteCommandAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteAttachmentAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:168", + "has": [ + "ExecuteAttachmentAsync" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:11", + "has": [ + "ExecuteAttachmentAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteGuardedAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Connection/MultiplexerDialect.cs:73", + "has": [ + "ExecuteGuardedAsync" + ] + }, + { + "at": "src/LibTmux/Connection/PsmuxDialect.cs:63", + "has": [ + "ExecuteGuardedAsync" + ] + }, + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:158", + "has": [ + "ExecuteGuardedAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "RunPlacementAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Window.Links.cs:177", + "has": [ + "RunPlacementAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "DispatchAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:426", + "has": [ + "DispatchAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "ReadAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/PaneObservation.cs:379", + "has": [ + "ReadAsync" + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:437", + "has": [ + "ReadAsync" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:117", + "has": [ + "ReadAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "CreatePaneFromAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Topology.cs:567", + "has": [ + "CreatePaneFromAsync" + ] + } + ] + }, + { + "port": "csharp", + "name": "Build", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:226", + "has": [ + "Build" + ] + }, + { + "at": "src/LibTmux/Query/TmuxFilterRenderer.cs:206", + "has": [ + "Build" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:147", + "has": [ + "Build" + ] + } + ] + }, + { + "port": "csharp", + "name": "Create", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/TmuxCommand.cs:73", + "has": [ + "Create" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxDispatchLedger.cs:26", + "has": [ + "Create" + ] + }, + { + "at": "src/LibTmux/Materialization/FormatProjection.cs:95", + "has": [ + "Create" + ] + } + ] + }, + { + "port": "csharp", + "name": "BuildRehomeArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Topology.cs:533", + "has": [ + "BuildRehomeArguments" + ] + } + ] + }, + { + "port": "csharp", + "name": "BuildGuardedCommandLine", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Server.Command.cs:66", + "has": [ + "BuildGuardedCommandLine" + ] + } + ] + }, + { + "port": "cxx", + "name": "run", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/backend.cpp:353", + "has": [ + "run" + ] + }, + { + "at": "src/backend.hpp:90", + "has": [ + "run" + ] + }, + { + "at": "src/entities.cpp:60", + "has": [ + "run" + ] + } + ] + }, + { + "port": "cxx", + "name": "list_entities", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/acquire.hpp:185", + "has": [ + "list_entities" + ] + } + ] + }, + { + "port": "cxx", + "name": "show", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/server.cpp:1360", + "has": [ + "show" + ] + } + ] + }, + { + "port": "cxx", + "name": "run_before_deadline", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/wait.cpp:102", + "has": [ + "run_before_deadline" + ] + } + ] + }, + { + "port": "cxx", + "name": "one_entity", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/acquire.hpp:222", + "has": [ + "one_entity" + ] + } + ] + }, + { + "port": "cxx", + "name": "scoped", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/entities.cpp:222", + "has": [ + "scoped" + ] + } + ] + }, + { + "port": "swift", + "name": "TmuxCommand", + "kind": "builder", + "why": "The value that names a tmux command and its arguments, which a dispatch call takes.", + "evidence": [ + { + "at": "Sources/LibTmux/TmuxCommand.swift:5", + "has": [ + "struct TmuxCommand" + ] + } + ] + }, + { + "port": "swift", + "name": "expectSuccess", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Mutations.swift:128", + "has": [ + "expectSuccess" + ] + } + ] + }, + { + "port": "swift", + "name": "run", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/CommandList.swift:65", + "has": [ + "run" + ] + }, + { + "at": "Sources/LibTmux/OutputWaitSession.swift:14", + "has": [ + "run" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:50", + "has": [ + "run" + ] + } + ] + }, + { + "port": "swift", + "name": "runOptionCommand", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Options.swift:289", + "has": [ + "runOptionCommand" + ] + } + ] + }, + { + "port": "swift", + "name": "list", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:367", + "has": [ + "list" + ] + }, + { + "at": "Sources/TmuxWorkspaceCLI/ReadCommands.swift:4", + "has": [ + "list" + ] + } + ] + }, + { + "port": "swift", + "name": "runInOwnProcess", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:167", + "has": [ + "runInOwnProcess" + ] + } + ] + }, + { + "port": "swift", + "name": "runGuarded", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:19", + "has": [ + "runGuarded" + ] + } + ] + }, + { + "port": "swift", + "name": "send", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/ControlSession.swift:168", + "has": [ + "send" + ] + } + ] + }, + { + "port": "swift", + "name": "runTerminatingIsolated", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:226", + "has": [ + "runTerminatingIsolated" + ] + } + ] + }, + { + "port": "swift", + "name": "runIsolated", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:171", + "has": [ + "runIsolated" + ] + } + ] + }, + { + "port": "swift", + "name": "windowAppearance", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Creation.swift:342", + "has": [ + "windowAppearance" + ] + } + ] + }, + { + "port": "swift", + "name": "identifier", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Creation.swift:322", + "has": [ + "identifier" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:215", + "has": [ + "identifier" + ] + } + ] + }, + { + "port": "swift", + "name": "filtered", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/FilteredListings.swift:116", + "has": [ + "filtered" + ] + } + ] + }, + { + "port": "cxx", + "name": "execute", + "why": "Renders the control request it is given and writes it to the control client, one command to a line.", + "evidence": [ + { + "at": "src/connection.cpp:1114", + "has": [ + "Connection::execute" + ] + }, + { + "at": "src/connection.cpp:1117", + "has": [ + "render_request(std::move(request))" + ] + }, + { + "at": "src/connection.cpp:1161", + "has": [ + "write_bytes(*rendered" + ] + } + ] + }, + { + "port": "go", + "name": "appendPopupVersion33Arguments", + "kind": "builder", + "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", + "evidence": [ + { + "at": "tmux/pane_popup.go:326", + "has": [ + "func appendPopupVersion33Arguments(" + ] + } + ] + }, + { + "port": "go", + "name": "appendPopupVersion36Arguments", + "kind": "builder", + "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", + "evidence": [ + { + "at": "tmux/pane_popup.go:376", + "has": [ + "func appendPopupVersion36Arguments(" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index b45653c4a..ff94f90f5 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -2,410 +2,405 @@ "schemaVersion": 1, "exclusions": [ { - "port": "go", - "owner": "Plan", - "in": "tmux/plan_", - "why": "A Plan records each step; Plan.Run is what sends them.", + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "owner": "Session", + "names": [ + "CreateWindowAsync" + ], + "commands": [ + "display-message" + ], + "why": "CreateWindowAsync asks display-message to expand a window name only when the request sets SelectExisting. The F# wrapper builds its NewWindowRequest without it, so no F# call sends display-message.", "evidence": [ { - "at": "tmux/plan.go:158", + "at": "src/LibTmux/Session.Lifecycle.cs:279", "has": [ - "func (p *Plan) add(op Op) Ref" + "options.SelectExisting" ] }, { - "at": "tmux/plan.go:159", + "at": "src/LibTmux/Session.Lifecycle.cs:284", "has": [ - "p.ops = append(p.ops, op)" + "ExpandWindowNameAsync(" ] - } - ] - }, - { - "port": "cxx", - "owner": "Chain", - "in": "include/libtmux/chain.hpp", - "why": "A Chain adds each command to a batch that a later call sends.", - "evidence": [ + }, { - "at": "include/libtmux/chain.hpp:89", + "at": "src/LibTmux.FSharp/Hierarchy.fs:100", "has": [ - "Chain& add(std::vector command)" + "NewWindowRequest(" ] }, { - "at": "include/libtmux/chain.hpp:90", + "at": "src/LibTmux.FSharp/Hierarchy.fs:104", "has": [ - "batch_.add(" + "Environment = environment window.Environment" ] } ] }, { - "port": "java", - "owner": "CommandChain", - "why": "A CommandChain queues each step on its batch; run() is what sends them.", + "port": "ruby", + "owner": "Pane", + "names": [ + "capture" + ], + "commands": [ + "list-commands" + ], + "why": "capture asks list-commands whether tmux knows a flag only when trim_trailing or mode_screen is set; a default capture does not send it.", "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:83", + "at": "gems/libtmux/lib/libtmux/entity.rb:183", "has": [ - "public CommandChain then(String... argv)" + "next unless enabled" ] }, { - "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:84", + "at": "gems/libtmux/lib/libtmux/entity.rb:185", "has": [ - "batch.add(argv)" + "require_command_flag" ] } ] }, { - "port": "java", - "owner": "PaneCommand", + "port": "ruby", + "owner": "Pane", "names": [ - "typed" + "copy_mode" + ], + "commands": [ + "list-commands" ], - "why": "typed returns the line a caller types into a pane; it sends nothing.", + "why": "copy_mode asks list-commands whether tmux knows a flag only when one of those flags is set; a default copy_mode does not send it.", "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/PaneCommand.java:80", + "at": "gems/libtmux/lib/libtmux/operations.rb:387", "has": [ - "public String typed(" + "next unless enabled" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:389", + "has": [ + "require_command_flag" ] } ] }, { - "port": "java", - "owner": "Pane", + "port": "rs", + "owner": "Plan", "names": [ - "respawnArgv" + "run_over_control_mode" ], - "why": "respawnArgv returns the argument list; its callers run it.", + "commands": [ + "display-message" + ], + "why": "run_over_control_mode probes the tmux version with display-message only when the plan holds a layout step whose validity differs between releases.", "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "at": "crates/libtmux/src/plan/run.rs:785", + "has": [ + "!pending.is_empty()" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:786", "has": [ - "static List respawnArgv(" + "sender.send(" ] } ] }, { - "port": "ts", + "port": "cxx", + "owner": "Window", "names": [ - "plan" + "select_layout" ], - "in": "packages/libtmux/src/", - "why": "A plan getter returns operations to hand to Server.batch; it sends nothing.", + "commands": [ + "display-message" + ], + "why": "select_layout probes the running version with display-message only when the layout string needs it (layout_needs_version); a named layout does not.", "evidence": [ { - "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "at": "src/layout.cpp:386", "has": [ - "export function planKill(" + "if (!sensitive)" ] }, { - "at": "packages/libtmux/src/_internal/operations/plans.ts:165", + "at": "src/layout.cpp:390", "has": [ - "PlannedOperation" + "\"display-message\"" ] }, { - "at": "packages/libtmux/src/pane.ts:269", + "at": "src/entities.cpp:696", "has": [ - "get plan(): PanePlans" + "detail::validate_layouts(" ] - }, + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "wait_for_text" + ], + "commands": [ + "display-message" + ], + "why": "wait_for_text asks display-message for the session name only when the wait was not given one.", + "evidence": [ { - "at": "packages/libtmux/src/session.ts:324", + "at": "src/wait.cpp:460", "has": [ - "get plan(): SessionPlans" + "if (!wait.session_known)" ] }, { - "at": "packages/libtmux/src/window.ts:299", + "at": "src/wait.cpp:462", "has": [ - "get plan(): WindowPlans" + "\"display-message\"" ] } ] }, { - "port": "csharp", + "port": "go", + "owner": "Pane", "names": [ - "ToCommand", - "ToCommands" + "BreakPane" + ], + "commands": [ + "rename-window" ], - "in": "src/LibTmux/", - "why": "A request turns itself into a command value for a chain to run; it sends nothing.", + "why": "BreakPane renames the window afterwards only on the tmux release that ignores the name and when the request names one.", "evidence": [ { - "at": "src/LibTmux/Chaining/ITmuxRequest.cs:30", + "at": "tmux/pane_relocate.go:179", "has": [ - "Returns this request as one tmux command" + "isBroken37 && request.Name != \"\"" ] }, { - "at": "src/LibTmux/Chaining/ITmuxRequest.cs:34", + "at": "tmux/pane_relocate.go:182", "has": [ - "TmuxCommand ToCommand(" - ] - }, - { - "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:77", - "has": [ - "IReadOnlyList ToCommands(" + "\"rename-window\"" ] } ] }, { - "port": "csharp", + "port": "go", "owner": "Server", "names": [ - "FindSessionAsync", - "GetSessionAsync", - "FindWindowAsync", - "GetWindowAsync", - "FindPaneAsync", - "GetPaneAsync", - "CreateSessionWithReceiptAsync" + "NewSession" ], "commands": [ - "list-sessions", - "list-windows", - "list-panes" + "list-sessions" ], - "why": "A lookup by id passes the name of a list command only to pick the format of the row it reads; it sends display-message -p -t, and the fallback that listed with -a below tmux 3.3 is gone with the 3.3a floor.", + "why": "NewSession lists sessions to look up a name only when the request carries one.", "evidence": [ { - "at": "src/LibTmux/Server.Identity.cs:231", - "has": [ - "\"list-sessions\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:124", + "at": "tmux/session_lifecycle.go:208", "has": [ - "CreateProjection(listCommand)" + "request.Name != \"\"" ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "at": "tmux/session_lifecycle.go:215", "has": [ - "\"display-message\"" + "sessionNamed(" ] } ] }, { - "port": "csharp", - "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "port": "go", "owner": "Server", "names": [ - "FindSessionAsync", - "GetSessionAsync", - "FindWindowAsync", - "GetWindowAsync", - "FindPaneAsync", - "GetPaneAsync", - "CreateSessionAsync" + "NewSessionConnection" ], "commands": [ - "list-sessions", - "list-windows", - "list-panes" + "list-sessions" ], - "why": "A lookup by id passes the name of a list command only to pick the format of its row. It lists with -a only below tmux 3.3 and sends display-message from 3.3, and this revision supports 3.2a, so no one command holds on every supported release.", + "why": "NewSessionConnection lists sessions to look up a name only when the request carries one.", "evidence": [ { - "at": "src/LibTmux/Server.Identity.cs:152", - "has": [ - "\"list-sessions\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:77", - "has": [ - "!TmuxCapabilities.IsSupported(" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:79", - "has": [ - "\"missing_target_format_safety\"" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:81", + "at": "tmux/connection.go:176", "has": [ - "ReadFromListingAsync(" + "request.Name != \"\"" ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:179", + "at": "tmux/connection.go:177", "has": [ - "\"display-message\"" - ] - }, - { - "at": "src/LibTmux/Constants/TmuxConstants.cs:6", - "has": [ - "Parse(\"3.2a\")" + "sessionNamed(" ] } ] }, { - "port": "csharp", - "owner": "Session", + "port": "go", + "owner": "Server", "names": [ - "RefreshAsync" + "OpenNotifications" ], "commands": [ - "list-sessions" + "refresh-client" ], - "why": "A session refreshes itself by id and passes the name of a list command only to pick the format of the row; it sends display-message -p -t, and the fallback that listed below tmux 3.3 is gone with the 3.3a floor.", + "why": "OpenNotifications arms the pause hold with refresh-client only when PauseAfter is positive.", "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:52", + "at": "tmux/notification_stream.go:72", "has": [ - "\"list-sessions\"" + "options.PauseAfter > 0" ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:124", + "at": "tmux/notification_stream.go:73", "has": [ - "CreateProjection(listCommand)" - ] - }, - { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", - "has": [ - "\"display-message\"" + "armPause(" ] } ] }, { - "port": "csharp", - "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", - "owner": "Session", + "port": "julia", "names": [ - "RefreshAsync" + "open_control" ], "commands": [ - "list-sessions" + "wait-for" ], - "why": "A session refreshes itself by id and passes the name of a list command only to pick the format of the row. It lists with -a only below tmux 3.3 and sends display-message from 3.3, and this revision supports 3.2a, so no one command holds on every supported release.", + "why": "The connection releases a wait-for signal from its cleanup worker, in the :release phase, and not as part of opening it.", "evidence": [ { - "at": "src/LibTmux/Session.Lifecycle.cs:46", + "at": "src/control.jl:965", "has": [ - "\"list-sessions\"" + "phase === :release" ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:77", + "at": "src/control.jl:966", "has": [ - "!TmuxCapabilities.IsSupported(" + "\"wait-for\"" ] - }, + } + ] + }, + { + "port": "julia", + "names": [ + "select_layout" + ], + "commands": [ + "display-message" + ], + "why": "select_layout asks display-message for the version only for a mirrored layout.", + "evidence": [ { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:81", + "at": "src/control_topology.jl:131", "has": [ - "ReadFromListingAsync(" + "endswith(text, \"-mirrored\")" ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:179", + "at": "src/control_topology.jl:134", "has": [ "\"display-message\"" ] - }, - { - "at": "src/LibTmux/Constants/TmuxConstants.cs:6", - "has": [ - "Parse(\"3.2a\")" - ] } ] }, { - "port": "go", - "owner": "Session", + "port": "java", + "owner": "Pane", "names": [ - "Start" + "breakOut" ], "commands": [ - "wait-for" + "rename-window" ], - "why": "The signal is the command of a pane-died hook: Start sends set-hook, and tmux runs wait-for -S when the pane dies.", + "why": "breakOut renames the window afterwards only on the tmux release that ignores the name.", "evidence": [ { - "at": "tmux/session_run.go:162", + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:839", + "has": [ + "BREAK_PANE_NAMING_BROKEN" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:842", "has": [ - "SetHook(ctx, \"pane-died\", \"wait-for -S \"" + "\"rename-window\"" ] } ] }, { - "port": "java", - "owner": "Server", + "port": "ts", + "owner": "Pane", "names": [ - "control" + "exitCopyMode" ], "commands": [ - "display-message" + "copy-mode" ], - "why": "The identity read is the then-branch of the fence's if-shell, so Server.control sends if-shell and tmux runs display-message.", + "why": "exitCopyMode calls setCopyMode with active false, which sends send-keys -X cancel; the copy-mode branch is for entering.", "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:836", + "at": "packages/libtmux/src/_internal/operations/shell.ts:215", "has": [ - "fence.guarded(captured, \"display-message" + "if (active)" ] }, { - "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:77", + "at": "packages/libtmux/src/_internal/operations/shell.ts:216", "has": [ - "List.of(\"if-shell\", \"-F\", condition, command, stale)" + "\"copy-mode\"" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:551", + "has": [ + "setCopyMode(runtimeForHandle(this), this.id, false)" ] } ] }, { - "port": "cxx", + "port": "ts", "owner": "Pane", "names": [ - "break_out" + "enterCopyMode" ], "commands": [ - "break-pane", - "display-message", - "rename-window" + "send-keys" ], - "why": "Both branches are the then and else commands of the if-shell that break_out sends; tmux runs them.", + "why": "enterCopyMode calls setCopyMode with active true, which returns after copy-mode; the send-keys -X cancel branch is for leaving.", "evidence": [ { - "at": "src/entities.cpp:1279", + "at": "packages/libtmux/src/_internal/operations/shell.ts:216", "has": [ - "\"break-pane -d -s \"" + "\"copy-mode\"" ] }, { - "at": "src/entities.cpp:1287", + "at": "packages/libtmux/src/_internal/operations/shell.ts:217", "has": [ - "\"if-shell\", \"-F\", \"-t\", target" + "return;" ] }, { - "at": "src/entities.cpp:1366", + "at": "packages/libtmux/src/pane.ts:540", "has": [ - "\"rename-window -t \"" + "setCopyMode(runtimeForHandle(this), this.id, true)" ] } ] diff --git a/scripts/tmux-usage/not-senders.json b/scripts/tmux-usage/not-senders.json index c6d27f1b9..d45873a55 100644 --- a/scripts/tmux-usage/not-senders.json +++ b/scripts/tmux-usage/not-senders.json @@ -1639,32 +1639,6 @@ } ] }, - { - "port": "java", - "owner": "OptionKey", - "names": [ - "read" - ], - "commands": [ - "show-options" - ], - "kind": "values", - "why": "OptionKey.read decodes the text a show-options reply carried into the key's type; it sends nothing.", - "evidence": [ - { - "at": "libtmux/src/main/java/io/github/libtmux/OptionKey.java:78", - "has": [ - "T read(String reported)" - ] - }, - { - "at": "libtmux/src/main/java/io/github/libtmux/OptionKey.java:79", - "has": [ - "read.apply(reported)" - ] - } - ] - }, { "port": "java", "owner": "Pane", @@ -4483,6 +4457,172 @@ ] } ] + }, + { + "port": "go", + "owner": "Plan", + "in": "tmux/plan_", + "kind": "builds", + "why": "A Plan records each step; Plan.Run is what sends them.", + "evidence": [ + { + "at": "tmux/plan.go:158", + "has": [ + "func (p *Plan) add(op Op) Ref" + ] + }, + { + "at": "tmux/plan.go:159", + "has": [ + "p.ops = append(p.ops, op)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Chain", + "in": "include/libtmux/chain.hpp", + "kind": "builds", + "why": "A Chain adds each command to a batch that a later call sends.", + "evidence": [ + { + "at": "include/libtmux/chain.hpp:89", + "has": [ + "Chain& add(std::vector command)" + ] + }, + { + "at": "include/libtmux/chain.hpp:90", + "has": [ + "batch_.add(" + ] + } + ] + }, + { + "port": "java", + "owner": "CommandChain", + "kind": "builds", + "why": "A CommandChain queues each step on its batch; run() is what sends them.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:83", + "has": [ + "public CommandChain then(String... argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:84", + "has": [ + "batch.add(argv)" + ] + } + ] + }, + { + "port": "csharp", + "names": [ + "ToCommand", + "ToCommands" + ], + "in": "src/LibTmux/", + "kind": "builds", + "why": "A request turns itself into a command value for a chain to run; it sends nothing.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:30", + "has": [ + "Returns this request as one tmux command" + ] + }, + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:34", + "has": [ + "TmuxCommand ToCommand(" + ] + }, + { + "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:77", + "has": [ + "IReadOnlyList ToCommands(" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "FindSessionAsync", + "GetSessionAsync", + "FindWindowAsync", + "GetWindowAsync", + "FindPaneAsync", + "GetPaneAsync", + "CreateSessionWithReceiptAsync" + ], + "commands": [ + "list-sessions", + "list-windows", + "list-panes" + ], + "kind": "other-command", + "why": "A lookup by id passes the name of a list command only to pick the format of the row it reads; it sends display-message -p -t, and the fallback that listed with -a below tmux 3.3 is gone with the 3.3a floor.", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:231", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:124", + "has": [ + "CreateProjection(listCommand)" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "break_out" + ], + "commands": [ + "break-pane", + "display-message", + "rename-window" + ], + "kind": "other-command", + "why": "Both branches are the then and else commands of the if-shell that break_out sends; tmux runs them.", + "evidence": [ + { + "at": "src/entities.cpp:1279", + "has": [ + "\"break-pane -d -s \"" + ] + }, + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1366", + "has": [ + "\"rename-window -t \"" + ] + } + ] } ] } diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json index 0c55941a1..92e98e2c5 100644 --- a/site/src/data/tmux-usage/csharp.json +++ b/site/src/data/tmux-usage/csharp.json @@ -195,7 +195,7 @@ { "command": "refresh-client", "evidence": [ - "src/LibTmux/ControlMode/ControlModeSubscriptions.cs:38" + "src/LibTmux/ControlMode/ControlModeSubscriptions.cs:37" ], "scope": null } @@ -204,14 +204,14 @@ { "command": "break-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:164" + "src/LibTmux/Pane.Topology.cs:187" ], "scope": null }, { "command": "rename-window", "evidence": [ - "src/LibTmux/Pane.Topology.cs:204" + "src/LibTmux/Pane.Topology.cs:203" ], "scope": null } @@ -220,8 +220,9 @@ { "command": "capture-pane", "evidence": [ - "src/LibTmux/Pane.Capture.cs:144", - "src/LibTmux/Pane.Capture.cs:18" + "src/LibTmux/Pane.Capture.cs:20", + "src/LibTmux/Pane.Capture.cs:18", + "src/LibTmux/Pane.Capture.cs:144" ], "scope": null } @@ -230,8 +231,9 @@ { "command": "capture-pane", "evidence": [ - "src/LibTmux/Pane.Capture.cs:144", - "src/LibTmux/Pane.Capture.cs:97" + "src/LibTmux/Pane.Capture.cs:96", + "src/LibTmux/Pane.Capture.cs:97", + "src/LibTmux/Pane.Capture.cs:144" ], "scope": null } @@ -258,8 +260,9 @@ { "command": "choose-tree", "evidence": [ - "src/LibTmux/Pane.Display.cs:60", - "src/LibTmux/Pane.Display.cs:352" + "src/LibTmux/Pane.Display.cs:353", + "src/LibTmux/Pane.Display.cs:352", + "src/LibTmux/Pane.Display.cs:60" ], "scope": null } @@ -268,7 +271,7 @@ { "command": "clear-history", "evidence": [ - "src/LibTmux/Pane.Input.cs:192" + "src/LibTmux/Pane.Input.cs:198" ], "scope": null } @@ -286,7 +289,7 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Pane.Display.cs:227" + "src/LibTmux/Pane.Display.cs:274" ], "scope": null } @@ -295,7 +298,7 @@ { "command": "display-panes", "evidence": [ - "src/LibTmux/Pane.Display.cs:198" + "src/LibTmux/Pane.Display.cs:210" ], "scope": null } @@ -304,8 +307,9 @@ { "command": "display-popup", "evidence": [ - "src/LibTmux/Pane.Display.cs:19", - "src/LibTmux/Pane.Display.cs:180" + "src/LibTmux/Pane.Display.cs:181", + "src/LibTmux/Pane.Display.cs:180", + "src/LibTmux/Pane.Display.cs:19" ], "scope": null } @@ -332,8 +336,9 @@ { "command": "copy-mode", "evidence": [ - "src/LibTmux/Pane.Display.cs:103", - "src/LibTmux/Pane.Display.cs:314" + "src/LibTmux/Pane.Display.cs:315", + "src/LibTmux/Pane.Display.cs:314", + "src/LibTmux/Pane.Display.cs:103" ], "scope": null } @@ -351,8 +356,9 @@ { "command": "find-window", "evidence": [ - "src/LibTmux/Pane.Display.cs:135", - "src/LibTmux/Pane.Display.cs:365" + "src/LibTmux/Pane.Display.cs:366", + "src/LibTmux/Pane.Display.cs:365", + "src/LibTmux/Pane.Display.cs:135" ], "scope": null } @@ -370,7 +376,7 @@ { "command": "kill-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:292" + "src/LibTmux/Pane.Topology.cs:300" ], "scope": null } @@ -388,8 +394,9 @@ { "command": "paste-buffer", "evidence": [ - "src/LibTmux/Pane.Input.cs:209", - "src/LibTmux/Pane.Input.cs:244" + "src/LibTmux/Pane.Input.cs:245", + "src/LibTmux/Pane.Input.cs:244", + "src/LibTmux/Pane.Input.cs:209" ], "scope": null } @@ -398,8 +405,9 @@ { "command": "pipe-pane", "evidence": [ - "src/LibTmux/Pane.Capture.cs:117", - "src/LibTmux/Pane.Capture.cs:111" + "src/LibTmux/Pane.Capture.cs:112", + "src/LibTmux/Pane.Capture.cs:111", + "src/LibTmux/Pane.Capture.cs:117" ], "scope": null } @@ -424,8 +432,9 @@ { "command": "resize-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:426", - "src/LibTmux/Pane.Topology.cs:334" + "src/LibTmux/Pane.Topology.cs:337", + "src/LibTmux/Pane.Topology.cs:334", + "src/LibTmux/Pane.Topology.cs:426" ], "scope": null } @@ -434,8 +443,9 @@ { "command": "respawn-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:11", - "src/LibTmux/Pane.Topology.cs:316" + "src/LibTmux/Pane.Topology.cs:317", + "src/LibTmux/Pane.Topology.cs:316", + "src/LibTmux/Pane.Topology.cs:11" ], "scope": null } @@ -444,8 +454,9 @@ { "command": "select-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:461", - "src/LibTmux/Pane.Topology.cs:392" + "src/LibTmux/Pane.Topology.cs:395", + "src/LibTmux/Pane.Topology.cs:392", + "src/LibTmux/Pane.Topology.cs:461" ], "scope": null } @@ -469,9 +480,13 @@ { "command": "send-keys", "evidence": [ - "src/LibTmux/Pane.Input.cs:75", - "src/LibTmux/Pane.Input.cs:94" + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -479,7 +494,7 @@ { "command": "send-prefix", "evidence": [ - "src/LibTmux/Pane.Input.cs:129" + "src/LibTmux/Pane.Input.cs:135" ], "scope": null } @@ -537,8 +552,9 @@ { "command": "swap-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:403", - "src/LibTmux/Pane.Topology.cs:282" + "src/LibTmux/Pane.Topology.cs:283", + "src/LibTmux/Pane.Topology.cs:282", + "src/LibTmux/Pane.Topology.cs:403" ], "scope": null } @@ -599,7 +615,7 @@ { "command": "clear-prompt-history", "evidence": [ - "src/LibTmux/Server.Interaction.cs:70" + "src/LibTmux/Server.Interaction.cs:75" ], "scope": null } @@ -608,8 +624,9 @@ { "command": "server-access", "evidence": [ - "src/LibTmux/Server.Administration.cs:12", - "src/LibTmux/Server.Administration.cs:37" + "src/LibTmux/Server.Administration.cs:39", + "src/LibTmux/Server.Administration.cs:37", + "src/LibTmux/Server.Administration.cs:12" ], "scope": null } @@ -618,8 +635,9 @@ { "command": "confirm-before", "evidence": [ - "src/LibTmux/Server.Interaction.cs:102", - "src/LibTmux/Server.Interaction.cs:137" + "src/LibTmux/Server.Interaction.cs:138", + "src/LibTmux/Server.Interaction.cs:137", + "src/LibTmux/Server.Interaction.cs:102" ], "scope": null } @@ -665,8 +683,9 @@ { "command": "new-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:374", - "src/LibTmux/Server.Lifecycle.cs:179" + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:374" ], "scope": null } @@ -675,7 +694,7 @@ { "command": "detach-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:177", + "src/LibTmux/Server.Clients.cs:190", "src/LibTmux/Server.Clients.cs:73" ], "scope": null @@ -685,7 +704,7 @@ { "command": "detach-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:177", + "src/LibTmux/Server.Clients.cs:190", "src/LibTmux/Server.Clients.cs:55" ], "scope": null @@ -695,8 +714,9 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Server.Display.cs:18", - "src/LibTmux/Server.Display.cs:62" + "src/LibTmux/Server.Display.cs:65", + "src/LibTmux/Server.Display.cs:62", + "src/LibTmux/Server.Display.cs:18" ], "scope": null } @@ -754,7 +774,7 @@ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Server.Collections.cs:38" + "src/LibTmux/Server.Collections.cs:36" ], "scope": null } @@ -773,7 +793,7 @@ { "command": "list-commands", "evidence": [ - "src/LibTmux/Server.Administration.cs:104" + "src/LibTmux/Server.Administration.cs:111" ], "scope": null } @@ -782,7 +802,7 @@ { "command": "show-messages", "evidence": [ - "src/LibTmux/Server.Administration.cs:85" + "src/LibTmux/Server.Administration.cs:92" ], "scope": null } @@ -805,7 +825,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Server.Collections.cs:75" + "src/LibTmux/Server.Collections.cs:74" ], "scope": "server" } @@ -814,7 +834,7 @@ { "command": "show-prompt-history", "evidence": [ - "src/LibTmux/Server.Interaction.cs:87" + "src/LibTmux/Server.Interaction.cs:92" ], "scope": null } @@ -837,7 +857,7 @@ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Server.Collections.cs:18" + "src/LibTmux/Server.Collections.cs:17" ], "scope": null } @@ -860,7 +880,7 @@ { "command": "list-windows", "evidence": [ - "src/LibTmux/Server.Collections.cs:61" + "src/LibTmux/Server.Collections.cs:60" ], "scope": "server" } @@ -869,7 +889,7 @@ { "command": "has-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:120" + "src/LibTmux/Server.Lifecycle.cs:119" ], "scope": null } @@ -878,8 +898,9 @@ { "command": "if-shell", "evidence": [ - "src/LibTmux/Server.Execution.cs:104", - "src/LibTmux/Server.Execution.cs:99" + "src/LibTmux/Server.Execution.cs:99", + "src/LibTmux/Server.Execution.cs:99", + "src/LibTmux/Server.Execution.cs:104" ], "scope": null } @@ -888,7 +909,7 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Server.Identity.cs:122" + "src/LibTmux/Server.Identity.cs:121" ], "scope": null } @@ -915,7 +936,7 @@ { "command": "kill-session", "evidence": [ - "src/LibTmux/Server.Lifecycle.cs:96" + "src/LibTmux/Server.Lifecycle.cs:95" ], "scope": null } @@ -942,7 +963,7 @@ { "command": "refresh-client", "evidence": [ - "src/LibTmux/Server.Clients.cs:107" + "src/LibTmux/Server.Clients.cs:114" ], "scope": null } @@ -951,8 +972,9 @@ { "command": "run-shell", "evidence": [ - "src/LibTmux/Server.Execution.cs:17", - "src/LibTmux/Server.Execution.cs:80" + "src/LibTmux/Server.Execution.cs:83", + "src/LibTmux/Server.Execution.cs:80", + "src/LibTmux/Server.Execution.cs:17" ], "scope": null } @@ -974,7 +996,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Query/NativeFilterSearch.cs:51" + "src/LibTmux/Query/NativeFilterSearch.cs:50" ], "scope": "server" } @@ -983,7 +1005,7 @@ { "command": "list-sessions", "evidence": [ - "src/LibTmux/Query/NativeFilterSearch.cs:21" + "src/LibTmux/Query/NativeFilterSearch.cs:20" ], "scope": null } @@ -992,7 +1014,7 @@ { "command": "list-windows", "evidence": [ - "src/LibTmux/Query/NativeFilterSearch.cs:36" + "src/LibTmux/Query/NativeFilterSearch.cs:35" ], "scope": "server" } @@ -1001,8 +1023,9 @@ { "command": "command-prompt", "evidence": [ - "src/LibTmux/Server.Interaction.cs:11", - "src/LibTmux/Server.Interaction.cs:58" + "src/LibTmux/Server.Interaction.cs:59", + "src/LibTmux/Server.Interaction.cs:58", + "src/LibTmux/Server.Interaction.cs:11" ], "scope": null } @@ -1011,8 +1034,9 @@ { "command": "display-menu", "evidence": [ - "src/LibTmux/Server.Interaction.cs:148", - "src/LibTmux/Server.Interaction.cs:198" + "src/LibTmux/Server.Interaction.cs:199", + "src/LibTmux/Server.Interaction.cs:198", + "src/LibTmux/Server.Interaction.cs:148" ], "scope": null } @@ -1021,7 +1045,7 @@ { "command": "source-file", "evidence": [ - "src/LibTmux/Server.Administration.cs:59" + "src/LibTmux/Server.Administration.cs:65" ], "scope": null } @@ -1066,8 +1090,9 @@ { "command": "wait-for", "evidence": [ - "src/LibTmux/Server.Execution.cs:233", - "src/LibTmux/Server.Execution.cs:147" + "src/LibTmux/Server.Execution.cs:147", + "src/LibTmux/Server.Execution.cs:147", + "src/LibTmux/Server.Execution.cs:233" ], "scope": null } @@ -1076,8 +1101,9 @@ { "command": "attach-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:424", - "src/LibTmux/Session.Lifecycle.cs:279" + "src/LibTmux/Session.Lifecycle.cs:278", + "src/LibTmux/Session.Lifecycle.cs:279", + "src/LibTmux/Session.Lifecycle.cs:424" ], "scope": null } @@ -1129,7 +1155,7 @@ { "command": "detach-client", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:142" + "src/LibTmux/Session.Lifecycle.cs:140" ], "scope": null } @@ -1138,7 +1164,7 @@ { "command": "list-windows", "evidence": [ - "src/LibTmux/Session.Relations.cs:100" + "src/LibTmux/Session.Relations.cs:98" ], "scope": "session" } @@ -1147,7 +1173,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Session.Relations.cs:184" + "src/LibTmux/Session.Relations.cs:182" ], "scope": "session" } @@ -1186,7 +1212,7 @@ { "command": "kill-session", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:101" + "src/LibTmux/Session.Lifecycle.cs:119" ], "scope": null } @@ -1195,7 +1221,7 @@ { "command": "kill-window", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:195" + "src/LibTmux/Session.Lifecycle.cs:194" ], "scope": null } @@ -1222,7 +1248,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:245" + "src/LibTmux/Session.Lifecycle.cs:243" ], "scope": "session" } @@ -1231,7 +1257,7 @@ { "command": "list-windows", "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:224" + "src/LibTmux/Session.Lifecycle.cs:222" ], "scope": "session" } @@ -1308,7 +1334,7 @@ { "command": "show-buffer", "evidence": [ - "src/LibTmux/Server.Buffers.cs:59", + "src/LibTmux/Server.Buffers.cs:61", "src/LibTmux/Buffers/TmuxBuffers.cs:69" ], "scope": null @@ -1331,7 +1357,7 @@ { "command": "load-buffer", "evidence": [ - "src/LibTmux/Server.Buffers.cs:31", + "src/LibTmux/Server.Buffers.cs:35", "src/LibTmux/Buffers/TmuxBuffers.cs:46" ], "scope": null @@ -1341,7 +1367,7 @@ { "command": "save-buffer", "evidence": [ - "src/LibTmux/Server.Buffers.cs:46", + "src/LibTmux/Server.Buffers.cs:51", "src/LibTmux/Buffers/TmuxBuffers.cs:60" ], "scope": null @@ -1351,7 +1377,7 @@ { "command": "set-buffer", "evidence": [ - "src/LibTmux/Server.Buffers.cs:16", + "src/LibTmux/Server.Buffers.cs:21", "src/LibTmux/Buffers/TmuxBuffers.cs:34" ], "scope": null @@ -1370,7 +1396,7 @@ { "command": "show-environment", "evidence": [ - "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:91" + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:94" ], "scope": null } @@ -1379,7 +1405,7 @@ { "command": "set-environment", "evidence": [ - "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:170" + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:174" ], "scope": null } @@ -1388,7 +1414,7 @@ { "command": "set-environment", "evidence": [ - "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:127" + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:143" ], "scope": null } @@ -1397,7 +1423,7 @@ { "command": "set-environment", "evidence": [ - "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:185" + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:189" ], "scope": null } @@ -1406,7 +1432,7 @@ { "command": "show-hooks", "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:443", + "src/LibTmux/Hooks/TmuxHooks.cs:449", "src/LibTmux/Hooks/TmuxHooks.cs:118" ], "scope": null @@ -1416,7 +1442,7 @@ { "command": "show-hooks", "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:443", + "src/LibTmux/Hooks/TmuxHooks.cs:449", "src/LibTmux/Hooks/TmuxHooks.cs:99" ], "scope": null @@ -1426,8 +1452,9 @@ { "command": "set-hook", "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:130", - "src/LibTmux/Hooks/TmuxHooks.cs:313" + "src/LibTmux/Hooks/TmuxHooks.cs:313", + "src/LibTmux/Hooks/TmuxHooks.cs:313", + "src/LibTmux/Hooks/TmuxHooks.cs:130" ], "scope": null } @@ -1448,7 +1475,7 @@ { "command": "set-hook", "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:323" + "src/LibTmux/Hooks/TmuxHooks.cs:330" ], "scope": null } @@ -1470,7 +1497,7 @@ { "command": "list-keys", "evidence": [ - "src/LibTmux/Server.Keys.cs:61", + "src/LibTmux/Server.Keys.cs:69", "src/LibTmux/Keys/TmuxKeys.cs:56" ], "scope": null @@ -1502,8 +1529,9 @@ { "command": "show-options", "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:55", - "src/LibTmux/Options/TmuxOptions.cs:82" + "src/LibTmux/Options/TmuxOptions.cs:83", + "src/LibTmux/Options/TmuxOptions.cs:82", + "src/LibTmux/Options/TmuxOptions.cs:55" ], "scope": null } @@ -1512,8 +1540,9 @@ { "command": "set-option", "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:170", - "src/LibTmux/Options/TmuxOptions.cs:200" + "src/LibTmux/Options/TmuxOptions.cs:204", + "src/LibTmux/Options/TmuxOptions.cs:200", + "src/LibTmux/Options/TmuxOptions.cs:170" ], "scope": null } @@ -1522,8 +1551,9 @@ { "command": "set-option", "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:226", - "src/LibTmux/Options/TmuxOptions.cs:250" + "src/LibTmux/Options/TmuxOptions.cs:253", + "src/LibTmux/Options/TmuxOptions.cs:250", + "src/LibTmux/Options/TmuxOptions.cs:226" ], "scope": null } @@ -1532,7 +1562,7 @@ { "command": "new-pane", "evidence": [ - "src/LibTmux/Window.Panes.cs:218" + "src/LibTmux/Window.Panes.cs:263" ], "scope": null } @@ -1541,7 +1571,7 @@ { "command": "new-window", "evidence": [ - "src/LibTmux/Window.Lifecycle.cs:136" + "src/LibTmux/Window.Lifecycle.cs:164" ], "scope": null } @@ -1550,7 +1580,7 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Window.Display.cs:38" + "src/LibTmux/Window.Display.cs:79" ], "scope": null } @@ -1608,7 +1638,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Window.Relations.cs:123" + "src/LibTmux/Window.Relations.cs:121" ], "scope": "window" } @@ -1617,7 +1647,7 @@ { "command": "kill-window", "evidence": [ - "src/LibTmux/Window.Lifecycle.cs:56" + "src/LibTmux/Window.Lifecycle.cs:64" ], "scope": null } @@ -1626,8 +1656,9 @@ { "command": "link-window", "evidence": [ - "src/LibTmux/Window.Links.cs:17", - "src/LibTmux/Window.Links.cs:53" + "src/LibTmux/Window.Links.cs:54", + "src/LibTmux/Window.Links.cs:53", + "src/LibTmux/Window.Links.cs:17" ], "scope": null } @@ -1636,7 +1667,7 @@ { "command": "display-message", "evidence": [ - "src/LibTmux/Window.Move.cs:143", + "src/LibTmux/Window.Move.cs:142", "src/LibTmux/Window.Move.cs:53" ], "scope": null @@ -1644,7 +1675,7 @@ { "command": "list-windows", "evidence": [ - "src/LibTmux/Window.Move.cs:105", + "src/LibTmux/Window.Move.cs:103", "src/LibTmux/Window.Move.cs:31" ], "scope": "session" @@ -1652,8 +1683,9 @@ { "command": "move-window", "evidence": [ - "src/LibTmux/Window.Links.cs:122", - "src/LibTmux/Window.Move.cs:29" + "src/LibTmux/Window.Move.cs:55", + "src/LibTmux/Window.Move.cs:29", + "src/LibTmux/Window.Links.cs:122" ], "scope": null } @@ -1671,8 +1703,9 @@ { "command": "resize-window", "evidence": [ - "src/LibTmux/Window.Layout.cs:34", - "src/LibTmux/Window.Layout.cs:24" + "src/LibTmux/Window.Layout.cs:27", + "src/LibTmux/Window.Layout.cs:24", + "src/LibTmux/Window.Layout.cs:34" ], "scope": null } @@ -1681,7 +1714,7 @@ { "command": "respawn-window", "evidence": [ - "src/LibTmux/Window.Lifecycle.cs:108" + "src/LibTmux/Window.Lifecycle.cs:122" ], "scope": null } @@ -1690,7 +1723,7 @@ { "command": "rotate-window", "evidence": [ - "src/LibTmux/Window.Lifecycle.cs:78" + "src/LibTmux/Window.Lifecycle.cs:90" ], "scope": null } @@ -1699,7 +1732,7 @@ { "command": "list-panes", "evidence": [ - "src/LibTmux/Window.Panes.cs:298" + "src/LibTmux/Window.Panes.cs:296" ], "scope": "window" } @@ -1717,7 +1750,7 @@ { "command": "last-pane", "evidence": [ - "src/LibTmux/Window.Panes.cs:40" + "src/LibTmux/Window.Panes.cs:52" ], "scope": null } @@ -1726,8 +1759,9 @@ { "command": "select-layout", "evidence": [ - "src/LibTmux/Window.Layout.cs:60", - "src/LibTmux/Window.Layout.cs:102" + "src/LibTmux/Window.Layout.cs:109", + "src/LibTmux/Window.Layout.cs:102", + "src/LibTmux/Window.Layout.cs:60" ], "scope": null } @@ -1745,7 +1779,7 @@ { "command": "select-pane", "evidence": [ - "src/LibTmux/Window.Panes.cs:75" + "src/LibTmux/Window.Panes.cs:78" ], "scope": null } @@ -1763,7 +1797,7 @@ { "command": "split-window", "evidence": [ - "src/LibTmux/Window.Panes.cs:131" + "src/LibTmux/Window.Panes.cs:171" ], "scope": null } @@ -1772,7 +1806,7 @@ { "command": "swap-window", "evidence": [ - "src/LibTmux/Window.Links.cs:159" + "src/LibTmux/Window.Links.cs:167" ], "scope": null } @@ -1781,8 +1815,9 @@ { "command": "unlink-window", "evidence": [ - "src/LibTmux/Window.Links.cs:187", - "src/LibTmux/Window.Links.cs:69" + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:187" ], "scope": null } diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json index 31d1f3dbd..87ad203fc 100644 --- a/site/src/data/tmux-usage/cxx.json +++ b/site/src/data/tmux-usage/cxx.json @@ -137,7 +137,7 @@ { "command": "display-message", "evidence": [ - "src/entities.cpp:1667" + "src/entities.cpp:1666" ], "scope": null } @@ -156,15 +156,19 @@ "command": "attach-session", "evidence": [ "src/connection.cpp:360", + "src/connection.cpp:369", "src/connection.cpp:1043" ], + "reviewed": true, "scope": null }, { "command": "refresh-client", "evidence": [ - "src/connection.cpp:1089" + "src/connection.cpp:1089", + "src/connection.cpp:1093" ], + "reviewed": true, "scope": null } ], @@ -172,7 +176,7 @@ { "command": "refresh-client", "evidence": [ - "src/connection.cpp:1249" + "src/connection.cpp:1256" ], "scope": null } @@ -193,7 +197,7 @@ { "command": "capture-pane", "evidence": [ - "src/entities.cpp:1167" + "src/entities.cpp:1189" ], "scope": null } @@ -220,7 +224,7 @@ { "command": "join-pane", "evidence": [ - "src/entities.cpp:1464" + "src/entities.cpp:1463" ], "scope": null } @@ -265,7 +269,7 @@ { "command": "paste-buffer", "evidence": [ - "src/entities.cpp:1635" + "src/entities.cpp:1640" ], "scope": null } @@ -274,7 +278,7 @@ { "command": "pipe-pane", "evidence": [ - "src/entities.cpp:1496" + "src/entities.cpp:1499" ], "scope": null } @@ -283,7 +287,7 @@ { "command": "respawn-pane", "evidence": [ - "src/entities.cpp:1533" + "src/entities.cpp:1541" ], "scope": null } @@ -310,7 +314,7 @@ { "command": "send-keys", "evidence": [ - "src/entities.cpp:1096" + "src/entities.cpp:1101" ], "scope": null } @@ -319,7 +323,7 @@ { "command": "send-keys", "evidence": [ - "src/entities.cpp:1081" + "src/entities.cpp:1083" ], "scope": null } @@ -337,7 +341,7 @@ { "command": "set-option", "evidence": [ - "src/entities.cpp:1611" + "src/entities.cpp:1613" ], "scope": null } @@ -364,7 +368,7 @@ { "command": "display-message", "evidence": [ - "src/entities.cpp:1565" + "src/entities.cpp:1567" ], "scope": null } @@ -373,7 +377,7 @@ { "command": "split-window", "evidence": [ - "src/entities.cpp:1127" + "src/entities.cpp:1154" ], "scope": null } @@ -414,21 +418,11 @@ "scope": null } ], - "libtmux::Pane::wait_for_text": [ - { - "command": "display-message", - "evidence": [ - "src/wait.cpp:462", - "src/wait.cpp:495" - ], - "scope": null - } - ], "libtmux::Server::bind_key": [ { "command": "bind-key", "evidence": [ - "src/server.cpp:1016" + "src/server.cpp:1025" ], "scope": null } @@ -491,7 +485,7 @@ { "command": "display-message", "evidence": [ - "src/server.cpp:1087" + "src/server.cpp:1089" ], "scope": null } @@ -545,7 +539,7 @@ { "command": "new-session", "evidence": [ - "src/server.cpp:1212" + "src/server.cpp:1237" ], "scope": null } @@ -581,7 +575,7 @@ { "command": "run-shell", "evidence": [ - "src/server.cpp:1053" + "src/server.cpp:1059" ], "scope": null } @@ -617,7 +611,7 @@ { "command": "set-buffer", "evidence": [ - "src/server.cpp:1110" + "src/server.cpp:1118" ], "scope": null } @@ -635,7 +629,7 @@ { "command": "set-hook", "evidence": [ - "src/server.cpp:1304" + "src/server.cpp:1306" ], "scope": null } @@ -644,7 +638,7 @@ { "command": "set-option", "evidence": [ - "src/server.cpp:1279" + "src/server.cpp:1281" ], "scope": null } @@ -653,7 +647,7 @@ { "command": "set-option", "evidence": [ - "src/server.cpp:1262" + "src/server.cpp:1264" ], "scope": null } @@ -662,7 +656,7 @@ { "command": "display-message", "evidence": [ - "src/server.cpp:1100" + "src/server.cpp:1102" ], "scope": null } @@ -689,7 +683,7 @@ { "command": "unbind-key", "evidence": [ - "src/server.cpp:1036" + "src/server.cpp:1039" ], "scope": null } @@ -703,6 +697,18 @@ "scope": null } ], + "libtmux::Server::validate_layouts": [ + { + "command": "display-message", + "evidence": [ + "src/layout.cpp:390", + "src/layout.cpp:386", + "src/server.cpp:687" + ], + "reviewed": true, + "scope": null + } + ], "libtmux::Server::wait_for": [ { "command": "wait-for", @@ -761,7 +767,7 @@ { "command": "new-window", "evidence": [ - "src/entities.cpp:339" + "src/entities.cpp:361" ], "scope": null } @@ -788,7 +794,7 @@ { "command": "list-panes", "evidence": [ - "src/entities.cpp:269" + "src/entities.cpp:268" ], "scope": "session" } @@ -797,7 +803,7 @@ { "command": "rename-session", "evidence": [ - "src/entities.cpp:376" + "src/entities.cpp:379" ], "scope": null } @@ -833,7 +839,7 @@ { "command": "set-hook", "evidence": [ - "src/entities.cpp:485" + "src/entities.cpp:488" ], "scope": null } @@ -842,7 +848,7 @@ { "command": "set-option", "evidence": [ - "src/entities.cpp:420" + "src/entities.cpp:422" ], "scope": null } @@ -851,7 +857,7 @@ { "command": "display-message", "evidence": [ - "src/entities.cpp:444" + "src/entities.cpp:446" ], "scope": null } @@ -869,7 +875,7 @@ { "command": "list-windows", "evidence": [ - "src/entities.cpp:264" + "src/entities.cpp:263" ], "scope": "session" } @@ -932,7 +938,7 @@ { "command": "list-panes", "evidence": [ - "src/entities.cpp:561" + "src/entities.cpp:560" ], "scope": "window" } @@ -950,7 +956,7 @@ { "command": "rename-window", "evidence": [ - "src/entities.cpp:643" + "src/entities.cpp:646" ], "scope": null } @@ -1004,7 +1010,7 @@ { "command": "set-option", "evidence": [ - "src/entities.cpp:837" + "src/entities.cpp:839" ], "scope": null } @@ -1013,7 +1019,7 @@ { "command": "display-message", "evidence": [ - "src/entities.cpp:669" + "src/entities.cpp:672" ], "scope": null } @@ -1022,7 +1028,7 @@ { "command": "split-window", "evidence": [ - "src/entities.cpp:599" + "src/entities.cpp:631" ], "scope": null } @@ -1049,7 +1055,7 @@ { "command": "set-option", "evidence": [ - "src/entities.cpp:848" + "src/entities.cpp:847" ], "scope": null } diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json index 6d5b8c886..b3d4a0c8f 100644 --- a/site/src/data/tmux-usage/fsharp.json +++ b/site/src/data/tmux-usage/fsharp.json @@ -177,8 +177,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:55", - "src/LibTmux/Options/TmuxOptions.cs:82" + "src/LibTmux/Options/TmuxOptions.cs:83", + "src/LibTmux/Options/TmuxOptions.cs:82", + "src/LibTmux/Options/TmuxOptions.cs:55" ], "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", @@ -196,8 +197,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:167", - "src/LibTmux/Options/TmuxOptions.cs:197" + "src/LibTmux/Options/TmuxOptions.cs:201", + "src/LibTmux/Options/TmuxOptions.cs:197", + "src/LibTmux/Options/TmuxOptions.cs:167" ], "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", @@ -214,8 +216,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Capture.cs:87", - "src/LibTmux/Pane.Capture.cs:18" + "src/LibTmux/Pane.Capture.cs:20", + "src/LibTmux/Pane.Capture.cs:18", + "src/LibTmux/Pane.Capture.cs:87" ], "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", @@ -277,10 +280,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Input.cs:75", - "src/LibTmux/Pane.Input.cs:94" + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100" ], "port": "csharp", + "reviewed": true, "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Pane.SendKeysAsync" } @@ -304,22 +310,6 @@ } ], "LibTmux.FSharp.Server.newSession": [ - { - "command": "display-message", - "evidence": [ - "src/LibTmux.FSharp/Hierarchy.fs:99" - ], - "scope": null, - "via": { - "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:336", - "src/LibTmux/Session.Lifecycle.cs:284" - ], - "port": "csharp", - "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", - "symbol": "LibTmux.Session.CreateWindowAsync" - } - }, { "command": "list-panes", "evidence": [ @@ -344,7 +334,7 @@ "scope": "window", "via": { "evidence": [ - "src/LibTmux/Window.Relations.cs:123" + "src/LibTmux/Window.Relations.cs:121" ], "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 7373eb838..0867610bc 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -345,14 +345,7 @@ { "command": "break-pane", "evidence": [ - "tmux/pane_relocate.go:132" - ], - "scope": null - }, - { - "command": "rename-window", - "evidence": [ - "tmux/pane_relocate.go:182" + "tmux/pane_relocate.go:142" ], "scope": null } @@ -387,8 +380,9 @@ { "command": "capture-pane", "evidence": [ - "tmux/pane_capture.go:282", - "tmux/pane_capture.go:396" + "tmux/pane_capture.go:400", + "tmux/pane_capture.go:396", + "tmux/pane_capture.go:282" ], "scope": null } @@ -418,13 +412,6 @@ ], "reviewed": true, "scope": null - }, - { - "command": "save-buffer", - "evidence": [ - "tmux/pane_capture.go:185" - ], - "scope": null } ], "tmux.Pane.ChooseBuffer": [ @@ -449,7 +436,7 @@ { "command": "choose-tree", "evidence": [ - "tmux/pane_modes.go:199" + "tmux/pane_modes.go:247" ], "scope": null } @@ -458,8 +445,9 @@ { "command": "clear-history", "evidence": [ - "tmux/pane_input.go:405", - "tmux/pane_input.go:388" + "tmux/pane_input.go:395", + "tmux/pane_input.go:388", + "tmux/pane_input.go:405" ], "scope": null } @@ -477,7 +465,7 @@ { "command": "copy-mode", "evidence": [ - "tmux/pane_modes.go:121" + "tmux/pane_modes.go:167" ], "scope": null } @@ -495,7 +483,7 @@ { "command": "display-message", "evidence": [ - "tmux/display_message.go:198", + "tmux/display_message.go:254", "tmux/display_message.go:126" ], "scope": null @@ -505,7 +493,7 @@ { "command": "display-panes", "evidence": [ - "tmux/pane_modes.go:292" + "tmux/pane_modes.go:305" ], "scope": null } @@ -514,7 +502,7 @@ { "command": "display-popup", "evidence": [ - "tmux/pane_popup.go:138" + "tmux/pane_popup.go:202" ], "scope": null } @@ -532,7 +520,7 @@ { "command": "find-window", "evidence": [ - "tmux/pane_modes.go:256" + "tmux/pane_modes.go:281" ], "scope": null } @@ -577,7 +565,7 @@ { "command": "new-pane", "evidence": [ - "tmux/pane_create.go:165", + "tmux/pane_create.go:213", "tmux/pane_create.go:138" ], "scope": null @@ -587,7 +575,7 @@ { "command": "capture-pane", "evidence": [ - "tmux/control_observation.go:351", + "tmux/control_observation.go:346", "tmux/control_observation.go:301" ], "scope": null @@ -595,7 +583,7 @@ { "command": "delete-buffer", "evidence": [ - "tmux/control_observation.go:353", + "tmux/control_observation.go:346", "tmux/control_observation.go:301" ], "scope": null @@ -603,7 +591,7 @@ { "command": "refresh-client", "evidence": [ - "tmux/control_observation.go:349", + "tmux/control_observation.go:346", "tmux/control_observation.go:301" ], "scope": null @@ -611,7 +599,7 @@ { "command": "save-buffer", "evidence": [ - "tmux/control_observation.go:352", + "tmux/control_observation.go:346", "tmux/control_observation.go:301" ], "scope": null @@ -621,7 +609,7 @@ { "command": "paste-buffer", "evidence": [ - "tmux/pane_process.go:167" + "tmux/pane_process.go:186" ], "scope": null } @@ -630,8 +618,9 @@ { "command": "pipe-pane", "evidence": [ - "tmux/pane_process.go:89", - "tmux/pane_process.go:212" + "tmux/pane_process.go:216", + "tmux/pane_process.go:212", + "tmux/pane_process.go:89" ], "scope": null } @@ -640,14 +629,14 @@ { "command": "clear-history", "evidence": [ - "tmux/pane_input.go:446" + "tmux/pane_input.go:442" ], "scope": null }, { "command": "send-keys", "evidence": [ - "tmux/pane_input.go:444" + "tmux/pane_input.go:442" ], "scope": null } @@ -656,8 +645,9 @@ { "command": "resize-pane", "evidence": [ - "tmux/pane_geometry.go:126", - "tmux/pane_geometry.go:96" + "tmux/pane_geometry.go:101", + "tmux/pane_geometry.go:96", + "tmux/pane_geometry.go:126" ], "scope": null } @@ -666,7 +656,7 @@ { "command": "respawn-pane", "evidence": [ - "tmux/pane_process.go:62" + "tmux/pane_process.go:66" ], "scope": null } @@ -675,7 +665,7 @@ { "command": "list-panes", "evidence": [ - "tmux/lookup.go:371", + "tmux/lookup.go:369", "tmux/window_pane_topology.go:199" ], "scope": "window" @@ -683,8 +673,9 @@ { "command": "select-pane", "evidence": [ - "tmux/window_pane_topology.go:293", - "tmux/window_pane_topology.go:191" + "tmux/window_pane_topology.go:195", + "tmux/window_pane_topology.go:191", + "tmux/window_pane_topology.go:293" ], "scope": null } @@ -693,8 +684,9 @@ { "command": "send-keys", "evidence": [ - "tmux/pane_input.go:203", - "tmux/pane_input.go:157" + "tmux/pane_input.go:164", + "tmux/pane_input.go:157", + "tmux/pane_input.go:203" ], "scope": null } @@ -703,8 +695,9 @@ { "command": "send-keys", "evidence": [ - "tmux/pane_input.go:94", - "tmux/pane_input.go:77" + "tmux/pane_input.go:81", + "tmux/pane_input.go:77", + "tmux/pane_input.go:94" ], "scope": null } @@ -713,8 +706,9 @@ { "command": "send-prefix", "evidence": [ - "tmux/pane_input.go:308", - "tmux/pane_input.go:350" + "tmux/pane_input.go:354", + "tmux/pane_input.go:350", + "tmux/pane_input.go:308" ], "scope": null } @@ -785,7 +779,7 @@ { "command": "swap-pane", "evidence": [ - "tmux/window_pane_swap.go:146" + "tmux/window_pane_swap.go:174" ], "scope": null } @@ -834,7 +828,7 @@ { "command": "attach-session", "evidence": [ - "tmux/server_attach.go:117", + "tmux/server_attach.go:139", "tmux/server_attach.go:93" ], "scope": null @@ -844,7 +838,7 @@ { "command": "bind-key", "evidence": [ - "tmux/server_keys.go:86" + "tmux/server_keys.go:97" ], "scope": null } @@ -862,7 +856,7 @@ { "command": "clear-prompt-history", "evidence": [ - "tmux/prompt_history.go:69" + "tmux/prompt_history.go:85" ], "scope": null } @@ -880,7 +874,7 @@ { "command": "command-prompt", "evidence": [ - "tmux/server_interactive.go:244" + "tmux/server_interactive.go:301" ], "scope": null } @@ -889,7 +883,7 @@ { "command": "confirm-before", "evidence": [ - "tmux/server_interactive.go:196" + "tmux/server_interactive.go:223" ], "scope": null } @@ -898,7 +892,7 @@ { "command": "delete-buffer", "evidence": [ - "tmux/server_buffers.go:161" + "tmux/server_buffers.go:165" ], "scope": null } @@ -907,7 +901,7 @@ { "command": "detach-client", "evidence": [ - "tmux/server_clients.go:261" + "tmux/server_clients.go:268" ], "scope": null } @@ -916,7 +910,7 @@ { "command": "detach-client", "evidence": [ - "tmux/server_clients.go:233" + "tmux/server_clients.go:240" ], "scope": null } @@ -925,7 +919,7 @@ { "command": "display-menu", "evidence": [ - "tmux/server_interactive.go:327" + "tmux/server_interactive.go:408" ], "scope": null } @@ -934,7 +928,7 @@ { "command": "display-message", "evidence": [ - "tmux/display_message.go:198", + "tmux/display_message.go:254", "tmux/display_message.go:85" ], "scope": null @@ -944,7 +938,7 @@ { "command": "show-environment", "evidence": [ - "tmux/environment.go:279", + "tmux/environment.go:282", "tmux/environment.go:118" ], "scope": null @@ -954,8 +948,10 @@ { "command": "has-session", "evidence": [ - "tmux/session_lifecycle.go:141" + "tmux/session_lifecycle.go:141", + "tmux/session_lifecycle.go:137" ], + "reviewed": true, "scope": null }, { @@ -971,7 +967,7 @@ { "command": "if-shell", "evidence": [ - "tmux/server_exec.go:302" + "tmux/server_exec.go:313" ], "scope": null } @@ -1007,7 +1003,7 @@ { "command": "list-buffers", "evidence": [ - "tmux/server_buffers.go:301" + "tmux/server_buffers.go:308" ], "scope": null } @@ -1025,7 +1021,7 @@ { "command": "list-commands", "evidence": [ - "tmux/server_keys.go:200" + "tmux/server_keys.go:204" ], "scope": null } @@ -1034,7 +1030,7 @@ { "command": "list-keys", "evidence": [ - "tmux/server_keys.go:163" + "tmux/server_keys.go:183" ], "scope": null } @@ -1043,7 +1039,7 @@ { "command": "load-buffer", "evidence": [ - "tmux/server_buffers.go:203" + "tmux/server_buffers.go:212" ], "scope": null } @@ -1052,7 +1048,7 @@ { "command": "load-buffer", "evidence": [ - "tmux/server_buffers.go:238" + "tmux/server_buffers.go:243" ], "scope": null } @@ -1061,7 +1057,7 @@ { "command": "lock-client", "evidence": [ - "tmux/server_clients.go:196" + "tmux/server_clients.go:200" ], "scope": null } @@ -1079,16 +1075,10 @@ { "command": "kill-session", "evidence": [ - "tmux/session_lifecycle.go:223" - ], - "scope": null - }, - { - "command": "list-sessions", - "evidence": [ - "tmux/session_lifecycle.go:155", - "tmux/session_lifecycle.go:215" + "tmux/session_lifecycle.go:223", + "tmux/session_lifecycle.go:219" ], + "reviewed": true, "scope": null }, { @@ -1107,8 +1097,9 @@ { "command": "if-shell", "evidence": [ - "tmux/identity.go:151", - "tmux/connection.go:185" + "tmux/connection.go:191", + "tmux/connection.go:185", + "tmux/identity.go:151" ], "scope": null }, @@ -1126,9 +1117,11 @@ ], "tmux.Server.OpenControl": [ { - "command": "attach-session", + "command": "if-shell", "evidence": [ - "tmux/control_startup.go:80", + "tmux/control_startup.go:91", + "tmux/control_startup.go:86", + "tmux/identity.go:151", "tmux/control_startup.go:42" ], "scope": null @@ -1136,10 +1129,12 @@ ], "tmux.Server.OpenNotifications": [ { - "command": "refresh-client", + "command": "if-shell", "evidence": [ - "tmux/notification_stream.go:82", - "tmux/notification_stream.go:73" + "tmux/control_startup.go:91", + "tmux/control_startup.go:86", + "tmux/identity.go:151", + "tmux/notification_stream.go:67" ], "scope": null } @@ -1148,7 +1143,7 @@ { "command": "refresh-client", "evidence": [ - "tmux/server_clients.go:179" + "tmux/server_clients.go:186" ], "scope": null } @@ -1157,7 +1152,7 @@ { "command": "set-environment", "evidence": [ - "tmux/environment.go:234", + "tmux/environment.go:237", "tmux/environment.go:100" ], "scope": null @@ -1167,7 +1162,7 @@ { "command": "run-shell", "evidence": [ - "tmux/server_exec.go:184" + "tmux/server_exec.go:235" ], "scope": null } @@ -1176,7 +1171,7 @@ { "command": "save-buffer", "evidence": [ - "tmux/server_buffers.go:178" + "tmux/server_buffers.go:190" ], "scope": null } @@ -1185,7 +1180,7 @@ { "command": "save-buffer", "evidence": [ - "tmux/server_buffers.go:270" + "tmux/server_buffers.go:275" ], "scope": null } @@ -1194,7 +1189,7 @@ { "command": "list-clients", "evidence": [ - "tmux/search.go:47" + "tmux/search.go:46" ], "scope": null } @@ -1203,7 +1198,7 @@ { "command": "list-panes", "evidence": [ - "tmux/search.go:79" + "tmux/search.go:78" ], "scope": "server" } @@ -1212,7 +1207,7 @@ { "command": "list-sessions", "evidence": [ - "tmux/search.go:29" + "tmux/search.go:28" ], "scope": null } @@ -1221,7 +1216,7 @@ { "command": "list-windows", "evidence": [ - "tmux/search.go:63" + "tmux/search.go:62" ], "scope": "server" } @@ -1230,7 +1225,7 @@ { "command": "server-access", "evidence": [ - "tmux/server_clients.go:121" + "tmux/server_clients.go:144" ], "scope": null } @@ -1248,7 +1243,7 @@ { "command": "list-sessions", "evidence": [ - "tmux/lookup.go:38" + "tmux/lookup.go:36" ], "scope": null } @@ -1257,7 +1252,7 @@ { "command": "set-buffer", "evidence": [ - "tmux/server_buffers.go:97" + "tmux/server_buffers.go:105" ], "scope": null } @@ -1266,7 +1261,7 @@ { "command": "set-environment", "evidence": [ - "tmux/environment.go:211", + "tmux/environment.go:220", "tmux/environment.go:89" ], "scope": null @@ -1289,7 +1284,7 @@ { "command": "show-buffer", "evidence": [ - "tmux/server_buffers.go:142", + "tmux/server_buffers.go:148", "tmux/server_buffers.go:119" ], "scope": null @@ -1299,7 +1294,7 @@ { "command": "show-buffer", "evidence": [ - "tmux/server_buffers.go:142", + "tmux/server_buffers.go:148", "tmux/server_buffers.go:131" ], "scope": null @@ -1309,7 +1304,7 @@ { "command": "show-environment", "evidence": [ - "tmux/environment.go:257", + "tmux/environment.go:259", "tmux/environment.go:109" ], "scope": null @@ -1319,7 +1314,7 @@ { "command": "show-messages", "evidence": [ - "tmux/server_keys.go:237" + "tmux/server_keys.go:247" ], "scope": null } @@ -1328,38 +1323,54 @@ { "command": "show-prompt-history", "evidence": [ - "tmux/prompt_history.go:43" + "tmux/prompt_history.go:59" ], "scope": null } ], "tmux.Server.Snapshot": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/snapshot_capture.go:24" + ], + "scope": null + }, { "command": "list-clients", "evidence": [ - "tmux/snapshot_capture.go:46" + "tmux/snapshot_capture.go:46", + "tmux/snapshot_capture.go:49" ], + "reviewed": true, "scope": null }, { "command": "list-panes", "evidence": [ - "tmux/snapshot_capture.go:45" + "tmux/snapshot_capture.go:45", + "tmux/snapshot_capture.go:49" ], + "reviewed": true, "scope": "server" }, { "command": "list-sessions", "evidence": [ - "tmux/snapshot_capture.go:43" + "tmux/snapshot_capture.go:43", + "tmux/snapshot_capture.go:49" ], + "reviewed": true, "scope": null }, { "command": "list-windows", "evidence": [ - "tmux/snapshot_capture.go:44" + "tmux/snapshot_capture.go:44", + "tmux/snapshot_capture.go:49" ], + "reviewed": true, "scope": "server" } ], @@ -1367,8 +1378,9 @@ { "command": "source-file", "evidence": [ - "tmux/server_exec.go:353", - "tmux/server_exec.go:325" + "tmux/server_exec.go:329", + "tmux/server_exec.go:325", + "tmux/server_exec.go:353" ], "scope": null } @@ -1386,7 +1398,7 @@ { "command": "suspend-client", "evidence": [ - "tmux/server_clients.go:210" + "tmux/server_clients.go:214" ], "scope": null } @@ -1395,7 +1407,7 @@ { "command": "switch-client", "evidence": [ - "tmux/server_clients.go:288" + "tmux/server_clients.go:285" ], "scope": null } @@ -1404,7 +1416,7 @@ { "command": "unbind-key", "evidence": [ - "tmux/server_keys.go:125" + "tmux/server_keys.go:138" ], "scope": null } @@ -1413,7 +1425,7 @@ { "command": "set-environment", "evidence": [ - "tmux/environment.go:234", + "tmux/environment.go:237", "tmux/environment.go:95" ], "scope": null @@ -1436,7 +1448,7 @@ { "command": "wait-for", "evidence": [ - "tmux/server_exec.go:259" + "tmux/server_exec.go:277" ], "scope": null } @@ -1472,7 +1484,7 @@ { "command": "attach-session", "evidence": [ - "tmux/server_attach.go:117", + "tmux/server_attach.go:139", "tmux/server_attach.go:113" ], "scope": null @@ -1482,7 +1494,7 @@ { "command": "detach-client", "evidence": [ - "tmux/server_clients.go:335" + "tmux/server_clients.go:340" ], "scope": null } @@ -1491,7 +1503,7 @@ { "command": "show-environment", "evidence": [ - "tmux/environment.go:279", + "tmux/environment.go:282", "tmux/environment.go:180" ], "scope": null @@ -1522,7 +1534,7 @@ { "command": "kill-session", "evidence": [ - "tmux/lifecycle_kill.go:132" + "tmux/lifecycle_kill.go:153" ], "scope": null } @@ -1540,7 +1552,7 @@ { "command": "lock-session", "evidence": [ - "tmux/server_clients.go:309" + "tmux/server_clients.go:306" ], "scope": null } @@ -1580,7 +1592,7 @@ { "command": "set-environment", "evidence": [ - "tmux/environment.go:234", + "tmux/environment.go:237", "tmux/environment.go:153" ], "scope": null @@ -1599,7 +1611,7 @@ { "command": "list-panes", "evidence": [ - "tmux/search.go:129" + "tmux/search.go:127" ], "scope": "session" } @@ -1608,7 +1620,7 @@ { "command": "list-windows", "evidence": [ - "tmux/search.go:102" + "tmux/search.go:100" ], "scope": "session" } @@ -1617,7 +1629,7 @@ { "command": "select-window", "evidence": [ - "tmux/session_navigation.go:101" + "tmux/session_navigation.go:99" ], "scope": null } @@ -1626,7 +1638,7 @@ { "command": "set-environment", "evidence": [ - "tmux/environment.go:211", + "tmux/environment.go:220", "tmux/environment.go:133" ], "scope": null @@ -1677,7 +1689,7 @@ { "command": "show-environment", "evidence": [ - "tmux/environment.go:257", + "tmux/environment.go:259", "tmux/environment.go:166" ], "scope": null @@ -1687,7 +1699,7 @@ { "command": "switch-client", "evidence": [ - "tmux/server_clients.go:359" + "tmux/server_clients.go:356" ], "scope": null } @@ -1696,7 +1708,7 @@ { "command": "set-environment", "evidence": [ - "tmux/environment.go:234", + "tmux/environment.go:237", "tmux/environment.go:143" ], "scope": null @@ -1760,7 +1772,7 @@ { "command": "display-message", "evidence": [ - "tmux/display_message.go:198", + "tmux/display_message.go:254", "tmux/display_message.go:105" ], "scope": null @@ -1788,7 +1800,7 @@ { "command": "last-pane", "evidence": [ - "tmux/window_pane_topology.go:224" + "tmux/window_pane_topology.go:235" ], "scope": null } @@ -1797,8 +1809,9 @@ { "command": "link-window", "evidence": [ - "tmux/window_link_move.go:124", - "tmux/window_link_move.go:96" + "tmux/window_link_move.go:101", + "tmux/window_link_move.go:96", + "tmux/window_link_move.go:124" ], "scope": null } @@ -1807,8 +1820,9 @@ { "command": "move-window", "evidence": [ - "tmux/window_link_move.go:257", - "tmux/window_link_move.go:209" + "tmux/window_link_move.go:214", + "tmux/window_link_move.go:209", + "tmux/window_link_move.go:257" ], "scope": null } @@ -1817,7 +1831,7 @@ { "command": "new-pane", "evidence": [ - "tmux/pane_create.go:165", + "tmux/pane_create.go:213", "tmux/pane_create.go:121" ], "scope": null @@ -1840,7 +1854,7 @@ { "command": "next-layout", "evidence": [ - "tmux/window_layout.go:332" + "tmux/window_layout.go:329" ], "scope": null } @@ -1849,7 +1863,7 @@ { "command": "previous-layout", "evidence": [ - "tmux/window_layout.go:349" + "tmux/window_layout.go:346" ], "scope": null } @@ -1867,8 +1881,9 @@ { "command": "resize-window", "evidence": [ - "tmux/window_resize.go:85", - "tmux/window_resize.go:60" + "tmux/window_resize.go:65", + "tmux/window_resize.go:60", + "tmux/window_resize.go:85" ], "scope": null } @@ -1877,7 +1892,7 @@ { "command": "respawn-window", "evidence": [ - "tmux/window_respawn.go:44" + "tmux/window_respawn.go:49" ], "scope": null } @@ -1886,8 +1901,9 @@ { "command": "rotate-window", "evidence": [ - "tmux/window_pane_topology.go:329", - "tmux/window_pane_topology.go:252" + "tmux/window_pane_topology.go:256", + "tmux/window_pane_topology.go:252", + "tmux/window_pane_topology.go:329" ], "scope": null } @@ -1896,7 +1912,7 @@ { "command": "list-panes", "evidence": [ - "tmux/search.go:154" + "tmux/search.go:152" ], "scope": "window" } @@ -1923,7 +1939,7 @@ { "command": "select-pane", "evidence": [ - "tmux/window_pane_topology.go:150" + "tmux/window_pane_topology.go:170" ], "scope": null } @@ -1985,7 +2001,7 @@ { "command": "swap-window", "evidence": [ - "tmux/window_pane_swap.go:91" + "tmux/window_pane_swap.go:96" ], "scope": null } @@ -1994,7 +2010,7 @@ { "command": "unlink-window", "evidence": [ - "tmux/window_link_move.go:154" + "tmux/window_link_move.go:160" ], "scope": null } @@ -2031,8 +2047,11 @@ "command": "attach-session", "evidence": [ "tmux/tmuxtest/control.go:183", + "tmux/tmuxtest/control.go:185", + "tmux/tmuxtest/control.go:209", "tmux/tmuxtest/control.go:58" ], + "reviewed": true, "scope": null } ], @@ -2051,8 +2070,11 @@ "command": "kill-session", "evidence": [ "tmux/tmuxtest/resources.go:135", + "tmux/tmuxtest/harness.go:546", + "tmux/tmuxtest/harness.go:536", "tmux/tmuxtest/resources.go:56" ], + "reviewed": true, "scope": null } ], diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index 8fb3cbff7..a882d99a7 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -97,16 +97,6 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "schemaVersion": 1, "symbols": { - "io.github.libtmux.batch.Batch.Batch.length": [ - { - "command": "display-message", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", - "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:72" - ], - "scope": null - } - ], "io.github.libtmux.batch.Batch.Batch.run": [ { "command": "display-message", @@ -114,6 +104,8 @@ "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -171,6 +163,26 @@ "scope": null } ], + "io.github.libtmux.Channel.Channel.await": [ + { + "command": "wait-for", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:573", + "libtmux/src/main/java/io/github/libtmux/Channel.java:62" + ], + "scope": null + } + ], + "io.github.libtmux.Channel.Channel.awaitReservingCapacity": [ + { + "command": "wait-for", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:573", + "libtmux/src/main/java/io/github/libtmux/Channel.java:78" + ], + "scope": null + } + ], "io.github.libtmux.Channel.Channel.signal": [ { "command": "wait-for", @@ -211,7 +223,7 @@ { "command": "switch-client", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Client.java:69" + "libtmux/src/main/java/io/github/libtmux/Client.java:67" ], "scope": null } @@ -230,8 +242,11 @@ "command": "attach-session", "evidence": [ "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:196" ], + "forwardable": true, + "reviewed": true, "scope": null }, { @@ -248,8 +263,11 @@ "command": "attach-session", "evidence": [ "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -271,6 +289,18 @@ "scope": null } ], + "io.github.libtmux.Environment.Environment.all": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:104" + ], + "scope": null + } + ], "io.github.libtmux.Environment.Environment.get": [ { "command": "show-environment", @@ -303,8 +333,21 @@ { "command": "set-environment", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:179" + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.removed": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:140" ], "scope": null } @@ -313,8 +356,9 @@ { "command": "set-environment", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:156" + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "scope": null } @@ -323,8 +367,9 @@ { "command": "set-environment", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:162" + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "scope": null } @@ -333,8 +378,9 @@ { "command": "set-environment", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:168" + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "scope": null } @@ -384,24 +430,6 @@ "scope": null } ], - "io.github.libtmux.IncarnationFence.IncarnationFence.guarded": [ - { - "command": "if-shell", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:77" - ], - "scope": null - } - ], - "io.github.libtmux.IncarnationFence.IncarnationFence.run": [ - { - "command": "if-shell", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95" - ], - "scope": null - } - ], "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close": [ { "command": "if-shell", @@ -422,28 +450,11 @@ "scope": null } ], - "io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start": [ - { - "command": "display-message", - "evidence": [ - "libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java:361", - "libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java:354" - ], - "scope": null - }, - { - "command": "new-session", - "evidence": [ - "libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java:350" - ], - "scope": null - } - ], "io.github.libtmux.Keys.Keys.bind": [ { "command": "bind-key", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:57" + "libtmux/src/main/java/io/github/libtmux/Keys.java:62" ], "scope": null } @@ -452,7 +463,7 @@ { "command": "list-keys", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:88" + "libtmux/src/main/java/io/github/libtmux/Keys.java:90" ], "scope": null } @@ -461,7 +472,7 @@ { "command": "unbind-key", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:69" + "libtmux/src/main/java/io/github/libtmux/Keys.java:73" ], "scope": null } @@ -489,9 +500,13 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], + "forwardable": true, + "reviewed": true, "scope": null }, { @@ -516,9 +531,13 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], + "forwardable": true, + "reviewed": true, "scope": null }, { @@ -534,7 +553,7 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", "libtmux/src/main/java/io/github/libtmux/Options.java:92" ], "scope": null @@ -542,7 +561,7 @@ { "command": "show-options", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:93" + "libtmux/src/main/java/io/github/libtmux/Options.java:92" ], "scope": null } @@ -587,15 +606,7 @@ { "command": "break-pane", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:831", - "libtmux/src/main/java/io/github/libtmux/Pane.java:708" - ], - "scope": null - }, - { - "command": "rename-window", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "scope": null @@ -645,7 +656,7 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" ], "scope": null } @@ -654,7 +665,7 @@ { "command": "join-pane", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" ], "scope": null } @@ -672,14 +683,14 @@ { "command": "load-buffer", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "scope": null }, { "command": "paste-buffer", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "scope": null } @@ -688,7 +699,7 @@ { "command": "paste-buffer", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" ], "scope": null } @@ -706,7 +717,7 @@ { "command": "resize-pane", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" ], "scope": null } @@ -715,7 +726,7 @@ { "command": "resize-pane", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" ], "scope": null } @@ -779,7 +790,7 @@ { "command": "list-panes", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "scope": "window" @@ -787,8 +798,9 @@ { "command": "send-keys", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "scope": null } @@ -812,7 +824,7 @@ { "command": "list-panes", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "scope": "window" @@ -820,8 +832,9 @@ { "command": "send-keys", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "scope": null } @@ -853,16 +866,7 @@ { "command": "swap-pane", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" - ], - "scope": null - } - ], - "io.github.libtmux.PrintedText.PrintedText.framed": [ - { - "command": "display-message", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/PrintedText.java:68" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" ], "scope": null } @@ -874,14 +878,6 @@ "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" ], "scope": null - }, - { - "command": "show-prompt-history", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Prompt.java:49", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" - ], - "scope": null } ], "io.github.libtmux.Prompt.Prompt.history": [ @@ -893,20 +889,21 @@ "scope": null } ], - "io.github.libtmux.Server.Server.awaitChannel": [ + "io.github.libtmux.Server.Server.expand": [ { - "command": "wait-for", + "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:569" + "libtmux/src/main/java/io/github/libtmux/Server.java:415" ], "scope": null } ], - "io.github.libtmux.Server.Server.expand": [ + "io.github.libtmux.Server.Server.hasSession": [ { - "command": "display-message", + "command": "list-sessions", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:415" + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" ], "scope": null } @@ -924,14 +921,14 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "scope": null }, { "command": "kill-server", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "scope": null } @@ -943,6 +940,14 @@ "libtmux/src/main/java/io/github/libtmux/Server.java:192" ], "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "scope": null } ], "io.github.libtmux.Server.Server.lock": [ @@ -1047,7 +1052,7 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:252" + "libtmux/src/main/java/io/github/libtmux/Session.java:250" ], "scope": null } @@ -1114,16 +1119,7 @@ { "command": "select-window", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:104" - ], - "scope": null - } - ], - "io.github.libtmux.SessionLookup.SessionLookup.named": [ - { - "command": "list-sessions", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21" + "libtmux/src/main/java/io/github/libtmux/Session.java:100" ], "scope": null } @@ -1155,169 +1151,11 @@ "scope": null } ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt": [ - { - "command": "list-clients", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:184", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" - ], - "scope": null - }, - { - "command": "list-panes", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" - ], - "scope": "server" - }, - { - "command": "list-sessions", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:181", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" - ], - "scope": null - }, - { - "command": "list-windows", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:182", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103" - ], - "scope": "server" - } - ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession": [ - { - "command": "list-panes", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" - ], - "scope": "server" - }, - { - "command": "list-sessions", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" - ], - "scope": null - }, - { - "command": "list-windows", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:227" - ], - "scope": "server" - } - ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.process": [ - { - "command": "display-message", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:144", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:124" - ], - "scope": null - } - ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation": [ - { - "command": "display-message", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:144", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:140" - ], - "scope": null - } - ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding": [ - { - "command": "list-panes", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" - ], - "scope": "server" - }, - { - "command": "list-sessions", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" - ], - "scope": null - }, - { - "command": "list-windows", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:342" - ], - "scope": "server" - } - ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed": [ - { - "command": "list-panes", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" - ], - "scope": "server" - }, - { - "command": "list-sessions", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" - ], - "scope": null - }, - { - "command": "list-windows", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:251" - ], - "scope": "server" - } - ], - "io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere": [ - { - "command": "list-panes", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:292", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" - ], - "scope": "server" - }, - { - "command": "list-sessions", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:290", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" - ], - "scope": null - }, - { - "command": "list-windows", - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:291", - "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276" - ], - "scope": "server" - } - ], "io.github.libtmux.Window.Window.applyLayout": [ { "command": "select-layout", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:376" + "libtmux/src/main/java/io/github/libtmux/Window.java:374" ], "scope": null } @@ -1335,7 +1173,7 @@ { "command": "display-message", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:209" + "libtmux/src/main/java/io/github/libtmux/Window.java:206" ], "scope": null } @@ -1353,7 +1191,7 @@ { "command": "link-window", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:236" + "libtmux/src/main/java/io/github/libtmux/Window.java:234" ], "scope": null } @@ -1362,7 +1200,7 @@ { "command": "move-window", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:257" + "libtmux/src/main/java/io/github/libtmux/Window.java:254" ], "scope": null } @@ -1398,7 +1236,7 @@ { "command": "resize-window", "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:281" + "libtmux/src/main/java/io/github/libtmux/Window.java:278" ], "scope": null } diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 791c86fe2..72af59114 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -101,7 +101,7 @@ { "command": "wait-for", "evidence": [ - "src/control.jl:869" + "src/control.jl:867" ], "scope": null } @@ -110,7 +110,7 @@ { "command": "capture-pane", "evidence": [ - "src/control_io.jl:101" + "src/control_io.jl:124" ], "scope": null }, @@ -125,7 +125,7 @@ { "command": "list-buffers", "evidence": [ - "src/control_io.jl:35", + "src/control_io.jl:36", "src/control_io.jl:112" ], "scope": null @@ -133,7 +133,7 @@ { "command": "save-buffer", "evidence": [ - "src/control_io.jl:131" + "src/control_io.jl:129" ], "scope": null } @@ -153,7 +153,7 @@ { "command": "delete-buffer", "evidence": [ - "src/control_buffers.jl:124" + "src/control_buffers.jl:122" ], "scope": null } @@ -162,14 +162,14 @@ { "command": "detach-client", "evidence": [ - "src/control_clients.jl:77" + "src/control_clients.jl:75" ], "scope": null }, { "command": "list-clients", "evidence": [ - "src/control_clients.jl:11", + "src/control_clients.jl:9", "src/control_clients.jl:74" ], "scope": null @@ -186,7 +186,7 @@ { "command": "list-panes", "evidence": [ - "src/formats.jl:69", + "src/formats.jl:67", "src/formats.jl:208" ], "scope": "window" @@ -243,12 +243,20 @@ { "command": "link-window", "evidence": [ - "src/control_topology.jl:282" + "src/control_topology.jl:285" ], "scope": null } ], "LibTmux.load_buffer": [ + { + "command": "display-message", + "evidence": [ + "src/acquisition.jl:50", + "src/pane_io.jl:185" + ], + "scope": null + }, { "command": "list-buffers", "evidence": [ @@ -260,7 +268,7 @@ { "command": "load-buffer", "evidence": [ - "src/control_buffers.jl:39", + "src/control_buffers.jl:37", "src/control_buffers.jl:71" ], "scope": null @@ -270,7 +278,7 @@ { "command": "move-pane", "evidence": [ - "src/control_topology.jl:189" + "src/control_topology.jl:199" ], "scope": null } @@ -279,7 +287,7 @@ { "command": "move-window", "evidence": [ - "src/control_topology.jl:282" + "src/control_topology.jl:285" ], "scope": null } @@ -288,7 +296,7 @@ { "command": "new-session", "evidence": [ - "src/control_topology.jl:38" + "src/operations.jl:191" ], "scope": null } @@ -297,7 +305,7 @@ { "command": "new-window", "evidence": [ - "src/control_operations.jl:95" + "src/operations.jl:230" ], "scope": null } @@ -306,7 +314,7 @@ { "command": "display-message", "evidence": [ - "src/observation.jl:491", + "src/observation.jl:489", "src/observation.jl:535" ], "scope": null @@ -314,7 +322,7 @@ { "command": "refresh-client", "evidence": [ - "src/observation.jl:543" + "src/observation.jl:541" ], "scope": null } @@ -323,7 +331,7 @@ { "command": "attach-session", "evidence": [ - "src/control.jl:628", + "src/control.jl:637", "src/control.jl:1095" ], "scope": null @@ -331,25 +339,17 @@ { "command": "display-message", "evidence": [ - "src/control.jl:744", + "src/control.jl:742", "src/control.jl:1095" ], "scope": null - }, - { - "command": "wait-for", - "evidence": [ - "src/control.jl:966", - "src/control.jl:1113" - ], - "scope": null } ], "LibTmux.open_server": [ { "command": "display-message", "evidence": [ - "src/lifecycle.jl:265", + "src/lifecycle.jl:269", "src/lifecycle.jl:416" ], "scope": null @@ -359,8 +359,8 @@ { "command": "delete-buffer", "evidence": [ - "src/pane_io.jl:141", - "src/pane_io.jl:289" + "src/control_io.jl:60", + "src/control_buffers.jl:189" ], "scope": null }, @@ -375,7 +375,7 @@ { "command": "list-commands", "evidence": [ - "src/control_buffers.jl:135", + "src/control_buffers.jl:132", "src/control_buffers.jl:174" ], "scope": null @@ -383,7 +383,7 @@ { "command": "load-buffer", "evidence": [ - "src/control_buffers.jl:39", + "src/control_buffers.jl:37", "src/control_buffers.jl:175" ], "scope": null @@ -391,9 +391,12 @@ { "command": "paste-buffer", "evidence": [ - "src/control_buffers.jl:147", - "src/control_buffers.jl:174" + "src/pane_io.jl:243", + "src/pane_io.jl:236", + "src/pane_io.jl:273", + "src/pane_io.jl:278" ], + "reviewed": true, "scope": null } ], @@ -401,7 +404,7 @@ { "command": "list-panes", "evidence": [ - "src/control_formats.jl:21", + "src/control_formats.jl:19", "src/control_formats.jl:56" ], "scope": "window" @@ -411,7 +414,7 @@ { "command": "set-environment", "evidence": [ - "src/control_configuration.jl:75", + "src/control_configuration.jl:73", "src/control_configuration.jl:66" ], "scope": null @@ -439,7 +442,7 @@ { "command": "list-panes", "evidence": [ - "src/formats.jl:69", + "src/formats.jl:67", "src/formats.jl:177" ], "scope": "window" @@ -471,7 +474,7 @@ { "command": "respawn-pane", "evidence": [ - "src/control_topology.jl:229" + "src/control_topology.jl:236" ], "scope": null } @@ -480,66 +483,33 @@ { "command": "respawn-window", "evidence": [ - "src/control_topology.jl:229" + "src/control_topology.jl:236" ], "scope": null } ], - "LibTmux.run_command": [ - { - "command": "delete-buffer", - "evidence": [ - "src/control_protocol.jl:435", - "src/control.jl:580" - ], - "scope": null - }, - { - "command": "kill-pane", - "evidence": [ - "src/control_protocol.jl:427", - "src/control.jl:580" - ], - "scope": null - }, + "LibTmux.save_buffer": [ { - "command": "kill-session", + "command": "list-buffers", "evidence": [ - "src/control_protocol.jl:428", - "src/control.jl:580" + "src/control_io.jl:36", + "src/control_buffers.jl:96" ], "scope": null }, - { - "command": "kill-window", - "evidence": [ - "src/control_protocol.jl:428", - "src/control.jl:580" - ], - "scope": null - } - ], - "LibTmux.save_buffer": [ { "command": "save-buffer", "evidence": [ - "src/control_buffers.jl:102" + "src/control_buffers.jl:100" ], "scope": null } ], "LibTmux.select_layout": [ - { - "command": "display-message", - "evidence": [ - "src/control_topology.jl:134" - ], - "scope": null - }, { "command": "select-layout", "evidence": [ - "src/control_topology.jl:143" + "src/control_topology.jl:141" ], "scope": null } @@ -566,7 +536,7 @@ { "command": "send-keys", "evidence": [ - "src/control_operations.jl:188" + "src/control_operations.jl:196" ], "scope": null } @@ -602,7 +572,7 @@ { "command": "display-message", "evidence": [ - "src/acquisition.jl:52", + "src/acquisition.jl:50", "src/acquisition.jl:227" ], "scope": null @@ -636,7 +606,7 @@ { "command": "list-windows", "evidence": [ - "src/acquisition.jl:109", + "src/acquisition.jl:107", "src/acquisition.jl:231" ], "scope": "server" @@ -646,7 +616,7 @@ { "command": "split-window", "evidence": [ - "src/control_operations.jl:142" + "src/operations.jl:273" ], "scope": null } @@ -655,7 +625,7 @@ { "command": "display-message", "evidence": [ - "src/observation.jl:491", + "src/observation.jl:489", "src/observation.jl:590" ], "scope": null @@ -663,7 +633,7 @@ { "command": "refresh-client", "evidence": [ - "src/observation.jl:610" + "src/observation.jl:608" ], "scope": null } @@ -672,7 +642,7 @@ { "command": "swap-pane", "evidence": [ - "src/control_topology.jl:211" + "src/control_topology.jl:213" ], "scope": null } @@ -681,7 +651,7 @@ { "command": "swap-window", "evidence": [ - "src/control_topology.jl:346" + "src/control_topology.jl:348" ], "scope": null } @@ -690,7 +660,7 @@ { "command": "list-clients", "evidence": [ - "src/control_clients.jl:11", + "src/control_clients.jl:9", "src/control_clients.jl:51" ], "scope": null @@ -698,7 +668,7 @@ { "command": "switch-client", "evidence": [ - "src/control_clients.jl:52" + "src/control_clients.jl:54" ], "scope": null } @@ -707,7 +677,7 @@ { "command": "unlink-window", "evidence": [ - "src/control_topology.jl:317" + "src/control_topology.jl:319" ], "scope": null } @@ -716,7 +686,7 @@ { "command": "set-environment", "evidence": [ - "src/control_configuration.jl:75", + "src/control_configuration.jl:73", "src/control_configuration.jl:50" ], "scope": null diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 08e9a4629..9eaf44677 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -111,6 +111,7 @@ "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" ], "port": "java", + "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.batch.Batch.Batch.run" } @@ -288,7 +289,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Client.java:69" + "libtmux/src/main/java/io/github/libtmux/Client.java:67" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -382,8 +383,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:156" + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -391,6 +393,27 @@ } } ], + "io.github.libtmux.kotlin.Environment.all": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:104" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.all" + } + } + ], "io.github.libtmux.kotlin.Environment.isRemoved": [ { "command": "show-environment", @@ -423,8 +446,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:179" + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -432,6 +456,27 @@ } } ], + "io.github.libtmux.kotlin.Environment.removed": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:137" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:140" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.removed" + } + } + ], "io.github.libtmux.kotlin.Environment.setExpanded": [ { "command": "set-environment", @@ -442,8 +487,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:162" + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -461,8 +507,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:168" + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -511,7 +558,7 @@ "command": "set-hook", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Hooks.java:95" + "libtmux/src/main/java/io/github/libtmux/Hooks.java:82" ], "scope": null, "via": { @@ -570,7 +617,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:57" + "libtmux/src/main/java/io/github/libtmux/Keys.java:62" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -588,7 +635,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:88" + "libtmux/src/main/java/io/github/libtmux/Keys.java:90" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -606,7 +653,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:69" + "libtmux/src/main/java/io/github/libtmux/Keys.java:73" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -642,10 +689,13 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], "port": "java", + "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.all" } @@ -696,10 +746,13 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], "port": "java", + "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.effective" } @@ -732,7 +785,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:93" + "libtmux/src/main/java/io/github/libtmux/Options.java:92" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -822,24 +875,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:831", - "libtmux/src/main/java/io/github/libtmux/Pane.java:708" - ], - "port": "java", - "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Pane.Pane.breakOut" - } - }, - { - "command": "rename-window", - "evidence": [ - "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:703" - ], - "scope": null, - "via": { - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", @@ -853,7 +889,7 @@ "command": "capture-pane", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:531" + "libtmux/src/main/java/io/github/libtmux/Pane.java:333" ], "scope": null, "via": { @@ -933,7 +969,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -951,7 +987,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -987,7 +1023,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1003,7 +1039,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1021,7 +1057,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1057,7 +1093,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1075,7 +1111,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1186,12 +1222,12 @@ "command": "list-panes", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" ], "scope": "window", "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "port": "java", @@ -1203,13 +1239,14 @@ "command": "send-keys", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1245,12 +1282,12 @@ "command": "list-panes", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" ], "scope": "window", "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "port": "java", @@ -1262,13 +1299,14 @@ "command": "send-keys", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1281,7 +1319,7 @@ "command": "split-window", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Pane.java:891" + "libtmux/src/main/java/io/github/libtmux/Pane.java:855" ], "scope": null, "via": { @@ -1326,7 +1364,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1350,58 +1388,60 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.clear" } - }, + } + ], + "io.github.libtmux.kotlin.Prompt.history": [ { "command": "show-prompt-history", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Prompt.java:49", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Prompt.Prompt.clear" + "symbol": "io.github.libtmux.Prompt.Prompt.history" } } ], - "io.github.libtmux.kotlin.Prompt.history": [ + "io.github.libtmux.kotlin.Server.expand": [ { - "command": "show-prompt-history", + "command": "display-message", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" + "libtmux/src/main/java/io/github/libtmux/Server.java:412" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + "libtmux/src/main/java/io/github/libtmux/Server.java:415" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Prompt.Prompt.history" + "symbol": "io.github.libtmux.Server.Server.expand" } } ], - "io.github.libtmux.kotlin.Server.expand": [ + "io.github.libtmux.kotlin.Server.hasSession": [ { - "command": "display-message", + "command": "list-sessions", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:412" + "libtmux/src/main/java/io/github/libtmux/Server.java:173" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:415" + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Server.Server.expand" + "symbol": "io.github.libtmux.Server.Server.hasSession" } } ], @@ -1410,7 +1450,7 @@ "command": "display-message", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:214" + "libtmux/src/main/java/io/github/libtmux/Server.java:200" ], "scope": null, "via": { @@ -1428,12 +1468,12 @@ "command": "display-message", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:311" + "libtmux/src/main/java/io/github/libtmux/Server.java:298" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1444,12 +1484,12 @@ "command": "kill-server", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:311" + "libtmux/src/main/java/io/github/libtmux/Server.java:298" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1473,6 +1513,23 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killSession" } + }, + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } } ], "io.github.libtmux.kotlin.Server.lock": [ @@ -1498,7 +1555,7 @@ "command": "new-session", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:154" + "libtmux/src/main/java/io/github/libtmux/Server.java:127" ], "scope": null, "via": { @@ -1537,7 +1594,7 @@ "command": "list-panes", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:995" + "libtmux/src/main/java/io/github/libtmux/Server.java:975" ], "scope": "server", "via": { @@ -1630,7 +1687,7 @@ "command": "list-windows", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Server.java:957" + "libtmux/src/main/java/io/github/libtmux/Server.java:937" ], "scope": "server", "via": { @@ -1671,7 +1728,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:252" + "libtmux/src/main/java/io/github/libtmux/Session.java:250" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1720,7 +1777,7 @@ "command": "new-window", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Session.java:213" + "libtmux/src/main/java/io/github/libtmux/Session.java:186" ], "scope": null, "via": { @@ -1800,7 +1857,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:104" + "libtmux/src/main/java/io/github/libtmux/Session.java:100" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1867,12 +1924,12 @@ "command": "select-layout", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Window.java:371" + "libtmux/src/main/java/io/github/libtmux/Window.java:358" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:376" + "libtmux/src/main/java/io/github/libtmux/Window.java:374" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1908,7 +1965,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:209" + "libtmux/src/main/java/io/github/libtmux/Window.java:206" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1944,7 +2001,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:236" + "libtmux/src/main/java/io/github/libtmux/Window.java:234" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1962,7 +2019,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:257" + "libtmux/src/main/java/io/github/libtmux/Window.java:254" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2034,7 +2091,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:281" + "libtmux/src/main/java/io/github/libtmux/Window.java:278" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2119,7 +2176,7 @@ "command": "split-window", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", - "libtmux/src/main/java/io/github/libtmux/Window.java:189" + "libtmux/src/main/java/io/github/libtmux/Window.java:164" ], "scope": null, "via": { diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json index b8ceb2b9e..d7dd06325 100644 --- a/site/src/data/tmux-usage/powershell.json +++ b/site/src/data/tmux-usage/powershell.json @@ -124,8 +124,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:424", - "src/LibTmux/Session.Lifecycle.cs:279" + "src/LibTmux/Session.Lifecycle.cs:278", + "src/LibTmux/Session.Lifecycle.cs:279", + "src/LibTmux/Session.Lifecycle.cs:424" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -200,7 +201,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Hooks/TmuxHooks.cs:443", + "src/LibTmux/Hooks/TmuxHooks.cs:449", "src/LibTmux/Hooks/TmuxHooks.cs:118" ], "port": "csharp", @@ -272,7 +273,7 @@ "scope": "window", "via": { "evidence": [ - "src/LibTmux/Window.Relations.cs:123" + "src/LibTmux/Window.Relations.cs:121" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -289,8 +290,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Capture.cs:144", - "src/LibTmux/Pane.Capture.cs:18" + "src/LibTmux/Pane.Capture.cs:20", + "src/LibTmux/Pane.Capture.cs:18", + "src/LibTmux/Pane.Capture.cs:144" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -307,7 +309,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Server.Identity.cs:122" + "src/LibTmux/Server.Identity.cs:121" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -364,7 +366,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Move.cs:143", + "src/LibTmux/Window.Move.cs:142", "src/LibTmux/Window.Move.cs:53" ], "port": "csharp", @@ -380,7 +382,7 @@ "scope": "session", "via": { "evidence": [ - "src/LibTmux/Window.Move.cs:105", + "src/LibTmux/Window.Move.cs:103", "src/LibTmux/Window.Move.cs:31" ], "port": "csharp", @@ -396,8 +398,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Links.cs:122", - "src/LibTmux/Window.Move.cs:29" + "src/LibTmux/Window.Move.cs:55", + "src/LibTmux/Window.Move.cs:29", + "src/LibTmux/Window.Links.cs:122" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -455,8 +458,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Links.cs:17", - "src/LibTmux/Window.Links.cs:53" + "src/LibTmux/Window.Links.cs:54", + "src/LibTmux/Window.Links.cs:53", + "src/LibTmux/Window.Links.cs:17" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -473,7 +477,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Topology.cs:292" + "src/LibTmux/Pane.Topology.cs:300" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -490,7 +494,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Session.Lifecycle.cs:101" + "src/LibTmux/Session.Lifecycle.cs:119" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -507,7 +511,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Lifecycle.cs:56" + "src/LibTmux/Window.Lifecycle.cs:64" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -524,8 +528,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Links.cs:187", - "src/LibTmux/Window.Links.cs:69" + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:187" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -555,10 +560,13 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Input.cs:75", - "src/LibTmux/Pane.Input.cs:94" + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100" ], "port": "csharp", + "reviewed": true, "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.SendKeysAsync" } @@ -575,7 +583,7 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:127" + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:143" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -614,8 +622,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Layout.cs:60", - "src/LibTmux/Window.Layout.cs:102" + "src/LibTmux/Window.Layout.cs:109", + "src/LibTmux/Window.Layout.cs:102", + "src/LibTmux/Window.Layout.cs:60" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -634,8 +643,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:170", - "src/LibTmux/Options/TmuxOptions.cs:200" + "src/LibTmux/Options/TmuxOptions.cs:204", + "src/LibTmux/Options/TmuxOptions.cs:200", + "src/LibTmux/Options/TmuxOptions.cs:170" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -652,8 +662,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Topology.cs:426", - "src/LibTmux/Pane.Topology.cs:334" + "src/LibTmux/Pane.Topology.cs:337", + "src/LibTmux/Pane.Topology.cs:334", + "src/LibTmux/Pane.Topology.cs:426" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -670,8 +681,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Window.Layout.cs:34", - "src/LibTmux/Window.Layout.cs:24" + "src/LibTmux/Window.Layout.cs:27", + "src/LibTmux/Window.Layout.cs:24", + "src/LibTmux/Window.Layout.cs:34" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json index 14561ec90..79cd4bf7d 100644 --- a/site/src/data/tmux-usage/py.json +++ b/site/src/data/tmux-usage/py.json @@ -101,7 +101,7 @@ { "command": "list-clients", "evidence": [ - "src/libtmux/client.py:128" + "src/libtmux/client.py:125" ], "scope": null } @@ -110,7 +110,7 @@ { "command": "list-clients", "evidence": [ - "src/libtmux/client.py:119" + "src/libtmux/client.py:116" ], "scope": null } @@ -119,7 +119,7 @@ { "command": "show-environment", "evidence": [ - "src/libtmux/common.py:226" + "src/libtmux/common.py:230" ], "scope": null } @@ -128,7 +128,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:159" + "src/libtmux/common.py:164" ], "scope": null } @@ -137,7 +137,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:94" + "src/libtmux/common.py:106" ], "scope": null } @@ -146,7 +146,7 @@ { "command": "show-environment", "evidence": [ - "src/libtmux/common.py:190" + "src/libtmux/common.py:193" ], "scope": null } @@ -155,16 +155,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:130" - ], - "scope": null - } - ], - "libtmux.common.tmux_cmd.__init__": [ - { - "command": "has-session", - "evidence": [ - "src/libtmux/common.py:362" + "src/libtmux/common.py:135" ], "scope": null } @@ -173,7 +164,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:108" + "src/libtmux/hooks.py:107" ], "scope": null } @@ -182,7 +173,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:187" + "src/libtmux/hooks.py:186" ], "scope": null } @@ -191,8 +182,8 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240", - "src/libtmux/hooks.py:518" + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" ], "reviewed": true, "scope": null @@ -222,7 +213,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240" + "src/libtmux/hooks.py:239" ], "scope": null } @@ -231,7 +222,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:705" + "src/libtmux/options.py:704" ], "scope": null } @@ -265,7 +256,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:793" + "src/libtmux/options.py:792" ], "scope": null } @@ -283,7 +274,7 @@ { "command": "capture-pane", "evidence": [ - "src/libtmux/pane.py:632" + "src/libtmux/pane.py:695" ], "scope": null } @@ -400,7 +391,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/pane.py:227" + "src/libtmux/pane.py:223" ], "scope": "window" } @@ -418,7 +409,7 @@ { "command": "kill-pane", "evidence": [ - "src/libtmux/pane.py:1073" + "src/libtmux/pane.py:1072" ], "scope": null } @@ -463,14 +454,14 @@ { "command": "clear-history", "evidence": [ - "src/libtmux/pane.py:2635" + "src/libtmux/pane.py:2629" ], "scope": null }, { "command": "send-keys", "evidence": [ - "src/libtmux/pane.py:2630" + "src/libtmux/pane.py:2629" ], "scope": null } @@ -497,7 +488,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:108" + "src/libtmux/hooks.py:107" ], "scope": null } @@ -533,7 +524,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:187" + "src/libtmux/hooks.py:186" ], "scope": null } @@ -542,8 +533,8 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240", - "src/libtmux/hooks.py:518" + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" ], "reviewed": true, "scope": null @@ -553,7 +544,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:705" + "src/libtmux/options.py:704" ], "scope": null } @@ -634,7 +625,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240" + "src/libtmux/hooks.py:239" ], "scope": null } @@ -643,16 +634,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:793" - ], - "scope": null - } - ], - "libtmux.pytest_plugin.session": [ - { - "command": "kill-session", - "evidence": [ - "src/libtmux/pytest_plugin.py:291" + "src/libtmux/options.py:792" ], "scope": null } @@ -760,7 +742,7 @@ { "command": "show-environment", "evidence": [ - "src/libtmux/common.py:226" + "src/libtmux/common.py:230" ], "scope": null } @@ -877,21 +859,16 @@ { "command": "kill-session", "evidence": [ - "src/libtmux/server.py:2312" - ], - "scope": null - }, - { - "command": "list-sessions", - "evidence": [ - "src/libtmux/server.py:2341" + "src/libtmux/server.py:2312", + "src/libtmux/server.py:2311" ], + "reviewed": true, "scope": null }, { "command": "new-session", "evidence": [ - "src/libtmux/server.py:2328" + "src/libtmux/server.py:2383" ], "scope": null } @@ -900,7 +877,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/server.py:2463" + "src/libtmux/server.py:2461" ], "scope": "server" } @@ -909,7 +886,7 @@ { "command": "list-sessions", "evidence": [ - "src/libtmux/server.py:331" + "src/libtmux/server.py:340" ], "scope": null } @@ -927,7 +904,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:159" + "src/libtmux/common.py:164" ], "scope": null } @@ -936,7 +913,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:108" + "src/libtmux/hooks.py:107" ], "scope": null } @@ -963,7 +940,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/server.py:2671" + "src/libtmux/server.py:2669" ], "scope": "server" } @@ -972,7 +949,7 @@ { "command": "list-sessions", "evidence": [ - "src/libtmux/server.py:2556" + "src/libtmux/server.py:2554" ], "scope": null } @@ -981,7 +958,7 @@ { "command": "list-windows", "evidence": [ - "src/libtmux/server.py:2611" + "src/libtmux/server.py:2609" ], "scope": "server" } @@ -1017,7 +994,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:94" + "src/libtmux/common.py:106" ], "scope": null } @@ -1026,7 +1003,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:187" + "src/libtmux/hooks.py:186" ], "scope": null } @@ -1035,8 +1012,8 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240", - "src/libtmux/hooks.py:518" + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" ], "reviewed": true, "scope": null @@ -1046,7 +1023,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:705" + "src/libtmux/options.py:704" ], "scope": null } @@ -1064,7 +1041,7 @@ { "command": "show-environment", "evidence": [ - "src/libtmux/common.py:190" + "src/libtmux/common.py:193" ], "scope": null } @@ -1181,7 +1158,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:130" + "src/libtmux/common.py:135" ], "scope": null } @@ -1190,7 +1167,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240" + "src/libtmux/hooks.py:239" ], "scope": null } @@ -1199,7 +1176,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:793" + "src/libtmux/options.py:792" ], "scope": null } @@ -1217,7 +1194,7 @@ { "command": "list-windows", "evidence": [ - "src/libtmux/server.py:2444" + "src/libtmux/server.py:2442" ], "scope": "server" } @@ -1226,7 +1203,7 @@ { "command": "attach-session", "evidence": [ - "src/libtmux/session.py:665" + "src/libtmux/session.py:664" ], "scope": null } @@ -1244,7 +1221,7 @@ { "command": "list-sessions", "evidence": [ - "src/libtmux/session.py:206" + "src/libtmux/session.py:203" ], "scope": null } @@ -1253,7 +1230,7 @@ { "command": "show-environment", "evidence": [ - "src/libtmux/common.py:226" + "src/libtmux/common.py:230" ], "scope": null } @@ -1262,7 +1239,7 @@ { "command": "kill-session", "evidence": [ - "src/libtmux/session.py:744" + "src/libtmux/session.py:743" ], "scope": null } @@ -1316,7 +1293,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/session.py:302" + "src/libtmux/session.py:301" ], "scope": "session" } @@ -1334,7 +1311,7 @@ { "command": "list-sessions", "evidence": [ - "src/libtmux/session.py:173" + "src/libtmux/session.py:170" ], "scope": null } @@ -1343,7 +1320,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:159" + "src/libtmux/common.py:164" ], "scope": null } @@ -1361,7 +1338,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:108" + "src/libtmux/hooks.py:107" ], "scope": null } @@ -1370,7 +1347,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/session.py:412" + "src/libtmux/session.py:411" ], "scope": "session" } @@ -1379,7 +1356,7 @@ { "command": "list-windows", "evidence": [ - "src/libtmux/session.py:356" + "src/libtmux/session.py:355" ], "scope": "session" } @@ -1397,7 +1374,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:94" + "src/libtmux/common.py:106" ], "scope": null } @@ -1406,7 +1383,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:187" + "src/libtmux/hooks.py:186" ], "scope": null } @@ -1415,8 +1392,8 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240", - "src/libtmux/hooks.py:518" + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" ], "reviewed": true, "scope": null @@ -1426,7 +1403,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:705" + "src/libtmux/options.py:704" ], "scope": null } @@ -1435,7 +1412,7 @@ { "command": "show-environment", "evidence": [ - "src/libtmux/common.py:190" + "src/libtmux/common.py:193" ], "scope": null } @@ -1498,7 +1475,7 @@ { "command": "set-environment", "evidence": [ - "src/libtmux/common.py:130" + "src/libtmux/common.py:135" ], "scope": null } @@ -1507,7 +1484,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240" + "src/libtmux/hooks.py:239" ], "scope": null } @@ -1516,7 +1493,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:793" + "src/libtmux/options.py:792" ], "scope": null } @@ -1525,7 +1502,7 @@ { "command": "list-windows", "evidence": [ - "src/libtmux/session.py:282" + "src/libtmux/session.py:281" ], "scope": "session" } @@ -1543,7 +1520,7 @@ { "command": "list-windows", "evidence": [ - "src/libtmux/window.py:245" + "src/libtmux/window.py:241" ], "scope": "session" } @@ -1552,7 +1529,7 @@ { "command": "kill-window", "evidence": [ - "src/libtmux/window.py:1454" + "src/libtmux/window.py:1453" ], "scope": null } @@ -1579,14 +1556,14 @@ { "command": "list-sessions", "evidence": [ - "src/libtmux/window.py:373" + "src/libtmux/window.py:371" ], "scope": null }, { "command": "list-windows", "evidence": [ - "src/libtmux/window.py:363" + "src/libtmux/window.py:361" ], "scope": "server" } @@ -1595,7 +1572,7 @@ { "command": "move-window", "evidence": [ - "src/libtmux/window.py:1543" + "src/libtmux/window.py:1542" ], "scope": null } @@ -1635,7 +1612,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/window.py:401" + "src/libtmux/window.py:400" ], "scope": "window" } @@ -1653,7 +1630,7 @@ { "command": "list-windows", "evidence": [ - "src/libtmux/window.py:204" + "src/libtmux/window.py:201" ], "scope": "session" } @@ -1698,7 +1675,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:108" + "src/libtmux/hooks.py:107" ], "scope": null } @@ -1707,7 +1684,7 @@ { "command": "list-panes", "evidence": [ - "src/libtmux/window.py:456" + "src/libtmux/window.py:455" ], "scope": "window" } @@ -1725,7 +1702,7 @@ { "command": "select-layout", "evidence": [ - "src/libtmux/window.py:925" + "src/libtmux/window.py:939" ], "scope": null } @@ -1743,7 +1720,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:187" + "src/libtmux/hooks.py:186" ], "scope": null } @@ -1752,8 +1729,8 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240", - "src/libtmux/hooks.py:518" + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" ], "reviewed": true, "scope": null @@ -1763,7 +1740,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:705" + "src/libtmux/options.py:704" ], "scope": null } @@ -1884,7 +1861,7 @@ { "command": "set-hook", "evidence": [ - "src/libtmux/hooks.py:240" + "src/libtmux/hooks.py:239" ], "scope": null } @@ -1893,7 +1870,7 @@ { "command": "set-option", "evidence": [ - "src/libtmux/options.py:793" + "src/libtmux/options.py:792" ], "scope": null } diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json index a3df40614..0e06c6334 100644 --- a/site/src/data/tmux-usage/rs.json +++ b/site/src/data/tmux-usage/rs.json @@ -101,7 +101,7 @@ { "command": "detach-client", "evidence": [ - "crates/libtmux/src/client.rs:378" + "crates/libtmux/src/client.rs:376" ], "scope": null } @@ -110,7 +110,7 @@ { "command": "lock-client", "evidence": [ - "crates/libtmux/src/client.rs:433" + "crates/libtmux/src/client.rs:431" ], "scope": null } @@ -119,7 +119,7 @@ { "command": "refresh-client", "evidence": [ - "crates/libtmux/src/client.rs:453" + "crates/libtmux/src/client.rs:451" ], "scope": null } @@ -128,7 +128,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/client.rs:203", + "crates/libtmux/src/client.rs:202", "crates/libtmux/src/client.rs:171" ], "scope": null @@ -138,7 +138,7 @@ { "command": "suspend-client", "evidence": [ - "crates/libtmux/src/client.rs:405" + "crates/libtmux/src/client.rs:403" ], "scope": null } @@ -147,7 +147,7 @@ { "command": "switch-client", "evidence": [ - "crates/libtmux/src/client.rs:472" + "crates/libtmux/src/client.rs:470" ], "scope": null } @@ -165,7 +165,7 @@ { "command": "refresh-client", "evidence": [ - "crates/libtmux/src/control.rs:1135", + "crates/libtmux/src/control.rs:1134", "crates/libtmux/src/control.rs:866" ], "scope": null @@ -175,7 +175,7 @@ { "command": "refresh-client", "evidence": [ - "crates/libtmux/src/control.rs:1038" + "crates/libtmux/src/control.rs:1037" ], "scope": null } @@ -184,7 +184,7 @@ { "command": "refresh-client", "evidence": [ - "crates/libtmux/src/control.rs:928", + "crates/libtmux/src/control.rs:927", "crates/libtmux/src/control.rs:916" ], "scope": null @@ -194,7 +194,7 @@ { "command": "refresh-client", "evidence": [ - "crates/libtmux/src/control.rs:997" + "crates/libtmux/src/control.rs:996" ], "scope": null } @@ -203,7 +203,7 @@ { "command": "refresh-client", "evidence": [ - "crates/libtmux/src/control.rs:928", + "crates/libtmux/src/control.rs:927", "crates/libtmux/src/control.rs:899" ], "scope": null @@ -222,7 +222,7 @@ { "command": "list-panes", "evidence": [ - "crates/libtmux/src/control.rs:1077" + "crates/libtmux/src/control.rs:1076" ], "scope": "session" } @@ -231,7 +231,7 @@ { "command": "capture-pane", "evidence": [ - "crates/libtmux/src/control.rs:1468" + "crates/libtmux/src/control.rs:1473" ], "scope": null } @@ -251,7 +251,7 @@ { "command": "break-pane", "evidence": [ - "crates/libtmux/src/pane.rs:1081" + "crates/libtmux/src/pane.rs:1079" ], "scope": null } @@ -274,8 +274,13 @@ { "command": "capture-pane", "evidence": [ - "crates/libtmux/src/pane/observe.rs:233" + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:1613", + "crates/libtmux/src/pane/observe.rs:169", + "crates/libtmux/src/pane/observe.rs:171", + "crates/libtmux/src/pane/observe.rs:237" ], + "reviewed": true, "scope": null } ], @@ -296,7 +301,7 @@ { "command": "clear-history", "evidence": [ - "crates/libtmux/src/pane.rs:924" + "crates/libtmux/src/pane.rs:922" ], "scope": null } @@ -305,7 +310,7 @@ { "command": "clock-mode", "evidence": [ - "crates/libtmux/src/pane.rs:1206" + "crates/libtmux/src/pane.rs:1204" ], "scope": null } @@ -314,7 +319,7 @@ { "command": "copy-mode", "evidence": [ - "crates/libtmux/src/pane.rs:1164" + "crates/libtmux/src/pane.rs:1162" ], "scope": null } @@ -323,7 +328,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/pane.rs:877" + "crates/libtmux/src/pane.rs:876" ], "scope": null } @@ -332,7 +337,7 @@ { "command": "copy-mode", "evidence": [ - "crates/libtmux/src/pane.rs:1189" + "crates/libtmux/src/pane.rs:1187" ], "scope": null } @@ -341,7 +346,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/pane.rs:841" + "crates/libtmux/src/pane.rs:840" ], "scope": null } @@ -350,7 +355,7 @@ { "command": "join-pane", "evidence": [ - "crates/libtmux/src/pane.rs:1142" + "crates/libtmux/src/pane.rs:1149" ], "scope": null } @@ -359,7 +364,17 @@ { "command": "kill-pane", "evidence": [ - "crates/libtmux/src/pane.rs:756" + "crates/libtmux/src/pane.rs:754" + ], + "scope": null + } + ], + "pane.Pane.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/pane/settings.rs:29" ], "scope": null } @@ -368,7 +383,7 @@ { "command": "paste-buffer", "evidence": [ - "crates/libtmux/src/pane.rs:940" + "crates/libtmux/src/pane.rs:947" ], "scope": null } @@ -377,7 +392,7 @@ { "command": "pipe-pane", "evidence": [ - "crates/libtmux/src/pane.rs:965" + "crates/libtmux/src/pane.rs:972" ], "scope": null } @@ -386,7 +401,7 @@ { "command": "resize-pane", "evidence": [ - "crates/libtmux/src/pane.rs:728" + "crates/libtmux/src/pane.rs:726" ], "scope": null } @@ -395,7 +410,7 @@ { "command": "resize-pane", "evidence": [ - "crates/libtmux/src/pane.rs:563" + "crates/libtmux/src/pane.rs:561" ], "scope": null } @@ -404,7 +419,7 @@ { "command": "respawn-pane", "evidence": [ - "crates/libtmux/src/pane.rs:988" + "crates/libtmux/src/pane.rs:998" ], "scope": null } @@ -413,7 +428,7 @@ { "command": "select-pane", "evidence": [ - "crates/libtmux/src/pane.rs:707" + "crates/libtmux/src/pane.rs:705" ], "scope": null } @@ -422,7 +437,7 @@ { "command": "send-keys", "evidence": [ - "crates/libtmux/src/pane.rs:688" + "crates/libtmux/src/pane.rs:696" ], "scope": null } @@ -431,7 +446,7 @@ { "command": "send-keys", "evidence": [ - "crates/libtmux/src/pane.rs:645" + "crates/libtmux/src/pane.rs:643" ], "scope": null } @@ -440,7 +455,7 @@ { "command": "send-keys", "evidence": [ - "crates/libtmux/src/pane.rs:672" + "crates/libtmux/src/pane.rs:670" ], "scope": null } @@ -449,7 +464,7 @@ { "command": "send-prefix", "evidence": [ - "crates/libtmux/src/pane.rs:1222" + "crates/libtmux/src/pane.rs:1220" ], "scope": null } @@ -480,7 +495,7 @@ { "command": "select-pane", "evidence": [ - "crates/libtmux/src/pane.rs:901" + "crates/libtmux/src/pane.rs:899" ], "scope": null } @@ -498,20 +513,14 @@ } ], "pane.Pane.split": [ - { - "command": "capture-pane", - "evidence": [ - "crates/libtmux/src/pane.rs:1618", - "crates/libtmux/src/pane.rs:515" - ], - "scope": null - }, { "command": "split-window", "evidence": [ + "crates/libtmux/src/window.rs:1948", "crates/libtmux/src/internal/listing.rs:444", "crates/libtmux/src/pane.rs:515" ], + "reviewed": true, "scope": null } ], @@ -519,7 +528,7 @@ { "command": "swap-pane", "evidence": [ - "crates/libtmux/src/pane.rs:1016" + "crates/libtmux/src/pane.rs:1014" ], "scope": null } @@ -528,7 +537,7 @@ { "command": "resize-pane", "evidence": [ - "crates/libtmux/src/pane.rs:616" + "crates/libtmux/src/pane.rs:614" ], "scope": null } @@ -559,7 +568,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/pane/observe.rs:476", + "crates/libtmux/src/pane/observe.rs:488", "crates/libtmux/src/pane/observe.rs:367" ], "scope": null @@ -569,7 +578,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/pane/observe.rs:476", + "crates/libtmux/src/pane/observe.rs:488", "crates/libtmux/src/pane/observe.rs:315" ], "scope": null @@ -579,22 +588,12 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/pane/observe.rs:476", + "crates/libtmux/src/pane/observe.rs:488", "crates/libtmux/src/pane/observe.rs:446" ], "scope": null } ], - "plan.Plan.run_over_control_mode": [ - { - "command": "display-message", - "evidence": [ - "crates/libtmux/src/plan/run.rs:787", - "crates/libtmux/src/plan/run.rs:846" - ], - "scope": null - } - ], "server.Server.access_rules": [ { "command": "server-access", @@ -619,7 +618,7 @@ { "command": "bind-key", "evidence": [ - "crates/libtmux/src/server.rs:1127" + "crates/libtmux/src/server.rs:1125" ], "scope": null } @@ -628,7 +627,7 @@ { "command": "show-buffer", "evidence": [ - "crates/libtmux/src/server.rs:1040" + "crates/libtmux/src/server.rs:1039" ], "scope": null } @@ -637,7 +636,7 @@ { "command": "list-buffers", "evidence": [ - "crates/libtmux/src/server.rs:1070" + "crates/libtmux/src/server.rs:1069" ], "scope": null } @@ -655,7 +654,7 @@ { "command": "clear-prompt-history", "evidence": [ - "crates/libtmux/src/server.rs:1364" + "crates/libtmux/src/server.rs:1362" ], "scope": null } @@ -664,7 +663,7 @@ { "command": "command-prompt", "evidence": [ - "crates/libtmux/src/server/interactive.rs:105" + "crates/libtmux/src/server/interactive.rs:117" ], "scope": null } @@ -673,7 +672,7 @@ { "command": "delete-buffer", "evidence": [ - "crates/libtmux/src/server.rs:1106" + "crates/libtmux/src/server.rs:1104" ], "scope": null } @@ -682,7 +681,7 @@ { "command": "display-menu", "evidence": [ - "crates/libtmux/src/server/interactive.rs:61" + "crates/libtmux/src/server/interactive.rs:75" ], "scope": null } @@ -691,7 +690,7 @@ { "command": "display-panes", "evidence": [ - "crates/libtmux/src/server/interactive.rs:188" + "crates/libtmux/src/server/interactive.rs:197" ], "scope": null } @@ -700,7 +699,7 @@ { "command": "display-popup", "evidence": [ - "crates/libtmux/src/server/interactive.rs:30" + "crates/libtmux/src/server/interactive.rs:39" ], "scope": null } @@ -709,7 +708,7 @@ { "command": "find-window", "evidence": [ - "crates/libtmux/src/server/interactive.rs:164" + "crates/libtmux/src/server/interactive.rs:173" ], "scope": null } @@ -718,7 +717,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/server.rs:1225" + "crates/libtmux/src/server.rs:1233" ], "scope": null } @@ -727,7 +726,7 @@ { "command": "server-access", "evidence": [ - "crates/libtmux/src/server.rs:1430" + "crates/libtmux/src/server.rs:1428" ], "scope": null } @@ -736,7 +735,7 @@ { "command": "set-environment", "evidence": [ - "crates/libtmux/src/internal/environment.rs:62", + "crates/libtmux/src/internal/environment.rs:60", "crates/libtmux/src/server/settings.rs:306" ], "scope": null @@ -746,7 +745,7 @@ { "command": "list-keys", "evidence": [ - "crates/libtmux/src/server.rs:1171" + "crates/libtmux/src/server.rs:1176" ], "scope": null } @@ -764,7 +763,7 @@ { "command": "load-buffer", "evidence": [ - "crates/libtmux/src/server.rs:982" + "crates/libtmux/src/server.rs:987" ], "scope": null } @@ -783,8 +782,20 @@ "command": "new-session", "evidence": [ "crates/libtmux/src/server.rs:2286", + "crates/libtmux/src/internal/listing.rs:411", "crates/libtmux/src/server.rs:898" ], + "reviewed": true, + "scope": null + } + ], + "server.Server.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/server/settings.rs:48" + ], "scope": null } ], @@ -805,7 +816,7 @@ { "command": "show-prompt-history", "evidence": [ - "crates/libtmux/src/server.rs:1327" + "crates/libtmux/src/server.rs:1326" ], "scope": null } @@ -814,7 +825,7 @@ { "command": "server-access", "evidence": [ - "crates/libtmux/src/server.rs:1455" + "crates/libtmux/src/server.rs:1453" ], "scope": null } @@ -823,7 +834,7 @@ { "command": "run-shell", "evidence": [ - "crates/libtmux/src/server.rs:1546" + "crates/libtmux/src/server.rs:1545" ], "scope": null } @@ -832,7 +843,7 @@ { "command": "save-buffer", "evidence": [ - "crates/libtmux/src/server.rs:1013" + "crates/libtmux/src/server.rs:1018" ], "scope": null } @@ -852,7 +863,7 @@ { "command": "set-buffer", "evidence": [ - "crates/libtmux/src/server.rs:954" + "crates/libtmux/src/server.rs:960" ], "scope": null } @@ -963,7 +974,7 @@ { "command": "source-file", "evidence": [ - "crates/libtmux/src/server.rs:1473" + "crates/libtmux/src/server.rs:1471" ], "scope": null } @@ -972,7 +983,7 @@ { "command": "run-shell", "evidence": [ - "crates/libtmux/src/server.rs:1578" + "crates/libtmux/src/server.rs:1576" ], "scope": null } @@ -999,7 +1010,17 @@ { "command": "unbind-key", "evidence": [ - "crates/libtmux/src/server.rs:1146" + "crates/libtmux/src/server.rs:1144" + ], + "scope": null + } + ], + "server.Server.unlock_channel": [ + { + "command": "wait-for", + "evidence": [ + "crates/libtmux/src/internal/wait_for.rs:341", + "crates/libtmux/src/server/channels.rs:131" ], "scope": null } @@ -1085,7 +1106,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/session.rs:655" + "crates/libtmux/src/session.rs:654" ], "scope": null } @@ -1094,7 +1115,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/session.rs:619" + "crates/libtmux/src/session.rs:618" ], "scope": null } @@ -1103,7 +1124,7 @@ { "command": "set-environment", "evidence": [ - "crates/libtmux/src/internal/environment.rs:62", + "crates/libtmux/src/internal/environment.rs:60", "crates/libtmux/src/session/settings.rs:524" ], "scope": null @@ -1113,7 +1134,7 @@ { "command": "kill-session", "evidence": [ - "crates/libtmux/src/session.rs:539" + "crates/libtmux/src/session.rs:537" ], "scope": null } @@ -1131,7 +1152,7 @@ { "command": "lock-session", "evidence": [ - "crates/libtmux/src/session.rs:701" + "crates/libtmux/src/session.rs:699" ], "scope": null } @@ -1140,9 +1161,11 @@ { "command": "new-window", "evidence": [ + "crates/libtmux/src/session.rs:1139", "crates/libtmux/src/internal/listing.rs:427", "crates/libtmux/src/session.rs:495" ], + "reviewed": true, "scope": null } ], @@ -1155,6 +1178,16 @@ "scope": null } ], + "session.Session.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/session/settings.rs:30" + ], + "scope": null + } + ], "session.Session.panes": [ { "command": "list-panes", @@ -1181,7 +1214,7 @@ { "command": "rename-session", "evidence": [ - "crates/libtmux/src/session.rs:513" + "crates/libtmux/src/session.rs:511" ], "scope": null } @@ -1317,7 +1350,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/window.rs:834" + "crates/libtmux/src/window.rs:833" ], "scope": null } @@ -1326,7 +1359,7 @@ { "command": "select-pane", "evidence": [ - "crates/libtmux/src/window/navigation.rs:129" + "crates/libtmux/src/window/navigation.rs:127" ], "scope": null } @@ -1335,7 +1368,7 @@ { "command": "display-message", "evidence": [ - "crates/libtmux/src/window.rs:798" + "crates/libtmux/src/window.rs:797" ], "scope": null } @@ -1344,7 +1377,7 @@ { "command": "kill-window", "evidence": [ - "crates/libtmux/src/window.rs:688" + "crates/libtmux/src/window.rs:686" ], "scope": null } @@ -1362,7 +1395,7 @@ { "command": "link-window", "evidence": [ - "crates/libtmux/src/window.rs:1060" + "crates/libtmux/src/window.rs:1058" ], "scope": null } @@ -1371,7 +1404,7 @@ { "command": "move-window", "evidence": [ - "crates/libtmux/src/window.rs:941" + "crates/libtmux/src/window.rs:939" ], "scope": null } @@ -1380,12 +1413,22 @@ { "command": "select-layout", "evidence": [ - "crates/libtmux/src/window.rs:613", + "crates/libtmux/src/window.rs:611", "crates/libtmux/src/window.rs:597" ], "scope": null } ], + "window.Window.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/window/settings.rs:29" + ], + "scope": null + } + ], "window.Window.panes": [ { "command": "list-panes", @@ -1403,7 +1446,7 @@ { "command": "select-layout", "evidence": [ - "crates/libtmux/src/window.rs:613", + "crates/libtmux/src/window.rs:611", "crates/libtmux/src/window.rs:606" ], "scope": null @@ -1413,7 +1456,7 @@ { "command": "rename-window", "evidence": [ - "crates/libtmux/src/window.rs:387" + "crates/libtmux/src/window.rs:385" ], "scope": null } @@ -1422,7 +1465,7 @@ { "command": "resize-window", "evidence": [ - "crates/libtmux/src/window.rs:1102" + "crates/libtmux/src/window.rs:1100" ], "scope": null } @@ -1431,7 +1474,7 @@ { "command": "resize-window", "evidence": [ - "crates/libtmux/src/window.rs:999" + "crates/libtmux/src/window.rs:997" ], "scope": null } @@ -1440,7 +1483,7 @@ { "command": "respawn-window", "evidence": [ - "crates/libtmux/src/window.rs:570" + "crates/libtmux/src/window.rs:580" ], "scope": null } @@ -1449,7 +1492,7 @@ { "command": "rotate-window", "evidence": [ - "crates/libtmux/src/window.rs:668" + "crates/libtmux/src/window.rs:666" ], "scope": null } @@ -1472,7 +1515,7 @@ { "command": "select-window", "evidence": [ - "crates/libtmux/src/window.rs:419" + "crates/libtmux/src/window.rs:417" ], "scope": null } @@ -1481,7 +1524,7 @@ { "command": "select-layout", "evidence": [ - "crates/libtmux/src/window.rs:491" + "crates/libtmux/src/window.rs:489" ], "scope": null } @@ -1535,9 +1578,11 @@ { "command": "split-window", "evidence": [ + "crates/libtmux/src/window.rs:1948", "crates/libtmux/src/internal/listing.rs:444", "crates/libtmux/src/window.rs:367" ], + "reviewed": true, "scope": null } ], @@ -1545,7 +1590,7 @@ { "command": "swap-window", "evidence": [ - "crates/libtmux/src/window.rs:895" + "crates/libtmux/src/window.rs:893" ], "scope": null } @@ -1554,7 +1599,7 @@ { "command": "unlink-window", "evidence": [ - "crates/libtmux/src/window.rs:709" + "crates/libtmux/src/window.rs:707" ], "scope": null } diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json index 25288e7e3..249a89b97 100644 --- a/site/src/data/tmux-usage/ruby.json +++ b/site/src/data/tmux-usage/ruby.json @@ -130,7 +130,7 @@ { "command": "display-message", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:21" + "gems/libtmux/lib/libtmux/operations.rb:31" ], "scope": null } @@ -220,7 +220,7 @@ { "command": "new-session", "evidence": [ - "gems/libtmux/lib/libtmux/server.rb:142" + "gems/libtmux/lib/libtmux/server.rb:151" ], "scope": null } @@ -306,11 +306,21 @@ ], "LibTmux::Async::Server#switch_client": [ { - "command": "switch-client", + "command": "list-commands", "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", "gems/libtmux/lib/libtmux/terminal.rb:41" ], "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:41", + "gems/libtmux/lib/libtmux/terminal.rb:42" + ], + "reviewed": true, + "scope": null } ], "LibTmux::Async::Server#unset_environment": [ @@ -376,15 +386,10 @@ { "command": "show-hooks", "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:61" - ], - "scope": null - }, - { - "command": "show-options", - "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:61" + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65" ], + "reviewed": true, "scope": null } ], @@ -410,15 +415,10 @@ { "command": "set-hook", "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:107" - ], - "scope": null - }, - { - "command": "set-option", - "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:107" + "gems/libtmux/lib/libtmux/options.rb:107", + "gems/libtmux/lib/libtmux/options.rb:108" ], + "reviewed": true, "scope": null } ], @@ -435,18 +435,13 @@ } ], "LibTmux::Options#list": [ - { - "command": "show-hooks", - "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:61" - ], - "scope": null - }, { "command": "show-options", "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:61" + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65" ], + "reviewed": true, "scope": null } ], @@ -460,18 +455,13 @@ } ], "LibTmux::Options#unset": [ - { - "command": "set-hook", - "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:107" - ], - "scope": null - }, { "command": "set-option", "evidence": [ - "gems/libtmux/lib/libtmux/options.rb:107" + "gems/libtmux/lib/libtmux/options.rb:107", + "gems/libtmux/lib/libtmux/options.rb:108" ], + "reviewed": true, "scope": null } ], @@ -488,7 +478,7 @@ { "command": "capture-pane", "evidence": [ - "gems/libtmux/lib/libtmux/entity.rb:175" + "gems/libtmux/lib/libtmux/entity.rb:190" ], "scope": null } @@ -506,7 +496,7 @@ { "command": "copy-mode", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:385" + "gems/libtmux/lib/libtmux/operations.rb:396" ], "scope": null } @@ -545,7 +535,7 @@ { "command": "paste-buffer", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:362" + "gems/libtmux/lib/libtmux/operations.rb:366" ], "scope": null } @@ -554,7 +544,7 @@ { "command": "pipe-pane", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:375" + "gems/libtmux/lib/libtmux/operations.rb:380" ], "scope": null } @@ -563,7 +553,7 @@ { "command": "resize-pane", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:319" + "gems/libtmux/lib/libtmux/operations.rb:333" ], "scope": null } @@ -572,7 +562,7 @@ { "command": "respawn-pane", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:356" + "gems/libtmux/lib/libtmux/operations.rb:358" ], "scope": null } @@ -628,8 +618,11 @@ { "command": "attach-session", "evidence": [ - "gems/libtmux/lib/libtmux/terminal.rb:60" + "gems/libtmux/lib/libtmux/terminal.rb:60", + "gems/libtmux/lib/libtmux/terminal.rb:62", + "gems/libtmux/lib/libtmux/terminal.rb:88" ], + "reviewed": true, "scope": null } ], @@ -646,7 +639,7 @@ { "command": "display-message", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:21" + "gems/libtmux/lib/libtmux/operations.rb:31" ], "scope": null } @@ -736,7 +729,7 @@ { "command": "new-session", "evidence": [ - "gems/libtmux/lib/libtmux/server.rb:142" + "gems/libtmux/lib/libtmux/server.rb:151" ], "scope": null } @@ -822,11 +815,21 @@ ], "LibTmux::Server#switch_client": [ { - "command": "switch-client", + "command": "list-commands", "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", "gems/libtmux/lib/libtmux/terminal.rb:41" ], "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:41", + "gems/libtmux/lib/libtmux/terminal.rb:42" + ], + "reviewed": true, + "scope": null } ], "LibTmux::Server#unset_environment": [ @@ -856,6 +859,16 @@ "scope": null } ], + "LibTmux::Session#environment": [ + { + "command": "show-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:228", + "gems/libtmux/lib/libtmux/operations.rb:280" + ], + "scope": null + } + ], "LibTmux::Session#kill": [ { "command": "kill-session", @@ -995,7 +1008,7 @@ { "command": "respawn-window", "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:295" + "gems/libtmux/lib/libtmux/operations.rb:297" ], "scope": null } diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index ff140362d..baa1c27d8 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -279,7 +279,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Client.java:69" + "libtmux/src/main/java/io/github/libtmux/Client.java:67" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -316,14 +316,38 @@ "via": { "evidence": [ "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" ], "port": "java", + "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced" } } ], + "io.github.libtmux.scaladsl.cats.Environment.all": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:104" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.all" + } + } + ], "io.github.libtmux.scaladsl.cats.Environment.get": [ { "command": "show-environment", @@ -381,8 +405,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:179" + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -390,6 +415,28 @@ } } ], + "io.github.libtmux.scaladsl.cats.Environment.removed": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:137" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:140" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.removed" + } + } + ], "io.github.libtmux.scaladsl.cats.Environment.set": [ { "command": "set-environment", @@ -401,8 +448,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:156" + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -421,8 +469,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:162" + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -441,8 +490,9 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Environment.java:353", - "libtmux/src/main/java/io/github/libtmux/Environment.java:168" + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -475,7 +525,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Hooks.java:95" + "libtmux/src/main/java/io/github/libtmux/Hooks.java:82" ], "scope": null, "via": { @@ -556,7 +606,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:57" + "libtmux/src/main/java/io/github/libtmux/Keys.java:62" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -575,7 +625,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:88" + "libtmux/src/main/java/io/github/libtmux/Keys.java:90" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -594,7 +644,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Keys.java:69" + "libtmux/src/main/java/io/github/libtmux/Keys.java:73" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -632,10 +682,13 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", "libtmux/src/main/java/io/github/libtmux/Options.java:140" ], "port": "java", + "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.all" } @@ -689,10 +742,13 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:178", + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", "libtmux/src/main/java/io/github/libtmux/Options.java:319" ], "port": "java", + "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Options.Options.effective" } @@ -726,7 +782,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Options.java:93" + "libtmux/src/main/java/io/github/libtmux/Options.java:92" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -820,25 +876,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:831", - "libtmux/src/main/java/io/github/libtmux/Pane.java:708" - ], - "port": "java", - "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Pane.Pane.breakOut" - } - }, - { - "command": "rename-window", - "evidence": [ - "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", - "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:703" - ], - "scope": null, - "via": { - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", @@ -853,7 +891,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:531" + "libtmux/src/main/java/io/github/libtmux/Pane.java:333" ], "scope": null, "via": { @@ -937,7 +975,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -956,7 +994,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -994,7 +1032,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1011,7 +1049,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1030,7 +1068,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1068,7 +1106,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1087,7 +1125,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1204,12 +1242,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" ], "scope": "window", "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "port": "java", @@ -1222,13 +1260,14 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1266,12 +1305,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" ], "scope": "window", "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "port": "java", @@ -1284,13 +1323,14 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1304,7 +1344,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:891" + "libtmux/src/main/java/io/github/libtmux/Pane.java:855" ], "scope": null, "via": { @@ -1351,7 +1391,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1376,61 +1416,63 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Prompt.Prompt.clear" } - }, + } + ], + "io.github.libtmux.scaladsl.cats.Prompt.history": [ { "command": "show-prompt-history", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Prompt.java:49", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:44" + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Prompt.Prompt.clear" + "symbol": "io.github.libtmux.Prompt.Prompt.history" } } ], - "io.github.libtmux.scaladsl.cats.Prompt.history": [ + "io.github.libtmux.scaladsl.cats.Server.expand": [ { - "command": "show-prompt-history", + "command": "display-message", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" + "libtmux/src/main/java/io/github/libtmux/Server.java:412" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + "libtmux/src/main/java/io/github/libtmux/Server.java:415" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Prompt.Prompt.history" + "symbol": "io.github.libtmux.Server.Server.expand" } } ], - "io.github.libtmux.scaladsl.cats.Server.expand": [ + "io.github.libtmux.scaladsl.cats.Server.hasSession": [ { - "command": "display-message", + "command": "list-sessions", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:412" + "libtmux/src/main/java/io/github/libtmux/Server.java:173" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:415" + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Server.Server.expand" + "symbol": "io.github.libtmux.Server.Server.hasSession" } } ], @@ -1440,7 +1482,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:214" + "libtmux/src/main/java/io/github/libtmux/Server.java:200" ], "scope": null, "via": { @@ -1459,12 +1501,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:311" + "libtmux/src/main/java/io/github/libtmux/Server.java:298" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1476,12 +1518,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:311" + "libtmux/src/main/java/io/github/libtmux/Server.java:298" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1506,6 +1548,24 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killSession" } + }, + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } } ], "io.github.libtmux.scaladsl.cats.Server.lock": [ @@ -1533,7 +1593,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:154" + "libtmux/src/main/java/io/github/libtmux/Server.java:127" ], "scope": null, "via": { @@ -1574,7 +1634,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:995" + "libtmux/src/main/java/io/github/libtmux/Server.java:975" ], "scope": "server", "via": { @@ -1672,7 +1732,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:957" + "libtmux/src/main/java/io/github/libtmux/Server.java:937" ], "scope": "server", "via": { @@ -1715,7 +1775,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:252" + "libtmux/src/main/java/io/github/libtmux/Session.java:250" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1767,7 +1827,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Session.java:213" + "libtmux/src/main/java/io/github/libtmux/Session.java:186" ], "scope": null, "via": { @@ -1851,7 +1911,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:104" + "libtmux/src/main/java/io/github/libtmux/Session.java:100" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1922,12 +1982,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Window.java:371" + "libtmux/src/main/java/io/github/libtmux/Window.java:358" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:376" + "libtmux/src/main/java/io/github/libtmux/Window.java:374" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -1965,7 +2025,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:209" + "libtmux/src/main/java/io/github/libtmux/Window.java:206" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2003,7 +2063,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:236" + "libtmux/src/main/java/io/github/libtmux/Window.java:234" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2022,7 +2082,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:257" + "libtmux/src/main/java/io/github/libtmux/Window.java:254" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2098,7 +2158,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:281" + "libtmux/src/main/java/io/github/libtmux/Window.java:278" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2188,7 +2248,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Window.java:189" + "libtmux/src/main/java/io/github/libtmux/Window.java:164" ], "scope": null, "via": { @@ -2292,7 +2352,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Client.java:69" + "libtmux/src/main/java/io/github/libtmux/Client.java:67" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2311,25 +2371,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:831", - "libtmux/src/main/java/io/github/libtmux/Pane.java:708" - ], - "port": "java", - "revision": "a0ecbc16da00140e2520462d478a2af470878272", - "symbol": "io.github.libtmux.Pane.Pane.breakOut" - } - }, - { - "command": "rename-window", - "evidence": [ - "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", - "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:703" - ], - "scope": null, - "via": { - "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", "libtmux/src/main/java/io/github/libtmux/Pane.java:708" ], "port": "java", @@ -2344,7 +2386,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:531" + "libtmux/src/main/java/io/github/libtmux/Pane.java:333" ], "scope": null, "via": { @@ -2428,7 +2470,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:737" + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2447,7 +2489,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1072" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2485,7 +2527,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:975" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2502,7 +2544,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:979" + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2521,7 +2563,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:930" + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2559,7 +2601,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:215" + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2578,7 +2620,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:285" + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2695,12 +2737,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" ], "scope": "window", "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], "port": "java", @@ -2713,13 +2755,14 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:571" + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:576" + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2757,12 +2800,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" ], "scope": "window", "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:668", + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], "port": "java", @@ -2775,13 +2818,14 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:612" + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:639", - "libtmux/src/main/java/io/github/libtmux/Pane.java:617" + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2795,7 +2839,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Pane.java:891" + "libtmux/src/main/java/io/github/libtmux/Pane.java:855" ], "scope": null, "via": { @@ -2842,7 +2886,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Pane.java:1062" + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2869,13 +2913,33 @@ } } ], + "io.github.libtmux.scaladsl.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:173" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.hasSession" + } + } + ], "io.github.libtmux.scaladsl.Server.isAlive": [ { "command": "display-message", "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:214" + "libtmux/src/main/java/io/github/libtmux/Server.java:200" ], "scope": null, "via": { @@ -2894,12 +2958,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:311" + "libtmux/src/main/java/io/github/libtmux/Server.java:298" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2911,12 +2975,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:311" + "libtmux/src/main/java/io/github/libtmux/Server.java:298" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Server.java:314" + "libtmux/src/main/java/io/github/libtmux/Server.java:313" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -2941,6 +3005,24 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Server.Server.killSession" } + }, + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } } ], "io.github.libtmux.scaladsl.Server.lock": [ @@ -2968,7 +3050,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:154" + "libtmux/src/main/java/io/github/libtmux/Server.java:127" ], "scope": null, "via": { @@ -3009,7 +3091,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:995" + "libtmux/src/main/java/io/github/libtmux/Server.java:975" ], "scope": "server", "via": { @@ -3107,7 +3189,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Server.java:957" + "libtmux/src/main/java/io/github/libtmux/Server.java:937" ], "scope": "server", "via": { @@ -3150,7 +3232,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:252" + "libtmux/src/main/java/io/github/libtmux/Session.java:250" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3202,7 +3284,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Session.java:213" + "libtmux/src/main/java/io/github/libtmux/Session.java:186" ], "scope": null, "via": { @@ -3286,7 +3368,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Session.java:104" + "libtmux/src/main/java/io/github/libtmux/Session.java:100" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3300,12 +3382,12 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Window.java:371" + "libtmux/src/main/java/io/github/libtmux/Window.java:358" ], "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:376" + "libtmux/src/main/java/io/github/libtmux/Window.java:374" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3343,7 +3425,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:209" + "libtmux/src/main/java/io/github/libtmux/Window.java:206" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3381,7 +3463,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:236" + "libtmux/src/main/java/io/github/libtmux/Window.java:234" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3400,7 +3482,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:257" + "libtmux/src/main/java/io/github/libtmux/Window.java:254" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3476,7 +3558,7 @@ "scope": null, "via": { "evidence": [ - "libtmux/src/main/java/io/github/libtmux/Window.java:281" + "libtmux/src/main/java/io/github/libtmux/Window.java:278" ], "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", @@ -3566,7 +3648,7 @@ "evidence": [ "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", - "libtmux/src/main/java/io/github/libtmux/Window.java:189" + "libtmux/src/main/java/io/github/libtmux/Window.java:164" ], "scope": null, "via": { diff --git a/site/src/data/tmux-usage/swift.json b/site/src/data/tmux-usage/swift.json index 94931e572..3972857a6 100644 --- a/site/src/data/tmux-usage/swift.json +++ b/site/src/data/tmux-usage/swift.json @@ -110,7 +110,7 @@ { "command": "refresh-client", "evidence": [ - "Sources/LibTmux/Watch.swift:139" + "Sources/LibTmux/Watch.swift:138" ], "scope": null } @@ -119,15 +119,19 @@ { "command": "break-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:127" + "Sources/LibTmux/Navigation.swift:127", + "Sources/LibTmux/Navigation.swift:144" ], + "reviewed": true, "scope": null }, { "command": "if-shell", "evidence": [ - "Sources/LibTmux/Navigation.swift:136" + "Sources/LibTmux/Navigation.swift:136", + "Sources/LibTmux/Navigation.swift:144" ], + "reviewed": true, "scope": null } ], @@ -135,7 +139,7 @@ { "command": "show-buffer", "evidence": [ - "Sources/LibTmux/Buffers.swift:52" + "Sources/LibTmux/Buffers.swift:51" ], "scope": null } @@ -144,7 +148,7 @@ { "command": "list-buffers", "evidence": [ - "Sources/LibTmux/Buffers.swift:8" + "Sources/LibTmux/Buffers.swift:6" ], "scope": null } @@ -153,7 +157,7 @@ { "command": "copy-mode", "evidence": [ - "Sources/LibTmux/Navigation.swift:205" + "Sources/LibTmux/Navigation.swift:204" ], "scope": null } @@ -162,7 +166,7 @@ { "command": "capture-pane", "evidence": [ - "Sources/LibTmux/PaneInteraction.swift:364", + "Sources/LibTmux/PaneInteraction.swift:363", "Sources/LibTmux/PaneInteraction.swift:94" ], "scope": null @@ -172,7 +176,7 @@ { "command": "capture-pane", "evidence": [ - "Sources/LibTmux/PaneInteraction.swift:296", + "Sources/LibTmux/PaneInteraction.swift:295", "Sources/LibTmux/PaneInteraction.swift:103" ], "scope": null @@ -182,7 +186,7 @@ { "command": "capture-pane", "evidence": [ - "Sources/LibTmux/PaneInteraction.swift:296", + "Sources/LibTmux/PaneInteraction.swift:295", "Sources/LibTmux/PaneInteraction.swift:120" ], "scope": null @@ -192,7 +196,7 @@ { "command": "clear-history", "evidence": [ - "Sources/LibTmux/Navigation.swift:213" + "Sources/LibTmux/Navigation.swift:212" ], "scope": null } @@ -201,7 +205,7 @@ { "command": "list-clients", "evidence": [ - "Sources/LibTmux/Server.swift:296" + "Sources/LibTmux/Server.swift:295" ], "scope": null } @@ -210,7 +214,7 @@ { "command": "list-clients", "evidence": [ - "Sources/LibTmux/FilteredListings.swift:103" + "Sources/LibTmux/FilteredListings.swift:100" ], "scope": null } @@ -228,7 +232,7 @@ { "command": "detach-client", "evidence": [ - "Sources/LibTmux/Navigation.swift:267" + "Sources/LibTmux/Navigation.swift:266" ], "scope": null } @@ -237,7 +241,7 @@ { "command": "detach-client", "evidence": [ - "Sources/LibTmux/Navigation.swift:279" + "Sources/LibTmux/Navigation.swift:278" ], "scope": null } @@ -246,7 +250,7 @@ { "command": "copy-mode", "evidence": [ - "Sources/LibTmux/Navigation.swift:193" + "Sources/LibTmux/Navigation.swift:192" ], "scope": null } @@ -264,7 +268,7 @@ { "command": "show-environment", "evidence": [ - "Sources/LibTmux/Environment.swift:84" + "Sources/LibTmux/Environment.swift:85" ], "scope": null } @@ -273,7 +277,7 @@ { "command": "display-message", "evidence": [ - "Sources/LibTmux/Formats.swift:397" + "Sources/LibTmux/Formats.swift:396" ], "scope": null } @@ -282,7 +286,7 @@ { "command": "display-message", "evidence": [ - "Sources/LibTmux/Formats.swift:359" + "Sources/LibTmux/Formats.swift:364" ], "scope": null } @@ -300,7 +304,7 @@ { "command": "display-message", "evidence": [ - "Sources/LibTmux/Server.swift:347" + "Sources/LibTmux/Server.swift:348" ], "scope": null } @@ -309,7 +313,7 @@ { "command": "list-sessions", "evidence": [ - "Sources/LibTmux/Server.swift:400" + "Sources/LibTmux/Server.swift:399" ], "scope": null } @@ -318,7 +322,7 @@ { "command": "join-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:183" + "Sources/LibTmux/Navigation.swift:182" ], "scope": null } @@ -327,21 +331,21 @@ { "command": "kill-pane", "evidence": [ - "Sources/LibTmux/Mutations.swift:123" + "Sources/LibTmux/Mutations.swift:122" ], "scope": null }, { "command": "kill-session", "evidence": [ - "Sources/LibTmux/Mutations.swift:109" + "Sources/LibTmux/Mutations.swift:108" ], "scope": null }, { "command": "kill-window", "evidence": [ - "Sources/LibTmux/Mutations.swift:116" + "Sources/LibTmux/Mutations.swift:115" ], "scope": null } @@ -360,16 +364,11 @@ "command": "link-window", "evidence": [ "Sources/LibTmux/WindowTransfers.swift:75", - "Sources/LibTmux/WindowTransfers.swift:20" - ], - "scope": null - }, - { - "command": "move-window", - "evidence": [ - "Sources/LibTmux/WindowTransfers.swift:75", - "Sources/LibTmux/WindowTransfers.swift:20" + "Sources/LibTmux/WindowTransfers.swift:91", + "Sources/LibTmux/WindowTransfers.swift:20", + "Sources/LibTmux/WindowTransfers.swift:27" ], + "reviewed": true, "scope": null } ], @@ -383,20 +382,15 @@ } ], "Server.move(_:to:at:)": [ - { - "command": "link-window", - "evidence": [ - "Sources/LibTmux/WindowTransfers.swift:75", - "Sources/LibTmux/WindowTransfers.swift:10" - ], - "scope": null - }, { "command": "move-window", "evidence": [ "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:91", + "Sources/LibTmux/WindowTransfers.swift:46", "Sources/LibTmux/WindowTransfers.swift:10" ], + "reviewed": true, "scope": null } ], @@ -404,14 +398,14 @@ { "command": "new-session", "evidence": [ - "Sources/LibTmux/Creation.swift:130" + "Sources/LibTmux/Creation.swift:129" ], "scope": null }, { "command": "resize-window", "evidence": [ - "Sources/LibTmux/Creation.swift:155" + "Sources/LibTmux/Creation.swift:154" ], "scope": null } @@ -420,7 +414,7 @@ { "command": "new-window", "evidence": [ - "Sources/LibTmux/Creation.swift:233", + "Sources/LibTmux/Creation.swift:232", "Sources/LibTmux/Creation.swift:204" ], "scope": null @@ -430,7 +424,7 @@ { "command": "new-window", "evidence": [ - "Sources/LibTmux/Creation.swift:233", + "Sources/LibTmux/Creation.swift:232", "Sources/LibTmux/Creation.swift:178" ], "scope": null @@ -440,7 +434,7 @@ { "command": "next-layout", "evidence": [ - "Sources/LibTmux/Navigation.swift:102" + "Sources/LibTmux/Navigation.swift:101" ], "scope": null } @@ -449,7 +443,7 @@ { "command": "show-options", "evidence": [ - "Sources/LibTmux/Options.swift:149", + "Sources/LibTmux/Options.swift:147", "Sources/LibTmux/Options.swift:135" ], "scope": null @@ -459,7 +453,7 @@ { "command": "show-options", "evidence": [ - "Sources/LibTmux/Options.swift:111" + "Sources/LibTmux/Options.swift:110" ], "scope": null } @@ -468,7 +462,7 @@ { "command": "list-panes", "evidence": [ - "Sources/LibTmux/Server.swift:285" + "Sources/LibTmux/Server.swift:284" ], "scope": "server" } @@ -477,7 +471,7 @@ { "command": "list-panes", "evidence": [ - "Sources/LibTmux/FilteredListings.swift:80" + "Sources/LibTmux/FilteredListings.swift:76" ], "scope": "server" } @@ -486,7 +480,7 @@ { "command": "paste-buffer", "evidence": [ - "Sources/LibTmux/Buffers.swift:106" + "Sources/LibTmux/Buffers.swift:105" ], "scope": null } @@ -495,7 +489,7 @@ { "command": "pipe-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:394" + "Sources/LibTmux/Navigation.swift:393" ], "scope": null } @@ -504,7 +498,7 @@ { "command": "previous-layout", "evidence": [ - "Sources/LibTmux/Navigation.swift:109" + "Sources/LibTmux/Navigation.swift:108" ], "scope": null } @@ -513,7 +507,7 @@ { "command": "set-environment", "evidence": [ - "Sources/LibTmux/Environment.swift:135" + "Sources/LibTmux/Environment.swift:134" ], "scope": null } @@ -522,14 +516,14 @@ { "command": "rename-session", "evidence": [ - "Sources/LibTmux/Mutations.swift:32" + "Sources/LibTmux/Mutations.swift:30" ], "scope": null }, { "command": "rename-window", "evidence": [ - "Sources/LibTmux/Mutations.swift:40" + "Sources/LibTmux/Mutations.swift:38" ], "scope": null } @@ -538,7 +532,7 @@ { "command": "resize-pane", "evidence": [ - "Sources/LibTmux/Mutations.swift:90" + "Sources/LibTmux/Mutations.swift:88" ], "scope": null } @@ -547,7 +541,7 @@ { "command": "resize-pane", "evidence": [ - "Sources/LibTmux/Mutations.swift:72" + "Sources/LibTmux/Mutations.swift:71" ], "scope": null } @@ -556,7 +550,7 @@ { "command": "show-options", "evidence": [ - "Sources/LibTmux/Options.swift:167" + "Sources/LibTmux/Options.swift:165" ], "scope": null } @@ -565,7 +559,7 @@ { "command": "respawn-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:376" + "Sources/LibTmux/Navigation.swift:375" ], "scope": null } @@ -574,7 +568,7 @@ { "command": "respawn-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:363" + "Sources/LibTmux/Navigation.swift:362" ], "scope": null } @@ -583,7 +577,7 @@ { "command": "rotate-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:94" + "Sources/LibTmux/Navigation.swift:93" ], "scope": null } @@ -610,14 +604,14 @@ { "command": "select-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:20" + "Sources/LibTmux/Navigation.swift:19" ], "scope": null }, { "command": "select-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:13" + "Sources/LibTmux/Navigation.swift:12" ], "scope": null } @@ -626,7 +620,7 @@ { "command": "last-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:55" + "Sources/LibTmux/Navigation.swift:54" ], "scope": null } @@ -635,7 +629,7 @@ { "command": "last-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:43" + "Sources/LibTmux/Navigation.swift:42" ], "scope": null } @@ -644,7 +638,7 @@ { "command": "select-layout", "evidence": [ - "Sources/LibTmux/Mutations.swift:53" + "Sources/LibTmux/Mutations.swift:52" ], "scope": null } @@ -653,7 +647,7 @@ { "command": "next-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:28" + "Sources/LibTmux/Navigation.swift:27" ], "scope": null } @@ -662,7 +656,7 @@ { "command": "previous-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:35" + "Sources/LibTmux/Navigation.swift:34" ], "scope": null } @@ -671,7 +665,7 @@ { "command": "send-keys", "evidence": [ - "Sources/LibTmux/PaneInteraction.swift:44" + "Sources/LibTmux/PaneInteraction.swift:43" ], "scope": null } @@ -680,7 +674,7 @@ { "command": "list-sessions", "evidence": [ - "Sources/LibTmux/Server.swift:250" + "Sources/LibTmux/Server.swift:249" ], "scope": null } @@ -689,7 +683,7 @@ { "command": "list-sessions", "evidence": [ - "Sources/LibTmux/FilteredListings.swift:41" + "Sources/LibTmux/FilteredListings.swift:37" ], "scope": null } @@ -707,8 +701,9 @@ { "command": "set-environment", "evidence": [ - "Sources/LibTmux/Environment.swift:51", - "Sources/LibTmux/Environment.swift:109" + "Sources/LibTmux/Environment.swift:109", + "Sources/LibTmux/Environment.swift:109", + "Sources/LibTmux/Environment.swift:51" ], "scope": null } @@ -717,7 +712,7 @@ { "command": "set-hook", "evidence": [ - "Sources/LibTmux/Options.swift:260" + "Sources/LibTmux/Options.swift:259" ], "scope": null } @@ -726,7 +721,7 @@ { "command": "set-option", "evidence": [ - "Sources/LibTmux/Options.swift:187" + "Sources/LibTmux/Options.swift:185" ], "scope": null } @@ -735,7 +730,7 @@ { "command": "select-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:226" + "Sources/LibTmux/Navigation.swift:224" ], "scope": null } @@ -753,7 +748,7 @@ { "command": "list-windows", "evidence": [ - "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:273", "Sources/LibTmux/Server.swift:311" ], "scope": "server" @@ -772,7 +767,7 @@ { "command": "split-window", "evidence": [ - "Sources/LibTmux/Creation.swift:314", + "Sources/LibTmux/Creation.swift:313", "Sources/LibTmux/Creation.swift:285" ], "scope": null @@ -782,7 +777,7 @@ { "command": "split-window", "evidence": [ - "Sources/LibTmux/Creation.swift:314", + "Sources/LibTmux/Creation.swift:313", "Sources/LibTmux/Creation.swift:258" ], "scope": null @@ -801,14 +796,14 @@ { "command": "swap-pane", "evidence": [ - "Sources/LibTmux/Navigation.swift:73" + "Sources/LibTmux/Navigation.swift:72" ], "scope": null }, { "command": "swap-window", "evidence": [ - "Sources/LibTmux/Navigation.swift:66" + "Sources/LibTmux/Navigation.swift:65" ], "scope": null } @@ -817,7 +812,7 @@ { "command": "resize-pane", "evidence": [ - "Sources/LibTmux/Mutations.swift:100" + "Sources/LibTmux/Mutations.swift:99" ], "scope": null } @@ -826,7 +821,7 @@ { "command": "unlink-window", "evidence": [ - "Sources/LibTmux/WindowTransfers.swift:35" + "Sources/LibTmux/WindowTransfers.swift:34" ], "scope": null } @@ -835,7 +830,7 @@ { "command": "set-environment", "evidence": [ - "Sources/LibTmux/Environment.swift:123" + "Sources/LibTmux/Environment.swift:122" ], "scope": null } @@ -853,7 +848,7 @@ { "command": "set-option", "evidence": [ - "Sources/LibTmux/Options.swift:209" + "Sources/LibTmux/Options.swift:207" ], "scope": null } @@ -862,7 +857,7 @@ { "command": "wait-for", "evidence": [ - "Sources/LibTmux/Wait.swift:36" + "Sources/LibTmux/Wait.swift:35" ], "scope": null } @@ -871,7 +866,7 @@ { "command": "list-windows", "evidence": [ - "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:273", "Sources/LibTmux/Server.swift:269" ], "scope": "server" @@ -881,7 +876,7 @@ { "command": "list-windows", "evidence": [ - "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:273", "Sources/LibTmux/Server.swift:262" ], "scope": "server" @@ -891,7 +886,7 @@ { "command": "list-windows", "evidence": [ - "Sources/LibTmux/FilteredListings.swift:62" + "Sources/LibTmux/FilteredListings.swift:58" ], "scope": "server" } @@ -900,7 +895,7 @@ { "command": "attach-session", "evidence": [ - "Sources/LibTmux/ControlMode.swift:177" + "Sources/LibTmux/ControlMode.swift:179" ], "scope": null } diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index 0b12b9543..c6b7d248b 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -111,7 +111,7 @@ { "command": "switch-client", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:256", + "packages/libtmux/src/_internal/operations/shell.ts:255", "packages/libtmux/src/client.ts:107" ], "scope": null @@ -124,6 +124,7 @@ "packages/mcp/src/startup.ts:92", "packages/mcp/src/server.ts:244" ], + "reviewed": true, "scope": null }, { @@ -132,6 +133,7 @@ "packages/mcp/src/startup.ts:89", "packages/mcp/src/server.ts:244" ], + "reviewed": true, "scope": null }, { @@ -140,6 +142,7 @@ "packages/mcp/src/startup.ts:88", "packages/mcp/src/server.ts:244" ], + "reviewed": true, "scope": null } ], @@ -147,7 +150,7 @@ { "command": "break-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:147", + "packages/libtmux/src/_internal/operations/shell.ts:146", "packages/libtmux/src/pane.ts:517" ], "scope": null @@ -155,7 +158,7 @@ { "command": "rename-window", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:160", + "packages/libtmux/src/_internal/operations/shell.ts:159", "packages/libtmux/src/pane.ts:517" ], "scope": null @@ -165,7 +168,7 @@ { "command": "capture-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/pane_io.ts:47", + "packages/libtmux/src/_internal/operations/pane_io.ts:44", "packages/libtmux/src/pane.ts:345" ], "scope": null @@ -185,7 +188,7 @@ { "command": "choose-tree", "evidence": [ - "packages/libtmux/src/_internal/operations/interactive.ts:72", + "packages/libtmux/src/_internal/operations/interactive.ts:69", "packages/libtmux/src/pane.ts:591" ], "scope": null @@ -215,7 +218,7 @@ { "command": "display-menu", "evidence": [ - "packages/libtmux/src/_internal/operations/interactive.ts:51", + "packages/libtmux/src/_internal/operations/interactive.ts:50", "packages/libtmux/src/pane.ts:573" ], "scope": null @@ -225,7 +228,7 @@ { "command": "display-message", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:60", + "packages/libtmux/src/_internal/operations/shell.ts:59", "packages/libtmux/src/pane.ts:476" ], "scope": null @@ -235,7 +238,7 @@ { "command": "display-popup", "evidence": [ - "packages/libtmux/src/_internal/operations/interactive.ts:22", + "packages/libtmux/src/_internal/operations/interactive.ts:19", "packages/libtmux/src/pane.ts:562" ], "scope": null @@ -249,25 +252,9 @@ "packages/libtmux/src/pane.ts:540" ], "scope": null - }, - { - "command": "send-keys", - "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:220", - "packages/libtmux/src/pane.ts:540" - ], - "scope": null } ], "pane.Pane.exitCopyMode": [ - { - "command": "copy-mode", - "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:216", - "packages/libtmux/src/pane.ts:551" - ], - "scope": null - }, { "command": "send-keys", "evidence": [ @@ -291,7 +278,7 @@ { "command": "join-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:192", + "packages/libtmux/src/_internal/operations/shell.ts:189", "packages/libtmux/src/pane.ts:529" ], "scope": null @@ -333,7 +320,7 @@ { "command": "pipe-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/pane_io.ts:93", + "packages/libtmux/src/_internal/operations/pane_io.ts:92", "packages/libtmux/src/pane.ts:503" ], "scope": null @@ -343,7 +330,7 @@ { "command": "resize-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:317", + "packages/libtmux/src/_internal/operations/topology.ts:314", "packages/libtmux/src/pane.ts:370" ], "scope": null @@ -353,7 +340,7 @@ { "command": "respawn-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:80", + "packages/libtmux/src/_internal/operations/shell.ts:77", "packages/libtmux/src/pane.ts:487" ], "scope": null @@ -372,7 +359,7 @@ { "command": "send-keys", "evidence": [ - "packages/libtmux/src/_internal/operations/pane_io.ts:30", + "packages/libtmux/src/_internal/operations/pane_io.ts:32", "packages/libtmux/src/pane.ts:286" ], "scope": null @@ -392,7 +379,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/_internal/operations/hooks.ts:70", "packages/libtmux/src/pane.ts:154" ], "scope": null @@ -444,7 +431,7 @@ { "command": "show-options", "evidence": [ - "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/_internal/operations/options.ts:148", "packages/libtmux/src/pane.ts:196" ], "scope": null @@ -468,7 +455,7 @@ { "command": "swap-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:380", + "packages/libtmux/src/_internal/operations/topology.ts:379", "packages/libtmux/src/pane.ts:412" ], "scope": null @@ -478,7 +465,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/_internal/operations/hooks.ts:94", "packages/libtmux/src/pane.ts:165" ], "scope": null @@ -499,7 +486,7 @@ { "command": "if-shell", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/_internal/operations/topology.ts:295", "packages/libtmux/src/pane.ts:400" ], "scope": null @@ -509,7 +496,7 @@ { "command": "if-shell", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:272", + "packages/libtmux/src/_internal/operations/topology.ts:267", "packages/libtmux/src/pane.ts:386" ], "scope": null @@ -517,7 +504,7 @@ { "command": "select-pane", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:270", + "packages/libtmux/src/_internal/operations/topology.ts:267", "packages/libtmux/src/pane.ts:386" ], "scope": null @@ -547,7 +534,7 @@ { "command": "show-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:71", + "packages/libtmux/src/_internal/operations/environment.ts:70", "packages/libtmux/src/server.ts:1016" ], "scope": null @@ -567,7 +554,7 @@ { "command": "if-shell", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:39", + "packages/libtmux/src/_internal/operations/shell.ts:36", "packages/libtmux/src/server.ts:1284" ], "scope": null @@ -577,7 +564,7 @@ { "command": "list-sessions", "evidence": [ - "packages/libtmux/src/_internal/operations/server_utils.ts:132", + "packages/libtmux/src/_internal/operations/server_utils.ts:129", "packages/libtmux/src/server.ts:1301" ], "scope": null @@ -641,7 +628,7 @@ { "command": "set-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:147", + "packages/libtmux/src/_internal/operations/environment.ts:146", "packages/libtmux/src/server.ts:1050" ], "scope": null @@ -651,7 +638,7 @@ { "command": "run-shell", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:19", + "packages/libtmux/src/_internal/operations/shell.ts:15", "packages/libtmux/src/server.ts:1273" ], "scope": null @@ -661,7 +648,7 @@ { "command": "save-buffer", "evidence": [ - "packages/libtmux/src/_internal/operations/server_utils.ts:109", + "packages/libtmux/src/_internal/operations/server_utils.ts:105", "packages/libtmux/src/server.ts:835" ], "scope": null @@ -681,7 +668,7 @@ { "command": "set-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:101", + "packages/libtmux/src/_internal/operations/environment.ts:98", "packages/libtmux/src/server.ts:1027" ], "scope": null @@ -702,7 +689,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/_internal/operations/hooks.ts:70", "packages/libtmux/src/server.ts:917" ], "scope": null @@ -785,7 +772,7 @@ { "command": "show-options", "evidence": [ - "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/_internal/operations/options.ts:148", "packages/libtmux/src/server.ts:798" ], "scope": null @@ -819,7 +806,7 @@ { "command": "set-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:124", + "packages/libtmux/src/_internal/operations/environment.ts:123", "packages/libtmux/src/server.ts:1038" ], "scope": null @@ -840,7 +827,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/_internal/operations/hooks.ts:94", "packages/libtmux/src/server.ts:928" ], "scope": null @@ -861,9 +848,11 @@ { "command": "display-message", "evidence": [ - "packages/libtmux/src/_internal/operations/layout.ts:42", + "packages/libtmux/src/_internal/operations/layout.ts:62", + "packages/libtmux/src/_internal/operations/layout.ts:51", "packages/libtmux/src/server.ts:955" ], + "reviewed": true, "scope": null } ], @@ -881,7 +870,7 @@ { "command": "show-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:71", + "packages/libtmux/src/_internal/operations/environment.ts:70", "packages/libtmux/src/session.ts:223" ], "scope": null @@ -914,7 +903,7 @@ { "command": "set-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:147", + "packages/libtmux/src/_internal/operations/environment.ts:146", "packages/libtmux/src/session.ts:257" ], "scope": null @@ -924,7 +913,7 @@ { "command": "rename-session", "evidence": [ - "packages/libtmux/src/_internal/operations/session_nav.ts:11", + "packages/libtmux/src/_internal/operations/session_nav.ts:10", "packages/libtmux/src/session.ts:367" ], "scope": null @@ -937,6 +926,7 @@ "packages/libtmux/src/_internal/operations/session_nav.ts:34", "packages/libtmux/src/session.ts:378" ], + "reviewed": true, "scope": null }, { @@ -945,14 +935,17 @@ "packages/libtmux/src/_internal/operations/session_nav.ts:35", "packages/libtmux/src/session.ts:378" ], + "reviewed": true, "scope": null }, { "command": "previous-window", "evidence": [ "packages/libtmux/src/_internal/operations/session_nav.ts:37", + "packages/libtmux/src/_internal/operations/session_nav.ts:36", "packages/libtmux/src/session.ts:378" ], + "reviewed": true, "scope": null }, { @@ -968,7 +961,7 @@ { "command": "set-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:101", + "packages/libtmux/src/_internal/operations/environment.ts:98", "packages/libtmux/src/session.ts:234" ], "scope": null @@ -978,7 +971,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/_internal/operations/hooks.ts:70", "packages/libtmux/src/session.ts:186" ], "scope": null @@ -1030,7 +1023,7 @@ { "command": "show-options", "evidence": [ - "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/_internal/operations/options.ts:148", "packages/libtmux/src/session.ts:133" ], "scope": null @@ -1040,7 +1033,7 @@ { "command": "set-environment", "evidence": [ - "packages/libtmux/src/_internal/operations/environment.ts:124", + "packages/libtmux/src/_internal/operations/environment.ts:123", "packages/libtmux/src/session.ts:245" ], "scope": null @@ -1050,7 +1043,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/_internal/operations/hooks.ts:94", "packages/libtmux/src/session.ts:197" ], "scope": null @@ -1080,7 +1073,7 @@ { "command": "link-window", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:61", + "packages/libtmux/src/_internal/operations/topology.ts:59", "packages/libtmux/src/window.ts:439" ], "scope": null @@ -1090,7 +1083,7 @@ { "command": "move-window", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:48", + "packages/libtmux/src/_internal/operations/topology.ts:46", "packages/libtmux/src/window.ts:427" ], "scope": null @@ -1122,7 +1115,7 @@ { "command": "rename-window", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:28", + "packages/libtmux/src/_internal/operations/topology.ts:27", "packages/libtmux/src/window.ts:411" ], "scope": null @@ -1132,7 +1125,7 @@ { "command": "resize-window", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:353", + "packages/libtmux/src/_internal/operations/topology.ts:350", "packages/libtmux/src/window.ts:358" ], "scope": null @@ -1142,7 +1135,7 @@ { "command": "respawn-window", "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:112", + "packages/libtmux/src/_internal/operations/shell.ts:109", "packages/libtmux/src/window.ts:372" ], "scope": null @@ -1152,7 +1145,7 @@ { "command": "rotate-window", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:427", + "packages/libtmux/src/_internal/operations/topology.ts:426", "packages/libtmux/src/window.ts:343" ], "scope": null @@ -1181,7 +1174,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:73", + "packages/libtmux/src/_internal/operations/hooks.ts:70", "packages/libtmux/src/window.ts:206" ], "scope": null @@ -1223,7 +1216,7 @@ { "command": "show-options", "evidence": [ - "packages/libtmux/src/_internal/operations/options.ts:150", + "packages/libtmux/src/_internal/operations/options.ts:148", "packages/libtmux/src/window.ts:248" ], "scope": null @@ -1247,7 +1240,7 @@ { "command": "swap-window", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:94", + "packages/libtmux/src/_internal/operations/topology.ts:93", "packages/libtmux/src/window.ts:484" ], "scope": null @@ -1267,7 +1260,7 @@ { "command": "set-hook", "evidence": [ - "packages/libtmux/src/_internal/operations/hooks.ts:95", + "packages/libtmux/src/_internal/operations/hooks.ts:94", "packages/libtmux/src/window.ts:217" ], "scope": null @@ -1288,7 +1281,7 @@ { "command": "if-shell", "evidence": [ - "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/_internal/operations/topology.ts:295", "packages/libtmux/src/window.ts:387" ], "scope": null diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 2b0a2fbf5..03a4dcf00 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs' import { experimental_AstroContainer } from 'astro/container' import { Window } from 'happy-dom' import { afterEach, describe, expect, it, vi } from 'vitest' -import { documentProblems, isPrivateSymbol, publicSymbols, viaRevisionFor } from '../../scripts/gen-tmux-usage.mjs' +import { dispatcherProblems, documentProblems, isPrivateSymbol, notPublic, publicSymbols, viaRevisionFor } from '../../scripts/gen-tmux-usage.mjs' import { API_MODELS } from '../src/lib/api-models' import { PORTS } from '../src/lib/ports' import { symbolMarkdown } from '../src/lib/symbol-markdown' @@ -89,7 +89,7 @@ describe('the recorded usage', () => { expect(isPrivateSymbol({ name: '__enter__', id: 'libtmux._internal.control_mode.ControlMode.__enter__' })).toBe(true) expect(isPrivateSymbol({ name: 'x', id: 'libtmux.Server.x', apiScope: 'internal' })).toBe(true) const document = { ...TMUX_USAGE.py, symbols: { ...TMUX_USAGE.py.symbols, 'libtmux.Server._show_option': [{ command: 'show-options', scope: null, evidence: ['a.py:1'] }] } } - expect(documentProblems(document, model, scopeTable, manualCommands)).toEqual(['libtmux.Server._show_option: is private, and only public API is recorded']) + expect(documentProblems(document, model, scopeTable, manualCommands)).toEqual(['libtmux.Server._show_option: is private or package-private, and only public API is recorded']) // None of the committed documents records a private symbol. for (const slug of PORTS.map((port) => port.slug)) { const privates = API_MODELS[slug].symbols.filter(isPrivateSymbol).map((symbol: { publicId?: string; id: string }) => symbol.publicId ?? symbol.id) @@ -97,6 +97,64 @@ describe('the recorded usage', () => { } }) + it('records public API only in Java and elsewhere: a member declared without public, or with a narrower visibility, is not recorded', () => { + const member = (name: string, raw: string, parent = 'io.libtmux.Type') => ({ + id: `${parent}.${name}`, name, kind: 'method', modifiers: [], parent, signatures: [{ raw }], source: { file: 'src/main/java/io/libtmux/Type.java', line: 1 }, + }) + const model = { + ...API_MODELS.java, + symbols: [ + { id: 'io.libtmux.Type', name: 'Type', kind: 'class', modifiers: [], source: { file: 'src/main/java/io/libtmux/Type.java', line: 1 } }, + { id: 'io.libtmux.Face', name: 'Face', kind: 'interface', modifiers: [], source: { file: 'src/main/java/io/libtmux/Face.java', line: 1 } }, + member('visible', 'public String visible()'), + member('annotated', '@Operation(Kind.READ)\npublic String annotated()'), + member('packaged', 'String packaged()'), + member('guarded', 'protected String guarded()'), + member('implicit', 'String implicit()', 'io.libtmux.Face'), + ], + } + const names = publicSymbols(model).map((symbol: { name: string }) => symbol.name) + expect(names).toEqual(expect.arrayContaining(['visible', 'annotated'])) + // A member declared without `public` cannot be called by the library's user, and an interface member is public without saying so. + expect(names).not.toContain('packaged') + expect(names).not.toContain('guarded') + expect(names).toContain('implicit') + const record = (id: string) => ({ ...TMUX_USAGE.java, revision: model.revision, symbols: { [id]: [{ command: 'list-panes', scope: 'server', evidence: ['a.java:1'] }] } }) + expect(documentProblems(record('io.libtmux.Type.packaged'), model, scopeTable, manualCommands).filter((problem: string) => /packaged/.test(problem))) + .toEqual(['io.libtmux.Type.packaged: is private or package-private, and only public API is recorded']) + // The control: a public member, and an interface member, are accepted. + expect(documentProblems(record('io.libtmux.Type.visible'), model, scopeTable, manualCommands).filter((problem: string) => /visible/.test(problem))).toEqual([]) + expect(documentProblems(record('io.libtmux.Face.implicit'), model, scopeTable, manualCommands).filter((problem: string) => /implicit/.test(problem))).toEqual([]) + // The visibility is read off the signature of any port: Kotlin `internal`, Rust `pub(crate)`, Swift `fileprivate`. + const byId = new Map() + expect(notPublic({ signatures: [{ raw: 'internal suspend fun Batch.run(): BatchResult' }] }, byId, 'kotlin')).toBe(true) + expect(notPublic({ signatures: [{ raw: '#[cfg(feature = "x")]\npub(crate) async fn run(&self)' }] }, byId, 'rs')).toBe(true) + expect(notPublic({ signatures: [{ raw: 'fileprivate func run()' }] }, byId, 'swift')).toBe(true) + expect(notPublic({ signatures: [{ raw: '#[cfg(feature = "x")]\npub async fn run(&self)' }] }, byId, 'rs')).toBe(false) + expect(notPublic({ signatures: [{ raw: 'public suspend fun Batch.run(): BatchResult' }] }, byId, 'kotlin')).toBe(false) + // A default-visibility signature is public in every port but Java. + expect(notPublic({ signatures: [{ raw: 'def run(self)' }] }, byId, 'py')).toBe(false) + // None of the committed documents records a member its model declares non-public. + for (const slug of PORTS.map((port) => port.slug)) { + const index = new Map(API_MODELS[slug].symbols.map((symbol: { id: string }) => [symbol.id, symbol])) + const hidden = API_MODELS[slug].symbols.filter((symbol) => notPublic(symbol, index as never, slug)).map((symbol: { publicId?: string; id: string }) => symbol.publicId ?? symbol.id) + expect(Object.keys(TMUX_USAGE[slug].symbols).filter((id) => hidden.includes(id)), slug).toEqual([]) + } + }) + + it('refuses a dispatching call whose cited definition is gone, differs, or does not show the call defined', () => { + const source = 'def cmd(self, *args):\n return run(args)\n' + const readSource = (path: string) => (path === 'lib.py' ? source : undefined) + const rule = (over: Record = {}) => ({ name: 'cmd', why: 'Runs the command it is given.', evidence: [{ at: 'lib.py:1', has: ['def cmd('] }], ...over }) + const problems = (over: Record) => dispatcherProblems({ port: 'py', dispatchers: [rule(over)], readSource }) + expect(problems({})).toEqual([]) + expect(problems({ evidence: [{ at: 'lib.py:9', has: ['def cmd('] }] })).toEqual(['py: dispatcher cmd: lib.py:9 is not a line of the pinned source', 'py: dispatcher cmd: no cited line shows cmd defined']) + expect(problems({ evidence: [{ at: 'lib.py:2', has: ['def cmd('] }] }).join('\n')).toMatch(/lib.py:2 does not contain "def cmd\("/) + expect(problems({ evidence: [{ at: 'lib.py:2', has: ['run(args)'] }] })).toEqual(['py: dispatcher cmd: no cited line shows cmd defined']) + expect(problems({ why: ' ' })).toEqual(['py: dispatcher cmd: names no call or gives no reason']) + expect(problems({ evidence: [] })).toEqual(['py: dispatcher cmd: cites no definition']) + }) + it('records every command of the manual, for every port', () => { expect(manualCommands).toContain('list-panes') expect(manualCommands).toContain('set-window-option') @@ -186,7 +244,7 @@ describe('the recorded usage', () => { it('keeps a call through a helper with the method and off the command pages', () => { const go = tmuxUsageOf('go', 'tmux.Pane.Select').filter((entry) => entry.command === 'list-panes') expect(go).toHaveLength(1) - expect(go[0].scopes[0]).toMatchObject({ hops: 1, evidence: ['tmux/lookup.go:371', 'tmux/window_pane_topology.go:199'] }) + expect(go[0].scopes[0]).toMatchObject({ hops: 1, evidence: ['tmux/lookup.go:369', 'tmux/window_pane_topology.go:199'] }) expect(usage.groups.flatMap((group) => group.ports).flatMap((entry) => entry.links).map((link) => link.symbolId)).not.toContain('tmux.Pane.Select') }) @@ -280,8 +338,9 @@ describe('from a method to the command and its C function', () => { // A recorded command is linked by what the code sends, not by the concept map: TypeScript's capture reaches capture-pane through a helper. expect(tmuxCommandsFor('ts', 'pane.Pane.capture')).toEqual([]) expect(tmuxSymbolSends('ts', 'pane.Pane.capture').map((send) => [send.command, send.scopes[0].listed])).toEqual([['capture-pane', true]]) - // Its send-keys is another command's helper: the method sends nothing of the kind, and nothing says so. - expect(tmuxSymbolSends('ts', 'pane.Pane.enterCopyMode').map((send) => [send.command, send.scopes[0].listed])).toEqual([['copy-mode', true], ['send-keys', false]]) + // The send-keys that setCopyMode sends to leave copy mode is not what entering does, so entering records copy-mode alone. + expect(tmuxSymbolSends('ts', 'pane.Pane.enterCopyMode').map((send) => [send.command, send.scopes[0].listed])).toEqual([['copy-mode', true]]) + expect(tmuxSymbolSends('ts', 'pane.Pane.exitCopyMode').map((send) => send.command)).toEqual(['send-keys']) }) it('names what the method sends before its equivalents, and what it sends through a helper last', () => { diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index ebc200906..9a2c4f325 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -1,7 +1,7 @@ import { readFileSync } from 'node:fs' -import { describe, expect, it } from 'vitest' +import { beforeAll, describe, expect, it } from 'vitest' import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' -import { MAX_SHARED_BY, applyExclusions, classify, definitionsOf, deriveUsage, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { MAX_SHARED_BY, applyExclusions, builtSites, callTargets, classify, definitionsOf, deriveUsage, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' import { auditEvidence } from '../../scripts/lib/tmux-usage-audit.mjs' import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' import { carriesCommand, memberWords, selects, settleCandidates, sweepCandidates } from '../../scripts/lib/tmux-usage-sweep.mjs' @@ -702,40 +702,399 @@ describe('finding the methods a scan misses', () => { }) }) +/** A file read by the scan that finds the calls that send, in the shape the audit reads its sources. */ +const sourcesOf = async (grammar: string, file: string, text: string, dispatch: string[], commands: string[]) => { + const scanned = await scanSource({ grammar, text, commands: new Set(commands), known: new Set(commands), dispatch: new Set(dispatch) }) + return { read: (path: string) => (path === file ? text : undefined), functions: scanned.functions.map((fn) => ({ ...fn, file })) } +} + +describe('scanning for the call that sends', () => { + const sites = async (grammar: string, text: string, dispatch: string[], commands: string[]) => { + const { functions } = await scanSource({ grammar, text, commands: new Set(commands), known: new Set(commands), dispatch: new Set(dispatch) }) + return Object.fromEntries(functions.map((fn) => [fn.name, fn.sites.map((found: { command: string, line: number, dispatch?: { line: number, name: string } | null, why?: string, builds?: boolean }) => ( + found.dispatch ? `${found.command}@${found.line}->${found.dispatch.name}@${found.dispatch.line}` : `${found.command}@${found.line} ${found.why}${found.builds ? ' (builds)' : ''}`))])) + } + + it('records a literal that is an argument of a dispatch call, at the dispatch call, and no other literal in the function', async () => { + const found = await sites('python', [ + 'class S:', + ' def panes(self):', + ' return self.cmd("list-panes", "-a")', + ' def selector(self):', + ' fmt = get_output_format("list-windows", ["x"])', + ' return self.cmd("list-panes", "-F", fmt)', + '', + ].join('\n'), ['cmd'], ['list-panes', 'list-windows']) + expect(found.panes).toEqual(['list-panes@3->cmd@3']) + // A row or format selector is an argument of a call that neither sends it nor builds a command from it. + expect(found.selector).toEqual(['list-windows@5 it is an argument of get_output_format, which neither sends it nor builds a command from it', 'list-panes@6->cmd@6']) + }) + + it('does not record a command that a condition picks among others, a label, or a helper that never dispatches', async () => { + const found = await sites('python', [ + 'class S:', + ' def choose(self, hooks):', + ' return self.cmd("list-windows" if hooks else "list-panes")', + ' def label(self):', + ' return describe("list-panes")', + ' def same(self, exit):', + ' return self.cmd(["list-panes", "-E", exit] if exit else ["list-panes"])', + '', + ].join('\n'), ['cmd'], ['list-panes', 'list-windows']) + expect(found.choose).toEqual(['list-windows@3 a condition chooses it among other commands', 'list-panes@3 a condition chooses it among other commands']) + expect(found.label).toEqual(['list-panes@5 it is an argument of describe, which neither sends it nor builds a command from it']) + // The control: a condition between spellings of the same command picks no other command. + expect(found.same).toEqual(['list-panes@7->cmd@7', 'list-panes@7->cmd@7']) + }) + + it('does not record the choice of a receiver class or a value arm either', async () => { + const ruby = await sites('ruby', [ + 'class Options', + ' def list', + ' command = is_a?(Hooks) ? "list-windows" : "list-panes"', + ' run(command)', + ' end', + ' def plain', + ' run("list-panes", "-g")', + ' end', + 'end', + '', + ].join('\n'), ['run'], ['list-panes', 'list-windows']) + expect(ruby.list).toEqual(['list-windows@3 a condition chooses it among other commands', 'list-panes@3 a condition chooses it among other commands']) + expect(ruby.plain).toEqual(['list-panes@7->run@7']) + }) + + it('records a command bound to a name at the later call that takes the name, and not the binding', async () => { + const found = await sites('rust', [ + 'fn split(core: &Core) {', + ' let mut command = Command::new("list-panes");', + ' command.arg("-h");', + ' run(core, command).await', + '}', + 'fn label(core: &Core) {', + ' log(Error::new("list-panes", core.reason()));', + '}', + '', + ].join('\n'), ['run'], ['list-panes']) + expect(found.split).toEqual(['list-panes@2->run@4']) + expect(found.label).toEqual(['list-panes@7 it is an argument of log, which neither sends it nor builds a command from it']) + }) + + it('does not record a command whose variable a call that is not a builder has bound again before the send', async () => { + const lines = (rebind: string) => [ + 'package tmux', + 'func (s Server) open() error {', + '\tattach := []string{"list-panes"}', + '\tattach = append(attach, "-t", "x")', + rebind, + '\treturn s.startControl(attach)', + '}', + '', + ].join('\n') + const guarded = await sites('go', lines('\tattach, guard, err := s.guardCommand(attach, false)'), ['startControl'], ['list-panes']) + expect(guarded.open).toEqual(['list-panes@3 its variable is rebound by guardCommand, which neither sends it nor builds a command from it']) + // The controls: a rebinding through a way of adding to the list, a call that binds another name, and a declared builder. + expect((await sites('go', lines('\tattach = append([]string{"-C"}, attach...)'), ['startControl'], ['list-panes'])).open).toEqual(['list-panes@3->startControl@6']) + expect((await sites('go', lines('\tother, err := s.guardCommand(attach, false)'), ['startControl'], ['list-panes'])).open).toEqual(['list-panes@3->startControl@6']) + const { functions } = await scanSource({ grammar: 'go', text: lines('\tattach, err = withFlags(attach, false)'), commands: new Set(['list-panes']), known: new Set(['list-panes']), dispatch: new Set(['startControl']), builders: new Set(['withFlags']) }) + expect(functions[0].sites.map((found) => found.dispatch?.line)).toEqual([6]) + }) + + it('credits a literal in a throw label to nothing, and the real send in the same function to the dispatch call', async () => { + const found = await sites('typescript', [ + 'export async function validate(runtime, options) {', + ' if (options.signal?.aborted === true)', + ' throw new TmuxTransportError("cancelled", {', + ' subcommand: "list-panes",', + ' });', + ' return await runCommand(runtime, ["list-panes", "-p"], options);', + '}', + '', + ].join('\n'), ['runCommand'], ['list-panes']) + expect(found.validate).toEqual(['list-panes@4 it reaches no call that sends', 'list-panes@6->runCommand@6']) + }) + + it('leaves a builder that returns a command to its caller, which sends it with the call of the builder between', async () => { + const found = await sites('python', [ + 'class S:', + ' def build(self):', + ' return ["list-panes", "-a"]', + ' def run(self):', + ' command = self.build()', + ' return self.cmd(*command)', + '', + ].join('\n'), ['cmd'], ['list-panes']) + expect(found.build).toEqual(['list-panes@3 it builds a value for the caller (builds)']) + expect(found.run).toEqual([]) + const { functions } = await scanSource({ grammar: 'python', text: ['class S:', ' def build(self):', ' return ["list-panes", "-a"]', ' def run(self):', ' command = self.build()', ' return self.cmd(*command)', ''].join('\n'), commands: new Set(['list-panes']), known: new Set(['list-panes']), dispatch: new Set(['cmd']) }) + const located = functions.map((fn: object) => ({ ...fn, file: 'lib.py' })) + const credited = [...builtSites(located as never).entries()].map(([fn, list]) => [(fn as { name: string }).name, (list as { line: number, dispatch: { line: number }, via: { call: number } }[]).map((site) => [site.dispatch.line, site.via.call, site.line])]) + expect(credited).toEqual([['run', [[6, 5, 3]]]]) + }) +}) + +describe('scanning for the call that sends, in the shapes of each grammar', () => { + const sites = async (grammar: string, text: string, dispatch: string[], commands: string[]) => { + const { functions } = await scanSource({ grammar, text, commands: new Set(commands), known: new Set(commands), dispatch: new Set(dispatch) }) + return Object.fromEntries(functions.map((fn) => [fn.name, fn.sites.map((found: { command: string, line: number, dispatch?: { line: number, name: string } | null, builds?: boolean }) => ( + found.dispatch ? `${found.command}@${found.line}->${found.dispatch.name}@${found.dispatch.line}` : `${found.command}@${found.line} ${found.builds ? 'builds' : 'sends nothing'}`))])) + } + + it('reads the last expression of a Rust body as the value it builds, with or without a return', async () => { + const found = await sites('rust', [ + 'fn version_command() -> Command {', + ' Command::new("list-panes")', + ' .arg("-a")', + '}', + 'fn explicit() -> Command {', + ' return Command::new("list-panes").arg("-a");', + '}', + 'async fn version(server: &Server) {', + ' server.cmd(version_command()).await', + '}', + '', + ].join('\n'), ['cmd'], ['list-panes']) + expect(found.version_command).toEqual(['list-panes@2 builds']) + expect(found.explicit).toEqual(['list-panes@6 builds']) + // The control: the same literal in the arguments of the dispatch call is sent at once, and not built for anyone. + const direct = await sites('rust', 'async fn version(server: &Server) {\n server.cmd(Command::new("list-panes")).await\n}\n', ['cmd'], ['list-panes']) + expect(direct.version).toEqual(['list-panes@2->cmd@2']) + }) + + it('follows a command put in a struct field of a request to the call that takes the request', async () => { + const found = await sites('cpp', [ + 'int Connection::apply(Connection connection) {', + ' ControlRequest layout_request;', + ' layout_request.group.push_back(', + ' ControlCommand{{"list-panes", "-a"}});', + ' return connection.execute(std::move(layout_request), deadline);', + '}', + 'int Connection::other(Connection connection) {', + ' ControlRequest request;', + ' ControlCommand pending{{"list-panes", "-a"}};', + ' request.group.push_back(std::move(pending));', + ' log(std::move(request));', + ' return 0;', + '}', + '', + ].join('\n'), ['execute'], ['list-panes']) + expect(found.apply).toEqual(['list-panes@4->execute@5']) + // A request handed to a call that does not send is not sent. + expect(found.other).toEqual(['list-panes@9 sends nothing']) + }) +}) + +describe('scanning a send made inside a closure', () => { + it('cites the inner dispatch call when a runner of the same name wraps a closure that makes it', async () => { + const { functions } = await scanSource({ + grammar: 'csharp', commands: new Set(['rotate-window']), known: new Set(['rotate-window']), dispatch: new Set(['RunAsync']), + text: [ + 'class Window {', + ' Task RotateAsync(CancellationToken token) {', + ' List arguments = ["rotate-window", "-t", "x"];', + ' return Sequence.RunAsync(', + ' () => RunAsync(arguments, token),', + ' () => RefreshAsync(token));', + ' }', + '}', + '', + ].join('\n'), + }) + expect(functions[0].sites.map((found) => [found.line, found.dispatch?.line])).toEqual([[3, 5]]) + }) +}) + +describe('citing one of several sends of a command', () => { + it('cites the send under the fewest branches when the same command is sent on several paths', async () => { + const { functions } = await scanSource({ + grammar: 'python', commands: new Set(['list-panes']), known: new Set(['list-panes']), dispatch: new Set(['cmd']), + text: [ + 'def panes(self, mode):', + ' if mode:', + ' return self.cmd("list-panes", "-a")', + ' return self.cmd("list-panes", "-a")', + '', + ].join('\n'), + }) + const fn = { ...functions[0], file: 'lib.py' } + expect(fn.sites.map((found) => found.depth)).toEqual([1, 0]) + const symbols = [{ id: 'S.panes', name: 'panes', file: 'lib.py', line: 1 }] + const { entries } = deriveUsage({ command: 'list-panes', spec, functions: [fn as never], symbols }) + expect(entries.map((entry: { evidence: string[] }) => entry.evidence)).toEqual([['lib.py:4']]) + }) +}) + +describe('resolving a call to the function it calls', () => { + const owned = (name: string, owner: string | undefined, file: string) => ({ name, owner, file }) + const caller = (over: Record = {}) => ({ file: 'pane.rs', owner: 'Pane', calls: new Map([['into_command', 10]]), receivers: new Map>(), ...over }) + const capture = owned('into_command', 'CaptureOptions', 'options.rs') + const split = owned('into_command', 'SplitOptions', 'options.rs') + + it('takes the only function of a name, whatever the call is made on', () => { + expect(callTargets(caller(), capture, [capture])).toBe(true) + expect(callTargets(caller({ calls: new Map() }), capture, [capture])).toBe(false) + }) + + it('does not take the function of another type that shares the name, for a call made on something else', () => { + // `Pane.split` calls `options.into_command()`, which is not the one in `CaptureOptions`: the name alone is not the callee. + const onOptions = caller({ receivers: new Map([['into_command', new Set(['options'])]]) }) + expect(callTargets(onOptions, capture, [capture, split])).toBe(false) + expect(callTargets(onOptions, split, [capture, split])).toBe(false) + // A handle named for the type is that type's; a call with no handle is the caller's own type's. + expect(callTargets(caller({ receivers: new Map([['into_command', new Set(['captureoptions'])]]) }), capture, [capture, split])).toBe(true) + expect(callTargets(caller({ receivers: new Map([['into_command', new Set(['captureoptions'])]]) }), split, [capture, split])).toBe(false) + expect(callTargets(caller({ owner: 'SplitOptions' }), split, [capture, split])).toBe(true) + expect(callTargets(caller({ owner: 'SplitOptions' }), capture, [capture, split])).toBe(false) + expect(callTargets(caller({ receivers: new Map([['into_command', new Set(['self'])]]), owner: 'CaptureOptions' }), capture, [capture, split])).toBe(true) + }) + + it('takes a Go call on the receiver the method names, and a free function only when no second one could be meant', () => { + const go = caller({ file: 'pane.go', owner: 'Pane', selfName: 'p', receivers: new Map([['into_command', new Set(['p'])]]) }) + expect(callTargets(go, owned('into_command', 'Pane', 'pane.go'), [capture, owned('into_command', 'Pane', 'pane.go')])).toBe(true) + const free = owned('into_command', undefined, 'util.rs') + const other = owned('into_command', undefined, 'elsewhere.rs') + expect(callTargets(caller(), free, [free, capture])).toBe(true) + expect(callTargets(caller(), free, [free, other])).toBe(false) + expect(callTargets(caller({ file: 'util.rs' }), free, [free, other])).toBe(true) + expect(callTargets(caller({ receivers: new Map([['into_command', new Set(['options'])]]) }), free, [free, capture])).toBe(false) + }) + + it('credits a public method only through the callee its call resolves to', () => { + const functions = [ + located({ file: 'options.rs', name: 'into_command', owner: 'CaptureOptions', start: 1, nameLine: 1, end: 4, sites: [{ command: 'list-panes', line: 2, flags: 'a', dispatch: { line: 2, name: 'run' } }] }), + located({ file: 'options.rs', name: 'into_command', owner: 'SplitOptions', start: 5, nameLine: 5, end: 8 }), + located({ file: 'pane.rs', name: 'split', owner: 'Pane', start: 1, nameLine: 1, end: 6, calls: new Map([['into_command', 3]]), receivers: new Map([['into_command', new Set(['options'])]]) }), + ] + const symbols = [{ id: 'pane.Pane.split', name: 'split', parentName: 'Pane', file: 'pane.rs', line: 1 }] + expect(deriveUsage({ command: 'list-panes', spec, functions, symbols }).entries).toEqual([]) + // The control: the same call made on a handle named for the type reaches the site. + functions[2].receivers = new Map([['into_command', new Set(['captureoptions'])]]) + expect(deriveUsage({ command: 'list-panes', spec, functions, symbols }).entries.map((entry: { symbol: string }) => entry.symbol)).toEqual(['pane.Pane.split']) + }) +}) + describe('reading back the lines an entry cites', () => { - const library = ['def panes(self):', ' return fetch("list-panes", ["-a"])', '', 'def search(self):', ' return panes()', '', 'def broken(self):', ' raise Unsupported("list-panes")'].join('\n') - const fn = (name: string, start: number, end: number, calls: [string, number][] = []) => ({ file: 'lib.py', name, start, end, calls: new Map(calls) }) - const sources = { read: (path: string) => (path === 'lib.py' ? library : undefined), functions: [fn('panes', 1, 2), fn('search', 4, 5, [['panes', 5]]), fn('broken', 7, 8)] } + const library = [ + 'def panes(self):', // 1 + ' return fetch("list-panes", ["-a"])', // 2 + '', // 3 + 'def search(self):', // 4 + ' return panes()', // 5 + '', // 6 + 'def broken(self):', // 7 + ' raise Unsupported("list-panes")', // 8 + '', // 9 + 'def label(self):', // 10 + ' return describe("list-panes")', // 11 + '', // 12 + 'def kind(self, hooks):', // 13 + ' return fetch("list-hooks" if hooks else "list-panes")', // 14 + '', // 15 + 'def build(self):', // 16 + ' return ["list-panes", "-a"]', // 17 + '', // 18 + 'def built(self):', // 19 + ' command = build()', // 20 + ' return fetch(command)', // 21 + '', // 22 + 'def selector(self):', // 23 + ' fmt = get_output_format("list-panes", ["x"])', // 24 + ' return fetch("list-windows", "-F", fmt)', // 25 + '', // 26 + 'def compare(self, name):', // 27 + ' if name == "list-panes":', // 28 + ' return fetch("list-windows")', // 29 + ].join('\n') + const commands = ['list-panes', 'list-hooks', 'list-windows'] const use = (over: Record = {}) => ({ symbol: 'S.search', command: 'list-panes', scope: 'server', evidence: ['lib.py:2', 'lib.py:5'], ...over }) - const audit = (uses: unknown[], over: Record = {}) => auditEvidence({ + const auditOver = (sources: unknown, uses: unknown[], over: Record = {}) => auditEvidence({ port: 'py', revision: 'r1', uses: uses as never, claimFor: () => undefined, spellings: (command: string) => [command], sourcesAt: (port: string, revision: string) => (port === 'py' && revision === 'r1' ? sources : undefined), ...over, } as never) + const audit = async (uses: unknown[], over: Record = {}) => auditOver(await sourcesOf('python', 'lib.py', library, ['fetch'], commands), uses, over) - it('accepts a scanned entry whose first line spells the command and whose next line calls the function around it', () => { - expect(audit([use()])).toEqual([]) + it('accepts a scanned entry whose first line is the call that sends and whose next line calls the function around it', async () => { + expect(await audit([use()])).toEqual([]) // The command may be spelled by its alias. - expect(audit([use({ command: 'lsp' })], { spellings: () => ['list-panes', 'lsp'] })).toEqual([]) + expect(await audit([use({ command: 'lsp' })], { spellings: () => ['list-panes', 'lsp'] })).toEqual([]) }) it.each([ ['a line past the end of the file', { evidence: ['lib.py:99', 'lib.py:5'] }, /lib.py:99 is not a line of py at r1/], ['a file the revision does not have', { evidence: ['gone.py:1'] }, /gone.py:1 is not a line of py at r1/], - ['a first line that does not spell the command', { evidence: ['lib.py:5'] }, /lib.py:5 does not spell list-panes/], - ['a later line that does not call the function around the line before it', { evidence: ['lib.py:2', 'lib.py:7'] }, /lib.py:7 does not call panes/], - ['a later line that follows a line in no function', { evidence: ['lib.py:3', 'lib.py:5'] }, /not a line of py|is in no function/], - ['a first line that throws', { evidence: ['lib.py:8'] }, /lib.py:8 reports a failure and sends nothing/], - ])('refuses %s', (_name, over, message) => { - expect(audit([use(over)]).join('\n')).toMatch(message) + ['a first line that is not a call that sends', { evidence: ['lib.py:5'] }, /lib.py:5 is not a call that sends list-panes/], + ['a later line that does not call the function around the line before it', { evidence: ['lib.py:2', 'lib.py:7'] }, /lib.py:7 is not a call of panes/], + ['a later line that follows a line in no function', { evidence: ['lib.py:3', 'lib.py:5'] }, /not a line of py|is in no function|is not a call that sends/], + ['a first line that throws', { evidence: ['lib.py:8'] }, /lib.py:8 is not a call that sends list-panes/], + ['a first line that compares the command', { evidence: ['lib.py:28'] }, /lib.py:28 is not a call that sends list-panes/], + ['a first line that passes the command to a call that never sends it', { evidence: ['lib.py:11'] }, /lib.py:11 is not a call that sends list-panes \(it is an argument of describe/], + ['a first line whose command a condition picks among others', { evidence: ['lib.py:14'] }, /lib.py:14 is not a call that sends list-panes \(a condition chooses it/], + ['a first line that is a format selector', { evidence: ['lib.py:24'] }, /lib.py:24 is not a call that sends list-panes \(it is an argument of get_output_format/], + ['a first line that only builds the command for a caller', { evidence: ['lib.py:17'] }, /lib.py:17 is not a call that sends list-panes \(it builds a value for the caller/], + ])('refuses %s', async (_name, over, message) => { + expect((await audit([use(over)])).join('\n')).toMatch(message) + }) + + it('accepts what the refused lines are next to: the real send beside a comparison and beside a selector', async () => { + expect(await audit([use({ symbol: 'S.compare', command: 'list-windows', evidence: ['lib.py:29'] })])).toEqual([]) + expect(await audit([use({ symbol: 'S.selector', command: 'list-windows', evidence: ['lib.py:25'] })])).toEqual([]) }) - it('reads a reviewed entry against its claim, line by line', () => { + it('reads a command built by a helper as the call that sends, the call of the helper and the literal, in that order', async () => { + const built = (evidence: string[]) => use({ symbol: 'S.built', evidence }) + expect(await audit([built(['lib.py:21', 'lib.py:20', 'lib.py:17'])])).toEqual([]) + // The builder alone sends nothing; and the triple has to be the one the scan found, in order. + expect((await audit([built(['lib.py:17'])])).join('\n')).toMatch(/lib.py:17 is not a call that sends list-panes/) + expect((await audit([built(['lib.py:21', 'lib.py:17', 'lib.py:20'])])).join('\n')).toMatch(/not a call/) + expect((await audit([built(['lib.py:20'])])).join('\n')).toMatch(/lib.py:20 is not a call that sends list-panes/) + }) + + it('reads each hop as a call of the function the line before belongs to, resolved by what it is called on and not by its name', async () => { + const rust = [ + 'impl CaptureOptions {', // 1 + ' fn into_command(self, pane: &str) -> Command {', // 2 + ' let command = Command::new("list-panes");', // 3 + ' run(command)', // 4 + ' }', // 5 + '}', // 6 + 'impl Pane {', // 7 + ' fn split(&self, options: SplitOptions) {', // 8 + ' options.into_command(&pane)', // 9 + ' }', // 10 + ' fn capture(&self, options: CaptureOptions) {', // 11 + ' self.into_command(&pane)', // 12 + ' }', // 13 + ' fn into_command(&self, pane: &str) {', // 14 + ' captureoptions.into_command(pane)', // 15 + ' }', // 16 + '}', // 17 + ].join('\n') + const sources = await sourcesOf('rust', 'pane.rs', rust, ['run'], ['list-panes']) + const audited = (evidence: string[]) => auditEvidence({ + port: 'rs', revision: 'r1', uses: [{ symbol: 'pane.Pane.split', command: 'list-panes', scope: null, evidence }] as never, claimFor: () => undefined, + spellings: (command: string) => [command], sourcesAt: () => sources as never, + } as never) + // `Pane.split` calls an `into_command`, but on `options`, which is not the one in `CaptureOptions` that sends. + expect(audited(['pane.rs:4', 'pane.rs:9']).join('\n')).toMatch(/pane.rs:9 is not a call of CaptureOptions.into_command, the function around pane.rs:4/) + // The control: a call on a handle named for the type is that type's. + expect(audited(['pane.rs:4', 'pane.rs:15'])).toEqual([]) + }) + + it('reads a reviewed entry against its claim, line by line', async () => { const claim = (over: Record = {}) => ({ evidence: [{ at: 'lib.py:2', has: ['fetch("list-panes"'] }, { at: 'lib.py:5', has: ['panes()'], in: 'S.search' }], ...over }) const reviewed = (evidence = ['lib.py:2', 'lib.py:5']) => use({ reviewed: true, evidence }) - expect(audit([reviewed()], { claimFor: () => claim() })).toEqual([]) - expect(audit([reviewed()]).join('\n')).toMatch(/reviewed, but no claim of py holds it at r1/) - expect(audit([reviewed(['lib.py:2', 'lib.py:4'])], { claimFor: () => claim() }).join('\n')).toMatch(/cites lib.py:4 where its claim cites lib.py:5/) - expect(audit([reviewed()], { claimFor: () => claim({ evidence: [{ at: 'lib.py:2', has: ['"list-windows"'] }, { at: 'lib.py:5' }] }) }).join('\n')).toMatch(/does not contain "\\"list-windows\\""/) + expect(await audit([reviewed()], { claimFor: () => claim() })).toEqual([]) + expect((await audit([reviewed()])).join('\n')).toMatch(/reviewed, but no claim of py holds it at r1/) + expect((await audit([reviewed(['lib.py:2', 'lib.py:4'])], { claimFor: () => claim() })).join('\n')).toMatch(/cites lib.py:4 where its claim cites lib.py:5/) + expect((await audit([reviewed()], { claimFor: () => claim({ evidence: [{ at: 'lib.py:2', has: ['"list-windows"'] }, { at: 'lib.py:5' }] }) })).join('\n')).toMatch(/does not contain "\\"list-windows\\""/) + }) + + it('refuses a reviewed first line that reports a failure and sends nothing', async () => { + const claim = { evidence: [{ at: 'lib.py:8', has: ['Unsupported("list-panes")'] }] } + expect((await audit([use({ reviewed: true, evidence: ['lib.py:8'] })], { claimFor: () => claim })).join('\n')).toMatch(/lib.py:8 reports a failure and sends nothing/) + // The control: a line that holds a dispatch call sends, whatever else it does with the result. + const sends = { evidence: [{ at: 'lib.py:2', has: ['fetch("list-panes"'] }] } + expect(await audit([use({ reviewed: true, evidence: ['lib.py:2'] })], { claimFor: () => sends, dispatchFor: () => new Set(['fetch']) })).toEqual([]) }) it('refuses a reviewed first line that only binds the command in a function that goes on to send it, and not one that builds it for a caller', () => { @@ -750,13 +1109,14 @@ describe('reading back the lines an entry cites', () => { '}', ].join('\n') const functions = [ - { file: 'o.rs', name: 'set', start: 1, end: 4, calls: new Map([['run', 3], ['apply', 2]]) }, - { file: 'o.rs', name: 'channel_command', start: 5, end: 8, calls: new Map() }, + { file: 'o.rs', name: 'set', start: 1, end: 4, sites: [], calls: new Map([['run', 3], ['apply', 2]]) }, + { file: 'o.rs', name: 'channel_command', start: 5, end: 8, sites: [], calls: new Map() }, ] const rs = { read: () => rust, functions } const run = (line: number) => auditEvidence({ port: 'rs', revision: 'r1', claimFor: () => ({ evidence: [] }), spellings: (command: string) => [command], sourcesAt: () => rs, uses: [{ symbol: 'o.set', command: 'set-option', scope: null, reviewed: true, evidence: [`o.rs:${line}`] }] as never, + dispatchFor: () => new Set(['run']), } as never) expect(run(2).join('\n')).toMatch(/o.rs:2 only binds the command to a name in set, which goes on to send it/) expect(run(3)).toEqual([]) @@ -765,16 +1125,20 @@ describe('reading back the lines an entry cites', () => { describe('a wrapper that stands on a core library', () => { // The wrapper cites the call, and the core lines are read at the revision the via names. - const wrapper = { read: (path: string) => (path === 'w.fs' ? 'let panes server =\n server.PanesAsync()' : undefined), functions: [] } - const core = (text: string) => ({ read: (path: string) => (path === 'Core.cs' ? text : undefined), functions: [{ file: 'Core.cs', name: 'PanesAsync', start: 1, end: 3, calls: new Map() }] }) - const at = { 'fs@r1': wrapper, 'cs@r1': core('Task PanesAsync() =>\n Fetch("list-panes");'), 'cs@r2': core('Task PanesAsync() =>\n Fetch();\n // list-panes lived here') } - const forwarded = (revision: string | undefined, evidence = ['Core.cs:2']) => ({ + const wrapper = { read: (path: string) => (path === 'w.fs' ? 'let panes server =\n server.PanesAsync()' : undefined), functions: [{ file: 'w.fs', name: 'panes', start: 1, end: 2, sites: [], calls: new Map([['PanesAsync', 2]]), receivers: new Map() }] } + const core = async (text: string) => sourcesOf('csharp', 'Core.cs', text, ['Fetch'], ['list-panes']) + const lines = (body: string) => `class Server {\n Task PanesAsync() =>\n ${body};\n}` + let at: Record = {} + beforeAll(async () => { + at = { 'fs@r1': wrapper, 'cs@r1': await core(lines('Fetch("list-panes")')), 'cs@r2': await core(`${lines('Fetch()')}\n// list-panes lived here`) } + }) + const forwarded = (revision: string | undefined, evidence = ['Core.cs:3']) => ({ symbol: 'S.Server.newSession', command: 'list-panes', scope: 'session', evidence: ['w.fs:2'], via: { port: 'cs', symbol: 'Lib.Server.PanesAsync', revision, evidence }, }) const audits = (uses: unknown[]) => auditEvidence({ port: 'fs', revision: 'r1', uses: uses as never, claimFor: () => undefined, spellings: (command: string) => [command], - sourcesAt: (port: string, revision: string) => (at as unknown as Record)[`${port}@${revision}`], + sourcesAt: (port: string, revision: string) => at[`${port}@${revision}`] as never, } as never) it('accepts core lines that read as cited at the revision the via names', () => { @@ -782,13 +1146,13 @@ describe('reading back the lines an entry cites', () => { }) it('refuses core lines read at a revision where they say something else, which is what citing the wrong revision does', () => { - expect(audits([forwarded('r2')]).join('\n')).toMatch(/via cs Lib.Server.PanesAsync\): Core.cs:2 does not spell list-panes/) + expect(audits([forwarded('r2')]).join('\n')).toMatch(/via cs Lib.Server.PanesAsync\): Core.cs:3 is not a call that sends list-panes/) }) it('refuses a via that names no revision, a revision nothing was scanned at, and a wrapper line that does not call the core method', () => { expect(audits([forwarded(undefined)]).join('\n')).toMatch(/its via names no revision/) expect(audits([forwarded('r9')]).join('\n')).toMatch(/no scan of cs at r9/) - expect(audits([{ ...forwarded('r1'), evidence: ['w.fs:1'] }]).join('\n')).toMatch(/w.fs:1 does not call PanesAsync/) + expect(audits([{ ...forwarded('r1'), evidence: ['w.fs:1'] }]).join('\n')).toMatch(/w.fs:1 is not a call of PanesAsync/) }) it('reads a generated wrapper by its generator lines and the annotation that makes it forward, and not as a call', () => { From 9896219bd63207081644c1dccdefae9dbef11140 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 03:19:18 -0500 Subject: [PATCH 13/53] fix(site[tmux-usage]) Read guards as transparent, prove dispatchers reach a transport, show conditions why: A review of 0aff9123e found the dispatch rule sound in shape and weak in four places. A dispatcher is a name, and a name matched decoys: a serde `list`, a log `run`, a `Cmd` that builds a string. Nothing proved the functions behind the rules send. A library-built `if-shell -F ` that only refuses a stale or foreign target (java IncarnationFence, swift GuardedRequest, ruby execute_link) means the command inside it, and the nested-command rule had no way to tell it from `killIfWindowUnshared`, where the condition is the method's purpose. A condition that decides whether a method sends was in the data for some entries and nowhere on the page, so a table listed a send as if every call made it. A julia generic function was credited with the sends of every method of its name. And entries cited a label that names the command for a failure message (`mutate(core, "wait-for", ...)`, `runClientCommand(ctx, s, "detach-client", ...)`) instead of the call that sends. what: - Each dispatcher definition cites a chain to a transport (a process start or a write to a control client), one line per hop, read back against the scan: a hop calls the next function, or leads to it where the scan cannot follow (a queue another thread writes from, a bare ruby method name). `dispatcherProblems` fails a definition with no chain, a hop that does not hold its text, a hop outside the function the chain reached, and a label parameter that no cited definition takes. The decoys are gone (rs step/send/list/run lookalikes, java run/request/command/listing, go Cmd and runCommand, swift identifier/list, julia rows, ts freeze), and the real dispatchers are in (rs chain, dispatch, options run, java Server.run(List) and its fenced overloads, swift Server.run and the guarded expectSuccess). - `labels` on a rule names the argument positions that only label the command for a failure message. A literal there is not a send, does not make the call name another command, and is skipped by the nested rule, so rs mutate/run, go runClientCommand and its siblings, and the csharp ReadAsync and CreatePaneFromAsync cite the call that sends and the literal that builds it. - `guards.json` declares per port the functions that wrap a command in `if-shell` to refuse a stale target, each with cited lines; `guardProblems` checks the function exists, builds an if-shell, and that the lines hold the text. Inside a guard the scan records the inner command and not the if-shell, and it keeps `list-commands` fence markers out. A wrapper that is not declared is not transparent, and a semantic conditional keeps the if-shell and records the inner command with a `when` (ts killIfWindowUnshared kill-pane, cxx Pane.break_out break-pane, rename-window and display-message). - A `when` (at most eight words, one line) comes from a claim, or from `conditions.json` for a send the scan finds, with cited lines; one that qualifies no entry is stale. It is carried through forwarding and delegation, written to the documents, validated by `--check`, and rendered: a muted qualifier on the chip of the command page's usage table and after the command link on the method page; the markdown output appends it in parentheses. A claim marked `conditional` fails without one. - Julia: a function with several methods keeps the entry that only one method sends under a `when` that names the receiver ("on a Server", "on a ControlConnection"), and records nothing the methods do not share unqualified. This is the receiver option, not the common-sends-only one, and it applies to every multi-method julia function. - Go wrappers that call a method of another type on a handle named for it (`p.server.X()`) are credited with its entries when the call is made on every call of the method and not under a branch, a loop or a deferred cleanup. Recovered: Pane.CaptureToFile save-buffer and delete-buffer, Session.Refresh list-sessions, Client.Refresh list-clients, Running.Kill run-shell, Client.ResolveAttachment, tmuxtest.NewSession new-session, Server.OpenControl and OpenNotifications attach-session (if-shell stays, with `when` "a Server carrying a daemon identity"); rs Plan.run and Plan.run_over_control_mode, one entry per step kind the plan can hold. - `--rules ` reads another copy of `scripts/tmux-usage`. The unit tests cover a guard recognized, a semantic conditional and an unrecognized wrapper; a chain that stops short, skips a function, cites the wrong line or none; a label ignored; a condition without its qualifier; and a rendering test that every conditional entry shows its qualifier on both pages. The negative script seeds each wrong rule into a copy and expects the check to name it. Measured against 0aff9123e, entries per port before to after: py 190 to 190, ruby 101 to 99, lua 92 to 92, julia 68 to 68, ts 116 to 120, rs 153 to 180, go 191 to 209, java 124 to 124, kotlin 114 to 114, scala 184 to 184, csharp 168 to 168, fsharp 16 to 16, powershell 34 to 34, cxx 106 to 109, swift 88 to 88 (1745 to 1795): 54 added and 4 removed (the list-commands fence of ruby Server#switch_client and Async::Server#switch_client, go NewSessionConnection if-shell, and java NamedServerFixture.close if-shell, which kill-server replaces). Guard-routed entries, by the statement the entry cites: java 49, kotlin 49, scala 98, swift 41, ruby 6; counting a later cited line as well, java 54, kotlin 54, scala 108, swift 45. Regenerating with guards.json empty changes one entry, NamedServerFixture.close, so the guard rule restored one and kept the rest. Conditional entries per port: py 1, ruby 4, lua 3, julia 47, ts 11, rs 27, go 5, java 2, kotlin 2, scala 4, csharp 0, fsharp 3, powershell 0, cxx 4, swift 5 (118). Dispatcher definitions went from 223 to 194 across 148 rules; 162 cite a chain and one is itself the transport. A seeded sample of 60 found no entry that fails to send, 15 guard entries and all 118 conditional ones were read against the sources, and the check found no mismatch. --- scripts/README.md | 69 +- scripts/gen-tmux-usage.mjs | 78 +- scripts/gen-tmux-usage.negative.mjs | 83 + scripts/lib/tmux-usage-derive.mjs | 48 +- scripts/lib/tmux-usage-dispatch.mjs | 177 + scripts/lib/tmux-usage-forward.mjs | 14 +- scripts/lib/tmux-usage-scan.mjs | 74 +- scripts/tmux-usage/claims.json | 1531 ++++++- scripts/tmux-usage/conditions.json | 842 ++++ scripts/tmux-usage/dispatchers.json | 5343 ++++++++++++++++++++-- scripts/tmux-usage/exclusions.json | 25 + scripts/tmux-usage/guards.json | 352 ++ scripts/tmux-usage/not-senders.json | 66 - site/src/components/api/ApiEntry.astro | 1 + site/src/components/tmux/TmuxUsage.astro | 14 +- site/src/data/tmux-usage/csharp.json | 12 +- site/src/data/tmux-usage/cxx.json | 43 +- site/src/data/tmux-usage/fsharp.json | 13 +- site/src/data/tmux-usage/go.json | 346 +- site/src/data/tmux-usage/java.json | 8 +- site/src/data/tmux-usage/julia.json | 145 +- site/src/data/tmux-usage/kotlin.json | 6 +- site/src/data/tmux-usage/lua.json | 9 +- site/src/data/tmux-usage/powershell.json | 7 +- site/src/data/tmux-usage/py.json | 3 +- site/src/data/tmux-usage/rs.json | 349 +- site/src/data/tmux-usage/ruby.json | 28 +- site/src/data/tmux-usage/scala.json | 12 +- site/src/data/tmux-usage/swift.json | 15 +- site/src/data/tmux-usage/ts.json | 66 +- site/src/lib/symbol-markdown.ts | 3 +- site/src/lib/tmux-library-usage.ts | 12 +- site/src/lib/tmux-reference.ts | 7 +- site/src/styles/api.css | 2 + site/test/tmux-library-usage.test.ts | 60 + site/test/tmux-usage-derive.test.ts | 244 +- 36 files changed, 9522 insertions(+), 585 deletions(-) create mode 100644 scripts/lib/tmux-usage-dispatch.mjs create mode 100644 scripts/tmux-usage/conditions.json create mode 100644 scripts/tmux-usage/guards.json diff --git a/scripts/README.md b/scripts/README.md index 5d9edbe03..fefdd409a 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -181,7 +181,23 @@ function then passes to one. The entry cites the line of that dispatch call, not the line that spells the command. The dispatching calls of each port are in `tmux-usage/dispatchers.json`, each with the lines of the pinned source that show it sends what it is given (`kind: "builder"` names the calls that only -make a command value: `Command::new`, `TmuxCommand(...)`). A literal that +make a command value: `Command::new`, `TmuxCommand(...)`). A dispatching call is +a name, and a scan reads every call of that name as a send, so each definition a +rule cites must reach a transport: the point where the library starts the tmux +process or writes the command to a control client (`TRANSPORT` in +`lib/tmux-usage-dispatch.mjs`). The rule cites the chain, one line per hop; +a hop either calls the next function, which the scan has read, or leads to it +in a way the scan does not follow (a command put on a queue that another thread +writes from, a Ruby method called by its bare name), and every hop is read back +against the pinned source. A function that shares a name with a dispatcher and +sends nothing (a serializer called `list`, a log helper called `run`) is not one, +and a rule that cites it fails for citing no chain to a transport. + +A dispatching call may take an argument that only names the command for a +failure message (`listing::mutate(core, "find-window", command)`). A rule lists +those positions as `labels`, each with the parameter that takes it, and a +literal there is not a send, is ignored when the call is judged to name another +command, and is skipped by the nested-command rule below. A literal that reaches no dispatching call sends nothing, and is not a site: - a command compared against or named by a `case`; @@ -199,7 +215,21 @@ helper and the literal. A command that sits in the arguments of one that runs commands (`if-shell`, `run-shell`, `set-hook`, `bind-key`, `command-prompt`, `confirm-before` and the like) is not sent either: in `["if-shell", "-F", cond, quoteCommand(["resize-pane", "-Z"])]` the library -sends `if-shell`, and tmux runs `resize-pane` when the condition holds. +sends `if-shell`, and tmux runs `resize-pane` when the condition holds. That is +the entry for a conditional the method exists to make, such as killing a pane +only if its window is not shared: the library sends `if-shell`, and the command +inside it is a conditional entry that says when. + +A function that builds the same `if-shell` to make tmux refuse a stale or +foreign target (`IncarnationFence.guarded`, `guardedAction` in Swift, `execute_link` in Ruby) is +a guard, and is transparent: the library means the command inside it, so the +entry is the inner command, cited through the guard's hop, and the `if-shell` is +not recorded. `tmux-usage/guards.json` declares the guard functions of each port +with the lines that show each builds the wrapper and where it sits; generation +fails when a function builds no `if-shell`, when the cited lines do not hold the +text, or when a guard that only applies on some paths (`conditional`) does not +say `when`. A wrapper that is not declared is not transparent, and the command +inside it is not recorded. What the scan follows is a literal into a dispatch call in one statement, into a variable or collection that a later call in the function takes, and out of a @@ -223,9 +253,10 @@ So is a member whose signature spells a narrower visibility (`protected`, for the default, a member declared without `public` (an interface member and an enum constant are public without saying so). -Three files beside the script hold what a scan cannot decide, and each line of +The files in `tmux-usage/` hold what a scan cannot decide, and each line of them is verified against the pinned source, so generation fails when one no -longer holds: +longer holds. `--rules ` reads another copy of them, which is how the +negative script seeds a rule that is wrong: - `claims.json`: a send the scan cannot see (a command named by a template, a scope carried by a typed argument, a call into a snapshot, a chain of more @@ -234,7 +265,7 @@ longer holds: A send that is an alternative of the method's own purpose and that only some arguments reach (`selectWindow("next")` sending `next-window`, `new_session` killing an existing session when `kill_session` is set) is a claim that says the - condition in `when`. + condition in `when`; `conditional: true` makes the claim fail without one. - `forwarders.json`: the wrappers that stand on a core library, Kotlin and Scala on Java, F# and the PowerShell cmdlets on C#. A wrapper that calls a core method that sends is credited at the core's scope, with both hops as @@ -250,7 +281,17 @@ longer holds: commands of the symbols it names. - `dispatchers.json`: the calls that send what they are given, per port, and the calls that only build a command value. Each cites the lines of the pinned - source that show it, and generation fails when one no longer holds. + source that show it and, for a call that sends, the chain from there to a + transport; generation fails when one no longer holds. +- `guards.json`: the functions that wrap a command in `if-shell` to refuse a stale + or foreign target, which the scan sees through (above). +- `conditions.json`: the condition of a send that the scan finds. It qualifies an + entry that already exists (a scanned or reviewed one) with a `when` and the + lines that show the condition, such as `Pane.sendKeys` asking `list-panes` only + when the pane is synchronized. One that qualifies no entry has gone stale and + fails. Julia, whose generic functions take several receiver types, gives the + entry that only one method sends a `when` that names the receiver (`on a + Server`), so that no method is credited with another's sends. - `not-senders.json`: why a public method whose own name carries a command has no entry for it, one of `builds` (it builds a command for a caller, or only holds one), `other-command` (it sends a different command, or runs it only @@ -260,6 +301,17 @@ longer holds: cites the lines that show it, and a review that settles nothing is stale and fails. +A `when` is at most eight words on one line, because the usage table shows it +beside the method (a muted qualifier on the chip, and after the command link on +a method page); a longer reason belongs on a page. An entry that is conditional +cannot be rendered without it. + +Go's wrappers that call a method of another type on a handle named for it +(`p.server.X()`) are credited with that method's entries, as a wrapper on a core +library is, when the call is made on every call of the method and not under a +branch, a loop or a deferred cleanup; the entry names the callee in `via` of the +same port. + An entry records what the default call sends, on every tmux release the port supports at its revision. What an argument changes (`new_session` killing an existing session of the same name, `breakPane` sending `if-shell` when no @@ -340,7 +392,10 @@ $ node scripts/gen-tmux-usage.mjs --check --source ``` `gen-tmux-usage.negative.mjs` proves the check fails on each kind of stale -data. +data, and on each kind of wrong rule: a dispatcher that reaches no transport, a +hop that does not hold its text, a label that names no parameter, a conditional +that does not say when, a condition that qualifies nothing, and a guard that is +not one or has been dropped. ### Site checks diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index b160f19a4..4f49d882f 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -21,6 +21,7 @@ * gen-tmux-usage.mjs --check --source also regenerate and compare * gen-tmux-usage.mjs --report list the sends no public symbol was credited with * gen-tmux-usage.mjs --data read and write another copy of the data directory + * gen-tmux-usage.mjs --rules read another copy of scripts/tmux-usage, the reviewed rules * gen-tmux-usage.mjs --commands a,b record these commands (or `all`) instead of COMMANDS * gen-tmux-usage.mjs --ports a,b only these ports, and the core libraries their wrappers stand on */ @@ -31,8 +32,9 @@ import { dirname, join, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { extractProject } from '../packages/api-model/src/project.ts' import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' -import { applyExclusions, deriveUsage, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' +import { applyConditions, applyExclusions, conditionProblem, deriveUsage, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' import { auditEvidence } from './lib/tmux-usage-audit.mjs' +import { dispatcherProblems, guardProblems } from './lib/tmux-usage-dispatch.mjs' import { forwardUsage } from './lib/tmux-usage-forward.mjs' import { settleCandidates, sweepCandidates } from './lib/tmux-usage-sweep.mjs' import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' @@ -40,17 +42,21 @@ import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' const root = resolve(dirname(fileURLToPath(import.meta.url)), '..') const dataDir = join(root, 'site/src/data') const defaultUsageDir = join(dataDir, 'tmux-usage') -const claimsPath = join(root, 'scripts/tmux-usage/claims.json') -const forwardersPath = join(root, 'scripts/tmux-usage/forwarders.json') -const exclusionsPath = join(root, 'scripts/tmux-usage/exclusions.json') -const reviewsPath = join(root, 'scripts/tmux-usage/not-senders.json') -const dispatchersPath = join(root, 'scripts/tmux-usage/dispatchers.json') export const SCHEMA_VERSION = 1 /** The commands whose usage is recorded: every command of the pinned manuals, unless `--commands` names some. */ export const COMMANDS = 'all' const args = process.argv.slice(2) const option = (name) => args[args.indexOf(name) + 1] +/** The reviewed rules live beside the generator, unless `--rules` reads another copy of them. */ +const rulesDir = args.includes('--rules') ? resolve(option('--rules')) : join(root, 'scripts/tmux-usage') +const claimsPath = join(rulesDir, 'claims.json') +const forwardersPath = join(rulesDir, 'forwarders.json') +const exclusionsPath = join(rulesDir, 'exclusions.json') +const reviewsPath = join(rulesDir, 'not-senders.json') +const dispatchersPath = join(rulesDir, 'dispatchers.json') +const guardsPath = join(rulesDir, 'guards.json') +const conditionsPath = join(rulesDir, 'conditions.json') const check = args.includes('--check') const regenerate = !check || args.includes('--source') const usageDir = args.includes('--data') ? resolve(option('--data')) : defaultUsageDir @@ -117,6 +123,9 @@ function commandSpellings() { const sortKeys = (value) => Array.isArray(value) ? value.map(sortKeys) : value && typeof value === 'object' ? Object.fromEntries(Object.entries(value).sort(([a], [b]) => a.localeCompare(b)).map(([key, item]) => [key, sortKeys(item)])) : value +/** The ports whose handles delegate to another type's public methods through a field, and are credited with what those send. */ +const DELEGATING = new Set(['go']) + /** How a port's symbols find their definitions: Lua's handles share one implementation, Julia's methods share files. */ export const DEFINITION_OPTIONS = { lua: { sharedOwner: true }, julia: { freeFunctions: true } } @@ -182,7 +191,7 @@ export function portDocument(port, model, found, commands) { for (const entry of found) { ;(symbols[entry.symbol] ??= []).push({ command: entry.command, scope: entry.scope, evidence: entry.evidence, - ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.forwardable ? { forwardable: true } : {}), ...(entry.via ? { via: entry.via } : {}), + ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.forwardable ? { forwardable: true } : {}), ...(entry.when ? { when: entry.when } : {}), ...(entry.via ? { via: entry.via } : {}), }) } for (const list of Object.values(symbols)) list.sort((a, b) => a.command.localeCompare(b.command) || String(a.scope).localeCompare(String(b.scope))) @@ -190,7 +199,7 @@ export function portDocument(port, model, found, commands) { } /** Read a port's source at its pinned revision: every function, and the public symbols that name them. */ -export async function scanPort({ port, model, commands, checkout, known, dispatch, builders, trace }) { +export async function scanPort({ port, model, commands, checkout, known, dispatch, builders, guards, labels, trace }) { const grammar = GRAMMARS[port] const symbols = publicSymbols(model) const functions = [] @@ -198,7 +207,7 @@ export async function scanPort({ port, model, commands, checkout, known, dispatc const sources = grammar ? librarySources(checkout, model.revision, grammar) : new Map() const wanted = new Set(commands) for (const [path, text] of sources) { - const scanned = await scanSource({ grammar, text, commands: wanted, known, dispatch, builders, trace }) + const scanned = await scanSource({ grammar, text, commands: wanted, known, dispatch, builders, guards, labels, trace }) for (const fn of scanned.functions) functions.push({ ...fn, file: path }) for (const type of scanned.types) types.push({ ...type, file: path }) } @@ -333,10 +342,13 @@ export function documentProblems(document, model, scopes, commands, viaRevision) if (!commands.includes(use.command)) problems.push(`${symbol}: ${use.command} is not a recorded command`) if (scoped ? !scoped.some((scope) => scope.id === use.scope) : use.scope !== null) problems.push(`${symbol}: ${use.scope} is not a scope of ${use.command}`) if (!use.evidence?.length || use.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: evidence must be file:line`) + const wrong = conditionProblem(use.when, false) + if (wrong) problems.push(`${symbol}: ${use.command} ${wrong}`) if (use.via) { if (!use.via.evidence?.length || use.via.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: via evidence must be file:line`) // The lines of a core library are read where the wrapper is pinned when both live in one repository, and where the core's own model is otherwise. - if (use.via.revision !== viaRevision) problems.push(`${symbol}: via ${use.via.symbol} cites ${use.via.port} lines at ${use.via.revision ?? 'no revision'}, which must be ${viaRevision ?? 'absent, for a port with no core library'}`) + const expected = use.via.port === model.port ? model.revision : viaRevision + if (use.via.revision !== expected) problems.push(`${symbol}: via ${use.via.symbol} cites ${use.via.port} lines at ${use.via.revision ?? 'no revision'}, which must be ${expected ?? 'absent, for a port with no core library'}`) } } } @@ -360,28 +372,7 @@ function sweepProblems({ port, model, document, reviews, exclusions, report, rea return problems } -/** - * The dispatch APIs of a port: the calls that take a tmux command and send it. Each names the code that defines it, and - * the definition must still be there. A command literal is recorded as a send only where it reaches one of these. - */ -export function dispatcherProblems({ port, dispatchers, readSource }) { - const problems = [] - for (const rule of dispatchers) { - const label = `${port}: dispatcher ${rule.name}` - if (!rule.name || !rule.why?.trim()) { problems.push(`${label}: names no call or gives no reason`); continue } - if (!rule.evidence?.length) { problems.push(`${label}: cites no definition`); continue } - let defined = false - for (const item of rule.evidence) { - const cut = item.at.lastIndexOf(':') - const line = readSource(item.at.slice(0, cut))?.split('\n')[Number(item.at.slice(cut + 1)) - 1] - if (line === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } - for (const needle of item.has ?? []) if (!line.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) - if ((item.has ?? []).some((needle) => needle.includes(rule.name))) defined = true - } - if (!defined) problems.push(`${label}: no cited line shows ${rule.name} defined`) - } - return problems -} +export { dispatcherProblems, guardProblems } export async function main() { const scopes = readJson(join(usageDir, 'scopes.json')) @@ -389,6 +380,8 @@ export async function main() { const exclusions = existsSync(exclusionsPath) ? readJson(exclusionsPath).exclusions : [] const reviews = existsSync(reviewsPath) ? readJson(reviewsPath).reviews : [] const dispatchers = existsSync(dispatchersPath) ? readJson(dispatchersPath).dispatchers : [] + const guards = existsSync(guardsPath) ? readJson(guardsPath).guards : [] + const conditions = existsSync(conditionsPath) ? readJson(conditionsPath).conditions : [] const ports = await portsWithModels() const report = [] const failures = [] @@ -428,12 +421,17 @@ export async function main() { const rules = (list) => list.filter((rule) => rule.port === port.slug && ruleHolds(rule, model.revision, pinned)) // A dispatch API is a name, so it holds at any revision of its port; its definition is checked at the model's. const apis = dispatchers.filter((api) => api.port === port.slug && (!api.revision || model.revision.startsWith(api.revision))) + const wrappers = guards.filter((guard) => guard.port === port.slug) const scanned = await scanPort({ port: port.slug, model, commands: commandsToRecord, checkout: checkoutFor(port), known, dispatch: new Set(apis.filter((api) => api.kind !== 'builder').map((api) => api.name)), builders: new Set(apis.filter((api) => api.kind === 'builder').map((api) => api.name)), + guards: wrappers.map(({ name, owner }) => ({ name, owner })), + labels: new Map(apis.filter((api) => api.labels?.length).map((api) => [api.name, new Set(api.labels.map((label) => label.at))])), }) scans.set(scanKey(port.slug, model.revision), { read: scanned.readSource, functions: scanned.functions }) - const dispatchProblems = model.revision === pinned ? dispatcherProblems({ port: port.slug, dispatchers: apis, readSource: scanned.readSource }) : [] + const dispatchProblems = model.revision === pinned + ? [...dispatcherProblems({ port: port.slug, dispatchers: apis, readSource: scanned.readSource, functions: scanned.functions }), + ...guardProblems({ port: port.slug, guards: wrappers, readSource: scanned.readSource, functions: scanned.functions })] : [] const sends = (parent, symbol, command, scope) => { const entry = core?.found.get(`${symbol}\0${command}\0${scope}`) return parent === core?.port && entry ? { ...entry, revision: core.revision } : undefined @@ -494,7 +492,19 @@ export async function main() { failures.push(...forwarded.problems) mergeEntries(found, forwarded.entries) } + const qualifiers = conditions.filter((item) => item.port === port.slug) + applyConditions({ conditions: qualifiers, found, readSource: scanned.readSource, lenient: true }) + // Go keeps one handle per tmux object and delegates to the server's methods, so a method that calls one on its `server` field sends what it sends. + if (DELEGATING.has(port.slug)) { + const delegated = forwardUsage({ + parent: port.slug, delegate: true, functions: scanned.functions, types: scanned.types, symbols: scanned.symbols, + core: { entries: [...found.values()], symbols: new Map(scanned.symbols.map((symbol) => [symbol.id, symbol])), revision: model.revision }, + }) + mergeEntries(found, delegated.entries) + } passes.set(port.slug, pass) + // A wrapper forwards what it reads from its core's entries, so the core's conditions are in place before it runs. + failures.push(...applyConditions({ conditions: qualifiers, found, readSource: scanned.readSource })) const document = portDocument(port.slug, model, [...found.values()], commandsToRecord) failures.push(...sweepProblems({ port: port.slug, model, document, reviews, exclusions, report, readSource: scanned.readSource })) // The committed entries are the ones audited, because a check has to read what is published and not what a scan makes of it. @@ -502,7 +512,7 @@ export async function main() { failures.push(...auditEvidence({ port: port.slug, revision: model.revision, claimFor, spellings: (command) => spellings.get(command) ?? [command], sourcesAt: (slug, revision) => scans.get(scanKey(slug, revision)), - dispatchFor: (slug) => new Set(dispatchers.filter((api) => api.port === slug).map((api) => api.name)), + dispatchFor: (slug) => new Set(dispatchers.filter((api) => api.port === slug && api.kind !== 'builder').map((api) => api.name)), generated: config?.generated && { evidence: config.generated.evidence.map((item) => item.at) }, uses: Object.entries(subject.symbols).flatMap(([symbol, uses]) => uses.map((use) => ({ symbol, ...use }))), })) diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 83d69e5de..0660ba40d 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -20,6 +20,14 @@ * admits, and a literal cited where only its builder was. * Each is refused by the audit that reads the cited line, and the entry beside it that * does send is accepted. + * + * It then seeds the reviewed rules (`--rules`): a dispatcher whose cited chain stops short of + * a transport, names a line that does not hold its text, skips a function, or has no chain at + * all; a label that names a parameter nothing takes, or is dropped, so that a literal the call + * only reports a failure under is read as the command; a guard that builds no if-shell, a + * conditional guard or claim that does not say when, a condition that qualifies no entry, and a + * guard dropped, so that the if-shell it wrapped is recorded in place of the command. + * Each is refused, and the committed rules beside them are accepted. */ import { cpSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' import { homedir } from 'node:os' @@ -49,6 +57,17 @@ function runSource(dir, ports) { } } +const rules = join(here, 'tmux-usage') + +/** The same check, for the ports named, reading another copy of the reviewed rules. */ +function runRules(dir, ruleDir, ports) { + try { + return { code: 0, out: execFileSync('node', [script, '--check', '--source', '--ports', ports, '--data', dir, '--rules', ruleDir], { encoding: 'utf8', stdio: 'pipe' }) } + } catch (error) { + return { code: error.status, out: `${error.stdout ?? ''}${error.stderr ?? ''}` } + } +} + const dirs = [] function fixture() { const dir = mkdtempSync(join(tmpdir(), 'gen-tmux-usage-')) @@ -161,6 +180,7 @@ if (existsSync(join(process.env.LIBTMUX_DOCS_CHECKOUT_FSHARP ?? join(homedir(), const CHECKOUTS = { py: '~/work/python/libtmux', java: '~/work/libtmux/libtmux-java', ts: '~/work/libtmux/libtmux-ts', swift: '~/work/libtmux/libtmux-swift', ruby: '~/work/libtmux/libtmux-ruby', rs: '~/work/libtmux/libtmux-rs', julia: '~/work/libtmux/libtmux-julia', go: '~/work/libtmux/libtmux-go', + fsharp: '~/work/libtmux/libtmux-dotnet', } const checkoutOf = (port) => (process.env[`LIBTMUX_DOCS_CHECKOUT_${port.toUpperCase()}`] ?? CHECKOUTS[port]).replace(/^~/, homedir()) const SENDS_NOTHING = [ @@ -188,5 +208,68 @@ for (const [name, port, symbol, command, lines, message] of SENDS_NOTHING) { check(`an entry cited at ${name} fails`, seededRun.code !== 0 && message.test(seededRun.out), seededRun.out) } +// The reviewed rules are held to the pinned source as the usage data is. Each case changes one rule in a copy of them and expects the +// check of that port to name it, and the committed rules in the copy's place to pass. +function ruleFixture() { + const dir = mkdtempSync(join(tmpdir(), 'gen-tmux-rules-')) + cpSync(rules, dir, { recursive: true }) + dirs.push(dir) + return dir +} +function editRules(dir, name, change) { + const file = join(dir, name) + const document = JSON.parse(readFileSync(file, 'utf8')) + change(document) + writeFileSync(file, `${JSON.stringify(document, null, 2)}\n`) +} +const dispatcher = (document, port, name) => document.dispatchers.find((rule) => rule.port === port && rule.name === name) +const BAD_RULES = [ + ['a dispatcher whose chain was removed', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'chain').evidence[0].reaches }, + /rs: dispatcher chain at crates\/libtmux\/src\/server.rs:753: reaches no transport, and cites no chain to one/], + ['a dispatcher that shares its name with a function that sends nothing', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'list').evidence.push({ at: 'crates/libtmux/src/plan/wire.rs:149', has: ['list'] }) }, + /rs: dispatcher list at crates\/libtmux\/src\/plan\/wire.rs:149: reaches no transport, and cites no chain to one/], + ['a chain hop whose line does not hold its text', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'send').evidence[0].reaches[0].has = ['.sendx('] }, + /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:586 does not contain "\.sendx\("/], + ['a chain that skips the function between two hops', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'dispatch').evidence[0].reaches.splice(1, 1) }, + /rs: dispatcher dispatch at crates\/libtmux\/src\/plan\/run.rs:443: hop crates\/libtmux\/src\/plan\/run.rs:461 leads to cmd, but crates\/libtmux\/src\/internal\/control_executor.rs:37 is not a line of it/], + ['a label that names a parameter nothing takes', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'mutate').labels[0].name = 'nope' }, + /rs: dispatcher mutate: no cited definition takes a parameter named nope/], + ['a label dropped, so a literal that only reports a failure is read as the command', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'mutate').labels }, + /rs: pane.Pane.send_line send-keys: .* is not a call of Pane.send_line/], + ['a claim marked conditional that does not say when', 'rs', 'claims.json', (document) => { + const claim = document.claims.find((candidate) => candidate.port === 'rs' && candidate.when) + delete claim.when + claim.conditional = true + }, /rs: plan.Plan.run set-option null: is marked conditional, so it must say when/], + ['a condition that qualifies no entry', 'fsharp', 'conditions.json', (document) => { document.conditions.find((item) => item.port === 'fsharp').command = 'no-such-command' }, + /fsharp: LibTmux.FSharp.Server.newSession no-such-command session: condition qualifies no entry/], + ['a conditional guard that does not say when', 'go', 'guards.json', (document) => { delete document.guards.find((guard) => guard.port === 'go' && guard.name === 'guardCommand').when }, + /go: guard guardCommand: is conditional, so it must say when/], + ['a guard whose function builds no if-shell', 'java', 'guards.json', (document) => { + document.guards.push({ port: 'java', name: 'run', owner: 'Server', purpose: 'refuses a stale target', evidence: [{ at: 'libtmux/src/main/java/io/github/libtmux/Server.java:1221', has: ['run'] }] }) + }, /java: guard Server.run: no function of that name builds an if-shell/], + ['a guard dropped, so the if-shell it wraps is recorded in place of the command', 'java', 'guards.json', (document) => { document.guards = document.guards.filter((guard) => !(guard.port === 'java' && guard.name === 'killOwnedServer')) }, + /java: io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close kill-server: .* is not a call that sends kill-server/], +] +const ruled = new Set() +for (const [name, port, file, change, message] of BAD_RULES) { + if (!existsSync(join(checkoutOf(port), '.git'))) { console.log(`skip ${name}: no checkout of ${port}`); continue } + if (!ruled.has(port)) { + ruled.add(port) + const control = runRules(fixture(), ruleFixture(), port) + check(`the committed ${port} rules, read from a copy, pass`, control.code === 0, control.out) + } + const seeded = ruleFixture() + editRules(seeded, file, change) + const seededRun = runRules(fixture(), seeded, port) + check(`${name} fails`, seededRun.code !== 0 && message.test(seededRun.out), seededRun.out) +} + +// A qualifier is a short phrase beside a method, so the data that carries one longer than that fails without a checkout. +const wordy = fixture() +edit(wordy, 'ts', (document) => { Object.values(document.symbols).flat().find((use) => use.when).when = 'one two three four five six seven eight nine' }) +const wordyRun = run(wordy) +check('a qualifier of more than eight words fails', wordyRun.code !== 0 && /ts: .* says when in 9 words, and a qualifier is at most 8/.test(wordyRun.out), wordyRun.out) + for (const dir of dirs) rmSync(dir, { recursive: true, force: true }) if (failures) process.exit(1) diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs index e7cce32fb..7aff5e74d 100644 --- a/scripts/lib/tmux-usage-derive.mjs +++ b/scripts/lib/tmux-usage-derive.mjs @@ -256,6 +256,8 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour continue } if (!claim.evidence?.length) { fail('cites no evidence'); continue } + const wrong = conditionProblem(claim.when, claim.conditional) + if (wrong) { fail(wrong); continue } let anchored = false let broken = false for (const item of claim.evidence) { @@ -287,7 +289,7 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour if (!broken) { entries.push({ symbol: claim.symbol, command: claim.command, scope: claim.scope, evidence: claim.evidence.map((item) => item.at), - hops: claim.evidence.length - 1, reviewed: true, ...(claim.forwardable ? { forwardable: true } : {}), + hops: claim.evidence.length - 1, reviewed: true, ...(claim.forwardable ? { forwardable: true } : {}), ...(claim.when ? { when: claim.when } : {}), ...(core ? { via: { port: claim.via.port, symbol: claim.via.symbol, revision: core.revision, evidence: core.evidence, ...(core.reviewed ? { reviewed: true } : {}) } } : {}), }) } @@ -295,6 +297,50 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour return { entries, problems } } +/** The longest qualifier a table can carry beside a method: it is one line, and a sentence belongs on a page. */ +export const WHEN_WORDS = 8 + +/** + * What is wrong with the condition of a send, or nothing. A send that only some calls make says when in a few words, + * and a send marked conditional that says nothing would be listed as if every call made it. + */ +export function conditionProblem(when, conditional) { + if (when === undefined) return conditional ? 'is marked conditional, so it must say when' : undefined + if (typeof when !== 'string' || !when.trim()) return 'says when with no words' + if (/\n/.test(when)) return 'says when on more than one line' + const words = when.trim().split(/\s+/).length + return words > WHEN_WORDS ? `says when in ${words} words, and a qualifier is at most ${WHEN_WORDS}: ${when}` : undefined +} + +/** + * A scanned send that only some calls make, such as the one a method makes under a condition on its argument, says when. + * The condition is not a claim about the send, which the scan found and the audit reads back; it qualifies it, and cites the + * lines that show the condition. One that qualifies no entry has gone stale and fails. + * + * @param {{ conditions: { port: string, symbol: string, command: string, scope: string | null, when: string, evidence: { at: string, has?: string[] }[] }[], found: Map, readSource: (path: string) => string | undefined, lenient?: boolean }} input + * `lenient` leaves a condition whose entry is not there yet for a later call, which is how an entry that a method inherits from another is qualified like it. + */ +export function applyConditions({ conditions, found, readSource, lenient = false }) { + const problems = [] + for (const item of conditions) { + const label = `${item.port}: ${item.symbol} ${item.command} ${item.scope}: condition` + const wrong = conditionProblem(item.when, true) + if (wrong) { problems.push(`${label} ${wrong}`); continue } + if (!item.evidence?.length) { problems.push(`${label} cites no lines`); continue } + for (const line of item.evidence) { + const cut = line.at.lastIndexOf(':') + const text = readSource(line.at.slice(0, cut))?.split('\n')[Number(line.at.slice(cut + 1)) - 1] + if (text === undefined) { problems.push(`${label} ${line.at} is not a line of the pinned source`); continue } + for (const needle of line.has ?? []) if (!text.includes(needle)) problems.push(`${label} ${line.at} does not contain ${JSON.stringify(needle)}`) + } + const entry = found.get(`${item.symbol}\0${item.command}\0${item.scope}`) + if (!entry) { if (!lenient) problems.push(`${label} qualifies no entry`) } + else if (entry.when && entry.when !== item.when) problems.push(`${label} differs from the one its claim says: ${entry.when}`) + else entry.when = item.when + } + return problems +} + /** * Public symbols that carry a command's name and send nothing: a plan or a chain records the command * for a later run, a request turns itself into a command value, a function returns the line to type. diff --git a/scripts/lib/tmux-usage-dispatch.mjs b/scripts/lib/tmux-usage-dispatch.mjs new file mode 100644 index 000000000..634131ee2 --- /dev/null +++ b/scripts/lib/tmux-usage-dispatch.mjs @@ -0,0 +1,177 @@ +/** + * Checks the calls that `dispatchers.json` says send a tmux command. + * + * A dispatching call is a name, and a scan reads every call of that name as a send of the command it is handed. That is + * only true if the function behind the name really sends, so each definition a rule cites must reach a transport: the + * point where the library starts the tmux process or writes the command to a control client. The rule cites the chain, + * one line per hop, and the chain is read back against the scan of the pinned source. + * + * - The definition is a line of a function with the rule's name. + * - Each hop is a line of the function the hop before it leads to, and holds the text it cites. It calls the next + * function (`calls`), which the scan has read; or it leads to it in a way the scan does not follow (`leads`): a bare + * method name in Ruby, or a command put on a queue that another function writes from. + * - The last line holds the transport: a process start or a write to the control client's input. + * - A definition whose own line starts the process needs no chain. + */ + +/** The line of a port's source that starts a tmux process or writes to a control client, and the files that may hold it. */ +export const TRANSPORT = { + py: { pattern: /subprocess\.(?:Popen|check_call)\(/, files: /\.py$/ }, + ruby: { pattern: /Process\.spawn\(@env|@input\.write_nonblock\(request\.wire/, files: /(?:process|control)\.rb$/ }, + lua: { pattern: /pcall\(uv\.spawn|uv\.spawn,|transport:write\(/, files: /(?:process|control_io)\.lua$/ }, + julia: { pattern: /^\s*run\(|write\(connection\.input\.in/, files: /(?:process|control|lifecycle)\.jl$/ }, + ts: { pattern: /\bspawn\(|stdin\.write\(/, files: /(?:node_spawn_transport|control\/child|control\/connection)\.ts$/ }, + rs: { pattern: /\.spawn\(\)|\.write_all\(/, files: /(?:subprocess|process|protocol)\.rs$/ }, + go: { pattern: /exec\.Command(?:Context)?\(|io\.WriteString\(c\.stdin/, files: /(?:runner|control_startup|control_request)\.go$/ }, + java: { pattern: /starter\.start\(|output\.write\(request\.line\)/, files: /(?:ControlWriter|ProcessTransport)\.java$/ }, + csharp: { pattern: /\bprocess\.Start\(\)|StandardInput\.WriteLineAsync/, files: /(?:TmuxProcessTransport|SystemControlModeProcess)\.cs$/ }, + cxx: { pattern: /::posix_spawnp?\(|::write\(/, files: /(?:posix_child|connection|process)\.cpp$/ }, + swift: { pattern: /Subprocess\.run\(|Glibc\.write\(/, files: /Sources\/LibTmux\/(?:Transport|ControlMode|NonblockingLineWriter)\.swift$/ }, +} + +const CONSTRUCTOR = /^(?:__init__|constructor|init|new|initialize)$/ + +/** `Server.cmd`, `Server#cmd` and `cmd(...)` all name `cmd`. */ +export const bareName = (name) => name.replace(/\(.*$/s, '').replace(/`/g, '').split(/[.:#\\]+/).filter(Boolean).at(-1) ?? name + +const split = (cite) => { + const colon = cite.lastIndexOf(':') + return { file: cite.slice(0, colon), line: Number(cite.slice(colon + 1)) } +} + +/** The innermost function of a file that holds a line. */ +const functionAt = (functions, file, line) => functions + .filter((fn) => fn.file === file && fn.start <= line && line <= fn.end) + .sort((a, b) => b.start - a.start)[0] + +/** Whether a function is the one a call or a hand-off names: a function of that name, or the constructor of a type of that name. */ +const isNamed = (fn, name) => fn.name === name || (fn.owner === name && CONSTRUCTOR.test(fn.name)) + +/** + * @param {{ port: string, rule: { name: string }, item: { at: string, has?: string[], reaches?: { at: string, has?: string[], calls?: string, leads?: string }[] }, + * functions: { file: string, name: string, owner?: string, start: number, end: number, calls: Map }[], + * readSource: (path: string) => string | undefined }} input + * @returns {string[]} + */ +export function chainProblems({ port, rule, item, functions, readSource }) { + const label = `${port}: dispatcher ${rule.name} at ${item.at}` + const transport = TRANSPORT[port] + const textAt = (cite) => { + const { file, line } = split(cite) + return readSource(file)?.split('\n')[line - 1] + } + const reachesTransport = (cite) => { + const { file } = split(cite) + return transport && transport.files.test(file) && transport.pattern.test(textAt(cite) ?? '') + } + // A definition that starts the process itself, `subprocess.check_call(`, needs no chain. + if (reachesTransport(item.at)) return [] + const chain = item.reaches ?? [] + if (!transport) return [`${label}: ${port} has no transport to reach`] + if (!chain.length) return [`${label}: reaches no transport, and cites no chain to one`] + + const problems = [] + const head = split(item.at) + let current = functionAt(functions, head.file, head.line) + if (!current || current.name !== bareName(rule.name)) return [`${label}: is not a line of a function named ${bareName(rule.name)}`] + for (const [index, hop] of chain.entries()) { + const at = split(hop.at) + const where = `${label}: hop ${hop.at}` + const text = textAt(hop.at) + if (text === undefined) { problems.push(`${where} is not a line of the pinned source`); break } + for (const needle of hop.has ?? []) if (!text.includes(needle)) problems.push(`${where} does not contain ${JSON.stringify(needle)}`) + if (current.file !== at.file || current.start > at.line || at.line > current.end) { + problems.push(`${where} is not in ${current.owner ? `${current.owner}.` : ''}${current.name}, the function the chain has reached`) + break + } + if (index === chain.length - 1) { + if (!reachesTransport(hop.at)) problems.push(`${where} is not a transport: no process start or write to a control client`) + break + } + const target = hop.calls ?? hop.leads + if (!target) { problems.push(`${where} names neither the function it calls nor the one it leads to`); break } + if (hop.calls && !current.calls.has(hop.calls)) problems.push(`${where} is in a function that does not call ${hop.calls}`) + const next = split(chain[index + 1].at) + const reached = functionAt(functions, next.file, next.line) + if (!reached || !isNamed(reached, target)) { + problems.push(`${where} leads to ${target}, but ${chain[index + 1].at} is not a line of it`) + break + } + current = reached + } + return problems +} + +/** + * The dispatching and the building calls of a port: each names the code that defines it, the definition must still be + * there, and a dispatching call must reach a transport through a cited chain. A call is recorded as a send only where it + * reaches one of these. Without the function table of the scan, which a document check does not have, only the cited + * lines are read back. + * + * @param {{ port: string, dispatchers: { name: string, why?: string, kind?: string, evidence?: { at: string, has?: string[], reaches?: unknown[] }[], + * labels?: { at: number, name: string }[] }[], readSource: (path: string) => string | undefined, + * functions?: { file: string, name: string, owner?: string, start: number, end: number, calls: Map }[] }} input + * @returns {string[]} + */ +export function dispatcherProblems({ port, dispatchers, readSource, functions }) { + const problems = [] + for (const rule of dispatchers) { + const label = `${port}: dispatcher ${rule.name}` + if (!rule.name || !rule.why?.trim()) { problems.push(`${label}: names no call or gives no reason`); continue } + if (!rule.evidence?.length) { problems.push(`${label}: cites no definition`); continue } + let defined = false + for (const item of rule.evidence) { + const cut = item.at.lastIndexOf(':') + const line = readSource(item.at.slice(0, cut))?.split('\n')[Number(item.at.slice(cut + 1)) - 1] + if (line === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!line.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + if ((item.has ?? []).some((needle) => needle.includes(rule.name))) defined = true + if (rule.kind !== 'builder' && functions) problems.push(...chainProblems({ port, rule, item, functions, readSource })) + } + if (!defined) problems.push(`${label}: no cited line shows ${rule.name} defined`) + // An argument that only names the command for a failure message is not the command the call sends. + for (const named of rule.labels ?? []) { + if (!Number.isInteger(named.at) || named.at < 0 || !named.name) { problems.push(`${label}: a label names no argument position or parameter`); continue } + const takes = rule.evidence.some((item) => { + const { file, line } = split(item.at) + const text = (readSource(file) ?? '').split('\n').slice(line - 1, line + 9).join('\n').replace(/\{[\s\S]*$/, '') + return new RegExp(`\\b${named.name}\\b`).test(text) + }) + if (!takes) problems.push(`${label}: no cited definition takes a parameter named ${named.name}`) + } + } + return problems +} + +/** + * The functions that wrap a command in `if-shell` to make tmux refuse a stale or foreign target. Such a guard is + * transparent: the command inside it is the one the library sends, and the `if-shell` is the means, so a scan records + * the command and not the guard. A conditional whose purpose is the condition is not a guard, and is recorded as + * `if-shell` with the command inside it as a conditional send. + * + * Each guard names the function that builds the wrapper, cites the lines that show it does and where it sits, and says + * what it refuses. A guard that applies only on some paths says when. + */ +export function guardProblems({ port, guards, readSource, functions }) { + const problems = [] + for (const guard of guards) { + const label = `${port}: guard ${guard.owner ? `${guard.owner}.` : ''}${guard.name}` + if (!guard.name || !guard.purpose?.trim()) { problems.push(`${label}: names no function or states no purpose`); continue } + if (!guard.evidence?.length) { problems.push(`${label}: cites no lines`); continue } + if (guard.conditional && !guard.when?.trim()) problems.push(`${label}: is conditional, so it must say when`) + const defined = functions.filter((fn) => fn.name === guard.name && (!guard.owner || fn.owner === guard.owner)) + if (!defined.length) { problems.push(`${label}: no function of that name in the pinned source`); continue } + const builds = defined.filter((fn) => (readSource(fn.file) ?? '').split('\n').slice(fn.start - 1, fn.end).some((text) => text.includes('if-shell'))) + if (!builds.length) problems.push(`${label}: no function of that name builds an if-shell`) + let shown = false + for (const item of guard.evidence) { + const { file, line } = split(item.at) + const text = readSource(file)?.split('\n')[line - 1] + if (text === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!text.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + if (text.includes('if-shell') && builds.some((fn) => fn.file === file && fn.start <= line && line <= fn.end)) shown = true + } + if (!shown && builds.length) problems.push(`${label}: no cited line is the if-shell the guard builds`) + } + return problems +} diff --git a/scripts/lib/tmux-usage-forward.mjs b/scripts/lib/tmux-usage-forward.mjs index 7f0cef8f2..c511785e8 100644 --- a/scripts/lib/tmux-usage-forward.mjs +++ b/scripts/lib/tmux-usage-forward.mjs @@ -22,11 +22,14 @@ import { bareName, definitionsOf } from './tmux-usage-derive.mjs' * symbols: WrapperSymbol[], * core: { entries: CoreEntry[], symbols: Map, revision: string }, * generated?: { under: string[], evidence: string[], forwards: (entry: CoreEntry, symbol?: { name: string, file: string, line: number }) => string | undefined }, + * delegate?: boolean, * }} input - * `core.revision` is the revision the core lines were read at, and every entry says so in its `via`. + * `core.revision` is the revision the core lines were read at, and every entry says so in its `via`. With `delegate`, the + * wrapper and the core are one library: a method is credited with what a public method of another type sends, when it + * calls it on a handle named for that type (`p.server.SaveBuffer(...)`), and not for the calls it makes on its own type. * @returns {{ entries: object[], silent: string[] }} `silent` names the wrapper symbols that call no core sender. */ -export function forwardUsage({ parent, functions, types, symbols, core, generated }) { +export function forwardUsage({ parent, functions, types, symbols, core, generated, delegate = false }) { const definitions = definitionsOf(functions, symbols) const owned = new Map() for (const [fn, list] of definitions) for (const symbol of list) owned.set(symbol, [...(owned.get(symbol) ?? []), fn]) @@ -40,7 +43,7 @@ export function forwardUsage({ parent, functions, types, symbols, core, generate const add = (symbol, entry, evidence) => { const key = `${symbol.id}\0${entry.command}\0${entry.scope}` const result = { - symbol: symbol.id, command: entry.command, scope: entry.scope, evidence, hops: 1, + symbol: symbol.id, command: entry.command, scope: entry.scope, evidence, hops: 1, ...(entry.when ? { when: entry.when } : {}), via: { port: parent, symbol: entry.symbol, revision: core.revision, evidence: entry.evidence, ...(entry.reviewed ? { reviewed: true } : {}) }, } if (!entries.has(key)) entries.set(key, result) @@ -74,7 +77,10 @@ export function forwardUsage({ parent, functions, types, symbols, core, generate // A call on a handle named for a type is a call on that type: `session.GetPanesAsync()` is Session's, whatever // type the wrapper method belongs to. Only a call with no named handle, or on the wrapper's own `this`, is its owner's. const own = [...receivers].every((receiver) => ['this', 'self', 'base'].includes(receiver)) - if (!(receivers.has(coreOwner) || (own && wrapperOwner === coreOwner))) continue + if (delegate) { + // Only a call on the way to the end of the method, not one under a condition, in a loop or in a cleanup that runs on failure. + if (!receivers.has(coreOwner) || wrapperOwner === coreOwner || entry.symbol === symbol.id || fn.callDepths?.get(name) !== 0) continue + } else if (!(receivers.has(coreOwner) || (own && wrapperOwner === coreOwner))) continue add(symbol, entry, [`${fn.file}:${line}`]) } } diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index 30f07b8de..4ef37e477 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -255,9 +255,10 @@ const RUNS_COMMANDS = new Set(['if-shell', 'run-shell', 'set-hook', 'bind-key', const ELEMENTS = /^(?:argument|value_argument|literal_element|element|array_element|keyed_element|pair)$/ /** Whether a literal is a later argument of a group that opens with a command that runs commands. */ -function nestedInCommand(node, STR, commandOf) { +function nestedInCommand(node, STR, commandOf, skip = () => false) { for (let child = node, cursor = node.parent; cursor && WRAPPERS.has(cursor.type); child = cursor, cursor = cursor.parent) { const first = cursor.descendantsOfType([...STR]).find((literal) => { + if (skip(literal)) return false let at = literal.parent while (at && at.id !== cursor.id && ELEMENTS.test(at.type)) at = at.parent return at?.id === cursor.id @@ -385,6 +386,14 @@ function receiverNames(grammar, call) { const PASSING = new Set(['add', 'Add', 'push', 'push_back', 'emplace_back', 'append', 'insert', 'extend', 'arg', 'args', 'apply', 'then', 'concat', 'tinsert', 'new', 'of', 'List', 'Seq', 'Array', 'Vec', 'asList', 'listOf', 'mutableListOf', 'arrayOf', 'ArrayList', 'LinkedList', 'vec', 'copyOf', 'make', 'string', 'str', 'String', 'Some', 'Ok', 'static_cast', 'move', 'forward', 'unique_ptr', 'make_unique']) +/** Which argument of a call holds a node, counting from zero, or -1 when it is not directly one of them. */ +function argumentIndex(call, node) { + const args = call.childForFieldName('arguments') ?? call.namedChildren.find((part) => /argument/.test(part.type)) + if (!args) return -1 + const parts = args.namedChildren.filter((part) => !/comment/.test(part.type)) + return parts.findIndex((part) => holds(part, node)) +} + /** The call that is handed a command and is neither a way to put it in a collection nor a declared builder. */ function blockedBy(calls, builders) { return calls.find((call) => call.argument && !PASSING.has(call.name.replace(/<.*$/s, '')) && !builders.has(call.name)) @@ -397,10 +406,25 @@ const ADDS = new Set(['add', 'Add', 'push', 'push_back', 'emplace_back', 'append /** Statements that run their body only on some paths. A `try` and a `finally` run on every path. */ const BRANCHING = /(?:^|_)(?:if|elif|elsif|else|unless|switch|case|when|match|guard|conditional|ternary|for|while|until|loop|catch|except|rescue)(?:_|$)/ -/** How many branches deep a node is inside its function, so a send on the main path can be told from one on a side path. */ +/** The parts of a statement that run before it chooses a branch, so a call in one of them is not under the branch. */ +const HEADS = ['condition', 'initializer', 'init', 'cond', 'value', 'subject', 'selector', 'iterable'] + +/** A closure of one statement, which a `defer` or a callback runs exactly as written. */ +const singleStatement = (lambda) => { + const body = lambda.childForFieldName('body') ?? lambda.namedChildren.at(-1) + return Boolean(body) && body.namedChildren.length <= 1 +} + +/** + * How many branches deep a node is inside its function, so a send on the main path can be told from one on a side path. + * A closure of several statements counts as one, because it runs when it is called and not where it is written. + */ function nesting(grammar, node) { let depth = 0 - for (let cursor = node.parent; cursor && !FUNCTIONS[grammar].includes(cursor.type); cursor = cursor.parent) if (BRANCHING.test(cursor.type)) depth++ + for (let child = node, cursor = node.parent; cursor && !FUNCTIONS[grammar].includes(cursor.type); child = cursor, cursor = cursor.parent) { + if (BRANCHING.test(cursor.type) && !HEADS.some((field) => cursor.childForFieldName(field)?.id === child.id)) depth++ + else if (LAMBDAS.test(cursor.type) && !singleStatement(cursor)) depth++ + } return depth } @@ -465,14 +489,29 @@ function argumentNames(node) { * one; `dispatch: null`, with `why`, when it is a label, a comparison, a choice made by a condition or a value * that no call in the function sends. * - * @param {{ grammar: string, text: string, commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet, builders?: ReadonlySet, trace?: (site: object, context: object) => void }} input + * @param {{ grammar: string, text: string, commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet, builders?: ReadonlySet, guards?: { name: string, owner?: string }[], labels?: ReadonlyMap>, trace?: (site: object, context: object) => void }} input * `commands` are the names to find; `known` are all tmux command names, so * a list that holds a different command is not read as this command's flags. * @returns {Promise<{ functions: ScannedFunction[], types: { name?: string, start: number, end: number }[], orphans: Site[] }>} * `types` are the declarations that own functions, so a claim can anchor to * a class; `orphans` are the sites outside any named function. */ -export async function scanSource({ grammar, text, commands, known, dispatch, builders = new Set(), trace }) { +export async function scanSource({ grammar, text, commands, known, dispatch, builders: declared = new Set(), guards = [], labels = new Map(), trace }) { + // A guard wraps the command it is handed and hands it on, so it passes a command through as a builder does. + const builders = new Set([...declared, ...guards.map((guard) => guard.name)]) + const isGuard = (fn) => guards.some((guard) => guard.name === fn?.name && (!guard.owner || guard.owner === fn.owner)) + /** Whether a literal is the argument of a dispatching call that only names the command for a failure message. */ + const isLabel = (literal) => { + if (!labels.size) return false + for (let cursor = literal.parent; cursor && !FUNCTIONS[grammar].includes(cursor.type); cursor = cursor.parent) { + if (!CALL.has(cursor.type)) continue + const callee = calleeOf(grammar, cursor) + const named = callee && labels.get(callee.name) + const index = named ? argumentIndex(cursor, literal) : -1 + if (index >= 0) return named.has(index) + } + return false + } if (grammar === 'julia') return scanJulia(text, { commands, known, dispatch }) if (grammar === 'fsharp') return scanFSharp(text) const parser = await parserFor(grammar) @@ -534,6 +573,10 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui trace?.(site, context) const never = (why, builds = false) => { site.dispatch = null; site.why = why; if (builds) site.builds = true } const at = context.calls.findIndex((call) => dispatch.has(call.name)) + // An argument that only names the command for the dispatcher's failure message is not the command it sends. + if (at >= 0 && labels.has(context.calls[at].name) && labels.get(context.calls[at].name).has(argumentIndex(context.calls[at].node, node))) { + return never(`it names the command ${context.calls[at].name} reports a failure under, and is not the command it sends`) + } if (chooses(context, at, literal.command)) return never('a condition chooses it among other commands') const through = at < 0 ? context.calls : context.calls.slice(0, at) const blocked = blockedBy(through, builders) @@ -611,20 +654,33 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui } const literal = commands.size && isCommandLiteral(node) + // Inside a declared guard the command wrapped in `if-shell` is the one the library sends: the guard only makes tmux refuse a stale target. + const guarded = guards.length > 0 && isGuard(stack.at(-1)) if (literal && commands.has(literal.command) && !inSignature(node) && !onWindowsOnlyPath(node) && !namedForChecking(grammar, node, CALL) && !isComparand(node) - && !nestedInCommand(node, STR, isCommandLiteral)) { + && (guarded || !nestedInCommand(node, STR, isCommandLiteral, isLabel))) { const { flags } = flagsAround(node, literal.command) const site = { command: literal.command, line: row(node), flags: [...flags].sort().join('') } const owner = stack.at(-1) - if (dispatch) { site.depth = nesting(grammar, node); classify(site, node, owner, literal) } + if (dispatch) { + site.depth = nesting(grammar, node) + if (guarded && literal.command === 'if-shell') { site.dispatch = null; site.why = 'it is the check a guard wraps a command in'; site.guard = true } + else classify(site, node, owner, literal) + } ;(owner?.sites ?? orphans).push(site) } if (CALL.has(node.type) && stack.length) { const callee = calleeOf(grammar, node) if (callee?.name) { recordCall(stack.at(-1), callee.name, callee.receiver, row(node)) + if (dispatch) { + const callDepths = (stack.at(-1).callDepths ??= new Map()) + callDepths.set(callee.name, Math.min(callDepths.get(callee.name) ?? Infinity, nesting(grammar, node))) + } if (dispatch?.has(callee.name)) { - const commands = new Set(node.descendantsOfType([...STR]).map((part) => isCommandLiteral(part)?.command).filter(Boolean)) + const named = labels.get(callee.name) + const commands = new Set(node.descendantsOfType([...STR]) + .filter((part) => !named?.has(argumentIndex(node, part))) + .map((part) => isCommandLiteral(part)?.command).filter(Boolean)) ;(stack.at(-1).sends ??= []).push({ name: callee.name, line: calleeRow(node), start: node.startIndex, end: node.endIndex, names: argumentNames(node), commands }) } else if (dispatch) { trackCall({ name: callee.name, receiver: callee.receiver, line: calleeRow(node) }, node, stack.at(-1)) @@ -689,6 +745,6 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui } /** - * @typedef {{ name: string, owner?: string, start: number, nameLine: number, end: number, kind: string, sites: Site[], calls: Map, receivers: Map>, namespace?: string }} ScannedFunction + * @typedef {{ name: string, owner?: string, start: number, nameLine: number, end: number, kind: string, sites: Site[], calls: Map, receivers: Map>, callDepths?: Map, namespace?: string }} ScannedFunction * @typedef {{ command: string, line: number, flags: string, dispatch?: { line: number, name: string } | null, why?: string, builds?: boolean, depth?: number }} Site */ diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 35d365e41..96f571448 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -112,6 +112,12 @@ "command": "capture-pane", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ] + }, { "at": "crates/libtmux/src/pane.rs:1618", "has": [ @@ -130,12 +136,6 @@ "options.lower(" ] }, - { - "at": "crates/libtmux/src/pane/observe.rs:171", - "has": [ - "self.core.execute(command)" - ] - }, { "at": "crates/libtmux/src/pane/observe.rs:121", "has": [ @@ -250,15 +250,15 @@ "scope": null, "evidence": [ { - "at": "crates/libtmux/src/internal/wait_for.rs:363", + "at": "crates/libtmux/src/internal/wait_for.rs:248", "has": [ - "wait-for" + "channel_command(" ] }, { - "at": "crates/libtmux/src/internal/wait_for.rs:248", + "at": "crates/libtmux/src/internal/wait_for.rs:363", "has": [ - "channel_command(" + "wait-for" ] }, { @@ -1176,6 +1176,13 @@ "command": "capture-pane", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ], + "in": "pane.Pane.capture_with" + }, { "at": "crates/libtmux/src/pane.rs:1618", "has": [ @@ -1193,13 +1200,6 @@ "has": [ "options.lower(" ] - }, - { - "at": "crates/libtmux/src/pane/observe.rs:171", - "has": [ - "self.core.execute(command)" - ], - "in": "pane.Pane.capture_with" } ] }, @@ -1209,6 +1209,12 @@ "command": "new-session", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, { "at": "crates/libtmux/src/server.rs:2286", "has": [ @@ -1237,6 +1243,12 @@ "command": "new-window", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, { "at": "crates/libtmux/src/session.rs:1139", "has": [ @@ -1265,6 +1277,12 @@ "command": "split-window", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, { "at": "crates/libtmux/src/window.rs:1948", "has": [ @@ -1293,6 +1311,12 @@ "command": "split-window", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, { "at": "crates/libtmux/src/window.rs:1948", "has": [ @@ -1321,6 +1345,12 @@ "command": "capture-pane", "scope": null, "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ] + }, { "at": "crates/libtmux/src/pane.rs:1618", "has": [ @@ -1339,12 +1369,6 @@ "options.lower(" ] }, - { - "at": "crates/libtmux/src/pane/observe.rs:171", - "has": [ - "self.core.execute(command)" - ] - }, { "at": "crates/libtmux/src/pane/observe.rs:237", "has": [ @@ -1945,7 +1969,7 @@ "symbol": "mcp.server.main", "command": "start-server", "scope": null, - "when": "the server is launched without an explicit selection, a minimal launch", + "when": "a minimal launch, no explicit selection", "evidence": [ { "at": "packages/mcp/src/startup.ts:88", @@ -1967,7 +1991,7 @@ "symbol": "mcp.server.main", "command": "show-options", "scope": null, - "when": "the server is launched without an explicit selection, a minimal launch", + "when": "a minimal launch, no explicit selection", "evidence": [ { "at": "packages/mcp/src/startup.ts:89", @@ -1989,7 +2013,7 @@ "symbol": "mcp.server.main", "command": "display-message", "scope": null, - "when": "the server is launched without an explicit selection, a minimal launch", + "when": "a minimal launch, no explicit selection", "evidence": [ { "at": "packages/mcp/src/startup.ts:92", @@ -2879,7 +2903,8 @@ ], "in": "tmux.Server.NewSession" } - ] + ], + "forwardable": true }, { "port": "go", @@ -7517,7 +7542,8 @@ ], "in": "libtmux.Session:navigate_window" } - ] + ], + "when": "the direction is \"next\"" }, { "port": "lua", @@ -7538,7 +7564,8 @@ ], "in": "libtmux.Session:navigate_window" } - ] + ], + "when": "the direction is \"previous\"" }, { "port": "lua", @@ -7559,7 +7586,8 @@ ], "in": "libtmux.Session:navigate_window" } - ] + ], + "when": "the direction is \"last\"" }, { "port": "lua", @@ -9760,7 +9788,7 @@ "symbol": "Server.link(_:into:)", "command": "link-window", "scope": null, - "when": "moving is false, which link passes", + "when": "the window is linked, not moved", "evidence": [ { "at": "Sources/LibTmux/WindowTransfers.swift:75", @@ -9794,7 +9822,7 @@ "symbol": "Server.move(_:to:at:)", "command": "move-window", "scope": null, - "when": "moving is true, which move passes", + "when": "the window is moved, not linked", "evidence": [ { "at": "Sources/LibTmux/WindowTransfers.swift:75", @@ -9828,7 +9856,7 @@ "symbol": "Server.breakPane(_:from:named:)", "command": "break-pane", "scope": null, - "when": "named is given", + "when": "a name is given", "evidence": [ { "at": "Sources/LibTmux/Navigation.swift:127", @@ -9850,7 +9878,7 @@ "symbol": "Server.breakPane(_:from:named:)", "command": "if-shell", "scope": null, - "when": "named is nil, the default: break-pane runs inside the if-shell", + "when": "no name is given", "evidence": [ { "at": "Sources/LibTmux/Navigation.swift:136", @@ -9991,7 +10019,8 @@ ], "in": "tmux.Server.Snapshot" } - ] + ], + "forwardable": true }, { "port": "go", @@ -10013,7 +10042,8 @@ ], "in": "tmux.Server.Snapshot" } - ] + ], + "forwardable": true }, { "port": "go", @@ -10035,7 +10065,8 @@ ], "in": "tmux.Server.Snapshot" } - ] + ], + "forwardable": true }, { "port": "go", @@ -10056,7 +10087,8 @@ ], "in": "tmux.Server.Snapshot" } - ] + ], + "forwardable": true }, { "port": "go", @@ -10096,7 +10128,7 @@ "symbol": "tmuxtest.NewSession", "command": "kill-session", "scope": null, - "when": "the test ends: the helper registers the kill in t.Cleanup and does not send it when it returns", + "when": "the test ends, in t.Cleanup", "evidence": [ { "at": "tmux/tmuxtest/resources.go:135", @@ -10338,7 +10370,7 @@ "symbol": "libtmux.Server.new_session", "command": "kill-session", "scope": null, - "when": "kill_session is true and a session of that name already exists", + "when": "kill_session is true, session exists", "evidence": [ { "at": "src/libtmux/server.py:2312", @@ -10361,7 +10393,7 @@ "symbol": "tmux.Server.NewSession", "command": "kill-session", "scope": null, - "when": "the request sets KillExisting and a session of that name exists", + "when": "KillExisting is set, session exists", "evidence": [ { "at": "tmux/session_lifecycle.go:223", @@ -10383,7 +10415,7 @@ "symbol": "tmux.Server.HasSession", "command": "has-session", "scope": null, - "when": "the request sets Pattern; otherwise the lookup lists sessions", + "when": "the request sets Pattern", "evidence": [ { "at": "tmux/session_lifecycle.go:141", @@ -10405,7 +10437,7 @@ "symbol": "session.Session.selectWindow", "command": "last-window", "scope": null, - "when": "the target is the string \"last\"", + "when": "the target is \"last\"", "evidence": [ { "at": "packages/libtmux/src/_internal/operations/session_nav.ts:34", @@ -10428,7 +10460,7 @@ "symbol": "session.Session.selectWindow", "command": "next-window", "scope": null, - "when": "the target is the string \"next\"", + "when": "the target is \"next\"", "evidence": [ { "at": "packages/libtmux/src/_internal/operations/session_nav.ts:35", @@ -10451,7 +10483,7 @@ "symbol": "session.Session.selectWindow", "command": "previous-window", "scope": null, - "when": "the target is the string \"previous\"", + "when": "the target is \"previous\"", "evidence": [ { "at": "packages/libtmux/src/_internal/operations/session_nav.ts:37", @@ -10479,7 +10511,7 @@ "symbol": "server.Server.validateLayouts", "command": "display-message", "scope": null, - "when": "a layout parses differently on some tmux releases and no daemon version is bound yet", + "when": "layouts that depend on the tmux version", "evidence": [ { "at": "packages/libtmux/src/_internal/operations/layout.ts:62", @@ -10507,7 +10539,7 @@ "symbol": "libtmux::Server::validate_layouts", "command": "display-message", "scope": null, - "when": "a layout string needs the running tmux version to be judged (layout_needs_version)", + "when": "layouts that depend on the tmux version", "evidence": [ { "at": "src/layout.cpp:390", @@ -10529,6 +10561,1411 @@ "in": "libtmux::Server::validate_layouts" } ] + }, + { + "port": "go", + "symbol": "tmuxtest.NewSession", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "tmux/session_lifecycle.go:234", + "has": [ + "effective.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/session_lifecycle.go:230", + "has": [ + "newSessionArguments(request)" + ] + }, + { + "at": "tmux/tmuxtest/resources.go:49", + "has": [ + "server.NewSession(ctx, request)" + ], + "in": "tmuxtest.NewSession" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.OpenControl", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "tmux/control_startup.go:122", + "has": [ + "exec.Command(state.config.executable, arguments...)" + ] + }, + { + "at": "tmux/control_startup.go:91", + "has": [ + "s.startControl(" + ] + }, + { + "at": "tmux/control_startup.go:80", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "tmux/identity.go:134", + "has": [ + "s.daemon == nil || s.boundToInstance()" + ] + }, + { + "at": "tmux/control_startup.go:42", + "has": [ + "s.openControl(" + ], + "in": "tmux.Server.OpenControl" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.OpenControl", + "command": "if-shell", + "scope": null, + "when": "a Server carrying a daemon identity", + "evidence": [ + { + "at": "tmux/identity.go:151", + "has": [ + "\"if-shell\", \"-F\", condition, thenCommand, guard.failure" + ] + }, + { + "at": "tmux/identity.go:134", + "has": [ + "s.daemon == nil || s.boundToInstance()" + ] + }, + { + "at": "tmux/control_startup.go:86", + "has": [ + "s.guardCommand(attach, false)" + ] + }, + { + "at": "tmux/control_startup.go:122", + "has": [ + "exec.Command(state.config.executable, arguments...)" + ] + }, + { + "at": "tmux/control_startup.go:42", + "has": [ + "s.openControl(" + ], + "in": "tmux.Server.OpenControl" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.OpenNotifications", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "tmux/control_startup.go:122", + "has": [ + "exec.Command(state.config.executable, arguments...)" + ] + }, + { + "at": "tmux/control_startup.go:91", + "has": [ + "s.startControl(" + ] + }, + { + "at": "tmux/control_startup.go:80", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "tmux/identity.go:134", + "has": [ + "s.daemon == nil || s.boundToInstance()" + ] + }, + { + "at": "tmux/notification_stream.go:67", + "has": [ + "s.openControl(" + ], + "in": "tmux.Server.OpenNotifications" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.OpenNotifications", + "command": "if-shell", + "scope": null, + "when": "a Server carrying a daemon identity", + "evidence": [ + { + "at": "tmux/identity.go:151", + "has": [ + "\"if-shell\", \"-F\", condition, thenCommand, guard.failure" + ] + }, + { + "at": "tmux/identity.go:134", + "has": [ + "s.daemon == nil || s.boundToInstance()" + ] + }, + { + "at": "tmux/control_startup.go:86", + "has": [ + "s.guardCommand(attach, false)" + ] + }, + { + "at": "tmux/control_startup.go:122", + "has": [ + "exec.Command(state.config.executable, arguments...)" + ] + }, + { + "at": "tmux/notification_stream.go:67", + "has": [ + "s.openControl(" + ], + "in": "tmux.Server.OpenNotifications" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.open_control", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "src/control.jl:642", + "has": [ + "run(" + ] + }, + { + "at": "src/control.jl:628", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "src/control.jl:1095", + "has": [ + "_open_control_lane(" + ], + "in": "LibTmux.open_control" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Connection::set_pane_output", + "command": "refresh-client", + "scope": null, + "evidence": [ + { + "at": "src/connection.cpp:1256", + "has": [ + "execute(std::move(request), deadline)" + ], + "in": "libtmux::Connection::set_pane_output" + }, + { + "at": "src/connection.cpp:1249", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SplitAsync", + "command": "split-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Topology.cs:576", + "has": [ + "_commandDispatcher.ExecuteAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Topology.cs:105", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "src/LibTmux/Pane.Topology.cs:232", + "has": [ + "CreatePaneFromAsync(arguments, \"split-window\"" + ], + "in": "LibTmux.Pane.SplitAsync" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.killIfWindowUnshared", + "command": "kill-pane", + "scope": null, + "when": "the window has one placement", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:86", + "has": [ + "planKillPaneIfUnshared(target).argv" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:195", + "has": [ + "[\"kill-pane\", \"-t\", target]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:192", + "has": [ + "conditionalTargetMutation(" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:255", + "has": [ + "killPaneIfWindowUnshared(" + ], + "in": "pane.Pane.killIfWindowUnshared" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.zoom", + "command": "resize-pane", + "scope": null, + "when": "the window is not zoomed", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:267", + "has": [ + "runCommands(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:276", + "has": [ + "quoteCommand([\"resize-pane\", \"-Z\", ...at])" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:386", + "has": [ + "zoomPane(" + ], + "in": "pane.Pane.zoom" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.unzoom", + "command": "resize-pane", + "scope": null, + "when": "the window is zoomed", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:295", + "has": [ + "runCommand(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:297", + "has": [ + "quoteCommand([\"resize-pane\", \"-Z\", ...at])" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:400", + "has": [ + "unzoomTarget(" + ], + "in": "pane.Pane.unzoom" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.unzoom", + "command": "resize-pane", + "scope": null, + "when": "the window is zoomed", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:295", + "has": [ + "runCommand(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:297", + "has": [ + "quoteCommand([\"resize-pane\", \"-Z\", ...at])" + ] + }, + { + "at": "packages/libtmux/src/window.ts:387", + "has": [ + "unzoomTarget(" + ], + "in": "window.Window.unzoom" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "set-option", + "scope": null, + "when": "the plan has a set-option step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:123", + "has": [ + "Command::new(\"set-option\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "set-option", + "scope": null, + "when": "the plan has a set-option step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:123", + "has": [ + "Command::new(\"set-option\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "set-environment", + "scope": null, + "when": "the plan has a set-environment step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:210", + "has": [ + "Command::new(\"set-environment\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "set-environment", + "scope": null, + "when": "the plan has a set-environment step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:210", + "has": [ + "Command::new(\"set-environment\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "split-window", + "scope": null, + "when": "the plan has a split-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:257", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "split-window", + "scope": null, + "when": "the plan has a split-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:257", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "send-keys", + "scope": null, + "when": "the plan has a send-keys step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:412", + "has": [ + "Command::new(\"send-keys\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "send-keys", + "scope": null, + "when": "the plan has a send-keys step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:412", + "has": [ + "Command::new(\"send-keys\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "select-pane", + "scope": null, + "when": "the plan has a select-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:481", + "has": [ + "Command::new(\"select-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "select-pane", + "scope": null, + "when": "the plan has a select-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:481", + "has": [ + "Command::new(\"select-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "capture-pane", + "scope": null, + "when": "the plan has a capture-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:531", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "capture-pane", + "scope": null, + "when": "the plan has a capture-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:531", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "kill-pane", + "scope": null, + "when": "the plan has a kill-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:580", + "has": [ + "Command::new(\"kill-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "kill-pane", + "scope": null, + "when": "the plan has a kill-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:580", + "has": [ + "Command::new(\"kill-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "new-session", + "scope": null, + "when": "the plan has a new-session step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/sessions.rs:92", + "has": [ + "Command::new(\"new-session\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "new-session", + "scope": null, + "when": "the plan has a new-session step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/sessions.rs:92", + "has": [ + "Command::new(\"new-session\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "run-shell", + "scope": null, + "when": "the plan has a run-shell step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/timing.rs:81", + "has": [ + "Command::new(\"run-shell\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "new-window", + "scope": null, + "when": "the plan has a new-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:151", + "has": [ + "Command::new(\"new-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "new-window", + "scope": null, + "when": "the plan has a new-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:151", + "has": [ + "Command::new(\"new-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "select-window", + "scope": null, + "when": "the plan has a select-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:223", + "has": [ + "Command::new(\"select-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "select-window", + "scope": null, + "when": "the plan has a select-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:223", + "has": [ + "Command::new(\"select-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "rename-window", + "scope": null, + "when": "the plan has a rename-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:271", + "has": [ + "Command::new(\"rename-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "rename-window", + "scope": null, + "when": "the plan has a rename-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:271", + "has": [ + "Command::new(\"rename-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "kill-window", + "scope": null, + "when": "the plan has a kill-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:317", + "has": [ + "Command::new(\"kill-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "kill-window", + "scope": null, + "when": "the plan has a kill-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:317", + "has": [ + "Command::new(\"kill-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "select-layout", + "scope": null, + "when": "the plan has a select-layout step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:370", + "has": [ + "Command::new(\"select-layout\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "select-layout", + "scope": null, + "when": "the plan has a select-layout step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:370", + "has": [ + "Command::new(\"select-layout\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "break-pane", + "scope": null, + "when": "the window has several panes", + "evidence": [ + { + "at": "src/entities.cpp:1289", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1279", + "has": [ + "break-pane -d -s" + ] + }, + { + "at": "src/entities.cpp:1451", + "has": [ + "break_out_unnamed(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "rename-window", + "scope": null, + "when": "a name is given", + "evidence": [ + { + "at": "src/entities.cpp:1373", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1371", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1366", + "has": [ + "rename-window -t" + ] + }, + { + "at": "src/entities.cpp:1452", + "has": [ + "break_out_named(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "display-message", + "scope": null, + "when": "the window has one pane", + "evidence": [ + { + "at": "src/entities.cpp:1289", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1281", + "has": [ + "display-message -p -t" + ] + }, + { + "at": "src/entities.cpp:1451", + "has": [ + "break_out_unnamed(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] } ] } diff --git a/scripts/tmux-usage/conditions.json b/scripts/tmux-usage/conditions.json new file mode 100644 index 000000000..70b861e61 --- /dev/null +++ b/scripts/tmux-usage/conditions.json @@ -0,0 +1,842 @@ +{ + "schemaVersion": 1, + "conditions": [ + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys", + "command": "list-panes", + "scope": "window", + "when": "the pane is synchronized", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "#{pane_synchronized}" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "has": [ + "server.run(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral", + "command": "list-panes", + "scope": "window", + "when": "the pane is synchronized", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "#{pane_synchronized}" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "has": [ + "server.run(" + ] + } + ] + }, + { + "port": "swift", + "symbol": "Server.newSession(named:startDirectory:windowName:width:height:)", + "command": "resize-window", + "scope": null, + "when": "a width or height is requested", + "evidence": [ + { + "at": "Sources/LibTmux/Creation.swift:144", + "has": [ + "guard requestedSize" + ] + }, + { + "at": "Sources/LibTmux/Creation.swift:149", + "has": [ + "guard widthChanged || heightChanged" + ] + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "list-panes", + "scope": "session", + "when": "the spec names a first window", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:85", + "has": [ + "match first with" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:87", + "has": [ + "session.GetPanesAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "list-panes", + "scope": "window", + "when": "the spec has more than one window", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:91", + "has": [ + "for window in" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:109", + "has": [ + "created.GetPanesAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "new-window", + "scope": null, + "when": "the spec has more than one window", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:91", + "has": [ + "for window in" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:99", + "has": [ + "session.CreateWindowAsync(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.observe_output", + "command": "refresh-client", + "scope": null, + "when": "output is not yet enabled", + "evidence": [ + { + "at": "src/observation.jl:540", + "has": [ + "if !hub.output_enabled" + ] + }, + { + "at": "src/observation.jl:543", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "capture-pane", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:85", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "delete-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:85", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "list-buffers", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:85", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "save-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:85", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_pane", + "command": "capture-pane", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:167", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.delete_buffer", + "command": "delete-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:119", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.detach_client", + "command": "detach-client", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_clients.jl:71", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.detach_client", + "command": "list-clients", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_clients.jl:71", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.get_environment", + "command": "show-environment", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:344", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.get_option", + "command": "show-options", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:248", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.link_window", + "command": "link-window", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:265", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.load_buffer", + "command": "display-message", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/pane_io.jl:182", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.load_buffer", + "command": "list-buffers", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/pane_io.jl:182", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.load_buffer", + "command": "load-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:68", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.move_pane", + "command": "move-pane", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:179", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.move_window", + "command": "move-window", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:265", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.new_session", + "command": "new-session", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/operations.jl:170", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.new_window", + "command": "new-window", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/operations.jl:206", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "delete-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:165", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "list-buffers", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/pane_io.jl:265", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "list-commands", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:165", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "load-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:165", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "paste-buffer", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/pane_io.jl:265", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.read_formats", + "command": "list-panes", + "scope": "window", + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_formats.jl:55", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.save_buffer", + "command": "list-buffers", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:86", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.save_buffer", + "command": "save-buffer", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:86", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.select_layout", + "command": "select-layout", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:124", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.select_pane", + "command": "select-pane", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:86", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.select_window", + "command": "select-window", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:358", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.send_keys", + "command": "send-keys", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_operations.jl:179", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.set_environment", + "command": "set-environment", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:363", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.set_hook", + "command": "set-hook", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:460", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.set_option", + "command": "set-option", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:269", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "display-message", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/acquisition.jl:219", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-clients", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/acquisition.jl:219", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-panes", + "scope": "server", + "when": "on a Server", + "evidence": [ + { + "at": "src/acquisition.jl:219", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-sessions", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/acquisition.jl:219", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-windows", + "scope": "server", + "when": "on a Server", + "evidence": [ + { + "at": "src/acquisition.jl:219", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.split_window", + "command": "split-window", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/operations.jl:243", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.swap_pane", + "command": "swap-pane", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:204", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.swap_window", + "command": "swap-window", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:330", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.switch_client", + "command": "list-clients", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_clients.jl:42", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.switch_client", + "command": "switch-client", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_clients.jl:42", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unlink_window", + "command": "unlink-window", + "scope": null, + "when": "on a ControlConnection", + "evidence": [ + { + "at": "src/control_topology.jl:309", + "has": [ + "::ControlConnection" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unset_hook", + "command": "set-hook", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:482", + "has": [ + "::Server" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unset_option", + "command": "set-option", + "scope": null, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:289", + "has": [ + "::Server" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/dispatchers.json b/scripts/tmux-usage/dispatchers.json index 2158aea81..ac56c6fea 100644 --- a/scripts/tmux-usage/dispatchers.json +++ b/scripts/tmux-usage/dispatchers.json @@ -23,18 +23,77 @@ "at": "src/libtmux/pane.py:315", "has": [ "cmd" + ], + "reaches": [ + { + "at": "src/libtmux/pane.py:349", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "src/libtmux/server.py:418", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] }, { "at": "src/libtmux/server.py:347", "has": [ "cmd" + ], + "reaches": [ + { + "at": "src/libtmux/server.py:418", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] }, { "at": "src/libtmux/session.py:425", "has": [ "cmd" + ], + "reaches": [ + { + "at": "src/libtmux/session.py:468", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "src/libtmux/server.py:418", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] } ] @@ -48,6 +107,21 @@ "at": "src/libtmux/neo.py:1039", "has": [ "fetch_objs" + ], + "reaches": [ + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] } ] @@ -61,6 +135,28 @@ "at": "src/libtmux/neo.py:1275", "has": [ "fetch_obj" + ], + "reaches": [ + { + "at": "src/libtmux/neo.py:1345", + "has": [ + "fetch_objs" + ], + "calls": "fetch_objs" + }, + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] } ] @@ -74,6 +170,28 @@ "at": "src/libtmux/server.py:65", "has": [ "_fetch_or_empty" + ], + "reaches": [ + { + "at": "src/libtmux/server.py:78", + "has": [ + "fetch_objs" + ], + "calls": "fetch_objs" + }, + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] } ] @@ -87,6 +205,35 @@ "at": "src/libtmux/neo.py:868", "has": [ "_refresh" + ], + "reaches": [ + { + "at": "src/libtmux/neo.py:895", + "has": [ + "fetch_obj" + ], + "calls": "fetch_obj" + }, + { + "at": "src/libtmux/neo.py:1345", + "has": [ + "fetch_objs" + ], + "calls": "fetch_objs" + }, + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } ] } ] @@ -100,6 +247,42 @@ "at": "gems/libtmux/lib/libtmux/server.rb:393", "has": [ "execute_typed" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -113,6 +296,56 @@ "at": "gems/libtmux/lib/libtmux/capture.rb:98", "has": [ "catalog_read" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:100", + "has": [ + "read" + ], + "calls": "read" + }, + { + "at": "gems/libtmux/lib/libtmux/capture.rb:111", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -126,18 +359,49 @@ "at": "gems/libtmux/lib/libtmux/capture.rb:108", "has": [ "read" - ] - }, - { - "at": "gems/libtmux-mcp/lib/libtmux/mcp/enrollment.rb:84", - "has": [ - "read" - ] - }, - { - "at": "gems/libtmux-mcp/lib/libtmux/mcp/resources.rb:45", - "has": [ - "read" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:111", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -151,6 +415,49 @@ "at": "gems/libtmux/lib/libtmux/operations.rb:405", "has": [ "reposition" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:409", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -164,6 +471,49 @@ "at": "gems/libtmux/lib/libtmux/options.rb:138", "has": [ "mutate" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:141", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -177,12 +527,56 @@ "at": "gems/libtmux-async/lib/libtmux/async/control.rb:71", "has": [ "exchange_request" + ], + "reaches": [ + { + "at": "gems/libtmux-async/lib/libtmux/async/control.rb:85", + "has": [ + "admit" + ], + "calls": "admit" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:687", + "has": [ + "@queue << request" + ], + "leads": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:749", + "has": [ + "@input.write_nonblock(request.wire" + ] + } ] }, { "at": "gems/libtmux/lib/libtmux/control.rb:428", "has": [ "exchange_request" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/control.rb:442", + "has": [ + "admit" + ], + "calls": "admit" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:687", + "has": [ + "@queue << request" + ], + "leads": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:749", + "has": [ + "@input.write_nonblock(request.wire" + ] + } ] } ] @@ -196,6 +590,49 @@ "at": "gems/libtmux/lib/libtmux/server.rb:456", "has": [ "create_entity" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:457", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -209,6 +646,49 @@ "at": "gems/libtmux/lib/libtmux/operations.rb:110", "has": [ "execute_link" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:122", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } ] } ] @@ -222,18 +702,77 @@ "at": "lua/libtmux/_internal/buffer.lua:206", "has": [ "run" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/buffer.lua:239", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } ] }, { "at": "lua/libtmux/_internal/client.lua:168", "has": [ "run" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/client.lua:179", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } ] }, { "at": "lua/libtmux/_internal/environment.lua:398", "has": [ "run" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/environment.lua:404", + "has": [ + "perform" + ], + "calls": "perform" + }, + { + "at": "lua/libtmux/_internal/environment.lua:388", + "has": [ + "invoke" + ], + "calls": "invoke" + }, + { + "at": "lua/libtmux/_internal/environment.lua:212", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } ] } ] @@ -247,18 +786,63 @@ "at": "lua/libtmux/_internal/command.lua:190", "has": [ "execute" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/command.lua:191", + "has": [ + "group" + ], + "calls": "group" + }, + { + "at": "lua/libtmux/_internal/command.lua:187", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } ] }, { "at": "lua/libtmux/_internal/endpoint.lua:252", "has": [ "execute" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } ] }, { "at": "lua/libtmux/_internal/process.lua:143", "has": [ "execute" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } ] } ] @@ -274,20 +858,8 @@ "program" ] } - ] - }, - { - "port": "julia", - "name": "Cmd", - "why": "Builds the process command that runs tmux with the argument list it is given.", - "evidence": [ - { - "at": "src/lifecycle.jl:270", - "has": [ - "Cmd(argv)" - ] - } - ] + ], + "kind": "builder" }, { "port": "julia", @@ -298,6 +870,28 @@ "at": "src/operations.jl:59", "has": [ "_operation_command" + ], + "reaches": [ + { + "at": "src/operations.jl:60", + "has": [ + "run_command" + ], + "calls": "run_command" + }, + { + "at": "src/process.jl:494", + "has": [ + "_run_process(" + ], + "calls": "_run_process" + }, + { + "at": "src/process.jl:334", + "has": [ + "run(" + ] + } ] } ] @@ -311,6 +905,35 @@ "at": "src/control_topology.jl:7", "has": [ "_control_topology_effect" + ], + "reaches": [ + { + "at": "src/control_topology.jl:8", + "has": [ + "_control_effect" + ], + "calls": "_control_effect" + }, + { + "at": "src/control_io.jl:23", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -324,6 +947,28 @@ "at": "src/control_io.jl:22", "has": [ "_control_effect" + ], + "reaches": [ + { + "at": "src/control_io.jl:23", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -337,6 +982,28 @@ "at": "src/control.jl:931", "has": [ "command" + ], + "reaches": [ + { + "at": "src/control.jl:932", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -350,6 +1017,35 @@ "at": "src/control_options.jl:217", "has": [ "_control_configuration_effect" + ], + "reaches": [ + { + "at": "src/control_options.jl:222", + "has": [ + "_control_effect" + ], + "calls": "_control_effect" + }, + { + "at": "src/control_io.jl:23", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -363,6 +1059,28 @@ "at": "src/acquisition.jl:73", "has": [ "_snapshot_rows" + ], + "reaches": [ + { + "at": "src/acquisition.jl:74", + "has": [ + "run_command" + ], + "calls": "run_command" + }, + { + "at": "src/process.jl:494", + "has": [ + "_run_process(" + ], + "calls": "_run_process" + }, + { + "at": "src/process.jl:334", + "has": [ + "run(" + ] + } ] } ] @@ -376,12 +1094,35 @@ "at": "src/control_io.jl:215", "has": [ "rows" - ] - }, - { - "at": "ext/LibTmuxTablesExt.jl:8", - "has": [ - "rows" + ], + "reaches": [ + { + "at": "src/control_io.jl:215", + "has": [ + "_control_rows" + ], + "calls": "_control_rows" + }, + { + "at": "src/control.jl:542", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -395,12 +1136,49 @@ "at": "src/control.jl:572", "has": [ "run_command" + ], + "reaches": [ + { + "at": "src/control.jl:581", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] }, { "at": "src/process.jl:477", "has": [ "run_command" + ], + "reaches": [ + { + "at": "src/process.jl:494", + "has": [ + "_run_process" + ], + "calls": "_run_process" + }, + { + "at": "src/process.jl:334", + "has": [ + " run(" + ] + } ] } ] @@ -414,6 +1192,28 @@ "at": "src/control.jl:502", "has": [ "_control_rows" + ], + "reaches": [ + { + "at": "src/control.jl:542", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -427,6 +1227,21 @@ "at": "src/control.jl:411", "has": [ "_control_request" + ], + "reaches": [ + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } ] } ] @@ -440,6 +1255,14 @@ "at": "src/process.jl:293", "has": [ "_run_process" + ], + "reaches": [ + { + "at": "src/process.jl:334", + "has": [ + " run(" + ] + } ] } ] @@ -453,6 +1276,28 @@ "at": "packages/libtmux/src/_internal/operations/command.ts:89", "has": [ "runCommand" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -466,6 +1311,21 @@ "at": "packages/libtmux/src/_internal/operations/command.ts:113", "has": [ "runCommands" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:124", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -479,6 +1339,28 @@ "at": "packages/libtmux/src/_internal/operations/command.ts:98", "has": [ "runCommandBytes" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:103", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -492,18 +1374,63 @@ "at": "packages/libtmux/src/_internal/control/observer_transport.ts:344", "has": [ "execute" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/control/observer_transport.ts:355", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] }, { "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:223", "has": [ "execute" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:224", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:239", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:110", "has": [ "execute" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -517,6 +1444,35 @@ "at": "packages/libtmux/src/_internal/operations/mutations.ts:73", "has": [ "killTarget" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:78", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -530,6 +1486,35 @@ "at": "packages/libtmux/src/_internal/operations/topology.ts:389", "has": [ "selectTarget" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:394", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -543,6 +1528,21 @@ "at": "packages/libtmux/src/_internal/codec/guarded_listing.ts:80", "has": [ "executeGuardedList" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/codec/guarded_listing.ts:102", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -556,18 +1556,126 @@ "at": "packages/libtmux/src/pane.ts:672", "has": [ "cmd" + ], + "reaches": [ + { + "at": "packages/libtmux/src/pane.ts:677", + "has": [ + "runRawCommand" + ], + "calls": "runRawCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/raw.ts:27", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] }, { "at": "packages/libtmux/src/server.ts:1348", "has": [ "cmd" + ], + "reaches": [ + { + "at": "packages/libtmux/src/server.ts:1353", + "has": [ + "runRawCommand" + ], + "calls": "runRawCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/raw.ts:27", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] }, { "at": "packages/libtmux/src/session.ts:434", "has": [ "cmd" + ], + "reaches": [ + { + "at": "packages/libtmux/src/session.ts:439", + "has": [ + "runRawCommand" + ], + "calls": "runRawCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/raw.ts:27", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } ] } ] @@ -614,20 +1722,6 @@ } ] }, - { - "port": "ts", - "name": "freeze", - "kind": "builder", - "why": "Builds the argument list of a command from the command it is given.", - "evidence": [ - { - "at": "packages/workspace-cli/src/tmux.ts:1169", - "has": [ - "freeze" - ] - } - ] - }, { "port": "rs", "name": "mutate", @@ -637,7 +1731,35 @@ "at": "crates/libtmux/src/internal/listing.rs:452", "has": [ "mutate" - ] + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/listing.rs:458", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "command_name" } ] }, @@ -646,23 +1768,67 @@ "name": "run", "why": "Sends the Command it is given, or the command it is named for, to the server.", "evidence": [ - { - "at": "crates/libtmux/src/blocking.rs:72", - "has": [ - "run" - ] - }, { "at": "crates/libtmux/src/control/actor.rs:432", "has": [ "run" + ], + "reaches": [ + { + "at": "crates/libtmux/src/control/actor.rs:438", + "has": [ + "serve" + ], + "calls": "serve" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", + "has": [ + ".write_all(" + ] + } ] }, { - "at": "crates/libtmux/src/internal/executor.rs:63", + "at": "crates/libtmux/src/internal/options.rs:363", "has": [ "run" - ] + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/options.rs:369", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "command_name" } ] }, @@ -675,18 +1841,84 @@ "at": "crates/libtmux/src/pane.rs:801", "has": [ "cmd" + ], + "reaches": [ + { + "at": "crates/libtmux/src/pane.rs:803", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] }, { "at": "crates/libtmux/src/server.rs:678", "has": [ "cmd" + ], + "reaches": [ + { + "at": "crates/libtmux/src/server.rs:679", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] }, { "at": "crates/libtmux/src/session.rs:582", "has": [ "cmd" + ], + "reaches": [ + { + "at": "crates/libtmux/src/session.rs:584", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] } ] @@ -700,18 +1932,49 @@ "at": "crates/libtmux/src/internal/control_executor.rs:28", "has": [ "execute" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] }, { "at": "crates/libtmux/src/internal/core.rs:423", "has": [ "execute" - ] - }, - { - "at": "crates/libtmux/src/internal/listing.rs:494", - "has": [ - "execute" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] } ] @@ -725,12 +1988,49 @@ "at": "crates/libtmux/src/control.rs:585", "has": [ "send" - ] - }, - { - "at": "crates/tmux-mcp/src/bin/tmux-mcp.rs:61", - "has": [ - "send" + ], + "reaches": [ + { + "at": "crates/libtmux/src/control.rs:586", + "has": [ + ".send(" + ], + "calls": "send" + }, + { + "at": "crates/libtmux/src/control.rs:737", + "has": [ + "send_ordered(" + ], + "calls": "send_ordered" + }, + { + "at": "crates/libtmux/src/control.rs:755", + "has": [ + "dispatch_line(" + ], + "calls": "dispatch_line" + }, + { + "at": "crates/libtmux/src/control.rs:803", + "has": [ + "permit.send(Request" + ], + "leads": "serve" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line(" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", + "has": [ + ".write_all(" + ] + } ] } ] @@ -740,22 +2040,32 @@ "name": "step", "why": "Sends the Command it is given, or the command it is named for, to the server.", "evidence": [ - { - "at": "crates/libtmux/src/plan.rs:171", - "has": [ - "step" - ] - }, - { - "at": "crates/libtmux/src/plan/run.rs:163", - "has": [ - "step" - ] - }, { "at": "crates/libtmux/src/session.rs:388", "has": [ "step" + ], + "reaches": [ + { + "at": "crates/libtmux/src/session.rs:392", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] } ] @@ -769,18 +2079,28 @@ "at": "crates/libtmux/src/internal/listing.rs:92", "has": [ "list" - ] - }, - { - "at": "crates/libtmux/src/plan/wire.rs:149", - "has": [ - "list" - ] - }, - { - "at": "crates/tmux-workspace/src/cli/document/importers.rs:85", - "has": [ - "list" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/listing.rs:106", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } ] } ] @@ -794,6 +2114,35 @@ "at": "crates/libtmux/src/control.rs:746", "has": [ "send_ordered" + ], + "reaches": [ + { + "at": "crates/libtmux/src/control.rs:755", + "has": [ + "dispatch_line" + ], + "calls": "dispatch_line" + }, + { + "at": "crates/libtmux/src/control.rs:803", + "has": [ + "permit.send(Request" + ], + "leads": "serve" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line(" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", + "has": [ + ".write_all(" + ] + } ] } ] @@ -807,6 +2156,126 @@ "at": "crates/libtmux/src/internal/core.rs:483", "has": [ "execute_chain" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/core.rs:496", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "chain", + "why": "Sends the CommandChain it is given, one tmux invocation, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:753", + "has": [ + "chain" + ], + "reaches": [ + { + "at": "crates/libtmux/src/server.rs:754", + "has": [ + "execute_chain" + ], + "calls": "execute_chain" + }, + { + "at": "crates/libtmux/src/internal/core.rs:496", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + ".spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "dispatch", + "why": "Sends the rendered commands of one plan step to the server, as one chain when the step carries several.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:443", + "has": [ + "dispatch" + ], + "reaches": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "crates/libtmux/src/server.rs:679", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/control_executor.rs:37", + "has": [ + "run(" + ], + "calls": "run" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "sensitive_arg", + "kind": "builder", + "why": "Adds one argument, kept out of logs, to the Command it is called on and returns the Command.", + "evidence": [ + { + "at": "crates/libtmux/src/command.rs:208", + "has": [ + "sensitive_arg" ] } ] @@ -820,12 +2289,98 @@ "at": "tmux/scoped_command.go:26", "has": [ "literalCmd" + ], + "reaches": [ + { + "at": "tmux/scoped_command.go:27", + "has": [ + "literalScopedCommand" + ], + "calls": "literalScopedCommand" + }, + { + "at": "tmux/scoped_command.go:85", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] }, { "at": "tmux/server.go:104", "has": [ "literalCmd" + ], + "reaches": [ + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -839,18 +2394,105 @@ "at": "tmux/control_request.go:95", "has": [ "Cmd" - ] - }, - { - "at": "tmux/plan.go:731", - "has": [ - "Cmd" + ], + "reaches": [ + { + "at": "tmux/control_request.go:99", + "has": [ + "Call" + ], + "calls": "Call" + }, + { + "at": "tmux/control_request.go:122", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "tmux/control_request.go:141", + "has": [ + "cmdUnobserved" + ], + "calls": "cmdUnobserved" + }, + { + "at": "tmux/control_request.go:163", + "has": [ + "submitControlRequest" + ], + "calls": "submitControlRequest" + }, + { + "at": "tmux/control_request.go:184", + "has": [ + "c.requests <- request" + ], + "leads": "runRequests" + }, + { + "at": "tmux/control_request.go:240", + "has": [ + "executeControlRequest(" + ], + "calls": "executeControlRequest" + }, + { + "at": "tmux/control_request.go:268", + "has": [ + "io.WriteString(c.stdin" + ] + } ] }, { "at": "tmux/scoped_command.go:12", "has": [ "Cmd" + ], + "reaches": [ + { + "at": "tmux/scoped_command.go:13", + "has": [ + "scopedCommand" + ], + "calls": "scopedCommand" + }, + { + "at": "tmux/scoped_command.go:54", + "has": [ + "Cmd" + ], + "calls": "Cmd" + }, + { + "at": "tmux/server.go:100", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -864,6 +2506,42 @@ "at": "tmux/control_request.go:129", "has": [ "cmd" + ], + "reaches": [ + { + "at": "tmux/control_request.go:141", + "has": [ + "cmdUnobserved" + ], + "calls": "cmdUnobserved" + }, + { + "at": "tmux/control_request.go:163", + "has": [ + "submitControlRequest" + ], + "calls": "submitControlRequest" + }, + { + "at": "tmux/control_request.go:184", + "has": [ + "c.requests <- request" + ], + "leads": "runRequests" + }, + { + "at": "tmux/control_request.go:240", + "has": [ + "executeControlRequest(" + ], + "calls": "executeControlRequest" + }, + { + "at": "tmux/control_request.go:268", + "has": [ + "io.WriteString(c.stdin" + ] + } ] } ] @@ -877,6 +2555,21 @@ "at": "tmux/transport.go:156", "has": [ "runExactArgv" + ], + "reaches": [ + { + "at": "tmux/transport.go:173", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -890,7 +2583,56 @@ "at": "tmux/server_clients.go:364", "has": [ "runClientCommand" - ] + ], + "reaches": [ + { + "at": "tmux/server_clients.go:370", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" } ] }, @@ -903,7 +2645,56 @@ "at": "tmux/window_layout.go:354", "has": [ "runWindowLayoutCommand" - ] + ], + "reaches": [ + { + "at": "tmux/window_layout.go:360", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" } ] }, @@ -916,7 +2707,56 @@ "at": "tmux/pane_modes.go:325", "has": [ "runRedactedPaneModeCommand" - ] + ], + "reaches": [ + { + "at": "tmux/pane_modes.go:331", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" } ] }, @@ -929,7 +2769,56 @@ "at": "tmux/server_keys.go:250", "has": [ "runServerKeyCommand" - ] + ], + "reaches": [ + { + "at": "tmux/server_keys.go:256", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" } ] }, @@ -942,6 +2831,56 @@ "at": "tmux/server_buffers.go:342", "has": [ "runServerListCommand" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:347", + "has": [ + "runServerListCommandWithError" + ], + "calls": "runServerListCommandWithError" + }, + { + "at": "tmux/server_buffers.go:364", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -955,6 +2894,56 @@ "at": "tmux/pane_modes.go:309", "has": [ "runSimplePaneMode" + ], + "reaches": [ + { + "at": "tmux/pane_modes.go:314", + "has": [ + "runRedactedPaneModeCommand" + ], + "calls": "runRedactedPaneModeCommand" + }, + { + "at": "tmux/pane_modes.go:331", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -968,6 +2957,49 @@ "at": "tmux/session_navigation.go:106", "has": [ "navigateWindow" + ], + "reaches": [ + { + "at": "tmux/session_navigation.go:116", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -981,6 +3013,49 @@ "at": "tmux/pane_relocate.go:205", "has": [ "relocate" + ], + "reaches": [ + { + "at": "tmux/pane_relocate.go:271", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -994,6 +3069,56 @@ "at": "tmux/search.go:167", "has": [ "searchSnapshot" + ], + "reaches": [ + { + "at": "tmux/search.go:175", + "has": [ + "searchSnapshotProjected" + ], + "calls": "searchSnapshotProjected" + }, + { + "at": "tmux/search.go:195", + "has": [ + "probeSnapshotIdentity" + ], + "calls": "probeSnapshotIdentity" + }, + { + "at": "tmux/identity.go:210", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1007,6 +3132,49 @@ "at": "tmux/search.go:180", "has": [ "searchSnapshotProjected" + ], + "reaches": [ + { + "at": "tmux/search.go:195", + "has": [ + "probeSnapshotIdentity" + ], + "calls": "probeSnapshotIdentity" + }, + { + "at": "tmux/identity.go:210", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1020,6 +3188,56 @@ "at": "tmux/lookup.go:131", "has": [ "livePoint" + ], + "reaches": [ + { + "at": "tmux/lookup.go:139", + "has": [ + "livePointWithTargetValidation" + ], + "calls": "livePointWithTargetValidation" + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "probeSnapshotIdentity" + ], + "calls": "probeSnapshotIdentity" + }, + { + "at": "tmux/identity.go:210", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1033,6 +3251,49 @@ "at": "tmux/lookup.go:165", "has": [ "livePointWithTargetValidation" + ], + "reaches": [ + { + "at": "tmux/lookup.go:179", + "has": [ + "probeSnapshotIdentity" + ], + "calls": "probeSnapshotIdentity" + }, + { + "at": "tmux/identity.go:210", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1046,6 +3307,35 @@ "at": "tmux/server.go:109", "has": [ "literalCmdWithRaw" + ], + "reaches": [ + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1059,6 +3349,49 @@ "at": "tmux/environment.go:240", "has": [ "runEnvironmentMutation" + ], + "reaches": [ + { + "at": "tmux/environment.go:241", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1072,6 +3405,49 @@ "at": "tmux/option_mutation.go:465", "has": [ "runOptionMutation" + ], + "reaches": [ + { + "at": "tmux/option_mutation.go:472", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1085,6 +3461,49 @@ "at": "tmux/exact_target.go:63", "has": [ "literalPaneCommand" + ], + "reaches": [ + { + "at": "tmux/exact_target.go:72", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1098,6 +3517,49 @@ "at": "tmux/scoped_command.go:57", "has": [ "literalScopedCommand" + ], + "reaches": [ + { + "at": "tmux/scoped_command.go:85", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1111,6 +3573,49 @@ "at": "tmux/server_buffers.go:358", "has": [ "runServerListCommandWithError" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:364", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1124,6 +3629,56 @@ "at": "tmux/server_buffers.go:350", "has": [ "runRedactedServerListCommand" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:355", + "has": [ + "runServerListCommandWithError" + ], + "calls": "runServerListCommandWithError" + }, + { + "at": "tmux/server_buffers.go:364", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1137,6 +3692,49 @@ "at": "tmux/pane_create.go:141", "has": [ "newPane" + ], + "reaches": [ + { + "at": "tmux/pane_create.go:213", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1150,6 +3748,49 @@ "at": "tmux/pane_create.go:330", "has": [ "splitPane" + ], + "reaches": [ + { + "at": "tmux/pane_create.go:354", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1163,6 +3804,49 @@ "at": "tmux/window_lifecycle.go:189", "has": [ "newWindow" + ], + "reaches": [ + { + "at": "tmux/window_lifecycle.go:224", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1176,12 +3860,49 @@ "at": "tmux/pane_capture.go:216", "has": [ "capturePane" - ] - }, - { - "at": "mcp/capture_tools.go:32", - "has": [ - "capturePane" + ], + "reaches": [ + { + "at": "tmux/pane_capture.go:232", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1195,6 +3916,49 @@ "at": "tmux/server_buffers.go:138", "has": [ "showBuffer" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:148", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1208,6 +3972,42 @@ "at": "tmux/snapshot_capture.go:113", "has": [ "snapshotListing" + ], + "reaches": [ + { + "at": "tmux/snapshot_capture.go:127", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1221,6 +4021,49 @@ "at": "tmux/display_message.go:182", "has": [ "runDisplayMessage" + ], + "reaches": [ + { + "at": "tmux/display_message.go:254", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:105", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:116", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1234,18 +4077,63 @@ "at": "tmux/tmuxtest/harness.go:535", "has": [ "runCommand" + ], + "reaches": [ + { + "at": "tmux/tmuxtest/harness.go:536", + "has": [ + "Cmd" + ], + "calls": "Cmd" + }, + { + "at": "tmux/server.go:100", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:126", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] }, { "at": "tmux/transport.go:40", "has": [ "runCommand" - ] - }, - { - "at": "mcp/run_command_tools.go:89", - "has": [ - "runCommand" + ], + "reaches": [ + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1259,6 +4147,28 @@ "at": "tmux/server_attach.go:153", "has": [ "streamingLiteralCmd" + ], + "reaches": [ + { + "at": "tmux/server_attach.go:161", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1272,19 +4182,42 @@ "at": "tmux/pipe_stream.go:57", "has": [ "streamOut" - ] - } - ] - }, - { - "port": "go", - "name": "startControl", - "why": "Sends the tmux arguments or the command it is given to the server.", - "evidence": [ - { - "at": "tmux/control_startup.go:105", - "has": [ - "startControl" + ], + "reaches": [ + { + "at": "tmux/pipe_stream.go:74", + "has": [ + "runPipeStreamCommand" + ], + "calls": "runPipeStreamCommand" + }, + { + "at": "tmux/pipe_stream.go:153", + "has": [ + "streamingLiteralCmd" + ], + "calls": "streamingLiteralCmd" + }, + { + "at": "tmux/server_attach.go:161", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1298,6 +4231,42 @@ "at": "tmux/pipe_stream.go:19", "has": [ "streamIn" + ], + "reaches": [ + { + "at": "tmux/pipe_stream.go:37", + "has": [ + "runPipeStreamCommand" + ], + "calls": "runPipeStreamCommand" + }, + { + "at": "tmux/pipe_stream.go:153", + "has": [ + "streamingLiteralCmd" + ], + "calls": "streamingLiteralCmd" + }, + { + "at": "tmux/server_attach.go:161", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:85", + "has": [ + "Run" + ], + "calls": "Run" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:95", + "has": [ + "exec.CommandContext(" + ] + } ] } ] @@ -1387,26 +4356,29 @@ ] }, { - "port": "java", - "name": "run", - "why": "Sends the argument list it is given to the server.", + "port": "go", + "name": "appendPopupVersion33Arguments", + "kind": "builder", + "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:97", - "has": [ - "run" - ] - }, - { - "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:372", + "at": "tmux/pane_popup.go:326", "has": [ - "run" + "func appendPopupVersion33Arguments(" ] - }, + } + ] + }, + { + "port": "go", + "name": "appendPopupVersion36Arguments", + "kind": "builder", + "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", + "evidence": [ { - "at": "libtmux/src/main/java/io/github/libtmux/Hooks.java:113", + "at": "tmux/pane_popup.go:376", "has": [ - "run" + "func appendPopupVersion36Arguments(" ] } ] @@ -1420,18 +4392,168 @@ "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:368", "has": [ "cmd" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:369", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "guarded" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] }, { "at": "libtmux/src/main/java/io/github/libtmux/Options.java:373", "has": [ "cmd" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:374", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "guarded" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] }, { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:765", "has": [ "cmd" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:766", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "guarded" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1441,16 +4563,39 @@ "name": "send", "why": "Sends the argument list it is given to the server.", "evidence": [ - { - "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:547", - "has": [ - "send" - ] - }, { "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:312", "has": [ "send" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:313", + "has": [ + "send" + ], + "calls": "send" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:346", + "has": [ + "exchange" + ], + "calls": "exchange" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java:84", + "has": [ + "waiting.offer(" + ], + "leads": "run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java:237", + "has": [ + "output.write(request.line)" + ] + } ] } ] @@ -1464,6 +4609,56 @@ "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1265", "has": [ "runTogether" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1266", + "has": [ + "runTogether" + ], + "calls": "runTogether" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1271", + "has": [ + "guarded" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1477,6 +4672,35 @@ "at": "libtmux/src/main/java/io/github/libtmux/Server.java:471", "has": [ "withoutStartingServer" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:475", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1490,6 +4714,63 @@ "at": "libtmux/src/main/java/io/github/libtmux/Options.java:194", "has": [ "withVersion" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "has": [ + "dispatch.apply(" + ], + "leads": "batch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1235", + "has": [ + "fence.guarded(" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1503,6 +4784,77 @@ "at": "libtmux/src/main/java/io/github/libtmux/Server.java:884", "has": [ "captured" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:886", + "has": [ + "sessionsWhere" + ], + "calls": "sessionsWhere" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276", + "has": [ + "hydrate" + ], + "calls": "hydrate" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:293", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "has": [ + "dispatch.apply(" + ], + "leads": "batch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1235", + "has": [ + "fence.guarded(" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1516,18 +4868,35 @@ "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:180", "has": [ "execute" - ] - }, - { - "at": "libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java:29", - "has": [ - "execute" - ] - }, - { - "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java:239", - "has": [ - "execute" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1575,12 +4944,6 @@ "has": [ "command" ] - }, - { - "at": "libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java:54", - "has": [ - "command" - ] } ] }, @@ -1601,12 +4964,6 @@ "has": [ "listing" ] - }, - { - "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java:471", - "has": [ - "listing" - ] } ] }, @@ -1621,11 +4978,173 @@ "has": [ "request" ] + } + ] + }, + { + "port": "java", + "name": "run", + "why": "Sends the argument list it is given to the server, and fails on a nonzero exit.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1221", + "has": [ + "run" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1222", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "guarded" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] }, { - "at": "libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java:451", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1250", "has": [ - "request" + "run" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1251", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "guarded" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1280", + "has": [ + "run" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1281", + "has": [ + "fence.run(" + ], + "calls": "run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } ] } ] @@ -1635,22 +5154,67 @@ "name": "RunAsync", "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", "evidence": [ - { - "at": "src/LibTmux/ControlMode/ControlModePaneFlow.cs:92", - "has": [ - "RunAsync" - ] - }, { "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:243", "has": [ "RunAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:246", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Hooks/TmuxHooks.cs:310", "has": [ "RunAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:313", + "has": [ + "DispatchAsync" + ], + "calls": "DispatchAsync" + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:432", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1660,22 +5224,32 @@ "name": "Dispatch", "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", "evidence": [ - { - "at": "src/LibTmux/Exceptions/LibTmuxException.cs:40", - "has": [ - "Dispatch" - ] - }, { "at": "src/LibTmux/Server.Lifecycle.cs:454", "has": [ "Dispatch" - ] - }, - { - "at": "src/LibTmux.Workspace/WorkspaceActionOutcome.cs:36", - "has": [ - "Dispatch" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:462", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1685,22 +5259,60 @@ "name": "ExecuteAsync", "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", "evidence": [ - { - "at": "src/LibTmux/Chaining/TmuxChain.cs:95", - "has": [ - "ExecuteAsync" - ] - }, { "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:56", "has": [ "ExecuteAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:63", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Chaining/TmuxChaining.cs:23", "has": [ "ExecuteAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Chaining/TmuxChaining.cs:30", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1714,18 +5326,133 @@ "at": "src/LibTmux/ControlMode/PaneObservation.cs:332", "has": [ "ListAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/ControlMode/PaneObservation.cs:337", + "has": [ + "SendAsync" + ], + "calls": "SendAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", + "has": [ + "SendCoreAsync" + ], + "calls": "SendCoreAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:410", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } ] }, { "at": "src/LibTmux/Materialization/RelationReader.cs:13", "has": [ "ListAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Materialization/RelationReader.cs:21", + "has": [ + "FetchAsync" + ], + "calls": "FetchAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Server.Collections.cs:81", "has": [ "ListAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Collections.cs:89", + "has": [ + "ListAsync" + ], + "calls": "ListAsync" + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:21", + "has": [ + "FetchAsync" + ], + "calls": "FetchAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1739,6 +5466,28 @@ "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:30", "has": [ "FetchAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1752,6 +5501,42 @@ "at": "src/LibTmux/Query/NativeFilterSearch.cs:73", "has": [ "SearchAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Query/NativeFilterSearch.cs:82", + "has": [ + "ListAsync" + ], + "calls": "ListAsync" + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:21", + "has": [ + "FetchAsync" + ], + "calls": "FetchAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1765,12 +5550,49 @@ "at": "src/LibTmux/ControlMode/ControlModeSession.cs:281", "has": [ "SendAsync" - ] - }, - { - "at": "src/LibTmux/ControlMode/IControlModeSession.cs:68", - "has": [ - "SendAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", + "has": [ + "SendCoreAsync" + ], + "calls": "SendCoreAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:410", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } ] } ] @@ -1784,6 +5606,42 @@ "at": "src/LibTmux/ControlMode/ControlModeSession.cs:306", "has": [ "SendRawAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:327", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } ] } ] @@ -1797,6 +5655,28 @@ "at": "src/LibTmux/Server.Utilities.cs:112", "has": [ "RunUtilityAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Utilities.cs:117", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1810,6 +5690,35 @@ "at": "src/LibTmux/Server.Clients.cs:194", "has": [ "RunClientAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Clients.cs:201", + "has": [ + "RunAsync" + ], + "calls": "RunAsync" + }, + { + "at": "src/LibTmux/Server.Clients.cs:209", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1823,6 +5732,56 @@ "at": "src/LibTmux/Streaming/PaneReader.cs:438", "has": [ "TryThroughControlAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Streaming/PaneReader.cs:455", + "has": [ + "SendAsync" + ], + "calls": "SendAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", + "has": [ + "SendCoreAsync" + ], + "calls": "SendCoreAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:410", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } ] } ] @@ -1836,6 +5795,35 @@ "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:125", "has": [ "Fetch" + ], + "reaches": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:130", + "has": [ + "FetchMarkedAsync" + ], + "calls": "FetchMarkedAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:61", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1849,6 +5837,28 @@ "at": "src/LibTmux/Server.Utilities.cs:123", "has": [ "ReadUtilityAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Utilities.cs:128", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1862,18 +5872,84 @@ "at": "src/LibTmux/Pane.Command.cs:22", "has": [ "ExecuteCommandAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Pane.Command.cs:27", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Server.Command.cs:19", "has": [ "ExecuteCommandAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Command.cs:22", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Session.Command.cs:22", "has": [ "ExecuteCommandAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Session.Command.cs:27", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1887,12 +5963,63 @@ "at": "src/LibTmux/Connection/TmuxDialect.cs:168", "has": [ "ExecuteAttachmentAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:175", + "has": [ + "ExecuteAttachmentAsync" + ], + "calls": "ExecuteAttachmentAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:24", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:11", "has": [ "ExecuteAttachmentAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:24", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1902,22 +6029,67 @@ "name": "ExecuteGuardedAsync", "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", "evidence": [ - { - "at": "src/LibTmux/Connection/MultiplexerDialect.cs:73", - "has": [ - "ExecuteGuardedAsync" - ] - }, { "at": "src/LibTmux/Connection/PsmuxDialect.cs:63", "has": [ "ExecuteGuardedAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Connection/PsmuxDialect.cs:69", + "has": [ + "ExecuteGuardedAsync" + ], + "calls": "ExecuteGuardedAsync" + }, + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:164", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { "at": "src/LibTmux/Connection/TmuxDialect.cs:158", "has": [ "ExecuteGuardedAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:164", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1931,6 +6103,35 @@ "at": "src/LibTmux/Window.Links.cs:177", "has": [ "RunPlacementAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Window.Links.cs:178", + "has": [ + "RunPlacementAsync" + ], + "calls": "RunPlacementAsync" + }, + { + "at": "src/LibTmux/Window.Links.cs:183", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1944,6 +6145,28 @@ "at": "src/LibTmux/Hooks/TmuxHooks.cs:426", "has": [ "DispatchAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:432", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -1954,22 +6177,94 @@ "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", "evidence": [ { - "at": "src/LibTmux/ControlMode/PaneObservation.cs:379", + "at": "src/LibTmux/Hooks/TmuxHooks.cs:437", "has": [ "ReadAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:449", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { - "at": "src/LibTmux/Hooks/TmuxHooks.cs:437", + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:117", "has": [ "ReadAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:128", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] }, { - "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:117", + "at": "src/LibTmux/Options/TmuxOptions.cs:305", "has": [ "ReadAsync" - ] + ], + "reaches": [ + { + "at": "src/LibTmux/Options/TmuxOptions.cs:311", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "optionName" } ] }, @@ -1982,7 +6277,35 @@ "at": "src/LibTmux/Pane.Topology.cs:567", "has": [ "CreatePaneFromAsync" - ] + ], + "reaches": [ + { + "at": "src/LibTmux/Pane.Topology.cs:576", + "has": [ + "ExecuteAsync" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(" + ], + "calls": "Start" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "subcommand" } ] }, @@ -2075,18 +6398,119 @@ "at": "src/backend.cpp:353", "has": [ "run" + ], + "reaches": [ + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] }, { "at": "src/backend.hpp:90", "has": [ "run" + ], + "reaches": [ + { + "at": "src/backend.hpp:91", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] }, { "at": "src/entities.cpp:60", "has": [ "run" + ], + "reaches": [ + { + "at": "src/entities.cpp:83", + "has": [ + "run_in_session" + ], + "calls": "run_in_session" + }, + { + "at": "src/backend.cpp:501", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] } ] @@ -2100,6 +6524,49 @@ "at": "src/acquire.hpp:185", "has": [ "list_entities" + ], + "reaches": [ + { + "at": "src/acquire.hpp:193", + "has": [ + "take_in_session" + ], + "calls": "take_in_session" + }, + { + "at": "src/snapshot.cpp:68", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] } ] @@ -2113,6 +6580,42 @@ "at": "src/server.cpp:1360", "has": [ "show" + ], + "reaches": [ + { + "at": "src/server.cpp:1365", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] } ] @@ -2126,6 +6629,42 @@ "at": "src/wait.cpp:102", "has": [ "run_before_deadline" + ], + "reaches": [ + { + "at": "src/wait.cpp:111", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] } ] @@ -2139,6 +6678,49 @@ "at": "src/acquire.hpp:222", "has": [ "one_entity" + ], + "reaches": [ + { + "at": "src/acquire.hpp:231", + "has": [ + "take_in_session" + ], + "calls": "take_in_session" + }, + { + "at": "src/snapshot.cpp:68", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } ] } ] @@ -2180,6 +6762,49 @@ "at": "Sources/LibTmux/Mutations.swift:128", "has": [ "expectSuccess" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Mutations.swift:129", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:135", + "has": [ + "expectSuccess" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Mutations.swift:139", + "has": [ + "runGuarded(" + ], + "calls": "runGuarded" + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:34", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2193,18 +6818,63 @@ "at": "Sources/LibTmux/CommandList.swift:65", "has": [ "run" + ], + "reaches": [ + { + "at": "Sources/LibTmux/CommandList.swift:69", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] }, { - "at": "Sources/LibTmux/OutputWaitSession.swift:14", + "at": "Sources/LibTmux/Server.swift:131", "has": [ "run" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] }, { - "at": "Sources/LibTmux/PaneInteraction.swift:50", + "at": "Sources/LibTmux/Server.swift:135", "has": [ "run" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2218,6 +6888,21 @@ "at": "Sources/LibTmux/Options.swift:289", "has": [ "runOptionCommand" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Options.swift:294", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2231,12 +6916,21 @@ "at": "Sources/LibTmux/Server.swift:367", "has": [ "list" - ] - }, - { - "at": "Sources/TmuxWorkspaceCLI/ReadCommands.swift:4", - "has": [ - "list" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:372", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2250,6 +6944,21 @@ "at": "Sources/LibTmux/Server.swift:167", "has": [ "runInOwnProcess" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:168", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2263,6 +6972,21 @@ "at": "Sources/LibTmux/GuardedRequest.swift:19", "has": [ "runGuarded" + ], + "reaches": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:34", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2276,6 +7000,42 @@ "at": "Sources/LibTmux/ControlSession.swift:168", "has": [ "send" + ], + "reaches": [ + { + "at": "Sources/LibTmux/ControlSession.swift:170", + "has": [ + "send(" + ], + "calls": "send" + }, + { + "at": "Sources/LibTmux/ControlSession.swift:181", + "has": [ + "enqueue(" + ], + "calls": "enqueue" + }, + { + "at": "Sources/LibTmux/ControlSession.swift:234", + "has": [ + "write(" + ], + "leads": "write" + }, + { + "at": "Sources/LibTmux/NonblockingLineWriter.swift:42", + "has": [ + "systemWrite(" + ], + "calls": "systemWrite" + }, + { + "at": "Sources/LibTmux/NonblockingLineWriter.swift:79", + "has": [ + "Glibc.write(" + ] + } ] } ] @@ -2289,6 +7049,21 @@ "at": "Sources/LibTmux/Server.swift:226", "has": [ "runTerminatingIsolated" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:237", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2302,6 +7077,21 @@ "at": "Sources/LibTmux/Server.swift:171", "has": [ "runIsolated" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:175", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2315,6 +7105,28 @@ "at": "Sources/LibTmux/Creation.swift:342", "has": [ "windowAppearance" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Creation.swift:346", + "has": [ + "runGuarded" + ], + "calls": "runGuarded" + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:34", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2328,12 +7140,21 @@ "at": "Sources/LibTmux/Creation.swift:322", "has": [ "identifier" - ] - }, - { - "at": "Sources/LibTmux/Formats.swift:215", - "has": [ - "identifier" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Creation.swift:330", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] @@ -2347,59 +7168,21 @@ "at": "Sources/LibTmux/FilteredListings.swift:116", "has": [ "filtered" - ] - } - ] - }, - { - "port": "cxx", - "name": "execute", - "why": "Renders the control request it is given and writes it to the control client, one command to a line.", - "evidence": [ - { - "at": "src/connection.cpp:1114", - "has": [ - "Connection::execute" - ] - }, - { - "at": "src/connection.cpp:1117", - "has": [ - "render_request(std::move(request))" - ] - }, - { - "at": "src/connection.cpp:1161", - "has": [ - "write_bytes(*rendered" - ] - } - ] - }, - { - "port": "go", - "name": "appendPopupVersion33Arguments", - "kind": "builder", - "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", - "evidence": [ - { - "at": "tmux/pane_popup.go:326", - "has": [ - "func appendPopupVersion33Arguments(" - ] - } - ] - }, - { - "port": "go", - "name": "appendPopupVersion36Arguments", - "kind": "builder", - "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", - "evidence": [ - { - "at": "tmux/pane_popup.go:376", - "has": [ - "func appendPopupVersion36Arguments(" + ], + "reaches": [ + { + "at": "Sources/LibTmux/FilteredListings.swift:125", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } ] } ] diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index ff94f90f5..9d49ceb9e 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -404,6 +404,31 @@ ] } ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "switch_client" + ], + "commands": [ + "list-commands" + ], + "why": "switch_client asks list-commands which spelling of switch-client a configured command-alias leaves alone, as a fence before the command it sends; the caller did not ask for the listing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"" + ] + } + ] } ] } diff --git a/scripts/tmux-usage/guards.json b/scripts/tmux-usage/guards.json new file mode 100644 index 000000000..1a8970836 --- /dev/null +++ b/scripts/tmux-usage/guards.json @@ -0,0 +1,352 @@ +{ + "schemaVersion": 1, + "guards": [ + { + "port": "ruby", + "name": "execute_link", + "purpose": "refuses a window link that was removed or replaced since the handle was read", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:110", + "has": [ + "def execute_link(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:119", + "has": [ + "names.fetch(\"if-shell\")" + ] + } + ] + }, + { + "port": "ruby", + "name": "kill_session_with_windows", + "purpose": "refuses to kill a session that holds windows or panes outside the expected sets", + "conditional": true, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:154", + "has": [ + "def kill_session_with_windows(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:172", + "has": [ + "names.fetch(\"if-shell\")" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ] + } + ] + }, + { + "port": "lua", + "name": "guard", + "purpose": "refuses a window link that was removed or replaced since the handle was read", + "conditional": true, + "when": "the operation names a destination window link", + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:147", + "has": [ + "local function guard(ref, argv, pane_id)" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:171", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:307", + "has": [ + "guard(destination, argv)" + ] + } + ] + }, + { + "port": "ts", + "name": "guardedChain", + "purpose": "refuses a command list when the tmux daemon is not the one the handle was read from", + "conditional": true, + "when": "the command carries a tmux id the runtime has seen a daemon for", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/transport/daemon_guard.ts:31", + "has": [ + "function guardedChain(" + ] + }, + { + "at": "packages/libtmux/src/_internal/transport/daemon_guard.ts:36", + "has": [ + "\"if-shell\", \"-F\", daemonCondition(daemon), chain" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:44", + "has": [ + "lastObservedDaemon(runtime)" + ] + } + ] + }, + { + "port": "go", + "name": "guardCommand", + "purpose": "refuses a command when the tmux daemon is not the one the handle was read from", + "conditional": true, + "when": "the Server carries a daemon identity", + "evidence": [ + { + "at": "tmux/identity.go:130", + "has": [ + "func (s Server) guardCommand(" + ] + }, + { + "at": "tmux/identity.go:134", + "has": [ + "s.daemon == nil || s.boundToInstance()" + ] + }, + { + "at": "tmux/identity.go:151", + "has": [ + "\"if-shell\", \"-F\", condition, thenCommand, guard.failure" + ] + }, + { + "at": "tmux/control_startup.go:86", + "has": [ + "s.guardCommand(attach, false)" + ] + } + ] + }, + { + "port": "java", + "name": "guarded", + "owner": "IncarnationFence", + "purpose": "refuses a command when the tmux server is not the one the handle was made against", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:74", + "has": [ + "CommandResult guarded(long pid" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:77", + "has": [ + "\"if-shell\", \"-F\", condition, command, stale" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "fence.guarded(snapshot" + ] + } + ] + }, + { + "port": "java", + "name": "run", + "owner": "IncarnationFence", + "purpose": "refuses a command once the window it was made for has gone", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:87", + "has": [ + "CommandResult run(ServerSnapshot snapshot, WindowContext expected" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target, condition" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1281", + "has": [ + "fence.run(snapshot, expected, argv)" + ] + } + ] + }, + { + "port": "java", + "name": "killOwnedServer", + "purpose": "refuses to kill a tmux process that replaced the one the fixture started", + "evidence": [ + { + "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:147", + "has": [ + "private void killOwnedServer()" + ] + }, + { + "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", + "has": [ + "\"if-shell\", \"-F\"", + "\"kill-server\"" + ] + } + ] + }, + { + "port": "csharp", + "name": "Conditional", + "purpose": "refuses a command group when the tmux server generation is not the expected one", + "conditional": true, + "when": "the handle carries a server generation", + "evidence": [ + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:114", + "has": [ + "internal static IReadOnlyList Conditional(" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:117", + "has": [ + "\"if-shell\", \"-F\"" + ] + } + ] + }, + { + "port": "csharp", + "name": "CreateArguments", + "owner": "TmuxWindowPlacementGuard", + "purpose": "refuses a command when the window is no longer at the placement the handle was read at", + "conditional": true, + "when": "the handle carries its window placement", + "evidence": [ + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:34", + "has": [ + "CreateArguments(WindowEntityKey placement" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:47", + "has": [ + "\"if-shell\", \"-F\", \"-t\"" + ] + } + ] + }, + { + "port": "csharp", + "name": "CreateTargetWindowArguments", + "owner": "TmuxWindowPlacementGuard", + "purpose": "refuses a command when the target pane moved to another window", + "conditional": true, + "when": "the command targets a pane of a known window", + "evidence": [ + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:16", + "has": [ + "CreateTargetWindowArguments(string target" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:18", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + } + ] + }, + { + "port": "csharp", + "name": "Fence", + "purpose": "refuses a command when the tmux daemon does not report the version the handle was read at", + "conditional": true, + "when": "the daemon version is known", + "evidence": [ + { + "at": "src/LibTmux/Support/Versions.cs:183", + "has": [ + "Fence(TmuxVersion version" + ] + }, + { + "at": "src/LibTmux/Support/Versions.cs:184", + "has": [ + "\"if-shell\", \"-F\"" + ] + } + ] + }, + { + "port": "swift", + "name": "guardedAction", + "purpose": "refuses a command when the tmux server is not the one the value was read from", + "evidence": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:174", + "has": [ + "private static func guardedAction(" + ] + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:179", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:25", + "has": [ + "GuardedRequest(" + ] + } + ] + }, + { + "port": "swift", + "name": "commandGuard", + "purpose": "refuses a command when the target no longer matches what the value was read from", + "evidence": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:187", + "has": [ + "private static func commandGuard(" + ] + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:200", + "has": [ + "TmuxCommand(\"if-shell\", arguments)" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:214", + "has": [ + "GuardedRequest(" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/not-senders.json b/scripts/tmux-usage/not-senders.json index d45873a55..66b069594 100644 --- a/scripts/tmux-usage/not-senders.json +++ b/scripts/tmux-usage/not-senders.json @@ -4426,38 +4426,6 @@ } ] }, - { - "port": "ts", - "owner": "Pane", - "names": [ - "killIfWindowUnshared" - ], - "commands": [ - "kill-pane" - ], - "kind": "other-command", - "why": "The kill-pane is quoted into the then-branch of an if-shell; the method sends if-shell and tmux runs kill-pane when the condition holds.", - "evidence": [ - { - "at": "packages/libtmux/src/_internal/operations/plans.ts:195", - "has": [ - "[\"kill-pane\", \"-t\", target]" - ] - }, - { - "at": "packages/libtmux/src/_internal/operations/plans.ts:184", - "has": [ - "quoteCommand(command)" - ] - }, - { - "at": "packages/libtmux/src/_internal/operations/plans.ts:179", - "has": [ - "\"if-shell\"" - ] - } - ] - }, { "port": "go", "owner": "Plan", @@ -4589,40 +4557,6 @@ ] } ] - }, - { - "port": "cxx", - "owner": "Pane", - "names": [ - "break_out" - ], - "commands": [ - "break-pane", - "display-message", - "rename-window" - ], - "kind": "other-command", - "why": "Both branches are the then and else commands of the if-shell that break_out sends; tmux runs them.", - "evidence": [ - { - "at": "src/entities.cpp:1279", - "has": [ - "\"break-pane -d -s \"" - ] - }, - { - "at": "src/entities.cpp:1287", - "has": [ - "\"if-shell\", \"-F\", \"-t\", target" - ] - }, - { - "at": "src/entities.cpp:1366", - "has": [ - "\"rename-window -t \"" - ] - } - ] } ] } diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index ef23d256d..e353ad21d 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -680,6 +680,7 @@ const hasBody = {commandRows.map((row, i) => <> {i > 0 && ', '} {row.command} + {row.when && <>{' '}{row.when}} {row.scopes.map((use) => <>{' '} {use.scope!.flag || use.scope!.target ? -{use.scope!.flag || use.scope!.target} : null} {use.function ? {use.function.name} : {use.scope!.label}} diff --git a/site/src/components/tmux/TmuxUsage.astro b/site/src/components/tmux/TmuxUsage.astro index 8b97e7078..ac2143083 100644 --- a/site/src/components/tmux/TmuxUsage.astro +++ b/site/src/components/tmux/TmuxUsage.astro @@ -45,10 +45,13 @@ const headingOf = (group: (typeof usage.groups)[number]) => group.scope ? group. {row.name} {row.cells.map((links, index) => - {links.map((link) => - - - )} + {links.map((link) => + + + + + {link.when && {link.when}} + )} )} )} @@ -70,6 +73,9 @@ const headingOf = (group: (typeof usage.groups)[number]) => group.scope ? group. /* Chips stack flush at the start of the cell, one to a line, with an even gap. */ .tmux-usage__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; } .tmux-usage__links a, .tmux-usage__links code { white-space: nowrap; overflow-wrap: normal; } + /* A send that only some calls make says when, beside the method on its line, quieter than the name. */ + .tmux-usage__item { display: inline-flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; } + .tmux-usage__when { opacity: 0.65; font-size: 0.75rem; } /* The scope columns no longer fit beside each other: give each language its own block. */ @container tmux-usage (max-width: 50rem) { .tmux-usage thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json index 92e98e2c5..1f9f4ede6 100644 --- a/site/src/data/tmux-usage/csharp.json +++ b/site/src/data/tmux-usage/csharp.json @@ -280,7 +280,9 @@ { "command": "new-pane", "evidence": [ - "src/LibTmux/Pane.Topology.cs:251" + "src/LibTmux/Pane.Topology.cs:251", + "src/LibTmux/Pane.Topology.cs:249", + "src/LibTmux/Pane.Topology.cs:48" ], "scope": null } @@ -543,8 +545,12 @@ { "command": "split-window", "evidence": [ + "src/LibTmux/Pane.Topology.cs:576", + "src/LibTmux/Pane.Topology.cs:105", "src/LibTmux/Pane.Topology.cs:232" ], + "forwardable": true, + "reviewed": true, "scope": null } ], @@ -1520,7 +1526,9 @@ { "command": "show-options", "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:155" + "src/LibTmux/Options/TmuxOptions.cs:155", + "src/LibTmux/Options/TmuxOptions.cs:154", + "src/LibTmux/Options/TmuxOptions.cs:94" ], "scope": null } diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json index 87ad203fc..c312c25b8 100644 --- a/site/src/data/tmux-usage/cxx.json +++ b/site/src/data/tmux-usage/cxx.json @@ -176,12 +176,38 @@ { "command": "refresh-client", "evidence": [ - "src/connection.cpp:1256" + "src/connection.cpp:1256", + "src/connection.cpp:1249" ], + "reviewed": true, "scope": null } ], "libtmux::Pane::break_out": [ + { + "command": "break-pane", + "evidence": [ + "src/entities.cpp:1289", + "src/entities.cpp:1287", + "src/entities.cpp:1279", + "src/entities.cpp:1451" + ], + "reviewed": true, + "scope": null, + "when": "the window has several panes" + }, + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1289", + "src/entities.cpp:1287", + "src/entities.cpp:1281", + "src/entities.cpp:1451" + ], + "reviewed": true, + "scope": null, + "when": "the window has one pane" + }, { "command": "if-shell", "evidence": [ @@ -191,6 +217,18 @@ ], "reviewed": true, "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "src/entities.cpp:1373", + "src/entities.cpp:1371", + "src/entities.cpp:1366", + "src/entities.cpp:1452" + ], + "reviewed": true, + "scope": null, + "when": "a name is given" } ], "libtmux::Pane::capture": [ @@ -706,7 +744,8 @@ "src/server.cpp:687" ], "reviewed": true, - "scope": null + "scope": null, + "when": "layouts that depend on the tmux version" } ], "libtmux::Server::wait_for": [ diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json index b3d4a0c8f..17fbb908d 100644 --- a/site/src/data/tmux-usage/fsharp.json +++ b/site/src/data/tmux-usage/fsharp.json @@ -301,7 +301,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Pane.Topology.cs:231" + "src/LibTmux/Pane.Topology.cs:231", + "src/LibTmux/Pane.Topology.cs:229", + "src/LibTmux/Pane.Topology.cs:105" ], "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", @@ -323,7 +325,8 @@ "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Session.GetPanesAsync" - } + }, + "when": "the spec names a first window" }, { "command": "list-panes", @@ -339,7 +342,8 @@ "port": "csharp", "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Window.GetPanesAsync" - } + }, + "when": "the spec has more than one window" }, { "command": "new-session", @@ -374,7 +378,8 @@ "reviewed": true, "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", "symbol": "LibTmux.Session.CreateWindowAsync" - } + }, + "when": "the spec has more than one window" } ], "LibTmux.FSharp.Server.tryFindClient": [ diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 0867610bc..1c0198360 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -97,6 +97,109 @@ "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", "schemaVersion": 1, "symbols": { + "tmux.Client.Refresh": [ + { + "command": "list-clients", + "evidence": [ + "tmux/lookup.go:128" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/lookup.go:94" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Client" + } + } + ], + "tmux.Client.ResolveAttachment": [ + { + "command": "display-message", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:210", + "tmux/snapshot_capture.go:24" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-clients", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/snapshot_capture.go:46", + "tmux/snapshot_capture.go:49" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-panes", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": "server", + "via": { + "evidence": [ + "tmux/snapshot_capture.go:45", + "tmux/snapshot_capture.go:49" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/snapshot_capture.go:43", + "tmux/snapshot_capture.go:49" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-windows", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": "server", + "via": { + "evidence": [ + "tmux/snapshot_capture.go:44", + "tmux/snapshot_capture.go:49" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Snapshot" + } + } + ], "tmux.GlobalSessionScope.AppendHook": [ { "command": "set-hook", @@ -412,6 +515,36 @@ ], "reviewed": true, "scope": null + }, + { + "command": "delete-buffer", + "evidence": [ + "tmux/pane_capture.go:200" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/server_buffers.go:165" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.DeleteBuffer" + } + }, + { + "command": "save-buffer", + "evidence": [ + "tmux/pane_capture.go:201" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/server_buffers.go:190" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.SaveBuffer" + } } ], "tmux.Pane.ChooseBuffer": [ @@ -811,6 +944,89 @@ "scope": null } ], + "tmux.Running.Kill": [ + { + "command": "run-shell", + "evidence": [ + "tmux/session_run.go:593" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/server_exec.go:235" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.RunShell" + } + } + ], + "tmux.Running.StreamTo": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/session_run.go:549" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:346", + "tmux/control_observation.go:301" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "delete-buffer", + "evidence": [ + "tmux/session_run.go:549" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:346", + "tmux/control_observation.go:301" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "refresh-client", + "evidence": [ + "tmux/session_run.go:549" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:346", + "tmux/control_observation.go:301" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "save-buffer", + "evidence": [ + "tmux/session_run.go:549" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:346", + "tmux/control_observation.go:301" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.OpenObservation" + } + } + ], "tmux.Server.AppendOption": [ { "command": "set-option", @@ -952,7 +1168,8 @@ "tmux/session_lifecycle.go:137" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the request sets Pattern" }, { "command": "list-sessions", @@ -1079,7 +1296,8 @@ "tmux/session_lifecycle.go:219" ], "reviewed": true, - "scope": null + "scope": null, + "when": "KillExisting is set, session exists" }, { "command": "new-session", @@ -1089,20 +1307,12 @@ "tmux/session_lifecycle.go:230", "tmux/session_lifecycle.go:234" ], + "forwardable": true, "reviewed": true, "scope": null } ], "tmux.Server.NewSessionConnection": [ - { - "command": "if-shell", - "evidence": [ - "tmux/connection.go:191", - "tmux/connection.go:185", - "tmux/identity.go:151" - ], - "scope": null - }, { "command": "new-session", "evidence": [ @@ -1117,26 +1327,56 @@ ], "tmux.Server.OpenControl": [ { - "command": "if-shell", + "command": "attach-session", "evidence": [ + "tmux/control_startup.go:122", "tmux/control_startup.go:91", - "tmux/control_startup.go:86", - "tmux/identity.go:151", + "tmux/control_startup.go:80", + "tmux/identity.go:134", "tmux/control_startup.go:42" ], + "reviewed": true, "scope": null + }, + { + "command": "if-shell", + "evidence": [ + "tmux/identity.go:151", + "tmux/identity.go:134", + "tmux/control_startup.go:86", + "tmux/control_startup.go:122", + "tmux/control_startup.go:42" + ], + "reviewed": true, + "scope": null, + "when": "a Server carrying a daemon identity" } ], "tmux.Server.OpenNotifications": [ { - "command": "if-shell", + "command": "attach-session", "evidence": [ + "tmux/control_startup.go:122", "tmux/control_startup.go:91", - "tmux/control_startup.go:86", - "tmux/identity.go:151", + "tmux/control_startup.go:80", + "tmux/identity.go:134", "tmux/notification_stream.go:67" ], + "reviewed": true, "scope": null + }, + { + "command": "if-shell", + "evidence": [ + "tmux/identity.go:151", + "tmux/identity.go:134", + "tmux/control_startup.go:86", + "tmux/control_startup.go:122", + "tmux/notification_stream.go:67" + ], + "reviewed": true, + "scope": null, + "when": "a Server carrying a daemon identity" } ], "tmux.Server.RefreshClient": [ @@ -1343,6 +1583,7 @@ "tmux/snapshot_capture.go:46", "tmux/snapshot_capture.go:49" ], + "forwardable": true, "reviewed": true, "scope": null }, @@ -1352,6 +1593,7 @@ "tmux/snapshot_capture.go:45", "tmux/snapshot_capture.go:49" ], + "forwardable": true, "reviewed": true, "scope": "server" }, @@ -1361,6 +1603,7 @@ "tmux/snapshot_capture.go:43", "tmux/snapshot_capture.go:49" ], + "forwardable": true, "reviewed": true, "scope": null }, @@ -1370,6 +1613,7 @@ "tmux/snapshot_capture.go:44", "tmux/snapshot_capture.go:49" ], + "forwardable": true, "reviewed": true, "scope": "server" } @@ -1588,6 +1832,23 @@ "scope": null } ], + "tmux.Session.Refresh": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/lookup.go:109" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/lookup.go:11" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Session" + } + } + ], "tmux.Session.RemoveEnvironment": [ { "command": "set-environment", @@ -1695,6 +1956,23 @@ "scope": null } ], + "tmux.Session.Start": [ + { + "command": "respawn-pane", + "evidence": [ + "tmux/session_run.go:169" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/pane_process.go:66" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.Respawn" + } + } + ], "tmux.Session.SwitchClient": [ { "command": "switch-client", @@ -1930,7 +2208,9 @@ { "command": "select-layout", "evidence": [ - "tmux/window_layout.go:98" + "tmux/window_layout.go:98", + "tmux/window_layout.go:94", + "tmux/window_layout.go:306" ], "scope": null } @@ -2075,9 +2355,39 @@ "tmux/tmuxtest/resources.go:56" ], "reviewed": true, + "scope": null, + "when": "the test ends, in t.Cleanup" + }, + { + "command": "new-session", + "evidence": [ + "tmux/session_lifecycle.go:234", + "tmux/session_lifecycle.go:230", + "tmux/tmuxtest/resources.go:49" + ], + "reviewed": true, "scope": null } ], + "tmuxtest.Type": [ + { + "command": "send-keys", + "evidence": [ + "tmux/tmuxtest/screen.go:117" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/pane_input.go:164", + "tmux/pane_input.go:157", + "tmux/pane_input.go:203" + ], + "port": "go", + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.SendKeys" + } + } + ], "workspace.Pane.Enter": [ { "command": "send-keys", diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index a882d99a7..ed034eddf 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -432,7 +432,7 @@ ], "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close": [ { - "command": "if-shell", + "command": "kill-server", "evidence": [ "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:129" @@ -793,7 +793,8 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:577" ], - "scope": "window" + "scope": "window", + "when": "the pane is synchronized" }, { "command": "send-keys", @@ -827,7 +828,8 @@ "libtmux/src/main/java/io/github/libtmux/Pane.java:667", "libtmux/src/main/java/io/github/libtmux/Pane.java:619" ], - "scope": "window" + "scope": "window", + "when": "the pane is synchronized" }, { "command": "send-keys", diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 72af59114..348e4bd2a 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -112,7 +112,8 @@ "evidence": [ "src/control_io.jl:124" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "delete-buffer", @@ -120,7 +121,8 @@ "src/control_io.jl:60", "src/control_io.jl:150" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "list-buffers", @@ -128,14 +130,16 @@ "src/control_io.jl:36", "src/control_io.jl:112" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "save-buffer", "evidence": [ "src/control_io.jl:129" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.capture_pane": [ @@ -146,7 +150,8 @@ "src/control_io.jl:173" ], "reviewed": true, - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.delete_buffer": [ @@ -155,7 +160,8 @@ "evidence": [ "src/control_buffers.jl:122" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.detach_client": [ @@ -164,7 +170,8 @@ "evidence": [ "src/control_clients.jl:75" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "list-clients", @@ -172,7 +179,8 @@ "src/control_clients.jl:9", "src/control_clients.jl:74" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.format_hints": [ @@ -199,7 +207,8 @@ "src/configuration.jl:299", "src/configuration.jl:353" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.get_option": [ @@ -209,7 +218,8 @@ "src/configuration.jl:228", "src/configuration.jl:257" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.kill_pane": [ @@ -245,7 +255,8 @@ "evidence": [ "src/control_topology.jl:285" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.load_buffer": [ @@ -255,7 +266,8 @@ "src/acquisition.jl:50", "src/pane_io.jl:185" ], - "scope": null + "scope": null, + "when": "on a Server" }, { "command": "list-buffers", @@ -263,7 +275,8 @@ "src/pane_io.jl:128", "src/pane_io.jl:187" ], - "scope": null + "scope": null, + "when": "on a Server" }, { "command": "load-buffer", @@ -271,7 +284,8 @@ "src/control_buffers.jl:37", "src/control_buffers.jl:71" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.move_pane": [ @@ -280,7 +294,8 @@ "evidence": [ "src/control_topology.jl:199" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.move_window": [ @@ -289,7 +304,8 @@ "evidence": [ "src/control_topology.jl:285" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.new_session": [ @@ -298,7 +314,8 @@ "evidence": [ "src/operations.jl:191" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.new_window": [ @@ -307,7 +324,8 @@ "evidence": [ "src/operations.jl:230" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.observe_output": [ @@ -324,16 +342,19 @@ "evidence": [ "src/observation.jl:541" ], - "scope": null + "scope": null, + "when": "output is not yet enabled" } ], "LibTmux.open_control": [ { "command": "attach-session", "evidence": [ - "src/control.jl:637", + "src/control.jl:642", + "src/control.jl:628", "src/control.jl:1095" ], + "reviewed": true, "scope": null }, { @@ -362,7 +383,8 @@ "src/control_io.jl:60", "src/control_buffers.jl:189" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "list-buffers", @@ -370,7 +392,8 @@ "src/pane_io.jl:128", "src/pane_io.jl:274" ], - "scope": null + "scope": null, + "when": "on a Server" }, { "command": "list-commands", @@ -378,7 +401,8 @@ "src/control_buffers.jl:132", "src/control_buffers.jl:174" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "load-buffer", @@ -386,7 +410,8 @@ "src/control_buffers.jl:37", "src/control_buffers.jl:175" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "paste-buffer", @@ -397,7 +422,8 @@ "src/pane_io.jl:278" ], "reviewed": true, - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.read_formats": [ @@ -407,7 +433,8 @@ "src/control_formats.jl:19", "src/control_formats.jl:56" ], - "scope": "window" + "scope": "window", + "when": "on a ControlConnection" } ], "LibTmux.remove_environment": [ @@ -495,14 +522,16 @@ "src/control_io.jl:36", "src/control_buffers.jl:96" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "save-buffer", "evidence": [ "src/control_buffers.jl:100" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.select_layout": [ @@ -511,7 +540,8 @@ "evidence": [ "src/control_topology.jl:141" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.select_pane": [ @@ -520,7 +550,8 @@ "evidence": [ "src/control_topology.jl:88" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.select_window": [ @@ -529,7 +560,8 @@ "evidence": [ "src/control_topology.jl:362" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.send_keys": [ @@ -538,7 +570,8 @@ "evidence": [ "src/control_operations.jl:196" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.set_environment": [ @@ -547,7 +580,8 @@ "evidence": [ "src/configuration.jl:375" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.set_hook": [ @@ -556,7 +590,8 @@ "evidence": [ "src/configuration.jl:478" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.set_option": [ @@ -565,7 +600,8 @@ "evidence": [ "src/configuration.jl:280" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.snapshot": [ @@ -575,7 +611,8 @@ "src/acquisition.jl:50", "src/acquisition.jl:227" ], - "scope": null + "scope": null, + "when": "on a Server" }, { "command": "list-clients", @@ -583,7 +620,8 @@ "src/acquisition.jl:129", "src/acquisition.jl:231" ], - "scope": null + "scope": null, + "when": "on a Server" }, { "command": "list-panes", @@ -593,7 +631,8 @@ "src/acquisition.jl:231" ], "reviewed": true, - "scope": "server" + "scope": "server", + "when": "on a Server" }, { "command": "list-sessions", @@ -601,7 +640,8 @@ "src/acquisition.jl:104", "src/acquisition.jl:231" ], - "scope": null + "scope": null, + "when": "on a Server" }, { "command": "list-windows", @@ -609,7 +649,8 @@ "src/acquisition.jl:107", "src/acquisition.jl:231" ], - "scope": "server" + "scope": "server", + "when": "on a Server" } ], "LibTmux.split_window": [ @@ -618,7 +659,8 @@ "evidence": [ "src/operations.jl:273" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.subscribe_format": [ @@ -644,7 +686,8 @@ "evidence": [ "src/control_topology.jl:213" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.swap_window": [ @@ -653,7 +696,8 @@ "evidence": [ "src/control_topology.jl:348" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.switch_client": [ @@ -663,14 +707,16 @@ "src/control_clients.jl:9", "src/control_clients.jl:51" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" }, { "command": "switch-client", "evidence": [ "src/control_clients.jl:54" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.unlink_window": [ @@ -679,7 +725,8 @@ "evidence": [ "src/control_topology.jl:319" ], - "scope": null + "scope": null, + "when": "on a ControlConnection" } ], "LibTmux.unset_environment": [ @@ -698,7 +745,8 @@ "evidence": [ "src/configuration.jl:486" ], - "scope": null + "scope": null, + "when": "on a Server" } ], "LibTmux.unset_option": [ @@ -707,7 +755,8 @@ "evidence": [ "src/configuration.jl:293" ], - "scope": null + "scope": null, + "when": "on a Server" } ] } diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 9eaf44677..64bf45473 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -1233,7 +1233,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" - } + }, + "when": "the pane is synchronized" }, { "command": "send-keys", @@ -1293,7 +1294,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" - } + }, + "when": "the pane is synchronized" }, { "command": "send-keys", diff --git a/site/src/data/tmux-usage/lua.json b/site/src/data/tmux-usage/lua.json index 6f7386b7f..8e4f7c1e4 100644 --- a/site/src/data/tmux-usage/lua.json +++ b/site/src/data/tmux-usage/lua.json @@ -786,7 +786,8 @@ "lua/libtmux/_internal/entity.lua:238" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the direction is \"last\"" }, { "command": "next-window", @@ -795,7 +796,8 @@ "lua/libtmux/_internal/entity.lua:238" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the direction is \"next\"" }, { "command": "previous-window", @@ -804,7 +806,8 @@ "lua/libtmux/_internal/entity.lua:238" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the direction is \"previous\"" } ], "libtmux.Session:new_window": [ diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json index d7dd06325..bb3571623 100644 --- a/site/src/data/tmux-usage/powershell.json +++ b/site/src/data/tmux-usage/powershell.json @@ -220,7 +220,9 @@ "scope": null, "via": { "evidence": [ - "src/LibTmux/Options/TmuxOptions.cs:155" + "src/LibTmux/Options/TmuxOptions.cs:155", + "src/LibTmux/Options/TmuxOptions.cs:154", + "src/LibTmux/Options/TmuxOptions.cs:94" ], "port": "csharp", "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", @@ -700,9 +702,12 @@ "scope": null, "via": { "evidence": [ + "src/LibTmux/Pane.Topology.cs:576", + "src/LibTmux/Pane.Topology.cs:105", "src/LibTmux/Pane.Topology.cs:232" ], "port": "csharp", + "reviewed": true, "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", "symbol": "LibTmux.Pane.SplitAsync" } diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json index 79cd4bf7d..198e6ba85 100644 --- a/site/src/data/tmux-usage/py.json +++ b/site/src/data/tmux-usage/py.json @@ -863,7 +863,8 @@ "src/libtmux/server.py:2311" ], "reviewed": true, - "scope": null + "scope": null, + "when": "kill_session is true, session exists" }, { "command": "new-session", diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json index 0e06c6334..9443998b4 100644 --- a/site/src/data/tmux-usage/rs.json +++ b/site/src/data/tmux-usage/rs.json @@ -260,10 +260,10 @@ { "command": "capture-pane", "evidence": [ + "crates/libtmux/src/pane/observe.rs:171", "crates/libtmux/src/pane.rs:1618", "crates/libtmux/src/pane.rs:1613", "crates/libtmux/src/pane/observe.rs:169", - "crates/libtmux/src/pane/observe.rs:171", "crates/libtmux/src/pane/observe.rs:121" ], "reviewed": true, @@ -274,10 +274,10 @@ { "command": "capture-pane", "evidence": [ + "crates/libtmux/src/pane/observe.rs:171", "crates/libtmux/src/pane.rs:1618", "crates/libtmux/src/pane.rs:1613", "crates/libtmux/src/pane/observe.rs:169", - "crates/libtmux/src/pane/observe.rs:171", "crates/libtmux/src/pane/observe.rs:237" ], "reviewed": true, @@ -288,10 +288,10 @@ { "command": "capture-pane", "evidence": [ + "crates/libtmux/src/pane/observe.rs:171", "crates/libtmux/src/pane.rs:1618", "crates/libtmux/src/pane.rs:1613", - "crates/libtmux/src/pane/observe.rs:169", - "crates/libtmux/src/pane/observe.rs:171" + "crates/libtmux/src/pane/observe.rs:169" ], "reviewed": true, "scope": null @@ -455,7 +455,9 @@ { "command": "send-keys", "evidence": [ - "crates/libtmux/src/pane.rs:670" + "crates/libtmux/src/pane.rs:670", + "crates/libtmux/src/pane.rs:673", + "crates/libtmux/src/pane.rs:68" ], "scope": null } @@ -516,6 +518,7 @@ { "command": "split-window", "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", "crates/libtmux/src/window.rs:1948", "crates/libtmux/src/internal/listing.rs:444", "crates/libtmux/src/pane.rs:515" @@ -594,6 +597,335 @@ "scope": null } ], + "plan.Plan.run": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:531", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a capture-pane step" + }, + { + "command": "kill-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:580", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-pane step" + }, + { + "command": "kill-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:317", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-window step" + }, + { + "command": "new-session", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/sessions.rs:92", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-session step" + }, + { + "command": "new-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:151", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-window step" + }, + { + "command": "rename-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:271", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a rename-window step" + }, + { + "command": "run-shell", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/timing.rs:81", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a run-shell step" + }, + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:370", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-layout step" + }, + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:481", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-pane step" + }, + { + "command": "select-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:223", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-window step" + }, + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:412", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a send-keys step" + }, + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/options.rs:210", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-environment step" + }, + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/options.rs:123", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-option step" + }, + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:257", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a split-window step" + } + ], + "plan.Plan.run_over_control_mode": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:531", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a capture-pane step" + }, + { + "command": "kill-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:580", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-pane step" + }, + { + "command": "kill-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:317", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-window step" + }, + { + "command": "new-session", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/sessions.rs:92", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-session step" + }, + { + "command": "new-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:151", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-window step" + }, + { + "command": "rename-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:271", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a rename-window step" + }, + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:370", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-layout step" + }, + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:481", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-pane step" + }, + { + "command": "select-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:223", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-window step" + }, + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:412", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a send-keys step" + }, + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/options.rs:210", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-environment step" + }, + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/options.rs:123", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-option step" + }, + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:257", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a split-window step" + } + ], "server.Server.access_rules": [ { "command": "server-access", @@ -781,6 +1113,7 @@ { "command": "new-session", "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", "crates/libtmux/src/server.rs:2286", "crates/libtmux/src/internal/listing.rs:411", "crates/libtmux/src/server.rs:898" @@ -1020,6 +1353,8 @@ "command": "wait-for", "evidence": [ "crates/libtmux/src/internal/wait_for.rs:341", + "crates/libtmux/src/internal/wait_for.rs:341", + "crates/libtmux/src/internal/wait_for.rs:363", "crates/libtmux/src/server/channels.rs:131" ], "scope": null @@ -1073,8 +1408,8 @@ { "command": "wait-for", "evidence": [ - "crates/libtmux/src/internal/wait_for.rs:363", "crates/libtmux/src/internal/wait_for.rs:248", + "crates/libtmux/src/internal/wait_for.rs:363", "crates/libtmux/src/internal/wait_for.rs:221", "crates/libtmux/src/server/channels.rs:225" ], @@ -1161,6 +1496,7 @@ { "command": "new-window", "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", "crates/libtmux/src/session.rs:1139", "crates/libtmux/src/internal/listing.rs:427", "crates/libtmux/src/session.rs:495" @@ -1578,6 +1914,7 @@ { "command": "split-window", "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", "crates/libtmux/src/window.rs:1948", "crates/libtmux/src/internal/listing.rs:444", "crates/libtmux/src/window.rs:367" diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json index 249a89b97..08683cba7 100644 --- a/site/src/data/tmux-usage/ruby.json +++ b/site/src/data/tmux-usage/ruby.json @@ -305,14 +305,6 @@ } ], "LibTmux::Async::Server#switch_client": [ - { - "command": "list-commands", - "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:137", - "gems/libtmux/lib/libtmux/terminal.rb:41" - ], - "scope": null - }, { "command": "switch-client", "evidence": [ @@ -390,7 +382,8 @@ "gems/libtmux/lib/libtmux/options.rb:65" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the receiver is a Hooks" } ], "LibTmux::Hooks#run": [ @@ -419,7 +412,8 @@ "gems/libtmux/lib/libtmux/options.rb:108" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the receiver is a Hooks" } ], "LibTmux::Options#get": [ @@ -442,7 +436,8 @@ "gems/libtmux/lib/libtmux/options.rb:65" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the receiver is an Options" } ], "LibTmux::Options#set": [ @@ -462,7 +457,8 @@ "gems/libtmux/lib/libtmux/options.rb:108" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the receiver is an Options" } ], "LibTmux::Pane#break_out": [ @@ -814,14 +810,6 @@ } ], "LibTmux::Server#switch_client": [ - { - "command": "list-commands", - "evidence": [ - "gems/libtmux/lib/libtmux/operations.rb:137", - "gems/libtmux/lib/libtmux/terminal.rb:41" - ], - "scope": null - }, { "command": "switch-client", "evidence": [ diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index baa1c27d8..a9261997d 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -1253,7 +1253,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" - } + }, + "when": "the pane is synchronized" }, { "command": "send-keys", @@ -1316,7 +1317,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" - } + }, + "when": "the pane is synchronized" }, { "command": "send-keys", @@ -2748,7 +2750,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendKeys" - } + }, + "when": "the pane is synchronized" }, { "command": "send-keys", @@ -2811,7 +2814,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" - } + }, + "when": "the pane is synchronized" }, { "command": "send-keys", diff --git a/site/src/data/tmux-usage/swift.json b/site/src/data/tmux-usage/swift.json index 3972857a6..3f5024e1e 100644 --- a/site/src/data/tmux-usage/swift.json +++ b/site/src/data/tmux-usage/swift.json @@ -123,7 +123,8 @@ "Sources/LibTmux/Navigation.swift:144" ], "reviewed": true, - "scope": null + "scope": null, + "when": "a name is given" }, { "command": "if-shell", @@ -132,7 +133,8 @@ "Sources/LibTmux/Navigation.swift:144" ], "reviewed": true, - "scope": null + "scope": null, + "when": "no name is given" } ], "Server.buffer(named:)": [ @@ -369,7 +371,8 @@ "Sources/LibTmux/WindowTransfers.swift:27" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the window is linked, not moved" } ], "Server.loadBuffer(from:named:)": [ @@ -391,7 +394,8 @@ "Sources/LibTmux/WindowTransfers.swift:10" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the window is moved, not linked" } ], "Server.newSession(named:startDirectory:windowName:width:height:)": [ @@ -407,7 +411,8 @@ "evidence": [ "Sources/LibTmux/Creation.swift:154" ], - "scope": null + "scope": null, + "when": "a width or height is requested" } ], "Server.newWindow(_:_:named:startDirectory:)": [ diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index c6b7d248b..f8b850a67 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -125,7 +125,8 @@ "packages/mcp/src/server.ts:244" ], "reviewed": true, - "scope": null + "scope": null, + "when": "a minimal launch, no explicit selection" }, { "command": "show-options", @@ -134,7 +135,8 @@ "packages/mcp/src/server.ts:244" ], "reviewed": true, - "scope": null + "scope": null, + "when": "a minimal launch, no explicit selection" }, { "command": "start-server", @@ -143,7 +145,8 @@ "packages/mcp/src/server.ts:244" ], "reviewed": true, - "scope": null + "scope": null, + "when": "a minimal launch, no explicit selection" } ], "pane.Pane.breakOut": [ @@ -304,6 +307,18 @@ ], "reviewed": true, "scope": null + }, + { + "command": "kill-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/mutations.ts:86", + "packages/libtmux/src/_internal/operations/plans.ts:195", + "packages/libtmux/src/_internal/operations/plans.ts:192", + "packages/libtmux/src/pane.ts:255" + ], + "reviewed": true, + "scope": null, + "when": "the window has one placement" } ], "pane.Pane.pasteBuffer": [ @@ -490,6 +505,17 @@ "packages/libtmux/src/pane.ts:400" ], "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:295", + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/pane.ts:400" + ], + "reviewed": true, + "scope": null, + "when": "the window is zoomed" } ], "pane.Pane.zoom": [ @@ -501,6 +527,17 @@ ], "scope": null }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:267", + "packages/libtmux/src/_internal/operations/topology.ts:276", + "packages/libtmux/src/pane.ts:386" + ], + "reviewed": true, + "scope": null, + "when": "the window is not zoomed" + }, { "command": "select-pane", "evidence": [ @@ -853,7 +890,8 @@ "packages/libtmux/src/server.ts:955" ], "reviewed": true, - "scope": null + "scope": null, + "when": "layouts that depend on the tmux version" } ], "session.Session.detach": [ @@ -927,7 +965,8 @@ "packages/libtmux/src/session.ts:378" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the target is \"last\"" }, { "command": "next-window", @@ -936,7 +975,8 @@ "packages/libtmux/src/session.ts:378" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the target is \"next\"" }, { "command": "previous-window", @@ -946,7 +986,8 @@ "packages/libtmux/src/session.ts:378" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the target is \"previous\"" }, { "command": "select-window", @@ -1285,6 +1326,17 @@ "packages/libtmux/src/window.ts:387" ], "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:295", + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/window.ts:387" + ], + "reviewed": true, + "scope": null, + "when": "the window is zoomed" } ] } diff --git a/site/src/lib/symbol-markdown.ts b/site/src/lib/symbol-markdown.ts index eeb5500de..3f06cb35c 100644 --- a/site/src/lib/symbol-markdown.ts +++ b/site/src/lib/symbol-markdown.ts @@ -195,7 +195,8 @@ export function symbolMarkdown(ctx: MarkdownContext): string { for (const send of port && !ctx.manualLinks ? tmuxSymbolSends(port, symbol.publicId ?? symbol.id) : []) { const scopes = send.scopes.filter((use) => use.scope).map((use) => `${use.scope!.label.toLowerCase()} scope${use.function ? ` [\`${use.function.name}\`](${use.function.href})` : ''}`) - out.push(`tmux command: [\`${send.command}\`](${send.manualHref})${scopes.length ? `, ${scopes.join(', ')}` : ''}`, '') + const when = send.scopes.find((use) => use.when)?.when + out.push(`tmux command: [\`${send.command}\`](${send.manualHref})${scopes.length ? `, ${scopes.join(', ')}` : ''}${when ? ` (${when})` : ''}`, '') } for (const command of commands) out.push(`tmux command: [\`${command.name}\`](${command.href})`, '') const catalog = ctx.catalogLinks ?? (port && !ctx.manualLinks ? tmuxCatalogKindsForSymbol(port, symbol) diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts index 3b152547f..b5626170b 100644 --- a/site/src/lib/tmux-library-usage.ts +++ b/site/src/lib/tmux-library-usage.ts @@ -35,6 +35,8 @@ export interface UsageUse { evidence: string[] /** A reviewed claim the generator checked line by line, not a scan result. */ reviewed?: boolean + /** When the method sends it, for a send that only some calls make: a few words, shown beside the method. */ + when?: string /** The core library symbol a wrapper forwards to, and the lines that show it sends. */ via?: { port: string; symbol: string; revision?: string; evidence: string[]; reviewed?: boolean } } @@ -200,6 +202,8 @@ export interface UsageLink { evidence: string[] hops: number reviewed: boolean + /** The condition under which the method sends it, when not every call does. */ + when?: string via?: UsageUse['via'] } @@ -220,7 +224,7 @@ function linkFor(port: string, publicId: string, use: UsageUse, version?: string if (!symbol || !href) return undefined return { port, symbolId: publicId, label: usageLabel(port, symbol), kind: symbol.kind, href, scope: use.scope, owner: ownerOf(port, symbol)?.name, - evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), ...(use.via ? { via: use.via } : {}), + evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), ...(use.when ? { when: use.when } : {}), ...(use.via ? { via: use.via } : {}), } } @@ -251,7 +255,7 @@ export function tmuxUsage(command: string, { scope, version }: { scope?: string; export interface SymbolUsage { command: string - scopes: { scope: TmuxScope | undefined; evidence: string[]; hops: number; reviewed: boolean; listed: boolean; via?: UsageUse['via'] }[] + scopes: { scope: TmuxScope | undefined; evidence: string[]; hops: number; reviewed: boolean; listed: boolean; when?: string; via?: UsageUse['via'] }[] } /** The commands one symbol sends, with the scope and the lines that show it. Every hop counts here. */ @@ -263,8 +267,8 @@ export function tmuxUsageOf(port: string, publicId: string): SymbolUsage[] { return { command, scopes: scopes.length - ? scopes.flatMap((scope) => list.filter((use) => use.scope === scope.id).map((use) => ({ scope, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), via: use.via }))) - : list.map((use) => ({ scope: undefined, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), via: use.via })), + ? scopes.flatMap((scope) => list.filter((use) => use.scope === scope.id).map((use) => ({ scope, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), when: use.when, via: use.via }))) + : list.map((use) => ({ scope: undefined, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), when: use.when, via: use.via })), } }) } diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index 7356f87b4..2746dce13 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -250,6 +250,8 @@ export interface CommandRow { command: string href: string scopes: SymbolSend['scopes'] + /** When the symbol sends the command, if only some calls do. */ + when?: string } /** @@ -258,7 +260,10 @@ export interface CommandRow { * then what it sends through a helper, which is rarely why anyone is here. */ export function tmuxCommandRows(sends: SymbolSend[], equivalents: { name: string; href: string }[]): CommandRow[] { - const rows = (list: SymbolSend[]) => list.map((send): CommandRow => ({ command: send.command, href: send.manualHref, scopes: send.scopes.filter((use) => use.scope) })) + const rows = (list: SymbolSend[]) => list.map((send): CommandRow => ({ + command: send.command, href: send.manualHref, scopes: send.scopes.filter((use) => use.scope), + ...(send.scopes.find((use) => use.when) ? { when: send.scopes.find((use) => use.when)!.when } : {}), + })) const direct = (send: SymbolSend) => send.scopes.some((use) => use.listed) const sent = new Set(sends.map((send) => send.command)) return [ diff --git a/site/src/styles/api.css b/site/src/styles/api.css index 174679ee5..78b5f7d4b 100644 --- a/site/src/styles/api.css +++ b/site/src/styles/api.css @@ -182,6 +182,8 @@ dl.gp-sphinx-api-container > dt.gp-sphinx-api-header:only-child { /* A method that sends a tmux command names the flag and the C function behind it. */ .tmux-send { margin-inline-start: 0.25rem; } .tmux-send > * + * { margin-inline-start: 0.25rem; } +/* A command a method sends only on some calls says when, quieter than the command. */ +.tmux-when { margin-inline-start: 0.25rem; opacity: 0.65; font-size: 0.85em; } /* * The member list on a type's page. diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 03a4dcf00..ffa418f2e 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -492,6 +492,66 @@ describe('the rendered lists', () => { } }) + it('says beside a method when it sends the command only on some calls', async () => { + // TypeScript's selectWindow sends previous-window only for the target "previous"; the row says so and links the method. + const document = await render({ usage: tmuxResolvedUsage('latest', 'previous-window') }) + const row = document.querySelector('tbody tr[data-port="ts"]')! + const item = row.querySelector('.tmux-usage__item')! + expect(item.querySelector('a')!.textContent!.replace(/\s+/g, '')).toContain('Session.selectWindow') + expect(item.querySelector('.tmux-usage__when')!.textContent).toBe('the target is "previous"') + // The control: a method that sends the command on every call has no qualifier. + const everyCall = await render({ usage: tmuxResolvedUsage('latest', 'select-window') }) + const plain = [...everyCall.querySelectorAll('tbody tr[data-port="ts"] .tmux-usage__item')].find((entry) => entry.querySelector('a')!.textContent!.replace(/\s+/g, '').trim().endsWith('Window.select')) + expect(plain?.querySelector('.tmux-usage__when') ?? null).toBeNull() + }) + + it('cannot render a conditional entry without its qualifier, on a command page or a method page', async () => { + const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') + const start = source.indexOf('{commandRows.length > 0 && }', start) + '

}'.length + const stub = `---\nconst { commandRows } = Astro.props\n---\n${source.slice(start, end)}` + const entry = await loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) + const conditional = Object.entries(TMUX_USAGE).flatMap(([port, document]) => Object.entries(document.symbols) + .flatMap(([symbol, uses]) => uses.filter((use) => use.when).map((use) => ({ port, symbol, use })))) + expect(conditional.length).toBeGreaterThan(50) + // Every conditional entry carries its qualifier to the command page's link and to the method page's row. + const byCommand = Map.groupBy(conditional, ({ use }) => use.command) + for (const [command, entries] of byCommand) { + const usage = tmuxUsage(command) + const links = usage?.groups.flatMap((group) => group.ports).flatMap((cell) => cell.links) ?? [] + const html = usage ? await render({ usage: tmuxResolvedUsage('latest', command) }) : undefined + for (const { port, symbol, use } of entries) { + const link = links.find((candidate) => candidate.port === port && candidate.symbolId === symbol && candidate.scope === use.scope) + // A use that is not listed on the command page is a row of its method's page only. + if (link) { + expect(link.when, `${port} ${symbol} ${command}`).toBe(use.when) + const rendered = [...html!.querySelectorAll(`tbody tr[data-port="${port}"] .tmux-usage__item`)].filter((item) => item.querySelector('.tmux-usage__when')?.textContent === use.when) + expect(rendered.length, `${port} ${symbol} ${command} renders ${use.when}`).toBeGreaterThan(0) + } + const row = tmuxCommandRows(tmuxSymbolSends(port, symbol), []).find((candidate) => candidate.command === command) + expect(row?.when, `${port} ${symbol} ${command} row`).toBeTruthy() + const page = renderAstroTemplate(entry, { props: { commandRows: [row] } }).then((text) => dom(withoutScope(text))) + expect((await page).querySelector('.tmux-when')?.textContent, `${port} ${symbol} ${command} page`).toBeTruthy() + } + } + // The control: a row whose use carries no qualifier renders none. + const plain = tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), []) + expect(plain.every((row) => row.when === undefined)).toBe(true) + expect((await renderAstroTemplate(entry, { props: { commandRows: plain } }).then((text) => dom(withoutScope(text)))).querySelector('.tmux-when')).toBeNull() + }, 120_000) + + it('names the condition in a method page and in its markdown, in a few words', async () => { + const sends = tmuxSymbolSends('ts', 'session.Session.selectWindow') + const previous = sends.find((send) => send.command === 'previous-window')! + expect(previous.scopes[0].when).toBe('the target is "previous"') + const rows = tmuxCommandRows(sends, []) + expect(rows.find((row) => row.command === 'previous-window')!.when).toBe('the target is "previous"') + expect(rows.find((row) => row.command === 'select-window')!.when).toBeUndefined() + for (const document of Object.values(TMUX_USAGE)) { + for (const uses of Object.values(document.symbols)) for (const use of uses) if (use.when) expect(use.when.trim().split(/\s+/).length).toBeLessThanOrEqual(8) + } + }) + it('renders only the scope asked for on a scope page', async () => { const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) expect([...document.querySelectorAll('thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim())) diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index 9a2c4f325..64c39aba6 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -1,8 +1,9 @@ import { readFileSync } from 'node:fs' import { beforeAll, describe, expect, it } from 'vitest' import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' -import { MAX_SHARED_BY, applyExclusions, builtSites, callTargets, classify, definitionsOf, deriveUsage, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { MAX_SHARED_BY, applyConditions, applyExclusions, builtSites, callTargets, classify, conditionProblem, definitionsOf, deriveUsage, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' import { auditEvidence } from '../../scripts/lib/tmux-usage-audit.mjs' +import { chainProblems, dispatcherProblems, guardProblems } from '../../scripts/lib/tmux-usage-dispatch.mjs' import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' import { carriesCommand, memberWords, selects, settleCandidates, sweepCandidates } from '../../scripts/lib/tmux-usage-sweep.mjs' import { scanFSharp, scanJulia } from '../../scripts/lib/tmux-usage-lexical.mjs' @@ -398,6 +399,247 @@ describe('reviewed claims', () => { }) }) +describe('the condition of a send', () => { + const claim = (over: Record = {}) => ({ + port: 'rs', symbol: 'server.Server.panes', command: 'list-panes', scope: 'server', evidence: [{ at: 'server.rs:2', has: ['list-panes'] }, { at: 'server.rs:1', in: 'server.Server.panes' }], ...over, + }) + const source = ['pub async fn panes() {', ' cmd("list-panes", "-a")', '}'].join('\n') + const symbols = [{ id: 'server.Server.panes', name: 'panes', parentName: 'Server', file: 'server.rs', line: 1 }] + const functions = [located({ file: 'server.rs', name: 'panes', owner: 'Server', start: 1, nameLine: 1, end: 3 })] + const verify = (claims: unknown[]) => verifyClaims({ claims: claims as never, spec, functions, types: [], symbols, readSource: (path: string) => (path === 'server.rs' ? source : undefined) }) + + it('accepts a few words and carries them to the entry, and refuses a long one, an empty one and a marked one with none', () => { + expect(conditionProblem(undefined, false)).toBeUndefined() + expect(conditionProblem('the window is zoomed', true)).toBeUndefined() + expect(conditionProblem('one two three four five six seven eight', false)).toBeUndefined() + expect(conditionProblem('one two three four five six seven eight nine', false)).toMatch(/9 words, and a qualifier is at most 8/) + expect(conditionProblem(' ', false)).toMatch(/with no words/) + expect(conditionProblem('one\ntwo', false)).toMatch(/more than one line/) + expect(conditionProblem(undefined, true)).toMatch(/is marked conditional, so it must say when/) + expect(verify([claim({ when: 'the target is "next"' })]).entries[0]).toMatchObject({ when: 'the target is "next"' }) + expect(verify([claim()]).entries[0]).not.toHaveProperty('when') + expect(verify([claim({ when: 'one two three four five six seven eight nine' })]).problems.join('\n')).toMatch(/at most 8/) + expect(verify([claim({ conditional: true })]).problems.join('\n')).toMatch(/marked conditional, so it must say when/) + }) + + describe('a condition on a scanned send', () => { + const found = () => new Map([['S.panes\0list-panes\0server', { symbol: 'S.panes', command: 'list-panes', scope: 'server' } as Record]]) + const lines = (path: string) => (path === 'lib.py' ? 'if synchronized:\n run("list-panes")\n' : undefined) + const condition = (over: Record = {}) => ({ port: 'py', symbol: 'S.panes', command: 'list-panes', scope: 'server', when: 'the pane is synchronized', evidence: [{ at: 'lib.py:1', has: ['synchronized'] }], ...over }) + + it('qualifies the entry it names, with the lines that show the condition', () => { + const entries = found() + expect(applyConditions({ conditions: [condition()], found: entries, readSource: lines })).toEqual([]) + expect(entries.get('S.panes\0list-panes\0server')).toMatchObject({ when: 'the pane is synchronized' }) + }) + + it.each([ + ['an entry that is not there', { symbol: 'S.gone' }, /qualifies no entry/], + ['a line that does not hold the text', { evidence: [{ at: 'lib.py:1', has: ['unsynchronized'] }] }, /does not contain/], + ['a line past the end of the file', { evidence: [{ at: 'lib.py:9', has: ['x'] }] }, /not a line of the pinned source/], + ['no lines', { evidence: [] }, /cites no lines/], + ['too many words', { when: 'one two three four five six seven eight nine' }, /at most 8/], + ])('refuses %s', (_name, over, message) => { + expect(applyConditions({ conditions: [condition(over)], found: found(), readSource: lines }).join('\n')).toMatch(message) + }) + + it('leaves a condition for later when asked, and refuses one that differs from the claim it qualifies', () => { + expect(applyConditions({ conditions: [condition({ symbol: 'S.gone' })], found: found(), readSource: lines, lenient: true })).toEqual([]) + const claimed = found() + claimed.get('S.panes\0list-panes\0server')!.when = 'another reason' + expect(applyConditions({ conditions: [condition()], found: claimed, readSource: lines }).join('\n')).toMatch(/differs from the one its claim says: another reason/) + }) + }) + + it('is kept by the wrapper that forwards the method, and by the method that delegates to another type', () => { + const entry = { symbol: 'core.Pane.sendKeys', command: 'send-keys', scope: null, evidence: ['Pane.java:9'], hops: 0, when: 'the pane is synchronized' } + const coreSymbols = new Map([[entry.symbol, { name: 'sendKeys', parentName: 'Pane' }]]) + const wrapper = located({ file: 'Pane.kt', name: 'sendKeys', owner: 'Pane', start: 1, nameLine: 1, end: 3, calls: new Map([['sendKeys', 2]]), receivers: new Map([['sendKeys', new Set(['this'])]]) }) + const wrapped = forwardUsage({ parent: 'java', functions: [wrapper], types: [], symbols: [{ id: 'kt.Pane.sendKeys', name: 'sendKeys', parentName: 'Pane', file: 'Pane.kt', line: 1 }], + core: { entries: [entry], symbols: coreSymbols as never, revision: 'r1' } } as never) + expect(wrapped.entries[0]).toMatchObject({ symbol: 'kt.Pane.sendKeys', when: 'the pane is synchronized' }) + // A method that calls another type's method on a handle named for it is credited with it, on the way and not under a branch. + const caller = (depth: number) => located({ + file: 'pane.go', name: 'Refresh', owner: 'Session', start: 1, nameLine: 1, end: 3, + calls: new Map([['Pane', 2]]), receivers: new Map([['Pane', new Set(['server'])]]), callDepths: new Map([['Pane', depth]]), + } as never) + const sym = { id: 'tmux.Server.Pane', name: 'Pane', parentName: 'Server', file: 'server.go', line: 1 } + const run = (depth: number) => forwardUsage({ + parent: 'go', delegate: true, functions: [caller(depth)], types: [], symbols: [sym, { id: 'tmux.Session.Refresh', name: 'Refresh', parentName: 'Session', file: 'pane.go', line: 1 }], + core: { entries: [{ symbol: 'tmux.Server.Pane', command: 'list-panes', scope: 'window', evidence: ['server.go:5'], hops: 0, when: 'any pane' }], symbols: new Map([[sym.id, sym]]) as never, revision: 'r1' }, + } as never) + expect(run(0).entries[0]).toMatchObject({ symbol: 'tmux.Session.Refresh', command: 'list-panes', when: 'any pane', via: { port: 'go', symbol: 'tmux.Server.Pane' } }) + // The control: the same call under a branch, in a loop or in a cleanup that runs on failure is not credited. + expect(run(1).entries).toEqual([]) + }) +}) + +describe('the calls that send', () => { + const text = [ + 'class Server:', // 1 + ' def cmd(self, *args):', // 2 + ' return tmux_cmd(*args)', // 3 + '', // 4 + 'class tmux_cmd:', // 5 + ' def __init__(self, *args):', // 6 + ' self.process = subprocess.Popen(args)', // 7 + '', // 8 + 'def listing(rows):', // 9 + ' return [row for row in rows]', // 10 + '', // 11 + 'def check_call(args):', // 12 + ' subprocess.check_call(args)', // 13 + ].join('\n') + const fn = (name: string, start: number, end: number, over: Record = {}) => ({ file: 'lib.py', name, start, end, calls: new Map(), ...over }) + const functions = [ + fn('cmd', 2, 3, { owner: 'Server', calls: new Map([['tmux_cmd', 3]]) }), fn('__init__', 6, 7, { owner: 'tmux_cmd' }), fn('listing', 9, 10), fn('check_call', 12, 13), + ] + const readSource = (path: string) => (path === 'lib.py' ? text : undefined) + const problems = (name: string, item: Record) => chainProblems({ port: 'py', rule: { name }, item: { has: [name], ...item } as never, functions: functions as never, readSource }) + const reaches = [{ at: 'lib.py:3', has: ['tmux_cmd'], calls: 'tmux_cmd' }, { at: 'lib.py:7', has: ['subprocess.Popen('] }] + + it('accepts a definition that reaches the process through the calls it cites, and one that starts the process itself', () => { + expect(problems('cmd', { at: 'lib.py:2', reaches })).toEqual([]) + expect(problems('check_call', { at: 'lib.py:13' })).toEqual([]) + // A hop the scan cannot follow, such as a command put on a queue, says where it leads. + const queued = [{ at: 'lib.py:3', has: ['tmux_cmd'], leads: '__init__' }, { at: 'lib.py:7', has: ['subprocess.Popen('] }] + expect(problems('cmd', { at: 'lib.py:2', reaches: queued })).toEqual([]) + }) + + it.each([ + ['a function that never reaches a process', 'listing', { at: 'lib.py:9' }, /reaches no transport, and cites no chain to one/], + ['a chain that stops short of the process', 'cmd', { at: 'lib.py:2', reaches: [reaches[0]] }, /hop lib.py:3 is not a transport/], + ['a chain that skips the function between', 'cmd', { at: 'lib.py:2', reaches: [reaches[1]] }, /hop lib.py:7 is not in Server.cmd/], + ['a hop that does not lead to the next line', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'], calls: 'tmux_cmd' }, { at: 'lib.py:10', has: ['row'] }] }, /leads to tmux_cmd, but lib.py:10 is not a line of it/], + ['a hop whose function does not make the call', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'], calls: 'Popen' }, reaches[1]] }, /does not call Popen/], + ['a hop whose text is not on its line', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['elsewhere'], calls: 'tmux_cmd' }, reaches[1]] }, /does not contain "elsewhere"/], + ['a definition that is not a function of that name', 'listing', { at: 'lib.py:2', reaches }, /is not a line of a function named listing/], + ['a hop that names no destination', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'] }, reaches[1]] }, /names neither the function it calls nor the one it leads to/], + ])('refuses %s', (_name, name, item, message) => { + expect(problems(name, item).join('\n')).toMatch(message) + }) + + it('refuses a rule whose argument position names a parameter no cited definition takes', () => { + const rule = (labels: unknown) => ({ name: 'cmd', why: 'Runs it.', evidence: [{ at: 'lib.py:2', has: ['cmd'], reaches }], labels }) + const check = (labels: unknown) => dispatcherProblems({ port: 'py', dispatchers: [rule(labels)] as never, readSource, functions: functions as never }) + expect(check(undefined)).toEqual([]) + expect(check([{ at: 1, name: 'args' }])).toEqual([]) + expect(check([{ at: 1, name: 'subcommand' }]).join('\n')).toMatch(/no cited definition takes a parameter named subcommand/) + expect(check([{ at: -1, name: 'args' }]).join('\n')).toMatch(/names no argument position or parameter/) + }) + + describe('a guard that wraps a command in if-shell', () => { + const source = ['def guarded(command):', ' return cmd("if-shell", "-F", check, command, stale)', '', 'def plain(command):', ' return cmd(command)'].join('\n') + const functionsOf = [fn('guarded', 1, 2), fn('plain', 4, 5)] + const read = (path: string) => (path === 'lib.py' ? source : undefined) + const guard = (over: Record = {}) => ({ name: 'guarded', purpose: 'refuses a stale target', evidence: [{ at: 'lib.py:2', has: ['"if-shell", "-F"'] }], ...over }) + const check = (guards: unknown[]) => guardProblems({ port: 'py', guards: guards as never, readSource: read, functions: functionsOf as never }) + + it('is accepted when the function builds an if-shell and a cited line is that wrapper', () => { + expect(check([guard()])).toEqual([]) + expect(check([guard({ conditional: true, when: 'the handle carries a daemon' })])).toEqual([]) + }) + + it.each([ + ['a function that builds no if-shell', { name: 'plain', evidence: [{ at: 'lib.py:5', has: ['cmd'] }] }, /no function of that name builds an if-shell/], + ['a function that is not there', { name: 'gone' }, /no function of that name in the pinned source/], + ['a line that is not the wrapper', { evidence: [{ at: 'lib.py:1', has: ['guarded'] }] }, /no cited line is the if-shell the guard builds/], + ['a line that does not hold the text', { evidence: [{ at: 'lib.py:2', has: ['"-t"'] }] }, /does not contain/], + ['a purpose left out', { purpose: ' ' }, /states no purpose/], + ['a conditional guard that says nothing about when', { conditional: true }, /is conditional, so it must say when/], + ['no lines', { evidence: [] }, /cites no lines/], + ])('is refused for %s', (_name, over, message) => { + expect(check([guard(over)]).join('\n')).toMatch(message) + }) + }) +}) + +describe('scanning a command that a guard wraps, a conditional and a label', () => { + const scanned = async (grammar: string, text: string, options: Record, commands: string[]) => { + const { functions } = await scanSource({ grammar, text, commands: new Set(commands), known: new Set(commands), ...options } as never) + return Object.fromEntries(functions.map((found) => [found.name, found.sites.map((site) => ( + site.dispatch ? `${site.command}@${site.line}->${site.dispatch.name}@${site.dispatch.line}` : `${site.command}@${site.line} ${site.why}`))])) + } + const java = [ + 'class Fixture {', + ' void killOwnedServer() {', + ' server.cmd("if-shell", "-F", check, "kill-server", stale);', + ' }', + ' void wrap(String command) {', + ' server.cmd("if-shell", "-F", check, command, "stale");', + ' }', + ' void use() {', + ' wrap("select-pane");', + ' }', + '}', + '', + ].join('\n') + const commands = ['if-shell', 'kill-server', 'select-pane'] + + it('records the command inside a declared guard and not the if-shell, and the if-shell of a conditional that is not one', async () => { + const guarded = await scanned('java', java, { dispatch: new Set(['cmd']), guards: [{ name: 'killOwnedServer' }] }, commands) + expect(guarded.killOwnedServer).toEqual(['if-shell@3 it is the check a guard wraps a command in', 'kill-server@3->cmd@3']) + // The conditional whose purpose is the condition: the library sends if-shell, and tmux runs the command inside it when the condition holds. + const conditional = await scanned('java', java, { dispatch: new Set(['cmd']) }, commands) + expect(conditional.killOwnedServer).toEqual(['if-shell@3->cmd@3']) + }) + + it('passes a command through a declared guard that dispatches, and stops it at a wrapper that is not declared', async () => { + const declared = await scanned('java', java, { dispatch: new Set(['cmd', 'wrap']), guards: [{ name: 'wrap' }] }, commands) + expect(declared.use).toEqual(['select-pane@9->wrap@9']) + expect(declared.wrap).toEqual(['if-shell@6 it is the check a guard wraps a command in']) + const undeclared = await scanned('java', java, { dispatch: new Set(['cmd']) }, commands) + expect(undeclared.use).toEqual(['select-pane@9 it is an argument of wrap, which neither sends it nor builds a command from it']) + expect(undeclared.wrap).toEqual(['if-shell@6->cmd@6']) + }) + + it('does not read an argument that only names the command for a failure message as the command', async () => { + const rust = [ + 'async fn find(core: &Core, request: Command) {', + ' listing::mutate(', + ' core,', + ' "find-window",', + ' Command::new("find-window").arg("-x"),', + ' ).await', + '}', + 'async fn label(core: &Core, request: Command) {', + ' listing::mutate(core, "find-window", request).await', + '}', + '', + ].join('\n') + const labels = new Map([['mutate', new Set([1])]]) + const found = await scanned('rust', rust, { dispatch: new Set(['mutate']), labels }, ['find-window']) + expect(found.find).toEqual(['find-window@4 it names the command mutate reports a failure under, and is not the command it sends', 'find-window@5->mutate@2']) + // With nothing but the label, the command is not sent by this call. + expect(found.label).toEqual(['find-window@9 it names the command mutate reports a failure under, and is not the command it sends']) + // The control: without the declaration the label counts as the command. + expect((await scanned('rust', rust, { dispatch: new Set(['mutate']) }, ['find-window'])).label).toEqual(['find-window@9->mutate@9']) + }) + + it('counts a call under a branch apart from one that runs on every call, and a header or a one-statement closure with the main path', async () => { + const go = [ + 'package tmux', + 'func (p Pane) Refresh() error {', + '\tif err := p.server.Pane(ctx); err != nil {', + '\t\treturn err', + '\t}', + '\tif p.ready {', + '\t\tp.server.Session(ctx)', + '\t}', + '\tdefer func() { _ = p.server.Close(ctx) }()', + '\tdefer func() {', + '\t\tif failed { p.server.Kill(ctx) }', + '\t}()', + '\treturn nil', + '}', + '', + ].join('\n') + const { functions } = await scanSource({ grammar: 'go', text: go, commands: new Set(['x']), known: new Set(['x']), dispatch: new Set(['literalCmd']) }) + const depths = Object.fromEntries(functions[0].callDepths as Map) + expect(depths).toMatchObject({ Pane: 0, Session: 1, Close: 0, Kill: 1 }) + }) +}) + describe('the scope table against tmux', () => { const entry = JSON.parse(scopes).commands['list-panes'] const source = [ From 15f874ab960e6db8b90c94fe70295487eb5bc3d8 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 05:12:02 -0500 Subject: [PATCH 14/53] fix(site[tmux-usage]) Credit a generic function's methods apart, resolve each hop by its call, and show conditions per scope why: A review of fbf0b3a3b found 33 of the 46 Julia qualifiers "on a Server" or "on a ControlConnection" contradicted by the source. The qualifier had been taken from the file of the line an entry cited, so any send the scan happened to find on one receiver's path was said to be that receiver's alone, though the other method sent it too (capture_bytes, select_pane, swap_pane, read_formats, new_session, split_window). The same review found a dispatcher's chain reaching the process through a function that only shares its name (a tracing `run` for the `run` that spawns, `cmd(argv)` for the fenced `cmd(snapshot, argv)`, `run(_:)` for `run(rawArguments:)`, the snapshot-identity probe for the listing), conditions that were missing from seven entries, a guard declared for a condition of the method, and two rendering bugs. The last commit also said the 60-sample and "all 118 conditional ones" found no mismatch, and that go's runClientCommand family cites the line that builds the argument vector. Both were wrong: the review found mismatches the reading had not, and those entries cite the call that hands the vector to the dispatcher, not the line that spells the command. what: - Julia: a method is told apart by the type of its first argument. For each entry the derivation says which methods of the function send it, which only reach it through more calls than a symbol is credited across, and which reach it by no call at all. A send every method makes takes no qualifier, a send some methods demonstrably lack says `on a Server` in a condition with a `receiver` that cites the body of a method that sends it and one that does not, and is refused when the methods that send it take another type, when no method lacks it, or when a method may reach it through a call that is not resolved. A send some methods make and no condition qualifies fails. `_control_create` is a dispatcher, a single-command ternary that only gates a call is a send (`isempty(ss) ? [] : rows("list-windows")`), and a short-form method whose arguments span lines ends where its body does. This is the receiver option of the last commit, kept where it is true. - A hop of a dispatcher chain is the call on its line, resolved as a derivation resolves one: by what it is made on, and among the overloads of a type by the number of arguments (Swift: their labels). A call made on a field the scan cannot type says what it holds in `on`, which the call's receiver must not contradict; a hop that leads on where no call can be read says why. Every chain of rs, lua, ts, go, java, csharp, cxx, swift, ruby and julia was read again against the source and re-cited where it skipped a function: rs through the Executor trait and the control sender, java through the right `cmd`, `guarded` and `execute` overloads, swift through ServerRuntime, go through snapshotListing, csharp through TmuxCommandDispatcher and the generation guard. The decoys that remained (rs Connection::run, java Environment.listing) are gone. The C# grammar reads a primary constructor as an error, and the Swift one the `package` access level, which dropped the owner of every method after them; both are blanked before parsing, and a free function overloaded in one file resolves from another. - Conditions: swift resize-pane and java Shell.capturing ("except on tmux 3.3a and 3.4") and Batch.run, go Server.Snapshot and the julia snapshot listings say when; ts breakOut's rename on 3.7 is an exclusion, as java's is. Vacuous qualifiers (ruby Hooks/Options, swift link/move, breakPane's break-pane) are gone, cxx and swift texts are exact, and ruby's kill_session_with_windows is a condition of Session#kill and not a guard. go's guardCommand is transparent, so OpenControl and OpenNotifications no longer record its if-shell. Each scope of a send says its own condition. - Sends the scan missed, recorded as claims: go Server.Window and Server.Pane (and their Refresh), the snapshot identity probe of the live lookups and the searches, Server.NewSession's name lookup; swift capture with a line limit, the bounds probe of capture and captureRange, the window listing of link and move; java sendKeys and sendLiteral reading whether the pane is synchronized; ruby's command-alias inventory. A send made on the way to what the method is for is `incidental`: on the method's page, not listed on the command's pages. java Main.main sends display-message on both of LaunchConfiguration's paths (lines 90 and 111), so it stays unqualified. - A generated wrapper's tooltip cites the core line that sends and not the generator's template. The guard texts of swift and lua are corrected. - `--rules ` and the negative script cover each new refusal, and the unit tests a real name collision (rs `run`), an overload told by arguments and by labels, and a Julia function whose two methods both send. Measured against fbf0b3a3b, entries per port before to after: py 190 to 190, ruby 99 to 109, lua 92 to 92, julia 68 to 68, ts 120 to 119, rs 180 to 180, go 209 to 227, java 124 to 126, kotlin 114 to 116, scala 184 to 188, csharp 168 to 168, fsharp 16 to 16, powershell 34 to 34, cxx 109 to 109, swift 88 to 92 (1795 to 1834). Entries with a condition per port, before to after: py 1 to 1, ruby 4 to 2, lua 3 to 3, julia 47 to 11, ts 11 to 11, rs 27 to 27, go 5 to 20, java 2 to 4, kotlin 2 to 4, scala 4 to 5, fsharp 3 to 3, cxx 4 to 4, swift 5 to 4 (118 to 99). Julia qualifiers: 46 on a receiver and 1 other, then 7 on a receiver, 3 "a session exists" and 1 other. Two seeded samples of 60, read against the sources, found no entry that fails to send; 15 guard-transparent entries and the conditional ones were read again. --- scripts/README.md | 54 +- scripts/gen-tmux-usage.mjs | 6 +- scripts/gen-tmux-usage.negative.mjs | 26 +- scripts/lib/tmux-usage-derive.mjs | 151 +- scripts/lib/tmux-usage-dispatch.mjs | 42 +- scripts/lib/tmux-usage-forward.mjs | 4 +- scripts/lib/tmux-usage-lexical.mjs | 18 +- scripts/lib/tmux-usage-scan.mjs | 97 +- scripts/tmux-usage/claims.json | 1553 +++++++++++++++- scripts/tmux-usage/conditions.json | 642 ++----- scripts/tmux-usage/dispatchers.json | 2233 +++++++++++++++++++----- scripts/tmux-usage/exclusions.json | 31 + scripts/tmux-usage/guards.json | 35 +- site/src/components/api/ApiEntry.astro | 3 +- site/src/data/tmux-usage/cxx.json | 2 +- site/src/data/tmux-usage/go.json | 379 +++- site/src/data/tmux-usage/java.json | 36 +- site/src/data/tmux-usage/julia.json | 146 +- site/src/data/tmux-usage/kotlin.json | 52 +- site/src/data/tmux-usage/ruby.json | 139 +- site/src/data/tmux-usage/scala.json | 91 +- site/src/data/tmux-usage/swift.json | 73 +- site/src/data/tmux-usage/ts.json | 8 - site/src/lib/symbol-markdown.ts | 9 +- site/src/lib/tmux-library-usage.ts | 7 +- site/src/lib/tmux-reference.ts | 10 +- site/test/tmux-library-usage.test.ts | 79 +- site/test/tmux-usage-derive.test.ts | 285 ++- 28 files changed, 4964 insertions(+), 1247 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index fefdd409a..8e7e23e18 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -185,13 +185,22 @@ make a command value: `Command::new`, `TmuxCommand(...)`). A dispatching call is a name, and a scan reads every call of that name as a send, so each definition a rule cites must reach a transport: the point where the library starts the tmux process or writes the command to a control client (`TRANSPORT` in -`lib/tmux-usage-dispatch.mjs`). The rule cites the chain, one line per hop; -a hop either calls the next function, which the scan has read, or leads to it -in a way the scan does not follow (a command put on a queue that another thread -writes from, a Ruby method called by its bare name), and every hop is read back -against the pinned source. A function that shares a name with a dispatcher and -sends nothing (a serializer called `list`, a log helper called `run`) is not one, -and a rule that cites it fails for citing no chain to a transport. +`lib/tmux-usage-dispatch.mjs`). The rule cites the chain, one line per hop, and +every hop is read back against the pinned source. A hop calls the next function +(`calls`), and the call on its line is resolved as a derivation resolves a call: +by what it is made on, and among the overloads of one type by the arguments it +passes (their number, and for Swift their labels), so `cmd(argv)` is not +`cmd(snapshot, argv)` and `span.run(...)` is not the `run` that spawns. A call +made on a field that holds a handle the scan cannot type (`self.executor.execute`, +`_dispatcher.ExecuteAsync`) says what it holds in `on`, which must be the type of +the function the chain goes on in, and which the call's own receiver must not +contradict; a free function is named by its file and a Julia method by the type of +its first argument. A hop that is not a call the scan can resolve (a trait object, +a delegate, a command put on a queue that another thread writes from, a Ruby +method called by its bare name) is a `leads`, and says why in `why`. A function +that shares a name with a dispatcher and sends nothing (a serializer called +`list`, a log helper called `run`) is not one, and a rule that cites it fails for +citing no chain to a transport. A dispatching call may take an argument that only names the command for a failure message (`listing::mutate(core, "find-window", command)`). A rule lists @@ -265,7 +274,10 @@ negative script seeds a rule that is wrong: A send that is an alternative of the method's own purpose and that only some arguments reach (`selectWindow("next")` sending `next-window`, `new_session` killing an existing session when `kill_session` is set) is a claim that says the - condition in `when`; `conditional: true` makes the claim fail without one. + condition in `when`; `conditional: true` makes the claim fail without one. A send made on the way to + what the method is for, such as a read of the target before the keys go to it, is + `incidental`: it is on the method's page, and the command's pages do not list the + method for it. - `forwarders.json`: the wrappers that stand on a core library, Kotlin and Scala on Java, F# and the PowerShell cmdlets on C#. A wrapper that calls a core method that sends is credited at the core's scope, with both hops as @@ -289,9 +301,18 @@ negative script seeds a rule that is wrong: entry that already exists (a scanned or reviewed one) with a `when` and the lines that show the condition, such as `Pane.sendKeys` asking `list-panes` only when the pane is synchronized. One that qualifies no entry has gone stale and - fails. Julia, whose generic functions take several receiver types, gives the - entry that only one method sends a `when` that names the receiver (`on a - Server`), so that no method is credited with another's sends. + fails. Julia's generic functions take several receiver types, and a symbol is + credited with a send only for the methods that make it: the derivation records, + for each entry, which methods of the function send it, which only reach it + through more calls than a symbol is credited across (`deep`, and the entry + stands for them), and which reach it by no call at all (`lacks`). A send that + every method makes takes no qualifier. One that some methods demonstrably do not + make says `on a Server` or `on a ControlConnection` in a condition with a + `receiver`, which fails unless the methods that send it take that type, another + method is shown not to reach it, and the condition cites the body of one of each + (`through`: the line the method ends on), because a signature line names a type + and shows neither. A method that may reach it only through a call the scan does + not resolve leaves the question open, and fails until it is settled by a claim. - `not-senders.json`: why a public method whose own name carries a command has no entry for it, one of `builds` (it builds a command for a caller, or only holds one), `other-command` (it sends a different command, or runs it only @@ -304,7 +325,16 @@ negative script seeds a rule that is wrong: A `when` is at most eight words on one line, because the usage table shows it beside the method (a muted qualifier on the chip, and after the command link on a method page); a longer reason belongs on a page. An entry that is conditional -cannot be rendered without it. +cannot be rendered without it. When a command is sent at two scopes under two +conditions, each scope says its own beside it; one condition that every scope +shares follows the command. Writing a `when` for a condition that is always true +of the method (`Hooks#unset` sending `set-hook` "on a Hooks") qualifies nothing. + +The same rule applies to a tmux release. A send made on every supported release +but some says which in `when` (`Shell.capturing` refuses on 3.3a and 3.4: "except +on tmux 3.3a and 3.4"). A send made on one release only, such as the rename that +`breakOut` adds on tmux 3.7 to give the window the name that release ignores, is +an exclusion, because it is not what a call does on the others. Go's wrappers that call a method of another type on a handle named for it (`p.server.X()`) are credited with that method's entries, as a wrapper on a core diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index 4f49d882f..554709976 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -32,7 +32,7 @@ import { dirname, join, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { extractProject } from '../packages/api-model/src/project.ts' import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' -import { applyConditions, applyExclusions, conditionProblem, deriveUsage, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' +import { applyConditions, applyExclusions, conditionProblem, deriveUsage, partialProblems, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' import { auditEvidence } from './lib/tmux-usage-audit.mjs' import { dispatcherProblems, guardProblems } from './lib/tmux-usage-dispatch.mjs' import { forwardUsage } from './lib/tmux-usage-forward.mjs' @@ -191,7 +191,7 @@ export function portDocument(port, model, found, commands) { for (const entry of found) { ;(symbols[entry.symbol] ??= []).push({ command: entry.command, scope: entry.scope, evidence: entry.evidence, - ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.forwardable ? { forwardable: true } : {}), ...(entry.when ? { when: entry.when } : {}), ...(entry.via ? { via: entry.via } : {}), + ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.forwardable ? { forwardable: true } : {}), ...(entry.incidental ? { incidental: true } : {}), ...(entry.when ? { when: entry.when } : {}), ...(entry.via ? { via: entry.via } : {}), }) } for (const list of Object.values(symbols)) list.sort((a, b) => a.command.localeCompare(b.command) || String(a.scope).localeCompare(String(b.scope))) @@ -505,6 +505,8 @@ export async function main() { passes.set(port.slug, pass) // A wrapper forwards what it reads from its core's entries, so the core's conditions are in place before it runs. failures.push(...applyConditions({ conditions: qualifiers, found, readSource: scanned.readSource })) + // A generic function's methods are not credited with each other's sends. + if (DEFINITION_OPTIONS[port.slug]?.freeFunctions) failures.push(...partialProblems(found).map((problem) => `${port.slug}: ${problem}`)) const document = portDocument(port.slug, model, [...found.values()], commandsToRecord) failures.push(...sweepProblems({ port: port.slug, model, document, reviews, exclusions, report, readSource: scanned.readSource })) // The committed entries are the ones audited, because a check has to read what is published and not what a scan makes of it. diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 0660ba40d..02eb3da0b 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -23,10 +23,14 @@ * * It then seeds the reviewed rules (`--rules`): a dispatcher whose cited chain stops short of * a transport, names a line that does not hold its text, skips a function, or has no chain at - * all; a label that names a parameter nothing takes, or is dropped, so that a literal the call + * all; a hop that calls a field the scan cannot type and does not say what it holds, one that + * leads on and does not say why, one that goes to the overload the call's arguments do not fit; + * a label that names a parameter nothing takes, or is dropped, so that a literal the call * only reports a failure under is read as the command; a guard that builds no if-shell, a * conditional guard or claim that does not say when, a condition that qualifies no entry, and a - * guard dropped, so that the if-shell it wrapped is recorded in place of the command. + * guard dropped, so that the if-shell it wrapped is recorded in place of the command; and for a + * generic function, a send some methods make with no condition that says so, a receiver + * condition that cites a signature in place of the bodies, and one on a send every method makes. * Each is refused, and the committed rules beside them are accepted. */ import { cpSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' @@ -231,7 +235,23 @@ const BAD_RULES = [ ['a chain hop whose line does not hold its text', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'send').evidence[0].reaches[0].has = ['.sendx('] }, /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:586 does not contain "\.sendx\("/], ['a chain that skips the function between two hops', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'dispatch').evidence[0].reaches.splice(1, 1) }, - /rs: dispatcher dispatch at crates\/libtmux\/src\/plan\/run.rs:443: hop crates\/libtmux\/src\/plan\/run.rs:461 leads to cmd, but crates\/libtmux\/src\/internal\/control_executor.rs:37 is not a line of it/], + /rs: dispatcher dispatch at crates\/libtmux\/src\/plan\/run.rs:443: hop crates\/libtmux\/src\/plan\/run.rs:461 leads to cmd, but crates\/libtmux\/src\/internal\/core.rs:438 is not a line of it/], + ['a chain hop on a field whose type it does not say', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'send').evidence[0].reaches[0].on }, + /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:586 is a call of sender\.send\(\), which resolves to no function the scan has read, and not to ControlSender\.send/], + ['a chain hop that leads somewhere and does not say why', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'send').evidence[0].reaches.find((hop) => hop.leads).why }, + /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:803 leads to serve and says nothing about why the scan cannot follow it/], + ['a chain that goes to the overload the arguments of the call do not fit', 'java', 'dispatchers.json', (document) => { + const run = dispatcher(document, 'java', 'run').evidence.find((item) => item.at.endsWith('Server.java:1221')) + run.reaches = [run.reaches[0], { ...run.reaches.find((hop) => hop.at.endsWith('Server.java:1251')), at: run.reaches[0].at.replace(':1222', ':1230'), has: ['fence.guarded(snapshot'] }] + }, /java: dispatcher run at .*Server\.java:1221: hop .*Server\.java:1222 is a call of cmd\(1\), which resolves to Server\.cmd at .*Server\.java:765 and Server\.cmd at .*Server\.java:771, and not to Server\.cmd at .*Server\.java:1229/], + ['a julia send some methods make, with no condition that says so', 'julia', 'conditions.json', (document) => { document.conditions = document.conditions.filter((item) => !(item.symbol === 'LibTmux.capture_bytes' && item.command === 'list-buffers')) }, + /julia: LibTmux\.capture_bytes list-buffers null: only the ControlConnection methods send it, and 1 other method such as src\/pane_io\.jl:64 do not, so it needs a condition that says when/], + ['a julia receiver condition that cites a signature in place of the bodies', 'julia', 'conditions.json', (document) => { + for (const item of document.conditions) if (item.symbol === 'LibTmux.get_environment') for (const line of item.evidence) delete line.through + }, /julia: LibTmux\.get_environment show-environment null: condition cites the body of no method that sends it/], + ['a julia receiver condition on a send that every method makes', 'julia', 'conditions.json', (document) => { + document.conditions.push({ port: 'julia', symbol: 'LibTmux.select_pane', command: 'select-pane', scope: null, when: 'on a Server', receiver: 'Server', evidence: [{ at: 'src/operations.jl:372', through: 375, has: ['function select_pane('] }] }) + }, /julia: LibTmux\.select_pane select-pane null: condition says on a Server, but no method of the function is shown not to send it/], ['a label that names a parameter nothing takes', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'mutate').labels[0].name = 'nope' }, /rs: dispatcher mutate: no cited definition takes a parameter named nope/], ['a label dropped, so a literal that only reports a failure is read as the command', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'mutate').labels }, diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs index 7aff5e74d..a74e15a1d 100644 --- a/scripts/lib/tmux-usage-derive.mjs +++ b/scripts/lib/tmux-usage-derive.mjs @@ -10,6 +10,9 @@ /** Calls between a send site and the public symbol that wraps it. */ export const MAX_HOPS = 1 +/** Calls a method can make before it is said to reach no send, when it is checked against its sibling methods. */ +export const DEEP_HOPS = 3 + /** * A helper that this many public symbols call is infrastructure, such as a * refresh after every mutation, and crediting each caller would list methods @@ -33,27 +36,52 @@ export const ruleHolds = (rule, revision, pinned) => (rule.revision ? revision.s const SELF_RECEIVERS = new Set(['this', 'self', 'base', 'super', 'cls', 'me']) +/** Whether a call can be a call of a function: the arguments it passes fit the parameters it takes, where both are known. */ +export function shapeFits(call, fn) { + if (!call || !fn) return true + if (call.labels && fn.labels) { + let at = 0 + for (const parameter of fn.labels) { + if (call.labels[at] === parameter.label) at++ + else if (!parameter.optional) return false + } + return at === call.labels.length + } + return call.count >= fn.min && call.count <= fn.max +} + /** * Whether a call in `caller` is a call of `callee`. A name that only one function has can be nothing else. A name that * several share is resolved by what the call is made on: an unqualified call or one on `self` is the caller's own type's * (a free function, when the callee has no type), and a call on a handle named for a type is that type's. A call on - * anything else is left unresolved, because naming `into_command` is not naming the one in `CaptureOptions`. + * anything else is left unresolved, because naming `into_command` is not naming the one in `CaptureOptions`. Among the + * overloads of one type, the arguments the call passes pick the one it takes. + * + * Each call of the name is judged by its own receiver and arguments when the scan kept them; `call` names the one to judge. * - * @param {{ calls: Map, receivers: Map>, owner?: string }} caller - * @param {{ name: string, owner?: string, file?: string }} callee + * @param {{ calls: Map, receivers: Map>, callList?: { name: string, receiver?: string, shape?: object }[], owner?: string }} caller + * @param {{ name: string, owner?: string, file?: string, shape?: object }} callee * @param {{ owner?: string, file?: string }[]} named every function of the port that has the callee's name + * @param {{ name: string, receiver?: string, shape?: object }} [call] */ -export function callTargets(caller, callee, named) { +export function callTargets(caller, callee, named, call) { if (!caller.calls.has(callee.name)) return false if (named.length <= 1) return true - const receivers = caller.receivers.get(callee.name) + const calls = call ? [call] : (caller.callList ?? []).filter((candidate) => candidate.name === callee.name) + // Overloads of one type are not always in one file: a Swift extension and a C# partial class add to the type from another. + const overloaded = named.some((other) => other !== callee && other.owner === callee.owner && callee.owner !== undefined) + if (!calls.length) return resolves(caller, caller.receivers.get(callee.name), callee, named) + return calls.some((one) => resolves(caller, one.receiver ? new Set([one.receiver]) : undefined, callee, named) && (!overloaded || shapeFits(one.shape, callee.shape))) +} + +function resolves(caller, receivers, callee, named) { // Go names its receiver, `func (p Pane) ...`, and calls its own methods on it. const unqualified = !receivers || [...receivers].every((receiver) => SELF_RECEIVERS.has(receiver) || receiver === caller.selfName) - // A call with no handle in front of it is a free function's, and with a second free function of the name it is the one in the - // caller's own file or none: which one an import names is not read. - if (callee.owner === undefined) return !receivers && (caller.file === callee.file || named.filter((other) => other.owner === undefined).length === 1) + // A call with no handle in front of it is a free function's, and with a second free function of the name it is the one in the caller's own file or none: which one an import names is not read. + // The overloads of one free function, all in one file, are that file's whichever file the call is in. + if (callee.owner === undefined) return !receivers && (caller.file === callee.file || new Set(named.filter((other) => other.owner === undefined).map((other) => other.file)).size === 1) if (unqualified) return caller.owner === callee.owner - return receivers.has(callee.owner.toLowerCase()) + return [...receivers].some((receiver) => receiver.replace(/^_+/, '') === callee.owner.toLowerCase()) } /** `panes(where:)`, `Server.panes` and `Server#list_panes` all name their last identifier. */ @@ -141,7 +169,7 @@ export function builtSites(functions) { } /** - * @param {{ command: string, spec?: { scopes?: { id: string, flags: string }[] }, functions: LocatedFunction[], symbols: UsageSymbol[] }} input + * @param {{ command: string, spec?: { scopes?: { id: string, flags: string }[] }, functions: LocatedFunction[], symbols: UsageSymbol[], definitionOptions?: { sharedOwner?: boolean, freeFunctions?: boolean } }} input * @returns {{ entries: UsageEntry[], unresolved: Unresolved[] }} */ export function deriveUsage({ command, spec, functions, symbols, definitionOptions }) { @@ -155,15 +183,17 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio return functions.filter((other) => other !== fn && callTargets(other, fn, named)) } - /** Public symbols reached from `fn`, each with the call sites walked to reach it. */ + /** Public symbols reached from `fn`, each with the call sites walked to reach it and the definition that reaches it. */ const reach = (fn, trail, depth) => { const own = definitions.get(fn) - if (own) return own.map((symbol) => ({ symbol, trail })) + if (own) return own.map((symbol) => ({ symbol, trail, method: fn })) if (depth >= MAX_HOPS) return [] return callersOf(fn).flatMap((caller) => reach(caller, [...trail, `${caller.file}:${caller.calls.get(fn.name)}`], depth + 1)) } const entries = new Map() + /** The definitions of a symbol that send an entry's command, by entry: a symbol with several methods is not credited with one's send for all. */ + const senders = new Map() const unresolved = [] for (const fn of functions) { const found = [...fn.sites, ...(built.get(fn) ?? [])].filter((site) => site.command === command) @@ -198,8 +228,9 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: `a helper shared by ${new Set(reached.map(({ symbol }) => symbol.id)).size} public symbols` }) continue } - for (const { symbol, trail } of reached) { + for (const { symbol, trail, method } of reached) { const key = `${symbol.id}\0${scope}` + senders.set(key, (senders.get(key) ?? new Set()).add(method)) // The line to cite is the call that sends, which is where the command is dispatched and not where it is spelled. const lines = site.via ? [`${fn.file}:${site.dispatch.line}`, `${fn.file}:${site.via.call}`, `${site.via.file}:${site.line}`] @@ -212,6 +243,45 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio } } } + /** + * Whether a function reaches a site that sends the command at the scope within a few calls: by the calls it resolves to, which is + * what credits a symbol, or (`liberal`) by every function of the called name, which is what a function that is not credited + * could still reach. + */ + const reaches = (start, command, scope, liberal) => { + const sends = (fn) => [...fn.sites, ...(built.get(fn) ?? [])].some((site) => site.command === command && site.dispatch !== null && classify(spec, site.flags) === scope) + const seen = new Set([start]) + let frontier = [start] + for (let hop = 0; hop <= DEEP_HOPS && frontier.length; hop++) { + const next = [] + for (const fn of frontier) { + if (sends(fn)) return true + for (const name of fn.calls.keys()) { + const named = byName.get(name) ?? [] + for (const callee of named) if (!seen.has(callee) && (liberal || callTargets(fn, callee, named))) { seen.add(callee); next.push(callee) } + } + } + frontier = next + } + return false + } + // Which of a symbol's definitions send the command, for a symbol that has several: those a call credits, and those that + // only reach it through more calls than a symbol is credited across. + for (const [key, entry] of entries) { + const all = [...definitions].filter(([, owned]) => owned.some((symbol) => symbol.id === entry.symbol)).map(([fn]) => fn) + const sends = [...senders.get(key)] + const others = all.filter((method) => !sends.includes(method)) + Object.defineProperty(entry, 'methods', { + value: { + sends, all, + // A method no call reaches the command from, however far. + lacks: others.filter((method) => !reaches(method, command, entry.scope, true)), + // A method that reaches it only through calls the symbol is not credited across, or only by name. + deep: others.filter((method) => reaches(method, command, entry.scope, true) && reaches(method, command, entry.scope, false)), + unsure: others.filter((method) => reaches(method, command, entry.scope, true) && !reaches(method, command, entry.scope, false)), + }, + }) + } return { entries: [...entries.values()].sort((a, b) => a.symbol.localeCompare(b.symbol) || String(a.scope).localeCompare(String(b.scope))), unresolved, @@ -229,7 +299,7 @@ export function deriveUsage({ command, spec, functions, symbols, definitionOptio * stands only while that symbol sends the command at the same scope, and keeps that symbol's lines. * * @typedef {{ at: string, has?: string[], span?: number, in?: string }} Evidence - * @typedef {{ port: string, symbol: string, command: string, scope: string | null, evidence: Evidence[], forwardable?: boolean, via?: { port: string, symbol: string } }} Claim + * @typedef {{ port: string, symbol: string, command: string, scope: string | null, evidence: Evidence[], forwardable?: boolean, incidental?: boolean, via?: { port: string, symbol: string } }} Claim * @param {{ * claims: Claim[], * spec?: { scopes?: { id: string }[] }, @@ -289,7 +359,7 @@ export function verifyClaims({ claims, spec, functions, types, symbols, readSour if (!broken) { entries.push({ symbol: claim.symbol, command: claim.command, scope: claim.scope, evidence: claim.evidence.map((item) => item.at), - hops: claim.evidence.length - 1, reviewed: true, ...(claim.forwardable ? { forwardable: true } : {}), ...(claim.when ? { when: claim.when } : {}), + hops: claim.evidence.length - 1, reviewed: true, ...(claim.forwardable ? { forwardable: true } : {}), ...(claim.incidental ? { incidental: true } : {}), ...(claim.when ? { when: claim.when } : {}), ...(core ? { via: { port: claim.via.port, symbol: claim.via.symbol, revision: core.revision, evidence: core.evidence, ...(core.reviewed ? { reviewed: true } : {}) } } : {}), }) } @@ -336,7 +406,56 @@ export function applyConditions({ conditions, found, readSource, lenient = false const entry = found.get(`${item.symbol}\0${item.command}\0${item.scope}`) if (!entry) { if (!lenient) problems.push(`${label} qualifies no entry`) } else if (entry.when && entry.when !== item.when) problems.push(`${label} differs from the one its claim says: ${entry.when}`) - else entry.when = item.when + else { + entry.when = item.when + if (!lenient && item.receiver !== undefined) problems.push(...receiverProblems(label, item, entry)) + } + } + return problems +} + +/** + * A generic function's methods are told apart by the type of the first argument, and a command that only some of them send + * is qualified by that type. The qualifier is true when the methods the scan reaches the command from all take the type, + * and at least one method that takes another type does not reach it, and the condition cites the body of one of each, so + * that both can be read: a signature line that names the type shows neither. + * + * @param {string} label + * @param {{ receiver: string, evidence: { at: string, through?: number }[] }} item + * @param {{ methods?: { sends: { file: string, nameLine: number, end: number, receiverType?: string }[], all: { file: string, nameLine: number, end: number, receiverType?: string }[] } }} entry + */ +export function receiverProblems(label, item, entry) { + if (!entry.methods) return [`${label} names the receiver ${item.receiver}, and the entry was not derived from the methods of a function`] + const { sends, lacks, unsure } = entry.methods + const problems = [] + const wrong = sends.filter((method) => method.receiverType !== item.receiver) + if (wrong.length) problems.push(`${label} says on a ${item.receiver}, but the ${wrong.map((method) => method.receiverType ?? 'untyped').join(', ')} method at ${wrong[0].file}:${wrong[0].nameLine} sends it too`) + if (!lacks.length) problems.push(`${label} says on a ${item.receiver}, but no method of the function is shown not to send it, and a send that every method makes takes no qualifier`) + const same = lacks.filter((method) => method.receiverType === item.receiver) + if (same.length) problems.push(`${label} says on a ${item.receiver}, but the ${item.receiver} method at ${same[0].file}:${same[0].nameLine} does not send it`) + if (unsure.length) problems.push(`${label} cannot say which methods send it: ${unsure[0].file}:${unsure[0].nameLine} may reach it through a call that is not resolved`) + const shown = (methods) => (item.evidence ?? []).some((line) => line.through !== undefined + && methods.some((method) => line.at === `${method.file}:${method.nameLine}` && line.through === method.end)) + if (sends.length && !shown(sends)) problems.push(`${label} cites the body of no method that sends it`) + if (lacks.length && !shown(lacks)) problems.push(`${label} cites the body of no method that does not send it`) + return problems +} +/** + * A command that some of a generic function's methods send and others do not is qualified, so that no method is credited with + * another's send. An entry the scan derived that is sent by a part of the methods says when, in a condition or in a claim. + * + * @param {Map} found + */ +export function partialProblems(found) { + const problems = [] + for (const entry of found.values()) { + if (!entry.methods) continue + const { sends, lacks, unsure } = entry.methods + const where = (methods) => `${methods[0].file}:${methods[0].nameLine}` + if (unsure.length) problems.push(`${entry.symbol} ${entry.command} ${entry.scope}: the method at ${where(unsure)} may reach it through a call that is not resolved, so whether it sends it is not known`) + if (lacks.length && !entry.when) { + problems.push(`${entry.symbol} ${entry.command} ${entry.scope}: only the ${[...new Set(sends.map((method) => method.receiverType ?? 'untyped'))].join(', ')} methods send it, and ${lacks.length} other method${lacks.length > 1 ? 's' : ''} such as ${where(lacks)} do not, so it needs a condition that says when`) + } } return problems } diff --git a/scripts/lib/tmux-usage-dispatch.mjs b/scripts/lib/tmux-usage-dispatch.mjs index 634131ee2..ab3e479b7 100644 --- a/scripts/lib/tmux-usage-dispatch.mjs +++ b/scripts/lib/tmux-usage-dispatch.mjs @@ -1,3 +1,5 @@ +import { callTargets } from './tmux-usage-derive.mjs' + /** * Checks the calls that `dispatchers.json` says send a tmux command. * @@ -8,8 +10,10 @@ * * - The definition is a line of a function with the rule's name. * - Each hop is a line of the function the hop before it leads to, and holds the text it cites. It calls the next - * function (`calls`), which the scan has read; or it leads to it in a way the scan does not follow (`leads`): a bare - * method name in Ruby, or a command put on a queue that another function writes from. + * function (`calls`): the call on that line, with the object it is made on and the arguments it passes, must resolve to the + * function the next hop is in, as a call does in a derivation, so that a tracing helper called `run` is not the `run` of a + * subprocess; or it leads to it in a way the scan does not follow (`leads`), and says why in `why`: dynamic dispatch + * through a trait, or a command put on a queue that another function writes from. * - The last line holds the transport: a process start or a write to the control client's input. * - A definition whose own line starts the process needs no chain. */ @@ -47,6 +51,37 @@ const functionAt = (functions, file, line) => functions /** Whether a function is the one a call or a hand-off names: a function of that name, or the constructor of a type of that name. */ const isNamed = (fn, name) => fn.name === name || (fn.owner === name && CONSTRUCTOR.test(fn.name)) +/** + * Whether the call a hop cites is a call of the function the next hop is in. The call on the hop's line is judged by what it is + * made on and the arguments it passes, among the functions of that name. A call made on a field that holds a handle the scan + * cannot type (`self.executor.execute(request)`) says what it holds in `on`, which must be the type of the function the chain + * goes on in, and which the call's own receiver must not contradict. + */ +function callProblems({ where, hop, current, reached, functions, line }) { + const name = hop.calls + const calls = current.callList?.filter((candidate) => candidate.name === name && (candidate.line === line || candidate.calleeLine === line)) + if (current.callList && !calls.length) return [`${where} has no call of ${name} on that line`] + // A constructor is called by the name of its type. + if (reached.name !== name) return reached.owner === name && current.calls.has(name) ? [] : [`${where} does not call ${name}`] + const named = functions.filter((candidate) => candidate.name === name) + const describe = (candidate) => `${candidate.owner ? `${candidate.owner}.` : ''}${candidate.name} at ${candidate.file}:${candidate.nameLine}` + // The type a function is a method of: its owner, or in Julia the type of its first argument, which picks the method of a generic function. + // A free function is named by its file, which is how one of two platform builds of it is chosen. + const typeOf = (candidate) => candidate.owner ?? candidate.receiverType ?? candidate.file.replace(/^.*\//, '') + if (!current.callList) return callTargets(current, reached, named) || (hop.on !== undefined && hop.on === typeOf(reached)) ? [] : [`${where} does not call ${name}`] + const resolved = calls.filter((call) => callTargets(current, reached, named, call)) + const elsewhere = [...new Set(calls.flatMap((call) => named.filter((candidate) => candidate !== reached && callTargets(current, candidate, named, call))))] + if (hop.on !== undefined) { + if (typeOf(reached) !== hop.on) return [`${where} says the call is made on a ${hop.on}, but the chain goes on in ${describe(reached)}`] + if (elsewhere.length && !resolved.length) return [`${where} says the call is made on a ${hop.on}, but its receiver resolves it to ${elsewhere.map(describe).join(' and ')}`] + return [] + } + if (resolved.length) return [] + const call = calls[0] + const made = `${call.receiver ? `${call.receiver}.` : ''}${name}(${call.shape ? (call.shape.labels ? call.shape.labels.map((label) => (label === '_' ? '_' : `${label}:`)).join('') : call.shape.count) : ''})` + return [`${where} is a call of ${made}, which resolves to ${elsewhere.length ? elsewhere.map(describe).join(' and ') : 'no function the scan has read'}, and not to ${describe(reached)}, where the chain goes on${elsewhere.length ? '' : `; if the object it is made on holds a ${reached.owner ?? 'value'}, say so in on`}`] +} + /** * @param {{ port: string, rule: { name: string }, item: { at: string, has?: string[], reaches?: { at: string, has?: string[], calls?: string, leads?: string }[] }, * functions: { file: string, name: string, owner?: string, start: number, end: number, calls: Map }[], @@ -90,13 +125,14 @@ export function chainProblems({ port, rule, item, functions, readSource }) { } const target = hop.calls ?? hop.leads if (!target) { problems.push(`${where} names neither the function it calls nor the one it leads to`); break } - if (hop.calls && !current.calls.has(hop.calls)) problems.push(`${where} is in a function that does not call ${hop.calls}`) + if (hop.leads !== undefined && !hop.calls && !hop.why?.trim()) problems.push(`${where} leads to ${hop.leads} and says nothing about why the scan cannot follow it`) const next = split(chain[index + 1].at) const reached = functionAt(functions, next.file, next.line) if (!reached || !isNamed(reached, target)) { problems.push(`${where} leads to ${target}, but ${chain[index + 1].at} is not a line of it`) break } + if (hop.calls) problems.push(...callProblems({ where, hop, current, reached, functions, line: at.line })) current = reached } return problems diff --git a/scripts/lib/tmux-usage-forward.mjs b/scripts/lib/tmux-usage-forward.mjs index c511785e8..94964a2c3 100644 --- a/scripts/lib/tmux-usage-forward.mjs +++ b/scripts/lib/tmux-usage-forward.mjs @@ -10,7 +10,7 @@ import { bareName, definitionsOf } from './tmux-usage-derive.mjs' /** - * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], reviewed?: boolean, forwardable?: boolean }} CoreEntry + * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], reviewed?: boolean, forwardable?: boolean, incidental?: boolean }} CoreEntry * @typedef {{ id: string, name: string, parentName?: string, file: string, line: number }} WrapperSymbol */ @@ -44,7 +44,7 @@ export function forwardUsage({ parent, functions, types, symbols, core, generate const key = `${symbol.id}\0${entry.command}\0${entry.scope}` const result = { symbol: symbol.id, command: entry.command, scope: entry.scope, evidence, hops: 1, ...(entry.when ? { when: entry.when } : {}), - via: { port: parent, symbol: entry.symbol, revision: core.revision, evidence: entry.evidence, ...(entry.reviewed ? { reviewed: true } : {}) }, + via: { port: parent, symbol: entry.symbol, revision: core.revision, evidence: entry.evidence, ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.incidental ? { incidental: true } : {}) }, } if (!entries.has(key)) entries.set(key, result) forwarding.add(symbol.id) diff --git a/scripts/lib/tmux-usage-lexical.mjs b/scripts/lib/tmux-usage-lexical.mjs index 81d02ff73..07f509d2a 100644 --- a/scripts/lib/tmux-usage-lexical.mjs +++ b/scripts/lib/tmux-usage-lexical.mjs @@ -146,6 +146,8 @@ export function scanJulia(text, { commands, known, dispatch }) { let after = close + 1 if (tokens[after]?.v === 'where') while (tokens[after] && tokens[after].v !== '=' && tokens[after].line === tokens[close].line) after++ if (tokens[after]?.v !== '=' || tokens[after + 1]?.v === '=') continue + // The arguments can span lines, and the body starts where the `=` is. + end = Math.max(line, tokens[after].line) while (lines[end] !== undefined && lines[end].trim() && indentOf(lines, end + 1) > indent) end++ } else { for (let next = line + 1; next <= lines.length; next++) { @@ -158,7 +160,9 @@ export function scanJulia(text, { commands, known, dispatch }) { const above = tokens.findLast((token) => token.line < line) const docEnd = above ? above.line + (above.v.match(/\n/g)?.length ?? 0) : 0 if (above?.doc && !lines.slice(docEnd, line - 1).some((value) => value.trim())) start = above.line - functions.push({ name: path.at(-1), start, nameLine: line, end, kind: 'function', sites: [], calls: new Map(), receivers: new Map() }) + // A method of a generic function is told apart by the type of its first argument: `server::Server`, `connection::ControlConnection{T}`. + const selfType = tokens[at + 1]?.t === 'id' && tokens[at + 2]?.v === ':' && tokens[at + 3]?.v === ':' && tokens[at + 4]?.t === 'id' ? tokens[at + 4].v : undefined + functions.push({ name: path.at(-1), start, nameLine: line, end, kind: 'function', sites: [], calls: new Map(), receivers: new Map(), ...(selfType ? { receiverType: selfType } : {}) }) } /** * A table loop defines one function per row: `for (op, command, Ref) in ((:kill_pane, "kill-pane", PaneRef), ...)` @@ -226,10 +230,20 @@ export function scanJulia(text, { commands, known, dispatch }) { const adjacentCall = (index) => tokens[index]?.t === 'id' && !JULIA_KEYWORDS.has(tokens[index].v) && tokens[index + 1]?.v === '(' && tokens[index + 1].line === tokens[index].line && tokens[index + 1].col === tokens[index].col + tokens[index].v.length const symbolAt = (i, ...values) => tokens[i]?.t === 'sym' && values.includes(tokens[i].v) + /** + * Whether a `?` on the line chooses this command against another one. A condition that only gates the call, `isempty(ss) ? [] : rows("list-windows")`, + * leaves a single command on the line and sends it when the condition holds. + */ + const chosenOnLine = (index) => { + const line = tokens[index].line + if (!tokens.some((other, at) => other.line === line && symbolAt(at, '?'))) return false + const here = isCommand(tokens[index]) + return tokens.some((other) => other.line === line && other !== tokens[index] && isCommand(other) && isCommand(other) !== here) + } /** A command that is compared with, or one of several a `?:` chooses between, names a command and sends nothing. */ const chosenOrCompared = (index) => symbolAt(index - 1, '=', '!') && symbolAt(index - 2, '=', '!', '<', '>') || (symbolAt(index + 1, '=', '!') && symbolAt(index + 2, '=')) || tokens[index - 1]?.v === 'in' || tokens[index - 1]?.v === '∈' || tokens[index + 1]?.v === 'in' - || tokens.some((other) => other.line === tokens[index].line && symbolAt(tokens.indexOf(other), '?')) + || chosenOnLine(index) /** The variables an `=` before the literal, in the same statement, binds it to. */ const boundNames = (index) => { let depth = 0 diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index 4ef37e477..6b06ca356 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -220,10 +220,66 @@ const ownerName = (grammar, node) => { const row = (node) => node.startPosition.row + 1 -/** Note a call once per name, at its first line, and remember every object it was made on. */ -function recordCall(fn, name, receiver, line) { +/** The grammars of languages that let several functions of one type share a name and tell them apart by their arguments. */ +const OVERLOADING = new Set(['java', 'csharp', 'cpp', 'swift']) + +const notComment = (child) => !/comment/.test(child.type) + +/** + * What a call passes: how many arguments, and for Swift the label of each (`_` for none), which is how `run(rawArguments:)` + * is told from `run(_:)`. + * @returns {{ count: number, labels?: string[] } | undefined} + */ +function callShape(grammar, node) { + if (!OVERLOADING.has(grammar)) return undefined + if (grammar === 'swift') { + const suffix = node.namedChildren.find((child) => child.type === 'call_suffix') + const values = suffix?.namedChildren.find((child) => child.type === 'value_arguments') + if (!values) return undefined + const labels = values.namedChildren.filter((child) => child.type === 'value_argument') + .map((argument) => argument.namedChildren.find((child) => child.type === 'value_argument_label')?.text ?? '_') + // A trailing closure is one more argument without a label. + if (suffix.namedChildren.some((child) => /lambda/.test(child.type))) labels.push('_') + return { count: labels.length, labels } + } + const args = node.childForFieldName('arguments') + return args ? { count: args.namedChildren.filter(notComment).length } : undefined +} + +/** + * What a function takes: the fewest and the most arguments a call may pass, and for Swift the external label of each parameter + * with whether it has a default. + * @returns {{ min: number, max: number, labels?: { label: string, optional: boolean }[] } | undefined} + */ +function functionShape(grammar, node) { + if (!OVERLOADING.has(grammar)) return undefined + if (grammar === 'swift') { + const labels = [] + node.children.forEach((child, index) => { + if (child.type !== 'parameter') return + labels.push({ label: child.namedChildren.find((part) => part.type === 'simple_identifier')?.text ?? '_', optional: node.children[index + 1]?.type === '=' }) + }) + return { min: labels.filter((item) => !item.optional).length, max: labels.length, labels } + } + let list + if (grammar === 'cpp') { + let declarator = node.childForFieldName('declarator') + while (declarator && declarator.type !== 'function_declarator') declarator = declarator.childForFieldName('declarator') + list = declarator?.childForFieldName('parameters') + } else list = node.childForFieldName('parameters') + if (!list) return undefined + const items = list.namedChildren.filter(notComment) + const variadic = items.some((item) => /spread|variadic/.test(item.type)) + const optional = items.filter((item) => item.namedChildren.some((part) => part.type === 'equals_value_clause') || /optional/.test(item.type)).length + // A C++ default is written where the function is declared, which is a header that is not the definition read here. + return { min: grammar === 'cpp' ? 0 : items.length - optional - (variadic ? 1 : 0), max: variadic ? Infinity : items.length } +} + +/** Note a call once per name, at its first line, and remember every object it was made on and the shape of each call. */ +function recordCall(fn, name, receiver, line, shape, calleeLine = line) { if (!fn.calls.has(name)) fn.calls.set(name, line) if (receiver) fn.receivers.set(name, new Set([...(fn.receivers.get(name) ?? []), receiver])) + ;(fn.callList ??= []).push({ name, receiver, line, calleeLine, ...(shape ? { shape } : {}) }) } /** @@ -481,6 +537,38 @@ function argumentNames(node) { return found } +/** + * The Swift grammar predates typed throws and the `package` access level; either is an error that takes the type around it, and + * every method in it loses its owner. A word of the same length that the grammar reads keeps every line and column. + */ +export function withoutNewSwift(text) { + return text + .replace(/\bthrows[ \t]*\([ \t]*[\w.]+[ \t]*\)/g, (match) => 'throws'.padEnd(match.length)) + .replace(/\bpackage(?=\s+(?:static|final|func|var|let|init|struct|class|enum|actor|protocol|extension|typealias|subscript|nonisolated|mutating|override|convenience|required|lazy|indirect|import|associatedtype)\b)/g, 'public ') +} + +const CS_ARGUMENTS = String.raw`(?:"(?:[^"\\]|\\.)*"|[^()"]|\((?:"(?:[^"\\]|\\.)*"|[^()"])*\))*` +const CS_HEADER = String.raw`\b(?:class|struct|record)(?:\s+(?:class|struct))?\s+\w+(?:<[^>]*>)?` + +/** + * The C# grammar predates primary constructors: `sealed class Failure(Task operation) : Exception("...", operation)` is an error that + * takes the rest of the file's classes with it, so every method after it loses its owner. Blanking the parameter list, and the + * arguments a base type is constructed with, keeps every line and column and leaves the declaration the grammar reads. + */ +export function withoutPrimaryConstructors(text) { + const blank = [] + for (const header of text.matchAll(new RegExp(`(${CS_HEADER})\\s*\\((${CS_ARGUMENTS})\\)(\\s*:\\s*[A-Za-z_][\\w.<>]*)?`, 'g'))) { + blank.push([header.index + header[1].length + header[0].slice(header[1].length).indexOf('('), header.index + header[1].length + header[0].slice(header[1].length).indexOf('(') + header[2].length + 2]) + const after = header.index + header[0].length + const constructed = header[3] && new RegExp(`^\\s*(\\(${CS_ARGUMENTS}\\))`).exec(text.slice(after)) + if (constructed) blank.push([after + constructed[0].length - constructed[1].length, after + constructed[0].length]) + } + if (!blank.length) return text + const out = [...text] + for (const [from, to] of blank) for (let at = from; at < to; at++) if (out[at] !== '\n' && out[at] !== '\r') out[at] = ' ' + return out.join('') +} + /** * Every named function of a file with the command sites and calls inside it. * @@ -516,7 +604,7 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui if (grammar === 'fsharp') return scanFSharp(text) const parser = await parserFor(grammar) // The Swift grammar predates typed throws; blanking the type keeps every line and column. - const tree = parser.parse(grammar === 'swift' ? text.replace(/\bthrows[ \t]*\([ \t]*[\w.]+[ \t]*\)/g, (match) => 'throws'.padEnd(match.length)) : text) + const tree = parser.parse(grammar === 'swift' ? withoutNewSwift(text) : grammar === 'csharp' ? withoutPrimaryConstructors(text) : text) const functions = [] const types = [] const orphans = [] @@ -646,6 +734,7 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui const fn = { name, owner: owner ?? owners.filter(Boolean).at(-1), start: row(wrapper), nameLine: row(node.childForFieldName('name') ?? node), end: node.endPosition.row + 1, kind: node.type, sites: [], calls: new Map(), receivers: new Map(), + ...(functionShape(grammar, node) ? { shape: functionShape(grammar, node) } : {}), // A namespace opened by a macro is invisible here, so an empty chain is unknown, not global. ...([...namespaces.filter(Boolean), ...scope].length ? { namespace: [...namespaces.filter(Boolean), ...scope].join('::') } : {}), } @@ -671,7 +760,7 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui if (CALL.has(node.type) && stack.length) { const callee = calleeOf(grammar, node) if (callee?.name) { - recordCall(stack.at(-1), callee.name, callee.receiver, row(node)) + recordCall(stack.at(-1), callee.name, callee.receiver, row(node), callShape(grammar, node), calleeRow(node)) if (dispatch) { const callDepths = (stack.at(-1).callDepths ??= new Map()) callDepths.set(callee.name, Math.min(callDepths.get(callee.name) ?? Infinity, nesting(grammar, node))) diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 96f571448..9ff10acf9 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -2743,7 +2743,6 @@ "symbol": "LibTmux::Options#list", "command": "show-options", "scope": null, - "when": "the receiver is an Options", "evidence": [ { "at": "gems/libtmux/lib/libtmux/options.rb:61", @@ -2766,7 +2765,6 @@ "symbol": "LibTmux::Hooks#list", "command": "show-hooks", "scope": null, - "when": "the receiver is a Hooks", "evidence": [ { "at": "gems/libtmux/lib/libtmux/options.rb:61", @@ -2789,7 +2787,6 @@ "symbol": "LibTmux::Options#unset", "command": "set-option", "scope": null, - "when": "the receiver is an Options", "evidence": [ { "at": "gems/libtmux/lib/libtmux/options.rb:107", @@ -2812,7 +2809,6 @@ "symbol": "LibTmux::Hooks#unset", "command": "set-hook", "scope": null, - "when": "the receiver is a Hooks", "evidence": [ { "at": "gems/libtmux/lib/libtmux/options.rb:107", @@ -4974,8 +4970,16 @@ "dispatch.apply(assemble())" ], "in": "io.github.libtmux.batch.Batch.Batch.run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82", + "has": [ + "operations.isEmpty()" + ] } - ] + ], + "when": "the batch is not empty", + "incidental": true }, { "port": "csharp", @@ -6612,6 +6616,60 @@ } ] }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-windows", + "scope": "server", + "when": "a session exists", + "evidence": [ + { + "at": "src/acquisition.jl:109", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/acquisition.jl:114", + "has": [ + "args=(\"-a\",)" + ] + }, + { + "at": "src/acquisition.jl:106", + "has": [ + "isempty(ss)" + ] + }, + { + "at": "src/acquisition.jl:231", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + }, + { + "at": "src/control_io.jl:223", + "has": [ + "isempty(ss)", + "rows(\"list-windows\"" + ] + }, + { + "at": "src/control.jl:538", + "has": [ + "push!(argv, \"-a\")" + ] + }, + { + "at": "src/control_io.jl:249", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + } + ] + }, { "port": "julia", "symbol": "LibTmux.snapshot", @@ -6630,14 +6688,41 @@ "args=(\"-a\",)" ] }, + { + "at": "src/acquisition.jl:117", + "has": [ + "isempty(ss)" + ] + }, { "at": "src/acquisition.jl:231", "has": [ "_capture_graph_rows(" ], "in": "LibTmux.snapshot" + }, + { + "at": "src/control_io.jl:224", + "has": [ + "isempty(ss)", + "rows(\"list-panes\"" + ] + }, + { + "at": "src/control.jl:538", + "has": [ + "push!(argv, \"-a\")" + ] + }, + { + "at": "src/control_io.jl:249", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" } - ] + ], + "when": "a session exists" }, { "port": "julia", @@ -6657,6 +6742,19 @@ "capture_bytes(" ], "in": "LibTmux.capture_pane" + }, + { + "at": "src/pane_io.jl:77", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "src/pane_io.jl:94", + "has": [ + "capture_bytes(server" + ], + "in": "LibTmux.capture_pane" } ] }, @@ -9788,7 +9886,6 @@ "symbol": "Server.link(_:into:)", "command": "link-window", "scope": null, - "when": "the window is linked, not moved", "evidence": [ { "at": "Sources/LibTmux/WindowTransfers.swift:75", @@ -9822,7 +9919,6 @@ "symbol": "Server.move(_:to:at:)", "command": "move-window", "scope": null, - "when": "the window is moved, not linked", "evidence": [ { "at": "Sources/LibTmux/WindowTransfers.swift:75", @@ -9856,7 +9952,6 @@ "symbol": "Server.breakPane(_:from:named:)", "command": "break-pane", "scope": null, - "when": "a name is given", "evidence": [ { "at": "Sources/LibTmux/Navigation.swift:127", @@ -10128,7 +10223,6 @@ "symbol": "tmuxtest.NewSession", "command": "kill-session", "scope": null, - "when": "the test ends, in t.Cleanup", "evidence": [ { "at": "tmux/tmuxtest/resources.go:135", @@ -10313,6 +10407,31 @@ ], "span": 4, "in": "LibTmux.paste_bytes" + }, + { + "at": "src/control_buffers.jl:178", + "has": [ + "_control_effect(" + ] + }, + { + "at": "src/control_buffers.jl:180", + "has": [ + "[args..." + ] + }, + { + "at": "src/control_buffers.jl:150", + "has": [ + "_paste_flags(" + ] + }, + { + "at": "src/control_buffers.jl:174", + "has": [ + "_control_paste_args(" + ], + "in": "LibTmux.paste_bytes" } ] }, @@ -10628,46 +10747,6 @@ } ] }, - { - "port": "go", - "symbol": "tmux.Server.OpenControl", - "command": "if-shell", - "scope": null, - "when": "a Server carrying a daemon identity", - "evidence": [ - { - "at": "tmux/identity.go:151", - "has": [ - "\"if-shell\", \"-F\", condition, thenCommand, guard.failure" - ] - }, - { - "at": "tmux/identity.go:134", - "has": [ - "s.daemon == nil || s.boundToInstance()" - ] - }, - { - "at": "tmux/control_startup.go:86", - "has": [ - "s.guardCommand(attach, false)" - ] - }, - { - "at": "tmux/control_startup.go:122", - "has": [ - "exec.Command(state.config.executable, arguments...)" - ] - }, - { - "at": "tmux/control_startup.go:42", - "has": [ - "s.openControl(" - ], - "in": "tmux.Server.OpenControl" - } - ] - }, { "port": "go", "symbol": "tmux.Server.OpenNotifications", @@ -10707,46 +10786,6 @@ } ] }, - { - "port": "go", - "symbol": "tmux.Server.OpenNotifications", - "command": "if-shell", - "scope": null, - "when": "a Server carrying a daemon identity", - "evidence": [ - { - "at": "tmux/identity.go:151", - "has": [ - "\"if-shell\", \"-F\", condition, thenCommand, guard.failure" - ] - }, - { - "at": "tmux/identity.go:134", - "has": [ - "s.daemon == nil || s.boundToInstance()" - ] - }, - { - "at": "tmux/control_startup.go:86", - "has": [ - "s.guardCommand(attach, false)" - ] - }, - { - "at": "tmux/control_startup.go:122", - "has": [ - "exec.Command(state.config.executable, arguments...)" - ] - }, - { - "at": "tmux/notification_stream.go:67", - "has": [ - "s.openControl(" - ], - "in": "tmux.Server.OpenNotifications" - } - ] - }, { "port": "julia", "symbol": "LibTmux.open_control", @@ -11904,7 +11943,7 @@ "symbol": "libtmux::Pane::break_out", "command": "rename-window", "scope": null, - "when": "a name is given", + "when": "named, and the window has one pane", "evidence": [ { "at": "src/entities.cpp:1373", @@ -11966,6 +12005,1338 @@ "in": "libtmux::Pane::break_out" } ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "if-shell", + "scope": null, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:172", + "has": [ + "names.fetch(\"if-shell\")" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:171", + "has": [ + "names.fetch(\"kill-session\")" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Window", + "command": "list-windows", + "scope": "session", + "forwardable": true, + "evidence": [ + { + "at": "tmux/lookup.go:198", + "has": [ + "s.snapshotListing(" + ] + }, + { + "at": "tmux/lookup.go:196", + "has": [ + "\"-t\", identifier" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:62", + "has": [ + "\"list-windows\", true)" + ], + "in": "tmux.Server.Window" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Pane", + "command": "list-panes", + "scope": "window", + "forwardable": true, + "evidence": [ + { + "at": "tmux/lookup.go:198", + "has": [ + "s.snapshotListing(" + ] + }, + { + "at": "tmux/lookup.go:196", + "has": [ + "\"-t\", identifier" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:79", + "has": [ + "\"list-panes\", true)" + ], + "in": "tmux.Server.Pane" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Session", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:11", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Session" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Window", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:62", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Window" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Pane", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:79", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Pane" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Client", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:94", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Client" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.NewSession", + "command": "list-sessions", + "scope": null, + "when": "a name is given", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:155", + "has": [ + "s.literalCmd(ctx, \"list-sessions\"" + ] + }, + { + "at": "tmux/session_lifecycle.go:208", + "has": [ + "if request.Name != \"\"" + ] + }, + { + "at": "tmux/session_lifecycle.go:215", + "has": [ + "effective.sessionNamed(ctx, request.Name)" + ], + "in": "tmux.Server.NewSession" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.capture(_:includingHistory:maximumLines:)", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/PaneInteraction.swift:295", + "has": [ + "runIsolated(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:296", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:139", + "has": [ + "captureTail(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:103", + "has": [ + "captureTail(" + ], + "in": "Server.capture(_:includingHistory:maximumLines:)" + } + ] + }, + { + "port": "swift", + "symbol": "Server.capture(_:includingHistory:maximumLines:)", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/Formats.swift:364", + "has": [ + "runGuarded(command, by: values" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:359", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:314", + "has": [ + "format(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:322", + "has": [ + "formatGlobal(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:138", + "has": [ + "captureBounds(for: pane)" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:103", + "has": [ + "captureTail(" + ], + "in": "Server.capture(_:includingHistory:maximumLines:)" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.captureRange(_:startingAt:endingAt:joiningWrappedLines:maximumLines:)", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/Formats.swift:364", + "has": [ + "runGuarded(command, by: values" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:359", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:314", + "has": [ + "format(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:322", + "has": [ + "formatGlobal(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:119", + "has": [ + "captureBounds(for: pane)" + ], + "in": "Server.captureRange(_:startingAt:endingAt:joiningWrappedLines:maximumLines:)" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.link(_:into:)", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:273", + "has": [ + "list(" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:274", + "has": [ + "\"list-windows\", [\"-a\"" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:269", + "has": [ + "windowListingRows()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:82", + "has": [ + "windowLinks()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:20", + "has": [ + "transfer(" + ], + "in": "Server.link(_:into:)" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.move(_:to:at:)", + "command": "list-windows", + "scope": "server", + "when": "no index is given", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:273", + "has": [ + "list(" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:274", + "has": [ + "\"list-windows\", [\"-a\"" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:269", + "has": [ + "windowListingRows()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:82", + "has": [ + "windowLinks()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:79", + "has": [ + "if let requestedIndex" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:46", + "has": [ + "transfer(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:10", + "has": [ + "transfer(" + ], + "in": "Server.move(_:to:at:)" + } + ], + "incidental": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "has": [ + "server.run(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "expand(\"#{pane_synchronized}\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:577", + "has": [ + "keyRecipients()" + ], + "in": "io.github.libtmux.Pane.Pane.sendKeys" + } + ], + "incidental": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "has": [ + "server.run(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "expand(\"#{pane_synchronized}\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:619", + "has": [ + "keyRecipients()" + ], + "in": "io.github.libtmux.Pane.Pane.sendLiteral" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchSessions", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:28", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchSessions" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchClients", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:46", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchClients" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchWindows", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:62", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchWindows" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchPanes", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:78", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchPanes" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Session.SearchWindows", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:100", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Session.SearchWindows" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Session.SearchPanes", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:127", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Session.SearchPanes" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Window.SearchPanes", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:152", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Window.SearchPanes" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SessionByName", + "command": "display-message", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:210", + "has": [ + "s.literalCmdWithRaw(" + ] + }, + { + "at": "tmux/identity.go:212", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "tmux/identity.go:206", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/lookup.go:36", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SessionByName" + } + ], + "incidental": true + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#display", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:245", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#display" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#kill", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:228", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#move", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:235", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#move" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#select", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:220", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#select" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#swap", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:240", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#swap" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#unlink", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:224", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#unlink" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:165", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", \"kill-session\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#switch_client", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Server#switch_client" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#switch_client", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Async::Server#switch_client" + } + ] } ] } diff --git a/scripts/tmux-usage/conditions.json b/scripts/tmux-usage/conditions.json index 70b861e61..59194c791 100644 --- a/scripts/tmux-usage/conditions.json +++ b/scripts/tmux-usage/conditions.json @@ -48,7 +48,7 @@ "symbol": "Server.newSession(named:startDirectory:windowName:width:height:)", "command": "resize-window", "scope": null, - "when": "a width or height is requested", + "when": "the requested size differs from the created size", "evidence": [ { "at": "Sources/LibTmux/Creation.swift:144", @@ -151,164 +151,32 @@ { "port": "julia", "symbol": "LibTmux.capture_bytes", - "command": "capture-pane", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_io.jl:85", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.capture_bytes", - "command": "delete-buffer", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_io.jl:85", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.capture_bytes", - "command": "list-buffers", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_io.jl:85", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.capture_bytes", - "command": "save-buffer", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_io.jl:85", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.capture_pane", - "command": "capture-pane", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_io.jl:167", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.delete_buffer", "command": "delete-buffer", "scope": null, "when": "on a ControlConnection", + "receiver": "ControlConnection", "evidence": [ { - "at": "src/control_buffers.jl:119", + "at": "src/control_io.jl:84", + "through": 164, "has": [ - "::ControlConnection" + "function capture_bytes(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.detach_client", - "command": "detach-client", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_clients.jl:71", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.detach_client", - "command": "list-clients", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ - { - "at": "src/control_clients.jl:71", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.get_environment", - "command": "show-environment", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/configuration.jl:344", + "at": "src/control_io.jl:60", "has": [ - "::Server" + "\"delete-buffer\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.get_option", - "command": "show-options", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/configuration.jl:248", - "has": [ - "::Server" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.link_window", - "command": "link-window", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + "at": "src/control_io.jl:150" + }, { - "at": "src/control_topology.jl:265", + "at": "src/pane_io.jl:64", + "through": 86, "has": [ - "::ControlConnection" + "function capture_bytes(" ] } ] @@ -319,191 +187,95 @@ "command": "display-message", "scope": null, "when": "on a Server", + "receiver": "Server", "evidence": [ { "at": "src/pane_io.jl:182", + "through": 189, "has": [ - "::Server" + "function load_buffer(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.load_buffer", - "command": "list-buffers", - "scope": null, - "when": "on a Server", - "evidence": [ - { - "at": "src/pane_io.jl:182", - "has": [ - "::Server" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.load_buffer", - "command": "load-buffer", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_buffers.jl:68", + "at": "src/acquisition.jl:52", "has": [ - "::ControlConnection" + "\"display-message\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.move_pane", - "command": "move-pane", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_topology.jl:179", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.move_window", - "command": "move-window", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + "at": "src/pane_io.jl:185" + }, { - "at": "src/control_topology.jl:265", + "at": "src/control_buffers.jl:68", + "through": 72, "has": [ - "::ControlConnection" + "function load_buffer(" ] } ] }, { "port": "julia", - "symbol": "LibTmux.new_session", - "command": "new-session", + "symbol": "LibTmux.snapshot", + "command": "display-message", "scope": null, "when": "on a Server", + "receiver": "Server", "evidence": [ { - "at": "src/operations.jl:170", + "at": "src/acquisition.jl:218", + "through": 247, "has": [ - "::Server" + "function snapshot(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.new_window", - "command": "new-window", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/operations.jl:206", + "at": "src/acquisition.jl:52", "has": [ - "::Server" + "\"display-message\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.paste_bytes", - "command": "delete-buffer", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_buffers.jl:165", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.paste_bytes", - "command": "list-buffers", - "scope": null, - "when": "on a Server", - "evidence": [ + "at": "src/acquisition.jl:227" + }, { - "at": "src/pane_io.jl:265", + "at": "src/control_io.jl:238", + "through": 266, "has": [ - "::Server" + "function snapshot(" ] } ] }, { "port": "julia", - "symbol": "LibTmux.paste_bytes", - "command": "list-commands", + "symbol": "LibTmux.capture_bytes", + "command": "list-buffers", "scope": null, "when": "on a ControlConnection", + "receiver": "ControlConnection", "evidence": [ { - "at": "src/control_buffers.jl:165", + "at": "src/control_io.jl:84", + "through": 164, "has": [ - "::ControlConnection" + "function capture_bytes(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.paste_bytes", - "command": "load-buffer", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_buffers.jl:165", + "at": "src/control_io.jl:35", "has": [ - "::ControlConnection" + "\"list-buffers\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.paste_bytes", - "command": "paste-buffer", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/pane_io.jl:265", - "has": [ - "::Server" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.read_formats", - "command": "list-panes", - "scope": "window", - "when": "on a ControlConnection", - "evidence": [ + "at": "src/control_io.jl:112" + }, { - "at": "src/control_formats.jl:55", + "at": "src/pane_io.jl:64", + "through": 86, "has": [ - "::ControlConnection" + "function capture_bytes(" ] } ] @@ -514,146 +286,92 @@ "command": "list-buffers", "scope": null, "when": "on a ControlConnection", + "receiver": "ControlConnection", "evidence": [ { - "at": "src/control_buffers.jl:86", + "at": "src/control_buffers.jl:85", + "through": 116, "has": [ - "::ControlConnection" + "function save_buffer(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.save_buffer", - "command": "save-buffer", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_buffers.jl:86", + "at": "src/control_io.jl:35", "has": [ - "::ControlConnection" + "\"list-buffers\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.select_layout", - "command": "select-layout", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_topology.jl:124", - "has": [ - "::ControlConnection" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.select_pane", - "command": "select-pane", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + "at": "src/control_buffers.jl:96" + }, { - "at": "src/control_topology.jl:86", + "at": "src/pane_io.jl:192", + "through": 208, "has": [ - "::ControlConnection" + "function save_buffer(" ] } ] }, { "port": "julia", - "symbol": "LibTmux.select_window", - "command": "select-window", + "symbol": "LibTmux.capture_bytes", + "command": "save-buffer", "scope": null, "when": "on a ControlConnection", + "receiver": "ControlConnection", "evidence": [ { - "at": "src/control_topology.jl:358", + "at": "src/control_io.jl:84", + "through": 164, "has": [ - "::ControlConnection" + "function capture_bytes(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.send_keys", - "command": "send-keys", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_operations.jl:179", + "at": "src/control_io.jl:131", "has": [ - "::ControlConnection" + "\"save-buffer\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.set_environment", - "command": "set-environment", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/configuration.jl:363", + "at": "src/pane_io.jl:64", + "through": 86, "has": [ - "::Server" + "function capture_bytes(" ] } ] }, { "port": "julia", - "symbol": "LibTmux.set_hook", - "command": "set-hook", + "symbol": "LibTmux.get_environment", + "command": "show-environment", "scope": null, "when": "on a Server", + "receiver": "Server", "evidence": [ { - "at": "src/configuration.jl:460", + "at": "src/configuration.jl:343", + "through": 359, "has": [ - "::Server" + "function get_environment(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.set_option", - "command": "set-option", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/configuration.jl:269", + "at": "src/configuration.jl:299", "has": [ - "::Server" + "\"show-environment\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.snapshot", - "command": "display-message", - "scope": null, - "when": "on a Server", - "evidence": [ + }, + { + "at": "src/configuration.jl:353" + }, { - "at": "src/acquisition.jl:219", + "at": "src/control_options.jl:413", + "through": 429, "has": [ - "::Server" + "function get_environment(" ] } ] @@ -663,177 +381,101 @@ "symbol": "LibTmux.snapshot", "command": "list-clients", "scope": null, - "when": "on a Server", + "when": "a session exists", "evidence": [ { - "at": "src/acquisition.jl:219", + "at": "src/acquisition.jl:128", "has": [ - "::Server" + "isempty(ss)" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.snapshot", - "command": "list-panes", - "scope": "server", - "when": "on a Server", - "evidence": [ - { - "at": "src/acquisition.jl:219", - "has": [ - "::Server" - ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.snapshot", - "command": "list-sessions", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/acquisition.jl:219", + "at": "src/acquisition.jl:129", "has": [ - "::Server" + "\"list-clients\"" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.snapshot", - "command": "list-windows", - "scope": "server", - "when": "on a Server", - "evidence": [ + }, { - "at": "src/acquisition.jl:219", + "at": "src/control_io.jl:225", "has": [ - "::Server" + "isempty(ss)", + "\"list-clients\"" ] } ] }, { - "port": "julia", - "symbol": "LibTmux.split_window", - "command": "split-window", + "port": "swift", + "symbol": "Server.resize(_:width:height:)", + "command": "resize-pane", "scope": null, - "when": "on a Server", + "when": "a width or height is given", "evidence": [ { - "at": "src/operations.jl:243", + "at": "Sources/LibTmux/Mutations.swift:70", "has": [ - "::Server" + "guard arguments.count > 2 else { return }" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.swap_pane", - "command": "swap-pane", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_topology.jl:204", + "at": "Sources/LibTmux/Mutations.swift:71", "has": [ - "::ControlConnection" + "expectSuccess(" ] } ] }, { - "port": "julia", - "symbol": "LibTmux.swap_window", - "command": "swap-window", + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.capturing", + "command": "run-shell", "scope": null, - "when": "on a ControlConnection", + "when": "except on tmux 3.3a and 3.4", "evidence": [ { - "at": "src/control_topology.jl:330", + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:50", "has": [ - "::ControlConnection" + "running.atLeast(OUTPUT_LOST)", + "!running.atLeast(OUTPUT_FOUND)" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.switch_client", - "command": "list-clients", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_clients.jl:42", + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:51", "has": [ - "::ControlConnection" + "throw new UnsupportedFeatureException(" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.switch_client", - "command": "switch-client", - "scope": null, - "when": "on a ControlConnection", - "evidence": [ + }, { - "at": "src/control_clients.jl:42", + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:55", "has": [ - "::ControlConnection" + "\"run-shell\"" ] } ] }, { - "port": "julia", - "symbol": "LibTmux.unlink_window", - "command": "unlink-window", + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "display-message", "scope": null, - "when": "on a ControlConnection", + "when": "the Server has no daemon identity", "evidence": [ { - "at": "src/control_topology.jl:309", + "at": "tmux/identity.go:206", "has": [ - "::ControlConnection" + "if s.daemon != nil {" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.unset_hook", - "command": "set-hook", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/configuration.jl:482", + "at": "tmux/identity.go:207", "has": [ - "::Server" + "return *s.daemon, nil" ] - } - ] - }, - { - "port": "julia", - "symbol": "LibTmux.unset_option", - "command": "set-option", - "scope": null, - "when": "on a Server", - "evidence": [ + }, { - "at": "src/configuration.jl:289", + "at": "tmux/identity.go:212", "has": [ - "::Server" + "\"display-message\"" ] } ] diff --git a/scripts/tmux-usage/dispatchers.json b/scripts/tmux-usage/dispatchers.json index ac56c6fea..f977901f9 100644 --- a/scripts/tmux-usage/dispatchers.json +++ b/scripts/tmux-usage/dispatchers.json @@ -261,21 +261,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -324,21 +327,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -380,21 +386,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -436,21 +445,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -492,21 +504,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -541,7 +556,8 @@ "has": [ "@queue << request" ], - "leads": "run" + "leads": "run", + "why": "the request is pushed onto a queue that the connection thread takes it from and writes to the control client" }, { "at": "gems/libtmux/lib/libtmux/control.rb:749", @@ -569,7 +585,8 @@ "has": [ "@queue << request" ], - "leads": "run" + "leads": "run", + "why": "the request is pushed onto a queue that the connection thread takes it from and writes to the control client" }, { "at": "gems/libtmux/lib/libtmux/control.rb:749", @@ -611,21 +628,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -667,21 +687,24 @@ "has": [ "@executor.run(" ], - "calls": "run" + "calls": "run", + "on": "ProcessExecutor" }, { "at": "gems/libtmux/lib/libtmux/process.rb:108", "has": [ "Execution.new(" ], - "calls": "call" + "calls": "call", + "on": "Execution" }, { "at": "gems/libtmux/lib/libtmux/process.rb:147", "has": [ "spawn" ], - "leads": "spawn" + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" }, { "at": "gems/libtmux/lib/libtmux/process.rb:189", @@ -711,6 +734,21 @@ ], "calls": "execute" }, + { + "at": "lua/libtmux/_internal/endpoint.lua:291", + "has": [ + "execute(assert(bindings[self]" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "process.execute(" + ], + "calls": "execute", + "on": "M" + }, { "at": "lua/libtmux/_internal/process.lua:316", "has": [ @@ -732,6 +770,21 @@ ], "calls": "execute" }, + { + "at": "lua/libtmux/_internal/endpoint.lua:291", + "has": [ + "execute(assert(bindings[self]" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "process.execute(" + ], + "calls": "execute", + "on": "M" + }, { "at": "lua/libtmux/_internal/process.lua:316", "has": [ @@ -767,6 +820,21 @@ ], "calls": "execute" }, + { + "at": "lua/libtmux/_internal/endpoint.lua:291", + "has": [ + "execute(assert(bindings[self]" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "process.execute(" + ], + "calls": "execute", + "on": "M" + }, { "at": "lua/libtmux/_internal/process.lua:316", "has": [ @@ -800,7 +868,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "M" }, { "at": "lua/libtmux/_internal/process.lua:316", @@ -821,7 +890,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "M" }, { "at": "lua/libtmux/_internal/process.lua:316", @@ -877,7 +947,8 @@ "has": [ "run_command" ], - "calls": "run_command" + "calls": "run_command", + "on": "Server" }, { "at": "src/process.jl:494", @@ -896,6 +967,42 @@ } ] }, + { + "port": "julia", + "name": "_control_create", + "why": "Sends the argument list it is given over the control connection and reads the reference of the object it creates from the reply.", + "evidence": [ + { + "at": "src/control_operations.jl:51", + "has": [ + "_control_create" + ], + "reaches": [ + { + "at": "src/control_operations.jl:52", + "has": [ + "_control_request(" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, { "port": "julia", "name": "_control_topology_effect", @@ -926,7 +1033,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -961,7 +1069,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -996,7 +1105,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -1038,7 +1148,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -1066,7 +1177,8 @@ "has": [ "run_command" ], - "calls": "run_command" + "calls": "run_command", + "on": "Server" }, { "at": "src/process.jl:494", @@ -1115,7 +1227,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -1150,7 +1263,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -1206,7 +1320,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -1234,7 +1349,8 @@ "has": [ "push!(connection.pending, request)" ], - "leads": "_control_writer" + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" }, { "at": "src/control.jl:354", @@ -1290,7 +1406,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1318,7 +1435,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1353,7 +1471,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1381,7 +1500,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1409,7 +1529,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1465,7 +1586,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1507,7 +1629,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1535,7 +1658,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1584,7 +1708,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1626,7 +1751,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1668,7 +1794,8 @@ "has": [ "execute" ], - "calls": "execute" + "calls": "execute", + "on": "NodeSpawnTransport" }, { "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", @@ -1741,16 +1868,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -1768,34 +1904,6 @@ "name": "run", "why": "Sends the Command it is given, or the command it is named for, to the server.", "evidence": [ - { - "at": "crates/libtmux/src/control/actor.rs:432", - "has": [ - "run" - ], - "reaches": [ - { - "at": "crates/libtmux/src/control/actor.rs:438", - "has": [ - "serve" - ], - "calls": "serve" - }, - { - "at": "crates/libtmux/src/control/actor.rs:541", - "has": [ - "write_line" - ], - "calls": "write_line" - }, - { - "at": "crates/libtmux/src/control/protocol.rs:74", - "has": [ - ".write_all(" - ] - } - ] - }, { "at": "crates/libtmux/src/internal/options.rs:363", "has": [ @@ -1810,16 +1918,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -1851,16 +1968,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -1879,16 +2005,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -1907,16 +2042,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -1935,16 +2079,39 @@ ], "reaches": [ { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/control_executor.rs:41", "has": [ - "run" + "sender.send_line(" ], - "calls": "run" + "calls": "send_line", + "on": "ControlSender" }, { - "at": "crates/libtmux/src/internal/subprocess.rs:290", + "at": "crates/libtmux/src/control.rs:771", + "has": [ + "self.dispatch_line(" + ], + "calls": "dispatch_line" + }, + { + "at": "crates/libtmux/src/control.rs:803", + "has": [ + "permit.send(Request" + ], + "leads": "serve", + "why": "the request goes into a channel that Connection::serve reads, and serve writes the line to the control client" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line(" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", "has": [ - ".spawn()" + ".write_all(" ] } ] @@ -1960,19 +2127,21 @@ "has": [ "execute" ], - "calls": "execute" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/subprocess.rs:364", "has": [ - "run" + "self.clone().run(request)" ], - "calls": "run" + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -1995,7 +2164,8 @@ "has": [ ".send(" ], - "calls": "send" + "calls": "send", + "on": "ControlSender" }, { "at": "crates/libtmux/src/control.rs:737", @@ -2016,7 +2186,8 @@ "has": [ "permit.send(Request" ], - "leads": "serve" + "leads": "serve", + "why": "the request goes into a channel that Connection::serve reads, and serve writes the line to the control client" }, { "at": "crates/libtmux/src/control/actor.rs:541", @@ -2054,16 +2225,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -2089,16 +2269,25 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -2128,7 +2317,8 @@ "has": [ "permit.send(Request" ], - "leads": "serve" + "leads": "serve", + "why": "the request goes into a channel that Connection::serve reads, and serve writes the line to the control client" }, { "at": "crates/libtmux/src/control/actor.rs:541", @@ -2163,19 +2353,21 @@ "has": [ "execute" ], - "calls": "execute" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/subprocess.rs:364", "has": [ - "run" + "self.clone().run(request)" ], - "calls": "run" + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -2205,19 +2397,21 @@ "has": [ "execute" ], - "calls": "execute" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/subprocess.rs:364", "has": [ - "run" + "self.clone().run(request)" ], - "calls": "run" + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", "has": [ - ".spawn()" + "process.spawn()" ] } ] @@ -2250,11 +2444,20 @@ "calls": "execute" }, { - "at": "crates/libtmux/src/internal/control_executor.rs:37", + "at": "crates/libtmux/src/internal/core.rs:438", "has": [ - "run(" + "self.executor.execute(request)" ], - "calls": "run" + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" }, { "at": "crates/libtmux/src/internal/subprocess.rs:290", @@ -2331,7 +2534,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2373,7 +2577,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2429,7 +2634,8 @@ "has": [ "c.requests <- request" ], - "leads": "runRequests" + "leads": "runRequests", + "why": "the request is sent on a channel that runRequests receives from, and it writes the command to the control client" }, { "at": "tmux/control_request.go:240", @@ -2485,7 +2691,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2527,7 +2734,8 @@ "has": [ "c.requests <- request" ], - "leads": "runRequests" + "leads": "runRequests", + "why": "the request is sent on a channel that runRequests receives from, and it writes the command to the control client" }, { "at": "tmux/control_request.go:240", @@ -2562,7 +2770,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2618,7 +2827,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2680,7 +2890,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2742,7 +2953,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2804,7 +3016,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2873,7 +3086,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2936,7 +3150,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -2992,7 +3207,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3048,7 +3264,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3074,21 +3291,21 @@ { "at": "tmux/search.go:175", "has": [ - "searchSnapshotProjected" + "s.searchSnapshotProjected(" ], "calls": "searchSnapshotProjected" }, { - "at": "tmux/search.go:195", + "at": "tmux/search.go:214", "has": [ - "probeSnapshotIdentity" + "s.snapshotListing(" ], - "calls": "probeSnapshotIdentity" + "calls": "snapshotListing" }, { - "at": "tmux/identity.go:210", + "at": "tmux/snapshot_capture.go:127", "has": [ - "literalCmdWithRaw" + "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, @@ -3111,7 +3328,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3135,16 +3353,16 @@ ], "reaches": [ { - "at": "tmux/search.go:195", + "at": "tmux/search.go:214", "has": [ - "probeSnapshotIdentity" + "s.snapshotListing(" ], - "calls": "probeSnapshotIdentity" + "calls": "snapshotListing" }, { - "at": "tmux/identity.go:210", + "at": "tmux/snapshot_capture.go:127", "has": [ - "literalCmdWithRaw" + "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, @@ -3167,7 +3385,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3193,21 +3412,21 @@ { "at": "tmux/lookup.go:139", "has": [ - "livePointWithTargetValidation" + "s.livePointWithTargetValidation(" ], "calls": "livePointWithTargetValidation" }, { - "at": "tmux/lookup.go:179", + "at": "tmux/lookup.go:198", "has": [ - "probeSnapshotIdentity" + "s.snapshotListing(" ], - "calls": "probeSnapshotIdentity" + "calls": "snapshotListing" }, { - "at": "tmux/identity.go:210", + "at": "tmux/snapshot_capture.go:127", "has": [ - "literalCmdWithRaw" + "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, @@ -3230,7 +3449,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3254,16 +3474,16 @@ ], "reaches": [ { - "at": "tmux/lookup.go:179", + "at": "tmux/lookup.go:198", "has": [ - "probeSnapshotIdentity" + "s.snapshotListing(" ], - "calls": "probeSnapshotIdentity" + "calls": "snapshotListing" }, { - "at": "tmux/identity.go:210", + "at": "tmux/snapshot_capture.go:127", "has": [ - "literalCmdWithRaw" + "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, @@ -3286,7 +3506,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3328,7 +3549,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3384,7 +3606,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3440,7 +3663,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3496,7 +3720,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3552,7 +3777,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3608,7 +3834,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3671,7 +3898,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3727,7 +3955,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3783,7 +4012,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3839,7 +4069,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3869,6 +4100,21 @@ ], "calls": "literalCmd" }, + { + "at": "tmux/scoped_command.go:35", + "has": [ + "literalPaneCommand(ctx, p, args)" + ], + "calls": "literalPaneCommand" + }, + { + "at": "tmux/exact_target.go:72", + "has": [ + "pane.server.literalCmd(" + ], + "calls": "literalCmd", + "on": "Server" + }, { "at": "tmux/server.go:105", "has": [ @@ -3895,7 +4141,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -3923,7 +4170,8 @@ "has": [ "literalCmd" ], - "calls": "literalCmd" + "calls": "literalCmd", + "on": "Server" }, { "at": "tmux/server.go:105", @@ -3951,7 +4199,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4000,7 +4249,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4056,7 +4306,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4105,7 +4356,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4126,7 +4378,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4161,7 +4414,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4210,7 +4464,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4259,7 +4514,8 @@ "has": [ "Run" ], - "calls": "Run" + "calls": "Run", + "on": "Runner" }, { "at": "tmux/internal/tmuxcmd/runner.go:95", @@ -4397,21 +4653,21 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:369", "has": [ - "cmd" + "server.cmd(argv)" ], "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", "has": [ - "guarded" + "cmd(argv, config.defaultTimeout())" ], - "calls": "guarded" + "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", "has": [ - "server.cmd(" + "cmd(argv, timeout, \"\")" ], "calls": "cmd" }, @@ -4420,19 +4676,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4453,21 +4717,21 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Options.java:374", "has": [ - "cmd" + "server.cmd(argv)" ], "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", "has": [ - "guarded" + "cmd(argv, config.defaultTimeout())" ], - "calls": "guarded" + "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", "has": [ - "server.cmd(" + "cmd(argv, timeout, \"\")" ], "calls": "cmd" }, @@ -4476,19 +4740,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4509,42 +4781,43 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:766", "has": [ - "cmd" + "cmd(List.of(argv)" ], "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", "has": [ - "guarded" + "cmd(argv, timeout, \"\")" ], - "calls": "guarded" + "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", "has": [ - "server.cmd(" + "transport.execute(" ], - "calls": "cmd" + "calls": "execute", + "on": "ProcessTransport" }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", "has": [ - "transport.execute(" + "execute(request, false)" ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4581,14 +4854,16 @@ "has": [ "exchange" ], - "calls": "exchange" + "calls": "exchange", + "on": "ControlWriter" }, { "at": "libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java:84", "has": [ "waiting.offer(" ], - "leads": "run" + "leads": "run", + "why": "the request is put on a queue that the writer thread takes it from, and that thread writes the line to the control client" }, { "at": "libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java:237", @@ -4614,14 +4889,22 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1266", "has": [ - "runTogether" + "runTogether(snapshot, \"\", commands)" ], "calls": "runTogether" }, { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1271", "has": [ - "guarded" + "fence.guarded(snapshot, CommandStrings.group(commands), input)" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:71", + "has": [ + "guarded(pid, incarnation(" ], "calls": "guarded" }, @@ -4637,19 +4920,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4677,21 +4968,29 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:475", "has": [ - "execute" + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4719,7 +5018,7 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", "has": [ - "run" + "batch.run()" ], "calls": "run" }, @@ -4728,12 +5027,21 @@ "has": [ "dispatch.apply(" ], - "leads": "batch" + "leads": "batch", + "why": "a Batch runs the function the Server gave it when it made the batch, and Server.batch made it from a lambda that calls the fence" }, { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1235", "has": [ - "fence.guarded(" + "fence.guarded(snapshot, CommandStrings.group(commands), \"\")" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:71", + "has": [ + "guarded(pid, incarnation(" ], "calls": "guarded" }, @@ -4749,19 +5057,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4789,21 +5105,22 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:886", "has": [ - "sessionsWhere" + "capture.sessionsWhere(" ], - "calls": "sessionsWhere" + "calls": "sessionsWhere", + "on": "SnapshotCapture" }, { "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276", "has": [ - "hydrate" + "hydrate(process, holding" ], "calls": "hydrate" }, { "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:293", "has": [ - "run" + "batch.run()" ], "calls": "run" }, @@ -4812,14 +5129,16 @@ "has": [ "dispatch.apply(" ], - "leads": "batch" + "leads": "batch", + "why": "a Batch runs the function the Server gave it when it made the batch, and Server.batch made it from a lambda that calls the fence" }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1235", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1247", "has": [ - "fence.guarded(" + "fence.guarded(pid, condition, CommandStrings.group(commands), \"\")" ], - "calls": "guarded" + "calls": "guarded", + "on": "IncarnationFence" }, { "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", @@ -4833,19 +5152,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -4953,12 +5280,6 @@ "kind": "builder", "why": "Builds the argument list of a command from the command it is given.", "evidence": [ - { - "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:204", - "has": [ - "listing" - ] - }, { "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:424", "has": [ @@ -4995,21 +5316,21 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1222", "has": [ - "cmd" + "cmd(argv)" ], "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", "has": [ - "guarded" + "cmd(argv, config.defaultTimeout())" ], - "calls": "guarded" + "calls": "cmd" }, { - "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", "has": [ - "server.cmd(" + "cmd(argv, timeout, \"\")" ], "calls": "cmd" }, @@ -5018,19 +5339,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -5051,14 +5380,29 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1251", "has": [ - "cmd" + "cmd(snapshot, argv)" ], "calls": "cmd" }, { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", "has": [ - "guarded" + "fence.guarded(snapshot, CommandStrings.stringify(argv))" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:65", + "has": [ + "guarded(snapshot, command, \"\")" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:71", + "has": [ + "guarded(pid, incarnation(" ], "calls": "guarded" }, @@ -5074,19 +5418,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -5107,14 +5459,29 @@ { "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1281", "has": [ - "fence.run(" + "fence.run(snapshot, expected, argv)" ], - "calls": "run" + "calls": "run", + "on": "IncarnationFence" }, { "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95", "has": [ - "server.cmd(" + "server.cmd(List.of(\"if-shell\"" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", + "has": [ + "cmd(argv, config.defaultTimeout())" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", + "has": [ + "cmd(argv, timeout, \"\")" ], "calls": "cmd" }, @@ -5123,19 +5490,27 @@ "has": [ "transport.execute(" ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], "calls": "execute" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", "has": [ - "dispatch(" + "dispatch(asked, waiting, span)" ], "calls": "dispatch" }, { "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", "has": [ - "launch(" + "launch(request, deadline)" ], "calls": "launch" }, @@ -5163,16 +5538,40 @@ { "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:246", "has": [ - "ExecuteAsync" + "_dispatcher.ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5191,23 +5590,47 @@ { "at": "src/LibTmux/Hooks/TmuxHooks.cs:313", "has": [ - "DispatchAsync" + "DispatchAsync(BuildRunArguments(request)" ], "calls": "DispatchAsync" }, { "at": "src/LibTmux/Hooks/TmuxHooks.cs:432", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5233,16 +5656,40 @@ { "at": "src/LibTmux/Server.Lifecycle.cs:462", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5268,16 +5715,49 @@ { "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:63", "has": [ - "ExecuteAsync" + ".ExecuteAsync(cancellationToken)" ], - "calls": "ExecuteAsync" + "calls": "ExecuteAsync", + "on": "TmuxChain" + }, + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:139", + "has": [ + "_dispatcher.ExecuteGroupAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteGroupAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:56", + "has": [ + "ExecuteGroupAsync(commands, _executeGroup, cancellationToken)" + ], + "calls": "ExecuteGroupAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:91", + "has": [ + "executeGroup(commands, deadline.Token)" + ], + "leads": "TmuxCommandDispatcher", + "why": "a delegate: the dispatcher made over a process transport binds it, in its constructor, to a lambda that calls that transport (line 25)" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:25", + "has": [ + "transport.ExecuteAsync(" + ], + "calls": "ExecuteAsync", + "on": "TmuxProcessTransport" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5296,16 +5776,49 @@ { "at": "src/LibTmux/Chaining/TmuxChaining.cs:30", "has": [ - "ExecuteAsync" + ".ExecuteAsync(cancellationToken)" ], - "calls": "ExecuteAsync" + "calls": "ExecuteAsync", + "on": "TmuxChain" + }, + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:139", + "has": [ + "_dispatcher.ExecuteGroupAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteGroupAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:56", + "has": [ + "ExecuteGroupAsync(commands, _executeGroup, cancellationToken)" + ], + "calls": "ExecuteGroupAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:91", + "has": [ + "executeGroup(commands, deadline.Token)" + ], + "leads": "TmuxCommandDispatcher", + "why": "a delegate: the dispatcher made over a process transport binds it, in its constructor, to a lambda that calls that transport (line 25)" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:25", + "has": [ + "transport.ExecuteAsync(" + ], + "calls": "ExecuteAsync", + "on": "TmuxProcessTransport" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5333,7 +5846,8 @@ "has": [ "SendAsync" ], - "calls": "SendAsync" + "calls": "SendAsync", + "on": "ControlModeSession" }, { "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", @@ -5368,7 +5882,8 @@ "has": [ "WriteLineAsync" ], - "calls": "WriteLineAsync" + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" }, { "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", @@ -5394,16 +5909,54 @@ { "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", "has": [ - "ExecuteAsync" + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5436,16 +5989,54 @@ { "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", "has": [ - "ExecuteAsync" + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5471,16 +6062,54 @@ { "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", "has": [ - "ExecuteAsync" + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5520,16 +6149,54 @@ { "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", "has": [ - "ExecuteAsync" + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5585,7 +6252,8 @@ "has": [ "WriteLineAsync" ], - "calls": "WriteLineAsync" + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" }, { "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", @@ -5634,7 +6302,8 @@ "has": [ "WriteLineAsync" ], - "calls": "WriteLineAsync" + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" }, { "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", @@ -5660,16 +6329,40 @@ { "at": "src/LibTmux/Server.Utilities.cs:117", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5695,30 +6388,54 @@ { "at": "src/LibTmux/Server.Clients.cs:201", "has": [ - "RunAsync" + "RunAsync(arguments, cancellationToken)" ], "calls": "RunAsync" }, { "at": "src/LibTmux/Server.Clients.cs:209", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" ], - "calls": "ExecuteAsync" + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" }, { - "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", "has": [ - "_launcher.Start(" + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" ], - "calls": "Start" + "calls": "ExecuteWithinAsync" }, { - "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", "has": [ - "process.Start()" - ] - } + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } ] } ] @@ -5739,7 +6456,8 @@ "has": [ "SendAsync" ], - "calls": "SendAsync" + "calls": "SendAsync", + "on": "ControlModeSession" }, { "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", @@ -5774,7 +6492,8 @@ "has": [ "WriteLineAsync" ], - "calls": "WriteLineAsync" + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" }, { "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", @@ -5800,23 +6519,54 @@ { "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:130", "has": [ - "FetchMarkedAsync" + "FetchMarkedAsync(" ], "calls": "FetchMarkedAsync" }, { "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:61", "has": [ - "ExecuteAsync" + "ExecuteAsync(projection, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5842,16 +6592,40 @@ { "at": "src/LibTmux/Server.Utilities.cs:128", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5877,16 +6651,47 @@ { "at": "src/LibTmux/Pane.Command.cs:27", "has": [ - "ExecuteAsync" + "TargetedCommandArguments.ExecuteAsync(" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Session.Command.cs:57", + "has": [ + "dispatcher.ExecuteAsync(targeted, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5905,16 +6710,40 @@ { "at": "src/LibTmux/Server.Command.cs:22", "has": [ - "ExecuteAsync" + "_commandDispatcher.ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5933,16 +6762,47 @@ { "at": "src/LibTmux/Session.Command.cs:27", "has": [ - "ExecuteAsync" + "TargetedCommandArguments.ExecuteAsync(" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Session.Command.cs:57", + "has": [ + "dispatcher.ExecuteAsync(targeted, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -5968,23 +6828,40 @@ { "at": "src/LibTmux/Connection/TmuxDialect.cs:175", "has": [ - "ExecuteAttachmentAsync" + "_generationGuard.ExecuteAttachmentAsync(" ], - "calls": "ExecuteAttachmentAsync" + "calls": "ExecuteAttachmentAsync", + "on": "TmuxGenerationGuard" }, { "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:24", "has": [ - "ExecuteAsync" + "ExecuteAsync(expected, [command], fence, token)" ], "calls": "ExecuteAsync" }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:27", + "has": [ + "ExecuteRequestAsync(request, logicalArguments, cancellationToken)" + ], + "calls": "ExecuteRequestAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:39", + "has": [ + "execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dialect passes the transport's ExecuteAsync to the guard it makes (TmuxDialect.cs:40)" + }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6003,16 +6880,32 @@ { "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:24", "has": [ - "ExecuteAsync" + "ExecuteAsync(expected, [command], fence, token)" ], "calls": "ExecuteAsync" }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:27", + "has": [ + "ExecuteRequestAsync(request, logicalArguments, cancellationToken)" + ], + "calls": "ExecuteRequestAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:39", + "has": [ + "execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dialect passes the transport's ExecuteAsync to the guard it makes (TmuxDialect.cs:40)" + }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6038,23 +6931,34 @@ { "at": "src/LibTmux/Connection/PsmuxDialect.cs:69", "has": [ - "ExecuteGuardedAsync" + "_router.ExecuteGuardedAsync(" ], - "calls": "ExecuteGuardedAsync" + "calls": "ExecuteGuardedAsync", + "on": "PsmuxSessionRouter" }, { - "at": "src/LibTmux/Connection/TmuxDialect.cs:164", + "at": "src/LibTmux/Internal/PsmuxSessionRouter.cs:123", "has": [ - "ExecuteAsync" + "_executeRaw(routed, cancellationToken, command)" ], - "calls": "ExecuteAsync" + "leads": "ExecuteRawSingleAsync", + "why": "a delegate: PsmuxDialect makes the router with its ExecuteRawSingleAsync (PsmuxDialect.cs:25)" + }, + { + "at": "src/LibTmux/Connection/PsmuxDialect.cs:144", + "has": [ + "Execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "Execute is the delegate the dialect was made with, which is the transport's ExecuteAsync (MultiplexerDialect.cs:22)" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6073,16 +6977,33 @@ { "at": "src/LibTmux/Connection/TmuxDialect.cs:164", "has": [ - "ExecuteAsync" + "_generationGuard.ExecuteAsync(expected, commands, fence, token)" ], - "calls": "ExecuteAsync" + "calls": "ExecuteAsync", + "on": "TmuxGenerationGuard" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:27", + "has": [ + "ExecuteRequestAsync(request, logicalArguments, cancellationToken)" + ], + "calls": "ExecuteRequestAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:39", + "has": [ + "execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dialect passes the transport's ExecuteAsync to the guard it makes (TmuxDialect.cs:40)" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6108,23 +7029,56 @@ { "at": "src/LibTmux/Window.Links.cs:178", "has": [ - "RunPlacementAsync" + "RunPlacementAsync(BuildPlacementCommand(arguments)" ], "calls": "RunPlacementAsync" }, { "at": "src/LibTmux/Window.Links.cs:183", "has": [ - "ExecuteAsync" + ".ExecuteAsync(cancellationToken)" ], - "calls": "ExecuteAsync" + "calls": "ExecuteAsync", + "on": "TmuxChain" + }, + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:139", + "has": [ + "_dispatcher.ExecuteGroupAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteGroupAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:56", + "has": [ + "ExecuteGroupAsync(commands, _executeGroup, cancellationToken)" + ], + "calls": "ExecuteGroupAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:91", + "has": [ + "executeGroup(commands, deadline.Token)" + ], + "leads": "TmuxCommandDispatcher", + "why": "a delegate: the dispatcher made over a process transport binds it, in its constructor, to a lambda that calls that transport (line 25)" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:25", + "has": [ + "transport.ExecuteAsync(" + ], + "calls": "ExecuteAsync", + "on": "TmuxProcessTransport" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6150,16 +7104,40 @@ { "at": "src/LibTmux/Hooks/TmuxHooks.cs:432", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6185,16 +7163,40 @@ { "at": "src/LibTmux/Hooks/TmuxHooks.cs:449", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6213,16 +7215,54 @@ { "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:128", "has": [ - "ExecuteAsync" + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6241,16 +7281,40 @@ { "at": "src/LibTmux/Options/TmuxOptions.cs:311", "has": [ - "ExecuteAsync" + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6282,16 +7346,40 @@ { "at": "src/LibTmux/Pane.Topology.cs:576", "has": [ - "ExecuteAsync" + "_commandDispatcher.ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" ], "calls": "ExecuteAsync" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", "has": [ - "_launcher.Start(" + "_launcher.Start(startInfo)" ], - "calls": "Start" + "calls": "Start", + "on": "SystemProcessLauncher" }, { "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", @@ -6403,21 +7491,29 @@ { "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6438,28 +7534,37 @@ { "at": "src/backend.hpp:91", "has": [ - "run" + "run(command, std::nullopt, std::nullopt)" ], - "calls": "run" + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" }, { "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6478,30 +7583,39 @@ ], "reaches": [ { - "at": "src/entities.cpp:83", + "at": "src/entities.cpp:88", "has": [ - "run_in_session" + "backend()->run(" ], - "calls": "run_in_session" + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" }, { - "at": "src/backend.cpp:501", + "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6529,35 +7643,44 @@ { "at": "src/acquire.hpp:193", "has": [ - "take_in_session" + "Snapshot::take_in_session(" ], "calls": "take_in_session" }, { "at": "src/snapshot.cpp:68", "has": [ - "run" + "backend->run(request, timeout, output_limit)" ], - "calls": "run" + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" }, { "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6585,28 +7708,44 @@ { "at": "src/server.cpp:1365", "has": [ - "run" + "run(request)" ], "calls": "run" }, + { + "at": "src/server.cpp:574", + "has": [ + "backend_->run(" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, { "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6634,28 +7773,44 @@ { "at": "src/wait.cpp:111", "has": [ - "run" + "wait.server.run(command, *remaining)" ], "calls": "run" }, + { + "at": "src/server.cpp:574", + "has": [ + "backend_->run(" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, { "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6683,35 +7838,44 @@ { "at": "src/acquire.hpp:231", "has": [ - "take_in_session" + "Snapshot::take_in_session(" ], "calls": "take_in_session" }, { "at": "src/snapshot.cpp:68", "has": [ - "run" + "backend->run(request, timeout, output_limit)" ], - "calls": "run" + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" }, { "at": "src/backend.cpp:356", "has": [ - "run_scoped" + "run_scoped(command, std::nullopt, timeout, output_limit)" ], "calls": "run_scoped" }, { "at": "src/backend.cpp:682", "has": [ - "run_process" + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" ], "calls": "run_process" }, { "at": "src/process.cpp:195", "has": [ - "launch" + "PosixChild::launch(request)" ], "calls": "launch" }, @@ -6767,10 +7931,33 @@ { "at": "Sources/LibTmux/Mutations.swift:129", "has": [ - "run" + "run(command)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -6788,17 +7975,33 @@ { "at": "Sources/LibTmux/Mutations.swift:139", "has": [ - "runGuarded(" + "runGuarded(command, by: values)" ], "calls": "runGuarded" }, { "at": "Sources/LibTmux/GuardedRequest.swift:34", "has": [ - "run" + "run(rawArguments: request.commands.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -6823,10 +8026,26 @@ { "at": "Sources/LibTmux/CommandList.swift:69", "has": [ - "run" + "run(rawArguments: list.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -6844,10 +8063,26 @@ { "at": "Sources/LibTmux/Server.swift:132", "has": [ - "run" + "run(rawArguments: command.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -6865,9 +8100,18 @@ { "at": "Sources/LibTmux/Server.swift:137", "has": [ - "run" + "runtime.run(rawArguments: rawArguments)" ], - "calls": "run" + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" }, { "at": "Sources/LibTmux/Transport.swift:72", @@ -6893,10 +8137,33 @@ { "at": "Sources/LibTmux/Options.swift:294", "has": [ - "run" + "run(command)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -6921,10 +8188,26 @@ { "at": "Sources/LibTmux/Server.swift:372", "has": [ - "run" + "run(rawArguments: command.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -6949,9 +8232,18 @@ { "at": "Sources/LibTmux/Server.swift:168", "has": [ - "run" + "runtime.run(rawArguments: rawArguments)" ], - "calls": "run" + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" }, { "at": "Sources/LibTmux/Transport.swift:72", @@ -6977,10 +8269,26 @@ { "at": "Sources/LibTmux/GuardedRequest.swift:34", "has": [ - "run" + "run(rawArguments: request.commands.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -7021,7 +8329,8 @@ "has": [ "write(" ], - "leads": "write" + "leads": "write", + "why": "write is a closure the session keeps from when it was made, and the connection gives it the non-blocking line writer" }, { "at": "Sources/LibTmux/NonblockingLineWriter.swift:42", @@ -7054,9 +8363,18 @@ { "at": "Sources/LibTmux/Server.swift:237", "has": [ - "run" + "runtime.run(" ], - "calls": "run" + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" }, { "at": "Sources/LibTmux/Transport.swift:72", @@ -7082,9 +8400,18 @@ { "at": "Sources/LibTmux/Server.swift:175", "has": [ - "run" + "runtime.run(" ], - "calls": "run" + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" }, { "at": "Sources/LibTmux/Transport.swift:72", @@ -7110,17 +8437,33 @@ { "at": "Sources/LibTmux/Creation.swift:346", "has": [ - "runGuarded" + "runGuarded(" ], "calls": "runGuarded" }, { "at": "Sources/LibTmux/GuardedRequest.swift:34", "has": [ - "run" + "run(rawArguments: request.commands.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -7145,10 +8488,33 @@ { "at": "Sources/LibTmux/Creation.swift:330", "has": [ - "run" + "run(command)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ @@ -7173,10 +8539,33 @@ { "at": "Sources/LibTmux/FilteredListings.swift:125", "has": [ - "run" + "run(command)" ], "calls": "run" }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, { "at": "Sources/LibTmux/Transport.swift:72", "has": [ diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index 9d49ceb9e..49c63a454 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -429,6 +429,37 @@ ] } ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "breakOut" + ], + "commands": [ + "rename-window" + ], + "why": "breakOut renames the window afterwards only when a name is given and the server is exactly tmux 3.7, the release that ignores the name.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:141", + "has": [ + "quirks.breakPane37" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:154", + "has": [ + "if (!renames || windowName === undefined) return;" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:160", + "has": [ + "\"rename-window\"" + ] + } + ] } ] } diff --git a/scripts/tmux-usage/guards.json b/scripts/tmux-usage/guards.json index 1a8970836..5a9edf395 100644 --- a/scripts/tmux-usage/guards.json +++ b/scripts/tmux-usage/guards.json @@ -26,39 +26,12 @@ } ] }, - { - "port": "ruby", - "name": "kill_session_with_windows", - "purpose": "refuses to kill a session that holds windows or panes outside the expected sets", - "conditional": true, - "when": "expected windows or panes are given", - "evidence": [ - { - "at": "gems/libtmux/lib/libtmux/operations.rb:154", - "has": [ - "def kill_session_with_windows(" - ] - }, - { - "at": "gems/libtmux/lib/libtmux/operations.rb:172", - "has": [ - "names.fetch(\"if-shell\")" - ] - }, - { - "at": "gems/libtmux/lib/libtmux/operations.rb:257", - "has": [ - "kill_session_with_windows" - ] - } - ] - }, { "port": "lua", "name": "guard", - "purpose": "refuses a window link that was removed or replaced since the handle was read", + "purpose": "refuses an operation on a window link that was removed or replaced, or on a pane that left its window", "conditional": true, - "when": "the operation names a destination window link", + "when": "the operation is given a window link", "evidence": [ { "at": "lua/libtmux/_internal/topology.lua:147", @@ -301,7 +274,7 @@ { "port": "swift", "name": "guardedAction", - "purpose": "refuses a command when the tmux server is not the one the value was read from", + "purpose": "runs the command together with a marker that shows it ran, inside the guards that refuse a stale target", "evidence": [ { "at": "Sources/LibTmux/GuardedRequest.swift:174", @@ -326,7 +299,7 @@ { "port": "swift", "name": "commandGuard", - "purpose": "refuses a command when the target no longer matches what the value was read from", + "purpose": "refuses the command when the server restarted or the target no longer matches what the value was read from", "evidence": [ { "at": "Sources/LibTmux/GuardedRequest.swift:187", diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index e353ad21d..5b6e4ba7d 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -681,9 +681,10 @@ const hasBody = {i > 0 && ', '} {row.command} {row.when && <>{' '}{row.when}} - {row.scopes.map((use) => <>{' '} + {row.scopes.map((use) => <>{' '} {use.scope!.flag || use.scope!.target ? -{use.scope!.flag || use.scope!.target} : null} {use.function ? {use.function.name} : {use.scope!.label}} + {use.when && !row.when && <>{' '}{use.when}} )} )}

} diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json index c312c25b8..49c46df0a 100644 --- a/site/src/data/tmux-usage/cxx.json +++ b/site/src/data/tmux-usage/cxx.json @@ -228,7 +228,7 @@ ], "reviewed": true, "scope": null, - "when": "a name is given" + "when": "named, and the window has one pane" } ], "libtmux::Pane::capture": [ diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 1c0198360..2b907cac6 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -98,6 +98,29 @@ "schemaVersion": 1, "symbols": { "tmux.Client.Refresh": [ + { + "command": "display-message", + "evidence": [ + "tmux/lookup.go:128" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:94" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Client" + }, + "when": "the Server has no daemon identity" + }, { "command": "list-clients", "evidence": [ @@ -129,7 +152,8 @@ "port": "go", "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", "symbol": "tmux.Server.Snapshot" - } + }, + "when": "the Server has no daemon identity" }, { "command": "list-clients", @@ -758,6 +782,50 @@ "scope": null } ], + "tmux.Pane.Refresh": [ + { + "command": "display-message", + "evidence": [ + "tmux/lookup.go:123" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Pane" + }, + "when": "the Server has no daemon identity" + }, + { + "command": "list-panes", + "evidence": [ + "tmux/lookup.go:123" + ], + "scope": "window", + "via": { + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Pane" + } + } + ], "tmux.Pane.Reset": [ { "command": "clear-history", @@ -1078,6 +1146,22 @@ } ], "tmux.Server.Client": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:94" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-clients", "evidence": [ @@ -1337,19 +1421,6 @@ ], "reviewed": true, "scope": null - }, - { - "command": "if-shell", - "evidence": [ - "tmux/identity.go:151", - "tmux/identity.go:134", - "tmux/control_startup.go:86", - "tmux/control_startup.go:122", - "tmux/control_startup.go:42" - ], - "reviewed": true, - "scope": null, - "when": "a Server carrying a daemon identity" } ], "tmux.Server.OpenNotifications": [ @@ -1364,19 +1435,36 @@ ], "reviewed": true, "scope": null - }, + } + ], + "tmux.Server.Pane": [ { - "command": "if-shell", + "command": "display-message", "evidence": [ - "tmux/identity.go:151", - "tmux/identity.go:134", - "tmux/control_startup.go:86", - "tmux/control_startup.go:122", - "tmux/notification_stream.go:67" + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:79" ], + "forwardable": true, + "incidental": true, "reviewed": true, "scope": null, - "when": "a Server carrying a daemon identity" + "when": "the Server has no daemon identity" + }, + { + "command": "list-panes", + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "forwardable": true, + "reviewed": true, + "scope": "window" } ], "tmux.Server.RefreshClient": [ @@ -1426,6 +1514,22 @@ } ], "tmux.Server.SearchClients": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:46" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-clients", "evidence": [ @@ -1435,6 +1539,22 @@ } ], "tmux.Server.SearchPanes": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:78" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-panes", "evidence": [ @@ -1444,6 +1564,22 @@ } ], "tmux.Server.SearchSessions": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:28" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-sessions", "evidence": [ @@ -1453,6 +1589,22 @@ } ], "tmux.Server.SearchWindows": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:62" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-windows", "evidence": [ @@ -1471,6 +1623,22 @@ } ], "tmux.Server.Session": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:11" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-sessions", "evidence": [ @@ -1480,6 +1648,22 @@ } ], "tmux.Server.SessionByName": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/lookup.go:36" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-sessions", "evidence": [ @@ -1575,7 +1759,8 @@ "tmux/identity.go:210", "tmux/snapshot_capture.go:24" ], - "scope": null + "scope": null, + "when": "the Server has no daemon identity" }, { "command": "list-clients", @@ -1697,6 +1882,36 @@ "scope": null } ], + "tmux.Server.Window": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, + { + "command": "list-windows", + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "forwardable": true, + "reviewed": true, + "scope": "session" + } + ], "tmux.Session.AppendHook": [ { "command": "set-hook", @@ -1833,6 +2048,29 @@ } ], "tmux.Session.Refresh": [ + { + "command": "display-message", + "evidence": [ + "tmux/lookup.go:109" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:11" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Session" + }, + "when": "the Server has no daemon identity" + }, { "command": "list-sessions", "evidence": [ @@ -1869,6 +2107,22 @@ } ], "tmux.Session.SearchPanes": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:127" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-panes", "evidence": [ @@ -1878,6 +2132,22 @@ } ], "tmux.Session.SearchWindows": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:100" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-windows", "evidence": [ @@ -2146,6 +2416,50 @@ "scope": null } ], + "tmux.Window.Refresh": [ + { + "command": "display-message", + "evidence": [ + "tmux/lookup.go:116" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Window" + }, + "when": "the Server has no daemon identity" + }, + { + "command": "list-windows", + "evidence": [ + "tmux/lookup.go:116" + ], + "scope": "session", + "via": { + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Server.Window" + } + } + ], "tmux.Window.Rename": [ { "command": "rename-window", @@ -2187,6 +2501,22 @@ } ], "tmux.Window.SearchPanes": [ + { + "command": "display-message", + "evidence": [ + "tmux/identity.go:210", + "tmux/identity.go:212", + "tmux/identity.go:206", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:152" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + }, { "command": "list-panes", "evidence": [ @@ -2355,8 +2685,7 @@ "tmux/tmuxtest/resources.go:56" ], "reviewed": true, - "scope": null, - "when": "the test ends, in t.Cleanup" + "scope": null }, { "command": "new-session", diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index ed034eddf..3a3e7ddcb 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -102,11 +102,14 @@ "command": "display-message", "evidence": [ "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", - "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82" ], "forwardable": true, + "incidental": true, "reviewed": true, - "scope": null + "scope": null, + "when": "the batch is not empty" } ], "io.github.libtmux.Buffers.Buffers.delete": [ @@ -787,6 +790,19 @@ } ], "io.github.libtmux.Pane.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "list-panes", "evidence": [ @@ -822,6 +838,19 @@ } ], "io.github.libtmux.Pane.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "list-panes", "evidence": [ @@ -1132,7 +1161,8 @@ "evidence": [ "libtmux/src/main/java/io/github/libtmux/Shell.java:55" ], - "scope": null + "scope": null, + "when": "except on tmux 3.3a and 3.4" } ], "io.github.libtmux.Shell.Shell.choose": [ diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 348e4bd2a..4ec59bfd3 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -112,8 +112,7 @@ "evidence": [ "src/control_io.jl:124" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null }, { "command": "delete-buffer", @@ -147,11 +146,12 @@ "command": "capture-pane", "evidence": [ "src/control_io.jl:101", - "src/control_io.jl:173" + "src/control_io.jl:173", + "src/pane_io.jl:77", + "src/pane_io.jl:94" ], "reviewed": true, - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.delete_buffer": [ @@ -160,8 +160,7 @@ "evidence": [ "src/control_buffers.jl:122" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.detach_client": [ @@ -170,8 +169,7 @@ "evidence": [ "src/control_clients.jl:75" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null }, { "command": "list-clients", @@ -179,8 +177,7 @@ "src/control_clients.jl:9", "src/control_clients.jl:74" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.format_hints": [ @@ -218,8 +215,7 @@ "src/configuration.jl:228", "src/configuration.jl:257" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.kill_pane": [ @@ -255,8 +251,7 @@ "evidence": [ "src/control_topology.jl:285" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.load_buffer": [ @@ -275,8 +270,7 @@ "src/pane_io.jl:128", "src/pane_io.jl:187" ], - "scope": null, - "when": "on a Server" + "scope": null }, { "command": "load-buffer", @@ -284,8 +278,7 @@ "src/control_buffers.jl:37", "src/control_buffers.jl:71" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.move_pane": [ @@ -294,8 +287,7 @@ "evidence": [ "src/control_topology.jl:199" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.move_window": [ @@ -304,28 +296,25 @@ "evidence": [ "src/control_topology.jl:285" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.new_session": [ { "command": "new-session", "evidence": [ - "src/operations.jl:191" + "src/control_topology.jl:56" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.new_window": [ { "command": "new-window", "evidence": [ - "src/operations.jl:230" + "src/control_operations.jl:114" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.observe_output": [ @@ -383,8 +372,7 @@ "src/control_io.jl:60", "src/control_buffers.jl:189" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null }, { "command": "list-buffers", @@ -392,8 +380,7 @@ "src/pane_io.jl:128", "src/pane_io.jl:274" ], - "scope": null, - "when": "on a Server" + "scope": null }, { "command": "list-commands", @@ -401,8 +388,7 @@ "src/control_buffers.jl:132", "src/control_buffers.jl:174" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null }, { "command": "load-buffer", @@ -410,8 +396,7 @@ "src/control_buffers.jl:37", "src/control_buffers.jl:175" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null }, { "command": "paste-buffer", @@ -419,11 +404,14 @@ "src/pane_io.jl:243", "src/pane_io.jl:236", "src/pane_io.jl:273", - "src/pane_io.jl:278" + "src/pane_io.jl:278", + "src/control_buffers.jl:178", + "src/control_buffers.jl:180", + "src/control_buffers.jl:150", + "src/control_buffers.jl:174" ], "reviewed": true, - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.read_formats": [ @@ -433,8 +421,7 @@ "src/control_formats.jl:19", "src/control_formats.jl:56" ], - "scope": "window", - "when": "on a ControlConnection" + "scope": "window" } ], "LibTmux.remove_environment": [ @@ -530,8 +517,7 @@ "evidence": [ "src/control_buffers.jl:100" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.select_layout": [ @@ -540,8 +526,7 @@ "evidence": [ "src/control_topology.jl:141" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.select_pane": [ @@ -550,8 +535,7 @@ "evidence": [ "src/control_topology.jl:88" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.select_window": [ @@ -560,8 +544,7 @@ "evidence": [ "src/control_topology.jl:362" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.send_keys": [ @@ -570,8 +553,7 @@ "evidence": [ "src/control_operations.jl:196" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.set_environment": [ @@ -580,8 +562,7 @@ "evidence": [ "src/configuration.jl:375" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.set_hook": [ @@ -590,8 +571,7 @@ "evidence": [ "src/configuration.jl:478" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.set_option": [ @@ -600,8 +580,7 @@ "evidence": [ "src/configuration.jl:280" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.snapshot": [ @@ -621,18 +600,22 @@ "src/acquisition.jl:231" ], "scope": null, - "when": "on a Server" + "when": "a session exists" }, { "command": "list-panes", "evidence": [ "src/acquisition.jl:120", "src/acquisition.jl:125", - "src/acquisition.jl:231" + "src/acquisition.jl:117", + "src/acquisition.jl:231", + "src/control_io.jl:224", + "src/control.jl:538", + "src/control_io.jl:249" ], "reviewed": true, "scope": "server", - "when": "on a Server" + "when": "a session exists" }, { "command": "list-sessions", @@ -640,27 +623,31 @@ "src/acquisition.jl:104", "src/acquisition.jl:231" ], - "scope": null, - "when": "on a Server" + "scope": null }, { "command": "list-windows", "evidence": [ - "src/acquisition.jl:107", - "src/acquisition.jl:231" + "src/acquisition.jl:109", + "src/acquisition.jl:114", + "src/acquisition.jl:106", + "src/acquisition.jl:231", + "src/control_io.jl:223", + "src/control.jl:538", + "src/control_io.jl:249" ], + "reviewed": true, "scope": "server", - "when": "on a Server" + "when": "a session exists" } ], "LibTmux.split_window": [ { "command": "split-window", "evidence": [ - "src/operations.jl:273" + "src/control_operations.jl:166" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.subscribe_format": [ @@ -686,8 +673,7 @@ "evidence": [ "src/control_topology.jl:213" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.swap_window": [ @@ -696,8 +682,7 @@ "evidence": [ "src/control_topology.jl:348" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.switch_client": [ @@ -707,16 +692,14 @@ "src/control_clients.jl:9", "src/control_clients.jl:51" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null }, { "command": "switch-client", "evidence": [ "src/control_clients.jl:54" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.unlink_window": [ @@ -725,8 +708,7 @@ "evidence": [ "src/control_topology.jl:319" ], - "scope": null, - "when": "on a ControlConnection" + "scope": null } ], "LibTmux.unset_environment": [ @@ -745,8 +727,7 @@ "evidence": [ "src/configuration.jl:486" ], - "scope": null, - "when": "on a Server" + "scope": null } ], "LibTmux.unset_option": [ @@ -755,8 +736,7 @@ "evidence": [ "src/configuration.jl:293" ], - "scope": null, - "when": "on a Server" + "scope": null } ] } diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 64bf45473..691843a2f 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -108,13 +108,16 @@ "via": { "evidence": [ "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", - "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85" + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82" ], + "incidental": true, "port": "java", "reviewed": true, "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.batch.Batch.Batch.run" - } + }, + "when": "the batch is not empty" } ], "io.github.libtmux.kotlin.Buffers.`set`": [ @@ -1218,6 +1221,27 @@ } ], "io.github.libtmux.kotlin.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, { "command": "list-panes", "evidence": [ @@ -1279,6 +1303,27 @@ } ], "io.github.libtmux.kotlin.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, { "command": "list-panes", "evidence": [ @@ -1882,7 +1927,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.capturing" - } + }, + "when": "except on tmux 3.3a and 3.4" } ], "io.github.libtmux.kotlin.Shell.choose": [ diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json index 08683cba7..d459e458e 100644 --- a/site/src/data/tmux-usage/ruby.json +++ b/site/src/data/tmux-usage/ruby.json @@ -305,6 +305,18 @@ } ], "LibTmux::Async::Server#switch_client": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "switch-client", "evidence": [ @@ -382,8 +394,7 @@ "gems/libtmux/lib/libtmux/options.rb:65" ], "reviewed": true, - "scope": null, - "when": "the receiver is a Hooks" + "scope": null } ], "LibTmux::Hooks#run": [ @@ -412,8 +423,7 @@ "gems/libtmux/lib/libtmux/options.rb:108" ], "reviewed": true, - "scope": null, - "when": "the receiver is a Hooks" + "scope": null } ], "LibTmux::Options#get": [ @@ -436,8 +446,7 @@ "gems/libtmux/lib/libtmux/options.rb:65" ], "reviewed": true, - "scope": null, - "when": "the receiver is an Options" + "scope": null } ], "LibTmux::Options#set": [ @@ -457,8 +466,7 @@ "gems/libtmux/lib/libtmux/options.rb:108" ], "reviewed": true, - "scope": null, - "when": "the receiver is an Options" + "scope": null } ], "LibTmux::Pane#break_out": [ @@ -810,6 +818,18 @@ } ], "LibTmux::Server#switch_client": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "switch-client", "evidence": [ @@ -858,6 +878,17 @@ } ], "LibTmux::Session#kill": [ + { + "command": "if-shell", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:172", + "gems/libtmux/lib/libtmux/operations.rb:171", + "gems/libtmux/lib/libtmux/operations.rb:257" + ], + "reviewed": true, + "scope": null, + "when": "expected windows or panes are given" + }, { "command": "kill-session", "evidence": [ @@ -867,6 +898,20 @@ ], "reviewed": true, "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:165", + "gems/libtmux/lib/libtmux/operations.rb:257" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "expected windows or panes are given" } ], "LibTmux::Session#link_window": [ @@ -1028,6 +1073,19 @@ "gems/libtmux/lib/libtmux/entity.rb:245" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:245" + ], + "incidental": true, + "reviewed": true, + "scope": null } ], "LibTmux::WindowLink#kill": [ @@ -1037,6 +1095,19 @@ "gems/libtmux/lib/libtmux/entity.rb:228" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:228" + ], + "incidental": true, + "reviewed": true, + "scope": null } ], "LibTmux::WindowLink#move": [ @@ -1046,6 +1117,19 @@ "gems/libtmux/lib/libtmux/entity.rb:235" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:235" + ], + "incidental": true, + "reviewed": true, + "scope": null } ], "LibTmux::WindowLink#select": [ @@ -1055,9 +1139,35 @@ "gems/libtmux/lib/libtmux/entity.rb:220" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:220" + ], + "incidental": true, + "reviewed": true, + "scope": null } ], "LibTmux::WindowLink#swap": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:240" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "swap-window", "evidence": [ @@ -1067,6 +1177,19 @@ } ], "LibTmux::WindowLink#unlink": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:224" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "unlink-window", "evidence": [ diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index a9261997d..617524eb4 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -1237,6 +1237,28 @@ } ], "io.github.libtmux.scaladsl.cats.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, { "command": "list-panes", "evidence": [ @@ -1301,6 +1323,28 @@ } ], "io.github.libtmux.scaladsl.cats.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, { "command": "list-panes", "evidence": [ @@ -1937,7 +1981,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.capturing" - } + }, + "when": "except on tmux 3.3a and 3.4" } ], "io.github.libtmux.scaladsl.cats.Shell.choose": [ @@ -2734,6 +2779,28 @@ } ], "io.github.libtmux.scaladsl.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, { "command": "list-panes", "evidence": [ @@ -2798,6 +2865,28 @@ } ], "io.github.libtmux.scaladsl.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, { "command": "list-panes", "evidence": [ diff --git a/site/src/data/tmux-usage/swift.json b/site/src/data/tmux-usage/swift.json index 3f5024e1e..acf70e005 100644 --- a/site/src/data/tmux-usage/swift.json +++ b/site/src/data/tmux-usage/swift.json @@ -123,8 +123,7 @@ "Sources/LibTmux/Navigation.swift:144" ], "reviewed": true, - "scope": null, - "when": "a name is given" + "scope": null }, { "command": "if-shell", @@ -179,8 +178,25 @@ "command": "capture-pane", "evidence": [ "Sources/LibTmux/PaneInteraction.swift:295", + "Sources/LibTmux/PaneInteraction.swift:296", + "Sources/LibTmux/PaneInteraction.swift:139", "Sources/LibTmux/PaneInteraction.swift:103" ], + "reviewed": true, + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:364", + "Sources/LibTmux/Formats.swift:359", + "Sources/LibTmux/Formats.swift:314", + "Sources/LibTmux/PaneInteraction.swift:322", + "Sources/LibTmux/PaneInteraction.swift:138", + "Sources/LibTmux/PaneInteraction.swift:103" + ], + "incidental": true, + "reviewed": true, "scope": null } ], @@ -192,6 +208,19 @@ "Sources/LibTmux/PaneInteraction.swift:120" ], "scope": null + }, + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:364", + "Sources/LibTmux/Formats.swift:359", + "Sources/LibTmux/Formats.swift:314", + "Sources/LibTmux/PaneInteraction.swift:322", + "Sources/LibTmux/PaneInteraction.swift:119" + ], + "incidental": true, + "reviewed": true, + "scope": null } ], "Server.clearHistory(_:)": [ @@ -371,8 +400,20 @@ "Sources/LibTmux/WindowTransfers.swift:27" ], "reviewed": true, - "scope": null, - "when": "the window is linked, not moved" + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:269", + "Sources/LibTmux/WindowTransfers.swift:82", + "Sources/LibTmux/WindowTransfers.swift:20" + ], + "incidental": true, + "reviewed": true, + "scope": "server" } ], "Server.loadBuffer(from:named:)": [ @@ -385,6 +426,22 @@ } ], "Server.move(_:to:at:)": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:269", + "Sources/LibTmux/WindowTransfers.swift:82", + "Sources/LibTmux/WindowTransfers.swift:79", + "Sources/LibTmux/WindowTransfers.swift:46", + "Sources/LibTmux/WindowTransfers.swift:10" + ], + "incidental": true, + "reviewed": true, + "scope": "server", + "when": "no index is given" + }, { "command": "move-window", "evidence": [ @@ -394,8 +451,7 @@ "Sources/LibTmux/WindowTransfers.swift:10" ], "reviewed": true, - "scope": null, - "when": "the window is moved, not linked" + "scope": null } ], "Server.newSession(named:startDirectory:windowName:width:height:)": [ @@ -412,7 +468,7 @@ "Sources/LibTmux/Creation.swift:154" ], "scope": null, - "when": "a width or height is requested" + "when": "the requested size differs from the created size" } ], "Server.newWindow(_:_:named:startDirectory:)": [ @@ -548,7 +604,8 @@ "evidence": [ "Sources/LibTmux/Mutations.swift:71" ], - "scope": null + "scope": null, + "when": "a width or height is given" } ], "Server.resolvedOption(_:scope:)": [ diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index f8b850a67..313aed0e3 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -157,14 +157,6 @@ "packages/libtmux/src/pane.ts:517" ], "scope": null - }, - { - "command": "rename-window", - "evidence": [ - "packages/libtmux/src/_internal/operations/shell.ts:159", - "packages/libtmux/src/pane.ts:517" - ], - "scope": null } ], "pane.Pane.capture": [ diff --git a/site/src/lib/symbol-markdown.ts b/site/src/lib/symbol-markdown.ts index 3f06cb35c..25a24b848 100644 --- a/site/src/lib/symbol-markdown.ts +++ b/site/src/lib/symbol-markdown.ts @@ -6,7 +6,7 @@ import mentions from '../data/mentions.json' import { PORT_NAME, referenceAlternatives } from './api-models' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMemberGroups, apiMethodDetails, anonymousDeclarationLabel, hasScalarMembers, nativeSignatureText, parameterBindingText, signatureMultiline, signatureParameterText, usesNativeSignatures } from './api-sections' import { tmuxCommandsFor, tmuxManualUrl } from './tmux-manual-data' -import { tmuxSymbolSends, type ResolvedUsage } from './tmux-reference' +import { sharedWhen, tmuxSymbolSends, type ResolvedUsage } from './tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from './tmux-catalog' import { tmuxCommandMentions, tmuxMentionMarkdown } from './tmux-links' import { productApiIndex } from './product-api' @@ -193,10 +193,11 @@ export function symbolMarkdown(ctx: MarkdownContext): string { const commands = ctx.manualLinks ?? (port ? tmuxCommandsFor(port, symbol.publicId ?? symbol.id) .map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) for (const send of port && !ctx.manualLinks ? tmuxSymbolSends(port, symbol.publicId ?? symbol.id) : []) { + // One condition that every scope shares follows the command; scopes that differ each say their own. + const shared = sharedWhen(send) const scopes = send.scopes.filter((use) => use.scope).map((use) => - `${use.scope!.label.toLowerCase()} scope${use.function ? ` [\`${use.function.name}\`](${use.function.href})` : ''}`) - const when = send.scopes.find((use) => use.when)?.when - out.push(`tmux command: [\`${send.command}\`](${send.manualHref})${scopes.length ? `, ${scopes.join(', ')}` : ''}${when ? ` (${when})` : ''}`, '') + `${use.scope!.label.toLowerCase()} scope${use.function ? ` [\`${use.function.name}\`](${use.function.href})` : ''}${use.when && !shared ? ` (${use.when})` : ''}`) + out.push(`tmux command: [\`${send.command}\`](${send.manualHref})${scopes.length ? `, ${scopes.join(', ')}` : ''}${shared ? ` (${shared})` : ''}`, '') } for (const command of commands) out.push(`tmux command: [\`${command.name}\`](${command.href})`, '') const catalog = ctx.catalogLinks ?? (port && !ctx.manualLinks ? tmuxCatalogKindsForSymbol(port, symbol) diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts index b5626170b..0ad311a40 100644 --- a/site/src/lib/tmux-library-usage.ts +++ b/site/src/lib/tmux-library-usage.ts @@ -35,10 +35,12 @@ export interface UsageUse { evidence: string[] /** A reviewed claim the generator checked line by line, not a scan result. */ reviewed?: boolean + /** Sent on the way to what the method is for, such as a probe that reads the target first: shown on the method, not listed on the command's pages. */ + incidental?: boolean /** When the method sends it, for a send that only some calls make: a few words, shown beside the method. */ when?: string /** The core library symbol a wrapper forwards to, and the lines that show it sends. */ - via?: { port: string; symbol: string; revision?: string; evidence: string[]; reviewed?: boolean } + via?: { port: string; symbol: string; revision?: string; evidence: string[]; reviewed?: boolean; incidental?: boolean } } export interface UsageDocument { @@ -122,8 +124,9 @@ const memberName = (id: string): string => id.replace(/\(.*$/s, '').split(/[.#:\ * @param members the names the use may be listed under: the symbol's own, and for a wrapper the core method's. */ export function isListed(use: UsageUse, ...members: string[]): boolean { + if (use.incidental) return false if (use.reviewed) return true - if (use.via) return isListed({ command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed }, ...members, use.via.symbol) + if (use.via) return isListed({ command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed, incidental: use.via.incidental }, ...members, use.via.symbol) return use.evidence.length - 1 <= LISTED_MAX_HOPS || members.some((member) => namesCommand(use.command, memberName(member))) } diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index 2746dce13..efccbb0e4 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -250,10 +250,16 @@ export interface CommandRow { command: string href: string scopes: SymbolSend['scopes'] - /** When the symbol sends the command, if only some calls do. */ + /** When the symbol sends the command, if only some calls do and every scope says the same. A scope that says otherwise says it itself. */ when?: string } +/** The one condition every scope of a send carries, or nothing when some scope carries another or none. */ +export function sharedWhen(send: Pick): string | undefined { + const first = send.scopes[0]?.when + return first !== undefined && send.scopes.every((use) => use.when === first) ? first : undefined +} + /** * The commands a symbol page names, in the order a reader should weigh them: * what the symbol itself sends, then the commands it has an equivalent for, @@ -262,7 +268,7 @@ export interface CommandRow { export function tmuxCommandRows(sends: SymbolSend[], equivalents: { name: string; href: string }[]): CommandRow[] { const rows = (list: SymbolSend[]) => list.map((send): CommandRow => ({ command: send.command, href: send.manualHref, scopes: send.scopes.filter((use) => use.scope), - ...(send.scopes.find((use) => use.when) ? { when: send.scopes.find((use) => use.when)!.when } : {}), + ...(sharedWhen(send) ? { when: sharedWhen(send) } : {}), })) const direct = (send: SymbolSend) => send.scopes.some((use) => use.listed) const sent = new Set(sends.map((send) => send.command)) diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index ffa418f2e..b5d81ee65 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -9,7 +9,7 @@ import { symbolMarkdown } from '../src/lib/symbol-markdown' import { TMUX_MANUALS, tmuxApiLinks, tmuxCommandsFor, tmuxLibrarySection, tmuxManualHeadings, tmuxManualUrl } from '../src/lib/tmux-manual-data' import { TMUX_USAGE, isListed, namesCommand, tmuxScopes, tmuxUsage, tmuxUsageOf, type UsageUse } from '../src/lib/tmux-library-usage' import { - tmuxCommandRows, tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxResolvedUsage, tmuxSourceModel, tmuxSymbolSends, + sharedWhen, tmuxCommandRows, tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxResolvedUsage, tmuxSourceModel, tmuxSymbolSends, } from '../src/lib/tmux-reference' import { loadAstroTemplate, renderAstroTemplate, withoutScope } from './astro-templates' @@ -179,7 +179,7 @@ describe('the recorded usage', () => { // Ruby's Async scope inherits the core server's methods, so both handles are listed, told apart by their namespace. expect(cell('server', 'ruby')).toEqual(expect.arrayContaining(['Async::Server#list_panes', 'LibTmux::Server#list_panes'])) expect(cell('session', 'ruby')).toEqual(['Session#list_panes']) - expect(cell('window', 'go')).toEqual(['Window.SearchPanes']) + expect(cell('window', 'go')).toEqual(expect.arrayContaining(['Window.SearchPanes', 'Server.Pane'])) // A snapshot-based port sends the command in its snapshot call. expect(cell('server', 'ts')).toEqual(['Server.snapshot']) expect(cell('server', 'lua')).toEqual(['Server:snapshot']) @@ -347,13 +347,31 @@ describe('from a method to the command and its C function', () => { const plain = [{ name: 'capture-pane', href: tmuxManualUrl('latest', 'capture-pane') }] // Java's sendKeys sends send-keys through a helper and is named for it, so it leads; the list-panes lookup it makes on the way is last. const rows = tmuxCommandRows(tmuxSymbolSends('java', 'io.github.libtmux.Pane.Pane.sendKeys'), plain) - expect(rows.map((row) => row.command)).toEqual(['send-keys', 'capture-pane', 'list-panes']) + expect(rows.map((row) => row.command)).toEqual(['send-keys', 'capture-pane', 'display-message', 'list-panes']) expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), [{ name: 'send-keys', href: '/x/' }]).map((row) => row.command)).toEqual(['list-panes', 'send-keys']) expect(tmuxCommandRows([], plain).map((row) => row.scopes)).toEqual([[]]) // A command the symbol is recorded as sending is not named twice. expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), [{ name: 'list-panes', href: '/x/' }]).map((row) => row.command)).toEqual(['list-panes']) }) + it('shows a send made on the way on the method, and does not list the method on the command page', () => { + // sendKeys reads whether the pane is synchronized before it sends, which asks display-message; that is not what it is for. + const probe = TMUX_USAGE.java.symbols['io.github.libtmux.Pane.Pane.sendKeys'].find((use) => use.command === 'display-message')! + expect(probe).toMatchObject({ reviewed: true, incidental: true }) + expect(tmuxSymbolSends('java', 'io.github.libtmux.Pane.Pane.sendKeys').map((send) => send.command)).toContain('display-message') + const listed = (port: string, symbol: string, command: string) => tmuxUsage(command)?.groups.flatMap((group) => group.ports).some((cell) => cell.port === port && cell.links.some((link) => link.symbolId === symbol)) ?? false + expect(listed('java', 'io.github.libtmux.Pane.Pane.sendKeys', 'display-message')).toBe(false) + // The same holds for the command-alias inventory a guarded Ruby call reads before it sends: on the method, not on the command's pages. + expect(tmuxSymbolSends('ruby', 'LibTmux::WindowLink#kill').map((send) => send.command).sort()).toEqual(['kill-window', 'show-options']) + expect(listed('ruby', 'LibTmux::WindowLink#kill', 'show-options')).toBe(false) + expect(listed('ruby', 'LibTmux::WindowLink#kill', 'kill-window')).toBe(true) + // The wrapper that stands on it is not listed either, and a claim that is not incidental still is. + expect(listed('kotlin', 'io.github.libtmux.kotlin.Pane.sendKeys', 'display-message')).toBe(false) + expect(isListed({ command: 'display-message', scope: null, evidence: ['a:1'], reviewed: true, incidental: true })).toBe(false) + expect(isListed({ command: 'display-message', scope: null, evidence: ['a:1'], reviewed: true })).toBe(true) + expect(isListed({ command: 'display-message', scope: null, evidence: ['a:1', 'a:2', 'a:3'], via: { port: 'java', symbol: 'x', evidence: ['b:1'], reviewed: true, incidental: true } })).toBe(false) + }) + it('lists the call through a helper with the method it belongs to', () => { const [send] = tmuxSymbolSends('go', 'tmux.Pane.Select') expect(send.scopes[0]).toMatchObject({ hops: 1, function: { name: 'cmd_list_panes_window' } }) @@ -505,6 +523,42 @@ describe('the rendered lists', () => { expect(plain?.querySelector('.tmux-usage__when') ?? null).toBeNull() }) + it('does not say a Julia function sends a command on one receiver when its methods on both do', async () => { + const item = async (command: string, name: string) => { + const page = await render({ usage: tmuxResolvedUsage('latest', command) }) + return [...page.querySelectorAll('tbody tr[data-port="julia"] .tmux-usage__item')] + .find((entry) => entry.querySelector('a')!.textContent!.replace(/\s+/g, '').trim().endsWith(name)) + } + // capture_bytes captures through a Server and through a ControlConnection: both send capture-pane, so there is nothing to qualify. + const both = await item('capture-pane', 'capture_bytes') + expect(both, 'capture_bytes is listed under capture-pane').toBeDefined() + expect(both!.querySelector('.tmux-usage__when')).toBeNull() + // Only the ControlConnection method spools through a buffer, and the page says so. + const spooled = await item('save-buffer', 'capture_bytes') + expect(spooled?.querySelector('.tmux-usage__when')?.textContent).toBe('on a ControlConnection') + // The data agrees: no Julia use says it is on a receiver unless some method of the function does not send it. + for (const [symbol, uses] of Object.entries(TMUX_USAGE.julia.symbols)) { + for (const use of uses) { + if (/^on a (?:Server|ControlConnection)$/.test(use.when ?? '')) expect(['capture_bytes', 'get_environment', 'load_buffer', 'save_buffer', 'snapshot'], `${symbol} ${use.command}`).toContain(symbol.split('.').at(-1)) + } + } + }) + + it('cites the line of the core method that sends, and not the generator, beside a generated wrapper', async () => { + const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') + const start = source.indexOf('{commandRows.length > 0 && }', start) + '

}'.length + const stub = `---\nconst { commandRows } = Astro.props\n---\n${source.slice(start, end)}` + const entry = await loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) + const rows = tmuxCommandRows(tmuxSymbolSends('kotlin', 'io.github.libtmux.kotlin.Pane.sendKeys'), []).filter((row) => row.scopes.length) + expect(rows.length).toBeGreaterThan(0) + const page = await renderAstroTemplate(entry, { props: { commandRows: rows } }).then((text) => dom(withoutScope(text))) + const titles = [...page.querySelectorAll('.tmux-send')].map((send) => send.getAttribute('title')) + expect(titles.length).toBeGreaterThan(0) + // The entry's own first line is the generator's template; the line that sends is the Java one the entry stands on. + for (const title of titles) expect(title).toMatch(/^Calls io\.github\.libtmux\.Pane\.Pane\.sendKeys: libtmux\/src\/main\/java\/.*\/Pane\.java:\d+$/) + }) + it('cannot render a conditional entry without its qualifier, on a command page or a method page', async () => { const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') const start = source.indexOf('{commandRows.length > 0 && { const rendered = [...html!.querySelectorAll(`tbody tr[data-port="${port}"] .tmux-usage__item`)].filter((item) => item.querySelector('.tmux-usage__when')?.textContent === use.when) expect(rendered.length, `${port} ${symbol} ${command} renders ${use.when}`).toBeGreaterThan(0) } - const row = tmuxCommandRows(tmuxSymbolSends(port, symbol), []).find((candidate) => candidate.command === command) - expect(row?.when, `${port} ${symbol} ${command} row`).toBeTruthy() - const page = renderAstroTemplate(entry, { props: { commandRows: [row] } }).then((text) => dom(withoutScope(text))) - expect((await page).querySelector('.tmux-when')?.textContent, `${port} ${symbol} ${command} page`).toBeTruthy() + const row = tmuxCommandRows(tmuxSymbolSends(port, symbol), []).find((candidate) => candidate.command === command)! + // The row carries this use's own condition: all of the command's scopes share it, or its scope says it. + const own = row.when ?? row.scopes.find((candidate) => candidate.scope?.id === use.scope)?.when ?? (row.scopes.length === 0 ? undefined : '') + expect(own, `${port} ${symbol} ${command} row`).toBe(use.when) + const page = await renderAstroTemplate(entry, { props: { commandRows: [row] } }).then((text) => dom(withoutScope(text))) + expect([...page.querySelectorAll('.tmux-when')].map((element) => element.textContent), `${port} ${symbol} ${command} page`).toContain(use.when) } } // The control: a row whose use carries no qualifier renders none. + // A command sent at two scopes under two conditions says each condition beside its own scope, and not the first for both. + const fsharp = tmuxCommandRows(tmuxSymbolSends('fsharp', 'LibTmux.FSharp.Server.newSession'), []).find((row) => row.command === 'list-panes')! + expect(fsharp.when).toBeUndefined() + expect(fsharp.scopes.map((use) => [use.scope?.id, use.when])).toEqual([['session', 'the spec names a first window'], ['window', 'the spec has more than one window']]) + const twice = await renderAstroTemplate(entry, { props: { commandRows: [fsharp] } }).then((text) => dom(withoutScope(text))) + expect([...twice.querySelectorAll('.tmux-send')].map((send) => send.querySelector('.tmux-when')?.textContent)).toEqual(['the spec names a first window', 'the spec has more than one window']) + expect(sharedWhen({ scopes: [{ when: 'a' }, { when: 'a' }] as never })).toBe('a') + expect(sharedWhen({ scopes: [{ when: 'a' }, { when: 'b' }] as never })).toBeUndefined() + expect(sharedWhen({ scopes: [{ when: 'a' }, {}] as never })).toBeUndefined() const plain = tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), []) expect(plain.every((row) => row.when === undefined)).toBe(true) expect((await renderAstroTemplate(entry, { props: { commandRows: plain } }).then((text) => dom(withoutScope(text)))).querySelector('.tmux-when')).toBeNull() diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index 64c39aba6..cf08e71c5 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -1,7 +1,7 @@ import { readFileSync } from 'node:fs' import { beforeAll, describe, expect, it } from 'vitest' import { scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' -import { MAX_SHARED_BY, applyConditions, applyExclusions, builtSites, callTargets, classify, conditionProblem, definitionsOf, deriveUsage, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' +import { MAX_SHARED_BY, applyConditions, applyExclusions, builtSites, callTargets, classify, conditionProblem, definitionsOf, deriveUsage, partialProblems, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' import { auditEvidence } from '../../scripts/lib/tmux-usage-audit.mjs' import { chainProblems, dispatcherProblems, guardProblems } from '../../scripts/lib/tmux-usage-dispatch.mjs' import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' @@ -502,7 +502,7 @@ describe('the calls that send', () => { expect(problems('cmd', { at: 'lib.py:2', reaches })).toEqual([]) expect(problems('check_call', { at: 'lib.py:13' })).toEqual([]) // A hop the scan cannot follow, such as a command put on a queue, says where it leads. - const queued = [{ at: 'lib.py:3', has: ['tmux_cmd'], leads: '__init__' }, { at: 'lib.py:7', has: ['subprocess.Popen('] }] + const queued = [{ at: 'lib.py:3', has: ['tmux_cmd'], leads: '__init__', why: 'the command goes onto a queue' }, { at: 'lib.py:7', has: ['subprocess.Popen('] }] expect(problems('cmd', { at: 'lib.py:2', reaches: queued })).toEqual([]) }) @@ -511,7 +511,7 @@ describe('the calls that send', () => { ['a chain that stops short of the process', 'cmd', { at: 'lib.py:2', reaches: [reaches[0]] }, /hop lib.py:3 is not a transport/], ['a chain that skips the function between', 'cmd', { at: 'lib.py:2', reaches: [reaches[1]] }, /hop lib.py:7 is not in Server.cmd/], ['a hop that does not lead to the next line', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'], calls: 'tmux_cmd' }, { at: 'lib.py:10', has: ['row'] }] }, /leads to tmux_cmd, but lib.py:10 is not a line of it/], - ['a hop whose function does not make the call', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'], calls: 'Popen' }, reaches[1]] }, /does not call Popen/], + ['a hop whose function does not make the call', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'], calls: 'Popen' }, reaches[1]] }, /leads to Popen, but lib.py:7 is not a line of it/], ['a hop whose text is not on its line', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['elsewhere'], calls: 'tmux_cmd' }, reaches[1]] }, /does not contain "elsewhere"/], ['a definition that is not a function of that name', 'listing', { at: 'lib.py:2', reaches }, /is not a line of a function named listing/], ['a hop that names no destination', 'cmd', { at: 'lib.py:2', reaches: [{ at: 'lib.py:3', has: ['tmux_cmd'] }, reaches[1]] }, /names neither the function it calls nor the one it leads to/], @@ -554,6 +554,133 @@ describe('the calls that send', () => { }) }) +describe('a chain that is resolved by the call each hop makes', () => { + type Source = { file: string; text: string } + const functionsOf = async (grammar: string, sources: Source[]) => { + const all: Record[] = [] + for (const { file, text } of sources) { + const { functions } = await scanSource({ grammar, text, commands: new Set(['x']), known: new Set(['x']), dispatch: new Set() }) + all.push(...functions.map((fn: object) => ({ ...fn, file }))) + } + return all as unknown as Parameters[0]['functions'] + } + const check = async (port: string, grammar: string, sources: Source[], name: string, item: Record) => + chainProblems({ + port, rule: { name }, item: item as never, functions: await functionsOf(grammar, sources), + readSource: (path: string) => sources.find((source) => source.file === path)?.text, + }) + + describe('two functions that share a name, and only one of them starts the process', () => { + // The shape of the Rust executors: a tracing helper called `run`, and the `run` that spawns. + const span = ['impl DispatchSpan {', ' fn run(self, future: F) -> DispatchFuture {', ' DispatchFuture::new(future)', ' }', '}', ''].join('\n') + const control = ['impl ControlModeExecutor {', ' fn execute(&self, request: CommandRequest) -> DispatchFuture {', ' let span = DispatchSpan::new(&request, "control");', ' span.run(async move { sender.send_line(line).await })', ' }', '}', ''].join('\n') + const subprocess = [ + 'impl SubprocessExecutor {', // 1 + ' async fn run(self, request: CommandRequest) {', // 2 + ' let mut child = process.spawn();', // 3 + ' }', // 4 + ' fn execute(&self, request: CommandRequest) -> DispatchFuture {', // 5 + ' DispatchSpan::new(&request, "subprocess").run(self.clone().run(request))', // 6 + ' }', // 7 + '}', // 8 + '', + ].join('\n') + const sources = [{ file: 'executor.rs', text: span }, { file: 'control_executor.rs', text: control }, { file: 'subprocess.rs', text: subprocess }] + const hop = (at: string, over: Record = {}) => ({ at, has: [], ...over }) + + it('refuses a chain that goes through the tracing helper to the spawn', async () => { + // `span.run(...)` is DispatchSpan::run, and the spawn is in SubprocessExecutor::run, though both are `run`. Nothing names the + // handle for the executor, so the hop has to say what it holds, which is the reader's cue that it holds the tracing span. + const wrong = { at: 'control_executor.rs:2', reaches: [hop('control_executor.rs:4', { calls: 'run' }), hop('subprocess.rs:3')] } + expect((await check('rs', 'rust', sources, 'execute', wrong)).join('\n')).toMatch(/is a call of span\.run\(\), which resolves to no function the scan has read, and not to SubprocessExecutor\.run at subprocess\.rs:2/) + }) + + it('refuses a hop that says the call is made on a type its receiver is not', async () => { + const core = ['impl Core {', ' fn execute(&self, request: Request) {', ' self.executor.execute(request)', ' }', '}', 'impl Server {', ' fn cmd(&self, command: Command) {', ' self.core.execute(command)', ' }', '}', ''].join('\n') + const files = [...sources, { file: 'core.rs', text: core }] + // `core.execute` is Core::execute; the chain that goes on in the executor and skips it is not this call. + const skipped = { at: 'core.rs:7', reaches: [hop('core.rs:8', { calls: 'execute', on: 'SubprocessExecutor' }), hop('subprocess.rs:6', { calls: 'run', on: 'SubprocessExecutor' }), hop('subprocess.rs:3')] } + expect((await check('rs', 'rust', files, 'cmd', skipped)).join('\n')).toMatch(/says the call is made on a SubprocessExecutor, but its receiver resolves it to Core\.execute at core\.rs:2/) + const right = { at: 'core.rs:7', reaches: [hop('core.rs:8', { calls: 'execute' }), hop('core.rs:3', { leads: 'execute', why: 'a trait object' }), hop('subprocess.rs:6', { calls: 'run', on: 'SubprocessExecutor' }), hop('subprocess.rs:3')] } + expect(await check('rs', 'rust', files, 'cmd', right)).toEqual([]) + }) + + it('accepts the call that does start it, and a hop that says what a field holds', async () => { + const right = { at: 'subprocess.rs:5', reaches: [hop('subprocess.rs:6', { calls: 'run', on: 'SubprocessExecutor' }), hop('subprocess.rs:3')] } + expect(await check('rs', 'rust', sources, 'execute', right)).toEqual([]) + // The trait call has no receiver the scan can type, so the chain says why it leads on. + const trait = { at: 'control_executor.rs:2', reaches: [hop('control_executor.rs:4', { leads: 'run' }), hop('subprocess.rs:3')] } + expect((await check('rs', 'rust', sources, 'execute', trait)).join('\n')).toMatch(/leads to run and says nothing about why the scan cannot follow it/) + const said = { at: 'control_executor.rs:2', reaches: [hop('control_executor.rs:4', { leads: 'run', why: 'a trait object' }), hop('subprocess.rs:3')] } + expect(await check('rs', 'rust', sources, 'execute', said)).toEqual([]) + }) + + it('refuses a hop whose line has no call of the name it says', async () => { + // Line 7 closes `execute`; it makes no call of `run`. + const none = { at: 'subprocess.rs:5', reaches: [hop('subprocess.rs:7', { calls: 'run' }), hop('subprocess.rs:3')] } + expect((await check('rs', 'rust', sources, 'execute', none)).join('\n')).toMatch(/has no call of run on that line/) + }) + }) + + describe('overloads of one type', () => { + const java = [ + 'class Server {', // 1 + ' CommandResult cmd(List argv) {', // 2 + ' return cmd(argv, timeout, "");', // 3 + ' }', // 4 + ' CommandResult cmd(ServerSnapshot snapshot, List argv) {', // 5 + ' return fence.guarded(snapshot, argv);', // 6 + ' }', // 7 + ' CommandResult cmd(List argv, Duration timeout, String input) {', // 8 + ' return starter.start(argv);', // 9 + ' }', // 10 + ' CommandResult run(List argv) {', // 11 + ' return cmd(argv);', // 12 + ' }', // 13 + '}', // 14 + '', + ].join('\n') + const sources = [{ file: 'ProcessTransport.java', text: java }] + const hop = (at: string, over: Record = {}) => ({ at, has: [], ...over }) + + it('takes the overload that the arguments of the call fit, and refuses the one they do not', async () => { + const right = { at: 'ProcessTransport.java:11', reaches: [hop('ProcessTransport.java:12', { calls: 'cmd' }), hop('ProcessTransport.java:3', { calls: 'cmd' }), hop('ProcessTransport.java:9')] } + expect(await check('java', 'java', sources, 'run', right)).toEqual([]) + // `cmd(argv)` passes one argument, so it is not the `cmd(snapshot, argv)` that calls the fence. + const wrong = { at: 'ProcessTransport.java:11', reaches: [hop('ProcessTransport.java:12', { calls: 'cmd' }), hop('ProcessTransport.java:6')] } + expect((await check('java', 'java', sources, 'run', wrong)).join('\n')).toMatch(/is a call of cmd\(1\), which resolves to Server\.cmd at ProcessTransport\.java:2, and not to Server\.cmd at ProcessTransport\.java:5/) + }) + }) + + describe('overloads told apart by their labels', () => { + const swift = [ + 'struct Server {', // 1 + ' func run(_ command: TmuxCommand) async throws -> TmuxReply {', // 2 + ' try await run(rawArguments: command.argumentVector)', // 3 + ' }', // 4 + ' func run(rawArguments: [String]) async throws -> TmuxReply {', // 5 + ' try await Subprocess.run(rawArguments)', // 6 + ' }', // 7 + ' func send(_ list: TmuxCommandList) async throws -> TmuxReply {', // 8 + ' try await run(list)', // 9 + ' }', // 10 + '}', // 11 + '', + ].join('\n') + const sources = [{ file: 'Sources/LibTmux/Transport.swift', text: swift }] + const hop = (at: string, over: Record = {}) => ({ at, has: [], ...over }) + + it('does not read run(rawArguments:) as the run(_:) that calls it', async () => { + const labelled = { at: 'Sources/LibTmux/Transport.swift:2', reaches: [hop('Sources/LibTmux/Transport.swift:3', { calls: 'run' }), hop('Sources/LibTmux/Transport.swift:6')] } + expect(await check('swift', 'swift', sources, 'run', labelled)).toEqual([]) + // `run(list)` has no label: it is the first `run`, which is not where the process is started. + const unlabelled = { at: 'Sources/LibTmux/Transport.swift:8', reaches: [hop('Sources/LibTmux/Transport.swift:9', { calls: 'run' }), hop('Sources/LibTmux/Transport.swift:6')] } + const named = await check('swift', 'swift', sources, 'send', unlabelled) + expect(named.join('\n')).toMatch(/is a call of run\(_\), which resolves to Server\.run at Sources\/LibTmux\/Transport\.swift:2, and not to Server\.run at Sources\/LibTmux\/Transport\.swift:5/) + }) + }) +}) + describe('scanning a command that a guard wraps, a conditional and a label', () => { const scanned = async (grammar: string, text: string, options: Record, commands: string[]) => { const { functions } = await scanSource({ grammar, text, commands: new Set(commands), known: new Set(commands), ...options } as never) @@ -812,6 +939,38 @@ describe('reading Julia and F# by their text', () => { expect(byName.snapshot.sites).toEqual([]) }) + it('reads a call that a condition only gates as a send, and a choice between two commands as none', () => { + const both = new Set(['list-panes', 'list-windows']) + const text = [ + 'function gated(conn, ss)', + ' ws = isempty(ss) ? [] : run(conn, "list-windows")', + ' pick = flag ? "list-panes" : "list-windows"', + ' run(conn, pick)', + 'end', + '', + ].join('\n') + const { functions } = scanJulia(text, { commands: both, known: both, dispatch: new Set(['run']) }) as unknown as { functions: { sites: { command: string; line: number; dispatch?: { name: string } | null }[] }[] } + expect(functions[0].sites.map((found) => [found.line, found.command, found.dispatch?.name ?? null])).toEqual([[2, 'list-windows', 'run'], [3, 'list-panes', null], [3, 'list-windows', null]]) + }) + + it('takes the body of a short-form function from the equals sign, when its arguments span lines', () => { + const text = [ + 'read(', + ' connection::ControlConnection,', + ' fields::AbstractVector;', + ' kwargs...,', + ') = _read(connection, fields; kwargs...)', + '', + 'other() = nothing', + '', + ].join('\n') + const { functions } = scanJulia(text, { commands, known: commands }) as unknown as { functions: (Scanned & { nameLine: number; receiverType?: string })[] } + const read = functions.find((fn) => fn.name === 'read')! + expect([read.nameLine, read.end, read.receiverType]).toEqual([1, 5, 'ControlConnection']) + expect([...read.calls.keys()]).toContain('_read') + expect(functions.find((fn) => fn.name === 'other')!.start).toBe(7) + }) + it('reads F# members with their owner, and the calls inside with the object they are made on', () => { const text = [ 'module Hierarchy', @@ -835,6 +994,126 @@ describe('reading Julia and F# by their text', () => { }) }) +describe('the methods of a generic function', () => { + const dispatch = new Set(['_operation_command', '_control_effect', '_control_create']) + const commands = new Set(['list-panes', 'list-windows', 'list-sessions']) + const text = [ + 'function panes(server::Server, pane)', // 1 + ' args = ["list-panes", "-a"]', // 2 + ' _operation_command(server, args...)', // 3 + 'end', // 4 + '', // 5 + 'function panes(connection::ControlConnection, pane)', // 6 + ' _control_effect(connection, ["list-panes", "-a"])', // 7 + 'end', // 8 + '', // 9 + 'function windows(server::Server)', // 10 + ' _operation_command(server, "list-windows")', // 11 + 'end', // 12 + '', // 13 + 'function windows(connection::ControlConnection)', // 14 + ' _quiet(connection)', // 15 + 'end', // 16 + '', // 17 + '_quiet(connection) = nothing', // 18 + '', // 19 + 'function sessions(server::Server)', // 20 + ' _operation_command(server, "list-sessions")', // 21 + 'end', // 22 + '', // 23 + 'function sessions(connection::ControlConnection)', // 24 + ' _first(connection)', // 25 + 'end', // 26 + '', // 27 + '_first(handle) = _second(handle)', // 28 + '_second(handle) = _operation_command(handle, "list-sessions")', // 29 + '', // 30 + 'function forwarding(server::Server)', // 31 + ' _operation_command(server, "list-windows")', // 32 + 'end', // 33 + '', // 34 + 'function forwarding(f, server::Server)', // 35 + ' forwarding(server)', // 36 + 'end', // 37 + '', + ].join('\n') + const symbols = ['panes', 'windows', 'sessions', 'forwarding'].map((name) => ({ id: `LibTmux.${name}`, name, file: 'lib.jl', line: 1 })) + const methods = async () => { + const { functions } = await scanSource({ grammar: 'julia', text, commands, known: commands, dispatch }) + return functions.map((fn: object) => ({ ...fn, file: 'lib.jl' })) as unknown as Parameters[0]['functions'] + } + const entries = async (command: string) => { + const result = deriveUsage({ command, spec: undefined, functions: await methods(), symbols, definitionOptions: { freeFunctions: true } }) + return Object.fromEntries(result.entries.map((entry) => [entry.symbol.replace('LibTmux.', ''), entry as unknown as { methods: { sends: { nameLine: number }[]; lacks: { nameLine: number }[]; deep: { nameLine: number }[]; unsure: unknown[] } }])) + } + const lines = (names: string[]) => (path: string) => (path === 'lib.jl' ? names.join('\n') : undefined) + void lines + + it('tells the methods apart by the type of the first argument', async () => { + const found = await methods() + expect(found.filter((fn) => fn.name === 'panes').map((fn) => (fn as unknown as { receiverType: string }).receiverType)).toEqual(['Server', 'ControlConnection']) + }) + + it('finds a send that every method makes, and needs no qualifier for it', async () => { + const { panes } = await entries('list-panes') + expect(panes.methods.sends.map((method) => method.nameLine)).toEqual([1, 6]) + expect(panes.methods.lacks).toEqual([]) + expect(partialProblems(new Map([['panes', panes as never]]))).toEqual([]) + }) + + it('finds a send that only one method makes, and asks for a condition that says when', async () => { + const { windows } = await entries('list-windows') + expect(windows.methods.sends.map((method) => method.nameLine)).toEqual([10]) + expect(windows.methods.lacks.map((method) => method.nameLine)).toEqual([14]) + expect(partialProblems(new Map([['windows', windows as never]])).join('\n')).toMatch(/only the Server methods send it, and 1 other method such as lib.jl:14 do not/) + }) + + it('does not call a method that only reaches the send through more calls than a symbol is credited across a method that lacks it', async () => { + const { sessions } = await entries('list-sessions') + expect(sessions.methods.sends.map((method) => method.nameLine)).toEqual([20]) + expect(sessions.methods.deep.map((method) => method.nameLine)).toEqual([24]) + expect(sessions.methods.lacks).toEqual([]) + expect(partialProblems(new Map([['sessions', sessions as never]]))).toEqual([]) + }) + + it('counts a method that forwards to a method of its own name as sending what that one sends', async () => { + const { forwarding } = await entries('list-windows') + expect(forwarding.methods.sends.map((method) => method.nameLine)).toEqual([31]) + expect(forwarding.methods.deep.map((method) => method.nameLine)).toEqual([35]) + expect(forwarding.methods.lacks).toEqual([]) + expect(partialProblems(new Map([['forwarding', forwarding as never]]))).toEqual([]) + }) + + describe('a receiver qualifier', () => { + const found = async () => new Map([['LibTmux.windows\0list-windows\0null', (await entries('list-windows')).windows as never]]) + const body = (start: number, end: number, has: string) => ({ at: `lib.jl:${start}`, through: end, has: [has] }) + const condition = (over: Record = {}) => ({ + port: 'julia', symbol: 'LibTmux.windows', command: 'list-windows', scope: null, when: 'on a Server', receiver: 'Server', + evidence: [body(10, 12, 'function windows('), body(14, 16, 'function windows(')], ...over, + }) + const apply = async (item: Record) => applyConditions({ conditions: [item as never], found: await found(), readSource: lines(text.split('\n')) }) + + it('is accepted when the methods that send take the type, another method does not, and both bodies are cited', async () => { + expect(await apply(condition())).toEqual([]) + }) + + it.each([ + ['a type the sending method does not take', { when: 'on a ControlConnection', receiver: 'ControlConnection' }, /ControlConnection, but the Server method at lib.jl:10 sends it too/], + ['a body cited for the sending method only', { evidence: [body(10, 12, 'function windows(')] }, /cites the body of no method that does not send it/], + ['a signature line in place of the body', { evidence: [{ at: 'lib.jl:10', has: ['::Server'] }, { at: 'lib.jl:14', has: ['::ControlConnection'] }] }, /cites the body of no method that sends it/], + ['a body that ends elsewhere', { evidence: [body(10, 11, 'function windows('), body(14, 16, 'function windows(')] }, /cites the body of no method that sends it/], + ])('is refused for %s', async (_name, over, message) => { + expect((await apply(condition(over))).join('\n')).toMatch(message) + }) + + it('is refused for a send that every method makes', async () => { + const every = new Map([['LibTmux.panes\0list-panes\0null', (await entries('list-panes')).panes as never]]) + const item = condition({ symbol: 'LibTmux.panes', command: 'list-panes', evidence: [body(1, 4, 'function panes('), body(6, 8, 'function panes(')] }) + expect(applyConditions({ conditions: [item as never], found: every, readSource: lines(text.split('\n')) }).join('\n')).toMatch(/no method of the function is shown not to send it/) + }) + }) +}) + describe('finding the methods a scan misses', () => { const method = (name: string, owner: string, over: Record = {}) => ({ id: `S.${owner}.${name}`, name, parentName: owner, file: 'src/libtmux/lib.py', kind: 'method', ...over }) const find = (symbols: ReturnType[], has: string[] = [], commands = ['new-session', 'new-window', 'kill-pane', 'send-keys']) => From e9c112f6b753168ec469dfa32cb7c162317f9f88 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 05:29:53 -0500 Subject: [PATCH 15/53] fix(site[tmux-usage]) Set a command apart from its C function, and one scope from the next why: The "tmux command" line of a method page read `list-panes -a cmd_list_panes_server`: a CLI command, its flag and a C function in one run with only spaces between them, so a reader could not tell two destinations from one name. A command sent at three scopes ran on into `-s cmd_list_panes_session -t cmd_list_panes_window` with nothing to say where one pair ended. The Markdown of the page wrote its own version of the same line with its own punctuation. what: - `tmuxCommandItems` turns the rows of a method into one item for each scope a command is sent at (command, flag, C function, condition, evidence) and one for a command with no scope. The method page and its Markdown both render from these items, so the two cannot disagree on the line. - An item reads `list-panes -a, cmd_list_panes_server`: the command and its flag, a comma, the function, then the condition that holds for that scope. Items are divided by a semicolon, because a comma already sits inside an item: `list-panes -a, cmd_list_panes_server; list-panes -s, cmd_list_panes_session; list-panes -t, cmd_list_panes_window`. A line of commands that name no C function keeps the comma (`kill-pane, kill-window`), and a line that mixes the two uses the semicolon throughout (`tmuxCommandSeparator`). A scope with no function has no comma to add (`list-panes -a Server`). - Markdown: `tmux command: [list-panes](...) server scope, [cmd_list_panes_server](...)`, scopes divided the same way, a condition in parentheses after its own scope. - A condition every scope of a send shares was written once after the command; it now follows each scope it holds for. No recorded send has two scopes under one condition, so no page changes by this, and a pair under different conditions already said each beside its own scope. - The item markup carries no whitespace between an item and the separator that follows it, which the first rendering of this got wrong (`server ; list-panes`); the tests read the text of the line. - The usage table's column heading stays as it is: its flag and C function are separate blocks, one above the other, not a run of text. - The three tests that sliced the line out of ApiEntry.astro share one helper that compiles it with the two lines of the real frontmatter that make the items. --- site/src/components/api/ApiEntry.astro | 20 +++---- site/src/lib/symbol-markdown.ts | 12 ++-- site/src/lib/tmux-reference.ts | 33 +++++++++++ site/test/tmux-library-usage.test.ts | 81 ++++++++++++++++++++------ 4 files changed, 110 insertions(+), 36 deletions(-) diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index 5b6e4ba7d..530ea61d1 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -15,7 +15,7 @@ import ApiType from './ApiType.astro' import { asideFor } from '../../lib/aside' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMethodDetails, anonymousDeclarationLabel, nativeSignatureText as unformattedNativeSignatureText, parameterBindingText, usesNativeSignatures } from '../../lib/api-sections' import { tmuxCommandsFor, tmuxManualUrl } from '../../lib/tmux-manual-data' -import { tmuxCommandRows, tmuxSymbolSends } from '../../lib/tmux-reference' +import { tmuxCommandItems, tmuxCommandRows, tmuxCommandSeparator, tmuxSymbolSends } from '../../lib/tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from '../../lib/tmux-catalog' import ApiFieldOverloads from './ApiFieldOverloads.astro' import ApiCommandParameters from './ApiCommandParameters.astro' @@ -184,6 +184,8 @@ const mentions = port ? mentionsOf(port, symbol.id) : [] // A command the symbol sends comes with its scope and C function; one it only has an equivalent for is a plain link. const tmuxCommands = manualLinks ?? (port ? tmuxCommandsFor(port, anchor).map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) const commandRows = tmuxCommandRows(port && !manualLinks ? tmuxSymbolSends(port, anchor) : [], tmuxCommands) +const commandItems = tmuxCommandItems(commandRows) +const commandSeparator = tmuxCommandSeparator(commandItems) // Members that wrap options or hooks lead to the catalog of what they take. const catalogEntries = catalogLinks ?? (port && !manualLinks ? tmuxCatalogKindsForSymbol(port, symbol).map((kind) => ({ name: CATALOG_KINDS[kind].label, href: tmuxCatalogUrl('latest', kind) })) : []) const mentionSections = [...new Set(mentions.map((m) => m.section ?? 'docs'))].sort() @@ -675,18 +677,12 @@ const hasBody = ) } - {commandRows.length > 0 &&

+ {commandItems.length > 0 &&

tmux command - {commandRows.map((row, i) => <> - {i > 0 && ', '} - {row.command} - {row.when && <>{' '}{row.when}} - {row.scopes.map((use) => <>{' '} - {use.scope!.flag || use.scope!.target ? -{use.scope!.flag || use.scope!.target} : null} - {use.function ? {use.function.name} : {use.scope!.label}} - {use.when && !row.when && <>{' '}{use.when}} - )} - )} + {/* No whitespace between an item and the separator that follows it, so a comma or semicolon never trails a space. */} + {commandItems.map((item, i) => <>{i > 0 ? commandSeparator : ' '}{item.command}{item.scope + ? {item.scope.flag || item.scope.target ? <>{' '}-{item.scope.flag || item.scope.target} : null}{item.function ? <>{', '}{item.function.name} : <>{' '}{item.scope.label}}{item.when && <>{' '}{item.when}} + : item.when && <>{' '}{item.when}})}

} {catalogEntries.length > 0 &&

tmux catalog diff --git a/site/src/lib/symbol-markdown.ts b/site/src/lib/symbol-markdown.ts index 25a24b848..693cf2453 100644 --- a/site/src/lib/symbol-markdown.ts +++ b/site/src/lib/symbol-markdown.ts @@ -6,7 +6,7 @@ import mentions from '../data/mentions.json' import { PORT_NAME, referenceAlternatives } from './api-models' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMemberGroups, apiMethodDetails, anonymousDeclarationLabel, hasScalarMembers, nativeSignatureText, parameterBindingText, signatureMultiline, signatureParameterText, usesNativeSignatures } from './api-sections' import { tmuxCommandsFor, tmuxManualUrl } from './tmux-manual-data' -import { sharedWhen, tmuxSymbolSends, type ResolvedUsage } from './tmux-reference' +import { tmuxCommandItems, tmuxCommandRows, tmuxCommandSeparator, tmuxSymbolSends, type ResolvedUsage } from './tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from './tmux-catalog' import { tmuxCommandMentions, tmuxMentionMarkdown } from './tmux-links' import { productApiIndex } from './product-api' @@ -193,11 +193,11 @@ export function symbolMarkdown(ctx: MarkdownContext): string { const commands = ctx.manualLinks ?? (port ? tmuxCommandsFor(port, symbol.publicId ?? symbol.id) .map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) for (const send of port && !ctx.manualLinks ? tmuxSymbolSends(port, symbol.publicId ?? symbol.id) : []) { - // One condition that every scope shares follows the command; scopes that differ each say their own. - const shared = sharedWhen(send) - const scopes = send.scopes.filter((use) => use.scope).map((use) => - `${use.scope!.label.toLowerCase()} scope${use.function ? ` [\`${use.function.name}\`](${use.function.href})` : ''}${use.when && !shared ? ` (${use.when})` : ''}`) - out.push(`tmux command: [\`${send.command}\`](${send.manualHref})${scopes.length ? `, ${scopes.join(', ')}` : ''}${shared ? ` (${shared})` : ''}`, '') + // The same items as the method page: each scope names the command and then its C function, set apart by a comma, and + // the scopes by a semicolon. A condition follows the scope it holds for. + const items = tmuxCommandItems(tmuxCommandRows([send], [])) + const written = items.map((item) => `[\`${item.command}\`](${item.href})${item.scope ? ` ${item.scope.label.toLowerCase()} scope${item.function ? `, [\`${item.function.name}\`](${item.function.href})` : ''}` : ''}${item.when ? ` (${item.when})` : ''}`) + out.push(`tmux command: ${written.join(tmuxCommandSeparator(items))}`, '') } for (const command of commands) out.push(`tmux command: [\`${command.name}\`](${command.href})`, '') const catalog = ctx.catalogLinks ?? (port && !ctx.manualLinks ? tmuxCatalogKindsForSymbol(port, symbol) diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index efccbb0e4..9aca7a126 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -280,6 +280,39 @@ export function tmuxCommandRows(sends: SymbolSend[], equivalents: { name: string ] } +/** + * One destination pair of a method page's tmux command line: the command with the flag that picks the scope, and the C + * function that implements it at that scope. A command sent at three scopes is three items, so each reads whole. + */ +export interface CommandItem { + command: string + href: string + /** The scope this item sends the command at; a command with no scope is the command alone. */ + scope?: NonNullable + function?: { name: string; href: string } + when?: string + /** The line that sends, or for a wrapper the core call it makes: what the scope's tooltip cites. */ + evidence?: string +} + +/** The items of a command line, one for each scope a command is sent at and one for a command with none. */ +export function tmuxCommandItems(rows: CommandRow[]): CommandItem[] { + return rows.flatMap((row): CommandItem[] => row.scopes.length + ? row.scopes.map((use) => ({ + command: row.command, href: row.href, scope: use.scope!, + ...(use.function ? { function: use.function } : {}), + ...(use.when ? { when: use.when } : {}), + evidence: use.via ? `Calls ${use.via.symbol}: ${use.via.evidence[0]}` : use.evidence[0], + })) + : [{ command: row.command, href: row.href, ...(row.when ? { when: row.when } : {}) }]) +} + +/** + * What goes between the items of one line. A comma already separates a command from its C function, so a line that + * has one uses a semicolon between items, and a line of commands alone keeps the comma. + */ +export const tmuxCommandSeparator = (items: CommandItem[]) => items.some((item) => item.function) ? '; ' : ', ' + /** The commands a library symbol sends, with each scope's manual and C function. */ export function tmuxSymbolSends(port: string, publicId: string, version = 'latest'): SymbolSend[] { return tmuxUsageOf(port, publicId).map((entry) => ({ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index b5d81ee65..f2644addd 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -330,6 +330,48 @@ describe('from a method to the command and its C function', () => { expect(send.scopes.every((use) => use.via?.port === 'csharp')).toBe(true) }) + it('sets the command apart from its C function, and one scope from the next, on the line of a method page', async () => { + const template = await commandLineTemplate() + const line = async (rows: ReturnType) => { + const document = dom(withoutScope(await renderAstroTemplate(template, { props: { commandRows: rows } }))) + return { text: document.querySelector('.gp-sphinx-api-mentions')!.textContent!.replace(/\s+/g, ' ').trim(), document } + } + // One scope: the command and its flag, then the function, as two destinations. + const swift = tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), []) + const one = await line(swift) + expect(one.text).toBe('tmux command list-panes -a, cmd_list_panes_server') + expect([...one.document.querySelectorAll('.gp-sphinx-api-mentions a')].map((a) => a.textContent!.trim())).toEqual(['list-panes', 'cmd_list_panes_server']) + expect(one.document.querySelector('.tmux-send')!.textContent!.replace(/\s+/g, ' ').trim()).toBe('-a, cmd_list_panes_server') + // Three scopes: each is a whole command and function, and a semicolon, which a comma already inside an item cannot be, divides them. + const cmdlet = tmuxCommandRows(tmuxSymbolSends('powershell', 'LibTmux\\Get-TmuxPane'), []).filter((row) => row.command === 'list-panes') + expect((await line(cmdlet)).text).toBe( + 'tmux command list-panes -a, cmd_list_panes_server; list-panes -s, cmd_list_panes_session; list-panes -t, cmd_list_panes_window') + // A condition follows the scope it holds for, inside its item. + const fsharp = tmuxCommandRows(tmuxSymbolSends('fsharp', 'LibTmux.FSharp.Server.newSession'), []).filter((row) => row.command === 'list-panes') + expect((await line(fsharp)).text).toBe( + 'tmux command list-panes -s, cmd_list_panes_session the spec names a first window; list-panes -t, cmd_list_panes_window the spec has more than one window') + // Commands with no C function to name keep the comma, and a line that mixes the two uses the semicolon throughout. + const plain = [{ command: 'kill-pane', href: '/tmux/latest/manual/kill-pane/', scopes: [] }, { command: 'kill-window', href: '/tmux/latest/manual/kill-window/', scopes: [] }] + expect((await line(plain)).text).toBe('tmux command kill-pane, kill-window') + expect((await line([...swift, ...plain])).text).toBe('tmux command list-panes -a, cmd_list_panes_server; kill-pane; kill-window') + // The control: a scope with no function has no comma to set it apart. + const bare = [{ ...swift[0], scopes: swift[0].scopes.map((use) => ({ ...use, function: undefined })) }] + expect((await line(bare)).text).toBe('tmux command list-panes -a Server') + }) + + it('writes the same line into the Markdown of a method', () => { + const model = API_MODELS.powershell + const symbol = model.symbols.find((entry) => (entry.publicId ?? entry.id) === 'LibTmux\\Get-TmuxPane')! + const text = symbolMarkdown({ model, symbol }) + const lines = text.split('\n').filter((entry) => entry.startsWith('tmux command: [`list-panes`]')) + const manual = tmuxManualUrl('latest', 'list-panes') + const of = (scope: string) => `[\`list-panes\`](${manual}) ${scope} scope, [\`cmd_list_panes_${scope}\`](/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_${scope}/)` + expect(lines).toEqual([['server', 'session', 'window'].map(of).join('; ')].map((entry) => `tmux command: ${entry}`)) + // The control: a command with no scope is the command alone. + const swift = API_MODELS.swift.symbols.find((entry) => (entry.publicId ?? entry.id) === 'Server.panes()')! + expect(symbolMarkdown({ model: API_MODELS.swift, symbol: swift })).toContain(`tmux command: [\`list-panes\`](${manual}) server scope, [\`cmd_list_panes_server\`](`) + }) + it('does not link a method that only reads a capture, whatever the concepts call it equivalent to', () => { // The concept map names Window.Panes the Go equivalent of list-panes. expect(tmuxSymbolSends('go', 'tmux.Window.Panes')).toEqual([]) @@ -453,6 +495,23 @@ describe('the manual page of a command', () => { } }) +/** + * The method page's tmux command line, compiled from the source of `ApiEntry.astro` with nothing around it, and given + * rows to render. Its frontmatter is the two lines of the real one that turn rows into items. + */ +async function commandLineTemplate() { + const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') + const start = source.indexOf('{commandItems.length > 0 && }', start) + '

}'.length + expect(start).toBeGreaterThan(0) + expect(end).toBeGreaterThan(start) + const stub = [ + '---', "import { tmuxCommandItems, tmuxCommandSeparator } from '../../lib/tmux-reference'", 'const { commandRows } = Astro.props', + 'const commandItems = tmuxCommandItems(commandRows)', 'const commandSeparator = tmuxCommandSeparator(commandItems)', '---', source.slice(start, end), + ].join('\n') + return loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) +} + describe('the rendered lists', () => { async function render(props: Record) { const template = await loadAstroTemplate('components/tmux/TmuxUsage.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) @@ -545,11 +604,7 @@ describe('the rendered lists', () => { }) it('cites the line of the core method that sends, and not the generator, beside a generated wrapper', async () => { - const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') - const start = source.indexOf('{commandRows.length > 0 && }', start) + '

}'.length - const stub = `---\nconst { commandRows } = Astro.props\n---\n${source.slice(start, end)}` - const entry = await loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) + const entry = await commandLineTemplate() const rows = tmuxCommandRows(tmuxSymbolSends('kotlin', 'io.github.libtmux.kotlin.Pane.sendKeys'), []).filter((row) => row.scopes.length) expect(rows.length).toBeGreaterThan(0) const page = await renderAstroTemplate(entry, { props: { commandRows: rows } }).then((text) => dom(withoutScope(text))) @@ -560,11 +615,7 @@ describe('the rendered lists', () => { }) it('cannot render a conditional entry without its qualifier, on a command page or a method page', async () => { - const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') - const start = source.indexOf('{commandRows.length > 0 && }', start) + '

}'.length - const stub = `---\nconst { commandRows } = Astro.props\n---\n${source.slice(start, end)}` - const entry = await loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) + const entry = await commandLineTemplate() const conditional = Object.entries(TMUX_USAGE).flatMap(([port, document]) => Object.entries(document.symbols) .flatMap(([symbol, uses]) => uses.filter((use) => use.when).map((use) => ({ port, symbol, use })))) expect(conditional.length).toBeGreaterThan(50) @@ -626,17 +677,11 @@ describe('the rendered lists', () => { }) it('adds the command, flag and C function to the declaration card, and no table', async () => { - const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') - const start = source.indexOf('{commandRows.length > 0 && }', start) + '

}'.length - expect(start).toBeGreaterThan(0) - expect(end).toBeGreaterThan(start) - const stub = `---\nconst { commandRows } = Astro.props\n---\n${source.slice(start, end)}` - const template = await loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) + const template = await commandLineTemplate() const html = (commandRows: ReturnType) => renderAstroTemplate(template, { props: { commandRows } }).then((text) => dom(withoutScope(text))) const method = await html(tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), [])) - expect(method.querySelector('.gp-sphinx-api-mentions')!.textContent!.replace(/\s+/g, ' ').trim()).toBe('tmux command list-panes -a cmd_list_panes_server') + expect(method.querySelector('.gp-sphinx-api-mentions')!.textContent!.replace(/\s+/g, ' ').trim()).toBe('tmux command list-panes -a, cmd_list_panes_server') expect([...method.querySelectorAll('.gp-sphinx-api-mentions a')].map((a) => a.getAttribute('href'))).toEqual([ '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', ]) From 95a2cab3724eca583c97275b06f16635cce6ff76 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 05:31:16 -0500 Subject: [PATCH 16/53] fix(site[tmux-reference]) Serve a preview card for every C declaration page why: Hovering or focusing the C function a method links to (`cmd_list_panes_server` on a method page's "tmux command" line) opened nothing. The link carried `data-link-preview`, because the preview policy marks any /reference// address, and the card asks for `.preview.json`. Nothing served that address for tmux's C reference: the generic preview route covers the manual, the port APIs, glossaries and MCP objects, the catalog has its own, and the tmux reference pages had none. The request answered 404 and the browser, which keeps the real link on a failed preview, showed no card. The same held for every function, struct, enum, macro and attribute linked anywhere on the site. what: - `tmuxReferencePreview` builds the card from the declaration's own record, as the page does: its name, its kind (the chip on the card), its C signature highlighted as C or a macro's definition, the file and line it is declared at in that tmux version, and the source link. tmux's source carries no Doxygen briefs, so there is no description; the card's default line covers it. - `tmux/[version]/reference/[...slug].preview.json` serves one payload for each page of each version the reference builds, at the address the policy asks for. The route is next to the page and its Markdown twin and uses the same static paths, so a declaration with a page has a card. - Tests, in tmux-reference.test.ts: every declaration of every version (latest, 3.7c, 3.2a) is marked for a card by the link policy and has a payload at the endpoint the policy computes; the payload for `cmd_list_panes_server` is a valid card with its signature and its highlighting; macros show their definition and a declaration with no signature gets none. The negative control: a reference address no route serves is marked for a card and is reported, and the generic route's endpoints answer at no declaration's address, which is the state this replaces. - `checkTmuxReferencePreviews` (check-page-readiness.mjs, `--reference-previews` and the full run) hovers the C function link on the C++ method page, reads the card it opens, requests the payload of every link marked for a card on four pages, and checks that a marked link with no payload opens nothing. It was written but not run: no dev server could be started for this change. Not measured: the build adds one small JSON file for each declaration of each version, the same number as its Markdown twin, and highlights each signature. The build time and size of the new route have not been measured. --- site/scripts/check-dev.mjs | 11 ++- site/scripts/check-page-readiness.mjs | 56 +++++++++++++++ site/src/lib/tmux-reference.ts | 20 +++++- .../reference/[...slug].preview.json.ts | 13 ++++ site/test/tmux-reference.test.ts | 68 ++++++++++++++++++- 5 files changed, 163 insertions(+), 5 deletions(-) create mode 100644 site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts diff --git a/site/scripts/check-dev.mjs b/site/scripts/check-dev.mjs index 5225c285d..6e2144a77 100644 --- a/site/scripts/check-dev.mjs +++ b/site/scripts/check-dev.mjs @@ -18,7 +18,7 @@ import { checkHomeExampleOptions } from './check-home-example-options.mjs' import { checkDevSample, checkRowPermalinks } from './check-dev-sample.mjs' import { checkDeclarationControlAlignment, checkDeclarationControlsLevel, checkMemberBodyInsets, checkNativeSignatureGeometry, checkNativeSignatureLinks } from './check-native-layout.mjs' import { checkBadgeCentring, checkChipGrowth, checkMentionDensity } from './check-badge-centring.mjs' -import { checkBlockLinksUndecorated, checkKindBadgeLinks, checkRequiredAppearance, checkWebAnalytics, checkWebAnalyticsTransitions } from './check-page-readiness.mjs' +import { checkBlockLinksUndecorated, checkKindBadgeLinks, checkRequiredAppearance, checkTmuxReferencePreviews, checkWebAnalytics, checkWebAnalyticsTransitions } from './check-page-readiness.mjs' import { checkTypeParameters } from './check-type-parameters.mjs' import { checkTmuxKeys, TMUX_KEY_PAGES } from './check-tmux-keys.mjs' @@ -37,6 +37,7 @@ const globalHeaderOnly = process.argv.includes('--global-header') const headerMenuSectionsOnly = process.argv.includes('--header-menu-sections') const statusBadgesOnly = process.argv.includes('--status-badges') const badgeCentringOnly = process.argv.includes('--badge-centring') +const referencePreviewsOnly = process.argv.includes('--reference-previews') const homeLauncherOnly = process.argv.includes('--home-launcher') const homeControlsOnly = process.argv.includes('--home-controls') const sampleOnly = process.argv.includes('--sample') @@ -746,10 +747,11 @@ try { : keywordHelpOnly ? '/kotlin/latest/reference/io-github-libtmux-kotlin-withserver/' : apiStickyOnly ? '/swift/latest/reference/server/' : badgeCentringOnly ? '/py/stable/guides/attaching-to-tmux/' + : referencePreviewsOnly ? '/cxx/latest/reference/libtmux-server-panes/' : documentationNavigationOnly || headerMenuSectionsOnly || statusBadgesOnly ? '/py/latest/' : apiSignaturesOnly ? '/api-signature-probe/' : apiNavigationOnly ? '/lua/latest/reference/libtmux-server/' : typeParametersOnly ? '/ts/latest/reference/selection-selection-where/' : '/tmux/concepts/server-session-window-pane/' - const fullRun = ![homeLauncherOnly, homeControlsOnly, keywordHelpOnly, apiSignaturesOnly, referenceLayoutOnly, globalHeaderOnly, headerMenuSectionsOnly, statusBadgesOnly, badgeCentringOnly, + const fullRun = ![homeLauncherOnly, homeControlsOnly, keywordHelpOnly, apiSignaturesOnly, referenceLayoutOnly, globalHeaderOnly, headerMenuSectionsOnly, statusBadgesOnly, badgeCentringOnly, referencePreviewsOnly, referencePreferencesOnly, documentationNavigationOnly, apiNavigationOnly, apiAnchorsOnly, typeParametersOnly].some(Boolean) const setupPages = sampleOnly ? [firstPage, '/demo/widgets/pickers/', ...TMUX_KEY_PAGES] : [firstPage, ...(fullRun ? TMUX_KEY_PAGES : [])] @@ -800,6 +802,8 @@ try { await retryReload(() => checkBadgeCentring(browser, base)) await checkMentionDensity(browser, base) await checkChipGrowth(browser, base) + } else if (referencePreviewsOnly) { + await retryReload(() => checkTmuxReferencePreviews(browser, base)) } else if (referencePreferencesOnly) { await retryReload(() => checkReferencePreferences(browser, base)) await retryReload(() => checkGlobalHeader(browser, base)) @@ -877,6 +881,7 @@ try { .then(() => checkMentionDensity(browser, base)) .then(() => checkChipGrowth(browser, base))) const blockLinks = schedule(() => retryReload(() => checkBlockLinksUndecorated(browser, base))) + const referencePreviews = schedule(() => retryReload(() => checkTmuxReferencePreviews(browser, base))) await apiAnchors const apiSticky = schedule(() => retryReload(() => checkApiStickyHeadings(browser, base)) .then(() => checkApiStickyHeadingsFail(browser, base))) @@ -1177,7 +1182,7 @@ try { await page.close() const failures = (await Promise.all([ navigation, apiExamples, reference, preferences, globalHeader, headerMenuSections, statusBadges, apiNavigation, - clipboard, documentationNavigation, homeLauncher, apiAnchors, apiSticky, typeParameters, kindBadges, badgeCentring, blockLinks, + clipboard, documentationNavigation, homeLauncher, apiAnchors, apiSticky, typeParameters, kindBadges, badgeCentring, blockLinks, referencePreviews, ])).filter(Boolean) if (failures.length) throw new AggregateError(failures, 'Browser checks failed') } diff --git a/site/scripts/check-page-readiness.mjs b/site/scripts/check-page-readiness.mjs index 3d14612aa..e79757c66 100644 --- a/site/scripts/check-page-readiness.mjs +++ b/site/scripts/check-page-readiness.mjs @@ -530,3 +530,59 @@ export async function checkBlockLinksUndecorated(browser, base, { sample = false await context.close() } } + +/** + * A link marked for a preview card has a card to show. A C function a method links to carried `data-link-preview` and + * opened nothing, because no preview payload was served at its address. Hovering the link is what asks for the card, + * so hover it and read the card, then ask the same of every marked link on the pages, and of one that has no payload. + */ +export async function checkTmuxReferencePreviews(browser, base) { + const context = await browser.newContext({ reducedMotion: 'reduce', viewport: { width: 1440, height: 1000 } }) + const page = await context.newPage() + page.setDefaultTimeout(process.env.CI ? 20000 : 10000) + const opened = () => page.evaluate(() => document.getElementById('reference-link-preview')?.matches(':popover-open') ?? false) + try { + await page.goto(`${base}/cxx/latest/reference/libtmux-server-panes/`, { waitUntil: 'load' }) + await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') + const link = page.locator('p.gp-sphinx-api-mentions .tmux-send a[data-link-preview]').first() + assert.equal(await link.count(), 1, 'The method page has no C function link marked for a preview') + assert.equal(await link.textContent(), 'cmd_list_panes_server') + await link.hover() + // The first request for a declaration's card compiles its route in the dev server. + await page.waitForFunction(() => document.getElementById('reference-link-preview')?.matches(':popover-open'), null, { timeout: 60000 }) + assert.equal(await page.locator('#reference-link-preview [data-preview-title]').textContent(), 'cmd_list_panes_server') + assert.match(await page.locator('#reference-link-preview [data-preview-signature]').textContent(), /^static void cmd_list_panes_server\(struct cmd \*, struct cmdq_item \*\)$/) + assert.match(await page.locator('#reference-link-preview [data-preview-open]').getAttribute('href'), /\/tmux\/latest\/reference\/c-function-cmd-list-panes-c-cmd_list_panes_server\/$/) + // Every link a page marks for a card has a payload at the address the card asks for. + const missing = [] + let marked = 0 + for (const path of ['/cxx/latest/reference/libtmux-server-panes/', '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', '/tmux/latest/reference/c-struct-window_pane/']) { + await page.goto(`${base}${path}`, { waitUntil: 'load' }) + await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') + const hrefs = await page.evaluate(() => [...new Set([...document.querySelectorAll('a[data-link-preview]')].map((anchor) => new URL(anchor.href).pathname))]) + marked += hrefs.length + for (const href of hrefs) { + const response = await page.request.get(`${base.replace(/\/en$/, '')}${href.slice(0, -1)}.preview.json`) + if (!response.ok()) missing.push(`${path}: ${href} answers ${response.status()}`) + } + } + assert(marked > 3, `Only ${marked} links were marked for a card, so the pages were not measured`) + assert.deepEqual(missing, [], `A link marked for a card that has none:\n${missing.join('\n')}`) + // The control: a link marked for a card whose payload does not exist opens nothing, and the sweep above would name it. + await page.goto(`${base}/tmux/latest/manual/list-panes/`, { waitUntil: 'load' }) + await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') + await page.evaluate(() => { + const anchor = document.createElement('a') + anchor.id = 'no-card' + anchor.href = '/en/tmux/latest/reference/c-function-no-such-declaration/' + anchor.textContent = 'no_such_declaration' + document.querySelector('main').prepend(anchor) + }) + const absent = await page.request.get(`${base.replace(/\/en$/, '')}/en/tmux/latest/reference/c-function-no-such-declaration.preview.json`) + assert.equal(absent.status(), 404, 'The control address answered, so the sweep cannot show a missing payload') + await page.locator('#no-card').hover() + await page.waitForTimeout(700) + assert.equal(await opened(), false, 'A link with no payload opened a card') + console.log(`Tmux reference previews: the C function link of a method page opens its card with its signature; ${marked} marked links on four pages each have a payload; a link with none opens nothing PASS`) + } finally { await context.close() } +} diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index 9aca7a126..f83f4a778 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -1,9 +1,10 @@ /** tmux source data adapted to the shared API reference and navigation. */ -import { navSidecarFor, pageSlug, type ApiSymbol, type SourceApiModel, type SymbolIndex } from '@libtmux/api-model' +import { docSummaryText, navSidecarFor, pageSlug, sourceUrl, type ApiSymbol, type SourceApiModel, type SymbolIndex } from '@libtmux/api-model' import v32 from '../data/tmux/api/3.2a.json?raw' import v37 from '../data/tmux/api/3.7c.json?raw' import pins from '../data/tmux/versions.json' import { createApiIndex, type PortNavData } from './api-models' +import type { LinkPreview } from './link-preview' import { navTreeFor, referenceTreeFor, referenceBreadcrumbs } from './api-tree' import { apiRelationshipPath } from './api-relationships' import { PORTS } from './ports' @@ -324,6 +325,23 @@ export function tmuxSymbolSends(port: string, publicId: string, version = 'lates }), })) } +/** + * The card a link to a declaration of tmux's C source opens, from the same record as the page it leads to. tmux's source + * carries no Doxygen briefs, so the card says where the declaration is and shows it, which is what a reader following a + * link from a method wants to see before leaving the page. + */ +export function tmuxReferencePreview(version: string, symbol: ApiSymbol): LinkPreview { + const model = tmuxSourceModel(version) + const signature = symbol.signatures[0]?.raw ?? (symbol.value !== undefined ? `${symbol.name} = ${symbol.value}` : undefined) + const summary = symbol.doc?.summary ?? symbol.signatures.find((entry) => entry.doc?.summary)?.doc?.summary + return { + schema: 1, title: symbol.name, kind: symbol.kind, + description: summary ? docSummaryText(summary, 'c') : '', + detail: `Defined in ${symbol.source.file}${symbol.source.line ? `, line ${symbol.source.line}` : ''} of tmux ${model.version}.`, + signature, signatureLanguage: signature ? 'c' : undefined, + href: tmuxReferenceUrl(version, symbol), source: sourceUrl(model, symbol), + } +} export function tmuxReferenceRoutes() { return buildsTmuxDocumentation() ? TMUX_VERSIONS.flatMap((version) => [ { version, symbol: undefined as ApiSymbol | undefined }, diff --git a/site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts b/site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts new file mode 100644 index 000000000..e2f12f2ca --- /dev/null +++ b/site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts @@ -0,0 +1,13 @@ +import type { APIRoute } from 'astro' +import { highlightedPreview } from '../../../../lib/link-preview' +import { tmuxReferencePreview, tmuxReferenceRoutes } from '../../../../lib/tmux-reference' + +/** A preview for every declaration page, at the address the link-preview policy asks for: the page's path with `.preview.json`. */ +export function getStaticPaths() { + return tmuxReferenceRoutes().filter(({ symbol }) => symbol).map(({ version, symbol }) => ({ + params: { version, slug: symbol!.slug }, props: { version, symbol: symbol! }, + })) +} +export const GET: APIRoute = async ({ props }) => new Response(JSON.stringify(await highlightedPreview(tmuxReferencePreview(props.version, props.symbol))), { + headers: { 'Content-Type': 'application/json; charset=utf-8' }, +}) diff --git a/site/test/tmux-reference.test.ts b/site/test/tmux-reference.test.ts index 43685a77c..5962a4fd9 100644 --- a/site/test/tmux-reference.test.ts +++ b/site/test/tmux-reference.test.ts @@ -1,12 +1,16 @@ import { describe, expect, it } from 'vitest' import { readInventory, sourceUrl, writeInventory } from '@libtmux/api-model' -import { tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferencePaths, tmuxReferenceTree, tmuxReferenceUrl, tmuxReferenceVersionUrl, tmuxSourceCommands, tmuxSourceModel } from '../src/lib/tmux-reference' +import { tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferencePaths, tmuxReferencePreview, tmuxReferenceTree, tmuxReferenceUrl, tmuxReferenceVersionUrl, tmuxSourceCommands, tmuxSourceModel } from '../src/lib/tmux-reference' import { tmuxManual, tmuxManualUrl } from '../src/lib/tmux-manual-data' import { referenceIndexSectionsFor } from '../src/lib/api-tree' import { searchApi } from '../src/lib/api-search' import { symbolMarkdown } from '../src/lib/symbol-markdown' import { relatedApiTypes } from '../src/lib/api-sections' import { PORTS } from '../src/lib/ports' +import { linkPreviewTarget } from '../src/lib/link-preview-paint' +import { TMUX_VERSIONS } from '../src/lib/tmux-manual-data' +import { GET, getStaticPaths } from '../src/pages/tmux/[version]/reference/[...slug].preview.json' +import { getStaticPaths as genericPreviewPaths } from '../src/pages/[...slug].preview.json' describe.each(['3.7c', '3.2a'])('tmux %s through the shared API system', (version) => { const model = tmuxSourceModel(version) @@ -116,3 +120,65 @@ it('describes an anonymous C value without converting it to a function signature expect(text).toContain('window_copy_cmd_table: anonymous struct.') expect(text).not.toContain('window_copy_cmd_table()') }) + +describe('the card a link to a C declaration opens', () => { + const origin = 'https://libtmux.org' + /** The addresses the preview route answers at: the page's path with `.preview.json`, as the link policy asks for it. */ + const served = (paths: { params: { version: string; slug: string } }[]) => new Set(paths.map(({ params }) => `/tmux/${params.version}/reference/${params.slug}.preview.json`)) + /** The links, among `hrefs`, that the policy marks for a card and that no preview address answers. */ + const unanswered = (hrefs: string[], answered: Set) => hrefs.filter((href) => { + const target = linkPreviewTarget(href, origin) + return target !== undefined && !answered.has(target.endpoint) + }) + const answered = served(getStaticPaths() as never) + + it('answers for every function, struct, enum, constant and attribute of every version, at the address the policy asks for', () => { + expect(TMUX_VERSIONS).toContain('latest') + for (const version of TMUX_VERSIONS) { + const hrefs = tmuxSourceModel(version).symbols.map((symbol) => tmuxReferenceUrl(version, symbol)) + expect(hrefs.length, version).toBeGreaterThan(1000) + // Every link is marked for a card, so each one must have a payload behind it. + expect(hrefs.filter((href) => linkPreviewTarget(href, origin) === undefined), version).toEqual([]) + expect(unanswered(hrefs, answered), version).toEqual([]) + } + expect(new Set(tmuxSourceModel('latest').symbols.map((symbol) => symbol.kind))).toEqual(new Set(['function', 'struct', 'enum', 'constant', 'attribute', 'typealias', 'union'])) + }) + + it('serves a card for the C function a method links to, with its signature, highlighted as C', async () => { + const symbol = tmuxSourceModel('latest').symbols.find((entry) => entry.name === 'cmd_list_panes_server')! + const href = tmuxReferenceUrl('latest', symbol) + expect(href).toBe('/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/') + const endpoint = linkPreviewTarget(href, origin)!.endpoint + expect(endpoint).toBe('/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server.preview.json') + const path = getStaticPaths().find(({ params }) => `/tmux/${params.version}/reference/${params.slug}.preview.json` === endpoint)! + expect(path).toBeDefined() + const response = await GET(path as never) + expect(response.headers.get('Content-Type')).toBe('application/json; charset=utf-8') + const card = await response.json() + // What the browser requires of a payload before it shows a card. + expect(card).toMatchObject({ schema: 1, title: 'cmd_list_panes_server', kind: 'function', href, signature: 'static void cmd_list_panes_server(struct cmd *, struct cmdq_item *)', signatureLanguage: 'c' }) + expect(typeof card.description).toBe('string') + expect(new URL(card.href, origin).origin).toBe(origin) + expect(card.detail).toMatch(/^Defined in cmd-list-panes\.c, line \d+ of tmux \d/) + expect(card.signatureHighlight.language).toBe('c') + expect(card.signatureHighlight.lines.map((line: { content: string }[]) => line.map((token) => token.content).join('')).join('\n')).toBe(card.signature) + // A macro shows its definition, and a declaration with no signature to show gets a card without one, not an invented one. + const model = tmuxSourceModel('latest') + const macro = model.symbols.find((entry) => entry.name === 'ARGS_ENTRY_OPTIONAL_VALUE')! + expect(tmuxReferencePreview('latest', macro).signature).toBe(macro.signatures[0].raw) + const bare = model.symbols.find((entry) => !entry.signatures[0]?.raw && entry.value === undefined)! + expect(tmuxReferencePreview('latest', bare)).toMatchObject({ schema: 1, title: bare.name, signature: undefined, signatureLanguage: undefined }) + }) + + it('catches a link with no card behind it, and the preview route that the generic one never covered', () => { + const real = tmuxReferenceUrl('latest', tmuxSourceModel('latest').symbols.find((entry) => entry.name === 'cmd_list_panes_server')!) + const invented = '/tmux/latest/reference/c-function-no-such-declaration/' + // The control: the policy marks the invented address for a card, and nothing answers there. + expect(linkPreviewTarget(invented, origin)).toBeDefined() + expect(unanswered([real, invented], answered)).toEqual([invented]) + // Before this route, the generic one was all there was, and it answers at no declaration's address. + const generic = new Set(genericPreviewPaths().map((path) => `/${path.params.slug}.preview.json`)) + expect(generic.size).toBeGreaterThan(100) + expect(unanswered([real], generic)).toEqual([real]) + }) +}) From be201e3f44cd7acdcfe037b3a461ecbf2dc3f394 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 06:52:17 -0500 Subject: [PATCH 17/53] fix(site[tmux-usage]) Say when a library refuses a release, and record the sends the review of b8f892310 found missing why: A review of b8f892310 found that java, kotlin and scala `Pane.paste` and `Buffers.delete` throw UnsupportedFeatureException before tmux 3.4 (Pane.java:961-964, :1015-1017; Buffers.java:108-110), though java supports 3.2a and load-buffer, paste-buffer and delete-buffer exist there, so eleven entries said nothing of it. The README carved out "a refusal below some release" without saying which: a command tmux itself lacks needs no `when`, and a command that exists and that the library will not send does. The same probe found the rule broken in lua (`Server:delete_buffer` refuses before 3.4) and go (`ConfirmBefore` and `CommandPrompt` always send `-b`, which tmux has from 3.3). It also found `Shell.capturing`'s qualifier wrong (the guard refuses every release from 3.3 until 3.5, not "3.3a and 3.4"), go's `tmuxtest.NewSession` kill-session with the `when` removed in 5c4a7cc2b without a word in its message, ts `main`'s display-message qualified as minimal-only though an explicit launch sends it once the server is alive (startup.ts:107-111), java `Main.main` citing the explicit-socket path rather than the default dedicated one, ruby's `builtin_spellings` sending list-commands (operations.rb:137) as well as show-options on every guarded call, and sends that no entry recorded. what: - Release refusals: java, kotlin and scala `Pane.paste` (load-buffer, paste-buffer) and `Buffers.delete` (delete-buffer) say "except before tmux 3.4" (eleven entries; java carries the condition, the wrappers inherit it), as does lua's `delete_buffer`; go's `ConfirmBefore` and `CommandPrompt` say "except before tmux 3.3". `Shell.capturing` says "except from tmux 3.3 until 3.5" in java, kotlin and scala, with the lines that define both bounds. - The README states the rule: a command that exists on a supported release and that the library will not send there says `when`; a command that does not exist before a release needs none. I applied it to `new-pane` and decided it needs none: tmux has no such command before 3.7, C# and Go refuse by version before sending and Python sends and lets tmux refuse, and the command's page is the manual of the releases that have it. Java's `show-prompt-history` (found missing in list-commands) is the same. A refusal that depends on an argument is neither. - go `tmuxtest.NewSession` kill-session has its `when` back ("the test ends, in t.Cleanup"; resources.go:132-139): the helper registers the kill for the end of the test, which is not what a call sends, and dropping the qualifier made the entry read as if it did. - ts `main`: start-server and show-options stay "a minimal launch, no explicit selection" (startup.ts:88-89), and display-message is "unless an explicit launch finds no server". I did not make it unconditional as the review asked: an explicit launch against an absent server reaches `return` at startup.ts:124 without sending it, so an unconditional entry would be false there. java `main` cites LaunchConfiguration.java:111, the default dedicated path (every launch sends it, so no `when`), and records start-server (:106) "the launch chooses no socket". - Ruby: list-commands is recorded as incidental on the nine symbols that have show-options (the six WindowLink methods, Session#kill with its `when`, and both switch_client), and the `switch_client` exclusion is gone: its reason, that the caller did not ask for the listing, is the definition of incidental, and the README says an exclusion is what a default call does not send. - Sends added: ts `selectWindow` select-window "the target is not last, next or previous"; scala `cats.Batch.run` display-message (via java); go `Pane.OpenObservation` list-windows at session scope (control_observation.go:350); julia `observe_output` list-windows at session scope, and show-options on `set_option`, `unset_option`, `set_hook` and `unset_hook` as incidental "on a Server" (their ControlConnection methods read no option rows). - The README documents `MAX_HOPS` (1) and `MAX_SHARED_BY` (4) as limits on recall, and how a send they leave out is recorded; it no longer says one condition that every scope shares follows the command (e2bc03a3b: each scope says its own). - Tests: the eleven entries and the controls that make the rule mean something (`Pane.pasteBuffer`, and the `new-pane` entries of csharp, go and py carry no `when`), the launch conditions, and the ruby pair on the same nine symbols. Entries 1834 to 1851 (go 227 to 228, java 126 to 127, julia 68 to 73, ruby 109 to 118, scala 188 to 189). Conditions 99 to 122 (go 20 to 23, java 4 to 8, julia 11 to 15, kotlin 4 to 7, lua 3 to 4, ruby 2 to 3, scala 5 to 11, ts 11 to 12). --- scripts/README.md | 64 +++- scripts/tmux-usage/claims.json | 533 ++++++++++++++++++++++++++- scripts/tmux-usage/conditions.json | 243 +++++++++++- scripts/tmux-usage/exclusions.json | 25 -- site/src/data/tmux-usage/go.json | 18 +- site/src/data/tmux-usage/java.json | 26 +- site/src/data/tmux-usage/julia.json | 63 ++++ site/src/data/tmux-usage/kotlin.json | 11 +- site/src/data/tmux-usage/lua.json | 6 +- site/src/data/tmux-usage/ruby.json | 98 +++++ site/src/data/tmux-usage/scala.json | 39 +- site/src/data/tmux-usage/ts.json | 5 +- site/test/tmux-library-usage.test.ts | 70 +++- 13 files changed, 1138 insertions(+), 63 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index 8e7e23e18..549790528 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -255,6 +255,18 @@ type's, a call on a handle named for a type is that type's, and a call on anything else is left unresolved, so `Pane.split` calling `options.into_command` is not a call of `CaptureOptions::into_command`. +Two limits bound what the scan finds, and each is a limit on recall: what it +leaves out is not recorded unless a claim records it. `MAX_HOPS` is 1: a send +that a symbol reaches through two helpers is not credited to it (Julia's +`set_option` reaches the `show-options` that checks the option exists through +`_configuration_option_rows` and `_configuration_rows`, so it is a claim). +`MAX_SHARED_BY` is 4: a helper that more than four public symbols reach is not +credited to any of them, because its callers cannot be told apart (Julia's +identity probe at `acquisition.jl:50`). `--report` lists what each limit left out +(`no public symbol reaches it`, `a helper shared by N public symbols`), and a +send that is what a method is for, or that it makes on every call, belongs in a +claim. + Only public API is recorded: a symbol with an underscore name, a `private` modifier or an internal scope is left out of the scan and refused in a document. So is a member whose signature spells a narrower visibility (`protected`, @@ -290,7 +302,10 @@ negative script seeds a rule that is wrong: `copy-mode` branch of a helper that `enterCopyMode` shares), or a request option that a wrapper never sets. Each cites the lines that show the guard, an exclusion that removes nothing fails, and `commands` limits it to those - commands of the symbols it names. + commands of the symbols it names. A send that every default call makes is not an + exclusion, even when the method only makes it to prepare the call: it is + `incidental`, as the command-alias inventory a guarded Ruby call reads before + it sends is (`show-options` and `list-commands`, on the same nine symbols). - `dispatchers.json`: the calls that send what they are given, per port, and the calls that only build a command value. Each cites the lines of the pinned source that show it and, for a call that sends, the chain from there to a @@ -325,16 +340,41 @@ negative script seeds a rule that is wrong: A `when` is at most eight words on one line, because the usage table shows it beside the method (a muted qualifier on the chip, and after the command link on a method page); a longer reason belongs on a page. An entry that is conditional -cannot be rendered without it. When a command is sent at two scopes under two -conditions, each scope says its own beside it; one condition that every scope -shares follows the command. Writing a `when` for a condition that is always true -of the method (`Hooks#unset` sending `set-hook` "on a Hooks") qualifies nothing. +cannot be rendered without it. Each scope of a send says its own condition: on a +method page the item for that scope ends with it in parentheses +(`list-panes -s, cmd_list_panes_session (the spec names a first window)`), in the +Markdown the scope is followed by its own parenthesis, and in the usage table it +sits beside the chip. A command sent at two scopes under two conditions says each +beside its own scope, and a condition that every scope shares is said again on each, +so that no item has to be read with another. Writing a `when` for a condition that +is always true of the method (`Hooks#unset` sending `set-hook` "on a Hooks") +qualifies nothing. The same rule applies to a tmux release. A send made on every supported release -but some says which in `when` (`Shell.capturing` refuses on 3.3a and 3.4: "except -on tmux 3.3a and 3.4"). A send made on one release only, such as the rename that -`breakOut` adds on tmux 3.7 to give the window the name that release ignores, is -an exclusion, because it is not what a call does on the others. +but some says which in `when`. That includes a command that exists on a supported +release and that the library refuses to send there: + +- `Shell.capturing` refuses from tmux 3.3 until 3.5, a range (the guard is + `atLeast(3.3) && !atLeast(3.5)`, so 3.3, 3.3a and 3.4 all refuse): "except from + tmux 3.3 until 3.5". +- `Pane.paste` and `Buffers.delete` refuse before 3.4, where deleting a buffer by + name can remove another, so `load-buffer`, `paste-buffer` and `delete-buffer` + say "except before tmux 3.4" in Java, Kotlin and Scala, and so does Lua's + `Server:delete_buffer`. Go's `ConfirmBefore` and `CommandPrompt` always send + `-b`, which tmux has from 3.3, and refuse before it: "except before tmux 3.3". + +A command that does not exist before a release needs no `when`. tmux has no +`new-pane` before 3.7, so the `new-pane` entries of C# and Go (which refuse by +version before sending) and of Python (which sends it and lets tmux refuse) carry +none, and neither does a command the library finds missing in `list-commands` +(Java's `show-prompt-history`): the command's page is the manual of the releases +that have it, and a method does not send the command on a release that lacks it +in a way that differs from what it does on the others. A refusal that depends on +an argument (a layout preset, a client filter, a flag newer than the release) is +not what a default call does, and is neither a `when` nor an entry. A send made on +one release only, such as the rename that `breakOut` adds on tmux 3.7 to give the +window the name that release ignores, is an exclusion, because it is not what a +call does on the others. Go's wrappers that call a method of another type on a handle named for it (`p.server.X()`) are credited with that method's entries, as a wrapper on a core @@ -358,8 +398,10 @@ is `version-gated`, and is recorded as neither; its review cites the gate, both branches and the line that sets the supported floor below the gate, so that the range the gate splits is shown to be supported. When a later revision raises the floor past the gate, the fallback is gone and the method is recorded as sending -the command that remains. A refusal below some release (`new-pane` before 3.7) is -not a gate of this kind: the method sends that command whenever it sends. +the command that remains. A refusal below some release is not a gate of this kind, +because no other command takes its place: the entry says `when` if the command +exists on the releases it refuses, and says nothing if the command does not exist +there (above). A claim, an exclusion or a review without a `revision` is read against the revision its port's model was extracted from. One with a `revision` is read diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 9ff10acf9..0d2fa8c3b 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -2013,7 +2013,7 @@ "symbol": "mcp.server.main", "command": "display-message", "scope": null, - "when": "a minimal launch, no explicit selection", + "when": "unless an explicit launch finds no server", "evidence": [ { "at": "packages/mcp/src/startup.ts:92", @@ -8878,6 +8878,7 @@ "symbol": "libtmux.Server:delete_buffer", "command": "delete-buffer", "scope": null, + "when": "except before tmux 3.4", "evidence": [ { "at": "lua/libtmux/_internal/buffer.lua:9", @@ -8897,6 +8898,12 @@ "\"delete\"" ], "in": "libtmux.Server:delete_buffer" + }, + { + "at": "lua/libtmux/_internal/buffer.lua:125", + "has": [ + "kind == \"delete\" and version < 4" + ] } ] }, @@ -10066,6 +10073,26 @@ } ] }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Batch.run", + "command": "display-message", + "scope": null, + "when": "the batch is not empty", + "via": { + "port": "java", + "symbol": "io.github.libtmux.batch.Batch.Batch.run" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala:26", + "has": [ + "build().run()" + ], + "in": "io.github.libtmux.scaladsl.cats.Batch.run" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::Server#attach", @@ -10223,6 +10250,7 @@ "symbol": "tmuxtest.NewSession", "command": "kill-session", "scope": null, + "when": "the test ends, in t.Cleanup", "evidence": [ { "at": "tmux/tmuxtest/resources.go:135", @@ -10813,6 +10841,181 @@ } ] }, + { + "port": "julia", + "symbol": "LibTmux.set_option", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:279", + "has": [ + "_configuration_option_rows(context, scope, args.name)" + ], + "in": "LibTmux.set_option" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unset_option", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:292", + "has": [ + "_configuration_option_rows(context, scope, args.name)" + ], + "in": "LibTmux.unset_option" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.set_hook", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:403", + "has": [ + "_configuration_option_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:477", + "has": [ + "_configuration_hook_rows(context, scope, args.name)" + ], + "in": "LibTmux.set_hook" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unset_hook", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:403", + "has": [ + "_configuration_option_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:485", + "has": [ + "_configuration_hook_rows(context, scope, args.name)" + ], + "in": "LibTmux.unset_hook" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.observe_output", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "src/observation.jl:503", + "has": [ + "_control_rows(", + "\"list-windows\"" + ], + "span": 4 + }, + { + "at": "src/observation.jl:535", + "has": [ + "_observation_target(connection, pane, started, timeout, cancel)" + ], + "in": "LibTmux.observe_output" + } + ] + }, { "port": "cxx", "symbol": "libtmux::Connection::set_pane_output", @@ -12605,6 +12808,61 @@ ], "incidental": true }, + { + "port": "java", + "symbol": "io.github.libtmux.mcp.Main.Main.main", + "command": "start-server", + "scope": null, + "when": "the launch chooses no socket", + "evidence": [ + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:106", + "has": [ + "server.cmd(\"start-server\"" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "has": [ + "dedicatedProfile(server)" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52", + "has": [ + "launch.profile(server)" + ], + "in": "io.github.libtmux.mcp.Main.Main.main" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.mcp.Main.Main.main", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111", + "has": [ + "server.cmd(\"display-message\"" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "has": [ + "dedicatedProfile(server)" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52", + "has": [ + "launch.profile(server)" + ], + "in": "io.github.libtmux.mcp.Main.Main.main" + } + ] + }, { "port": "go", "symbol": "tmux.Server.SearchSessions", @@ -12989,6 +13247,29 @@ ], "incidental": true }, + { + "port": "go", + "symbol": "tmux.Pane.OpenObservation", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "tmux/control_observation.go:346", + "has": [ + "c.cmd(", + "\"list-windows\"" + ], + "span": 9 + }, + { + "at": "tmux/control_observation.go:301", + "has": [ + "client.observePane(ctx, p)" + ], + "in": "tmux.Pane.OpenObservation" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::WindowLink#display", @@ -13029,6 +13310,35 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#display", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:245", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#display" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::WindowLink#kill", @@ -13069,6 +13379,35 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#kill", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:228", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#kill" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::WindowLink#move", @@ -13109,6 +13448,35 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#move", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:235", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#move" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::WindowLink#select", @@ -13149,6 +13517,35 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#select", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:220", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#select" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::WindowLink#swap", @@ -13189,6 +13586,35 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#swap", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:240", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#swap" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::WindowLink#unlink", @@ -13229,6 +13655,35 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#unlink", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:224", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#unlink" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::Session#kill", @@ -13270,6 +13725,36 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "list-commands", + "scope": null, + "incidental": true, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:165", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", \"kill-session\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ], + "in": "LibTmux::Session#kill" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::Server#switch_client", @@ -13304,6 +13789,29 @@ } ] }, + { + "port": "ruby", + "symbol": "LibTmux::Server#switch_client", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Server#switch_client" + } + ] + }, { "port": "ruby", "symbol": "LibTmux::Async::Server#switch_client", @@ -13337,6 +13845,29 @@ "in": "LibTmux::Async::Server#switch_client" } ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#switch_client", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Async::Server#switch_client" + } + ] } ] } diff --git a/scripts/tmux-usage/conditions.json b/scripts/tmux-usage/conditions.json index 59194c791..3d291ea79 100644 --- a/scripts/tmux-usage/conditions.json +++ b/scripts/tmux-usage/conditions.json @@ -430,8 +430,22 @@ "symbol": "io.github.libtmux.Shell.Shell.capturing", "command": "run-shell", "scope": null, - "when": "except on tmux 3.3a and 3.4", + "when": "except from tmux 3.3 until 3.5", "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:22", + "has": [ + "OUTPUT_LOST", + "new TmuxVersion(3, 3" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:24", + "has": [ + "OUTPUT_FOUND", + "new TmuxVersion(3, 5" + ] + }, { "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:50", "has": [ @@ -479,6 +493,233 @@ ] } ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste", + "command": "load-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:962", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:963", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:36", + "has": [ + "EXACT_NAMED_DELETE", + "new TmuxVersion(3, 4" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:971", + "has": [ + "server.runTogether(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1015", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1016", + "has": [ + "throw new UnsupportedFeatureException(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste", + "command": "paste-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:962", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:963", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:36", + "has": [ + "EXACT_NAMED_DELETE", + "new TmuxVersion(3, 4" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:971", + "has": [ + "server.runTogether(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1015", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1016", + "has": [ + "throw new UnsupportedFeatureException(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.delete", + "command": "delete-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:108", + "has": [ + "running.atLeast(EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:109", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:36", + "has": [ + "EXACT_NAMED_DELETE", + "new TmuxVersion(3, 4" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:111", + "has": [ + "\"delete-buffer\"" + ] + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "select-window", + "scope": null, + "when": "the target is not last, next or previous", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:34", + "has": [ + "target === \"last\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:35", + "has": [ + "target === \"next\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:36", + "has": [ + "target === \"previous\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:40", + "has": [ + "\"select-window\"" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.ConfirmBefore", + "command": "confirm-before", + "scope": null, + "when": "except before tmux 3.3", + "evidence": [ + { + "at": "tmux/server_interactive.go:9", + "has": [ + "serverInteractiveVersion33", + "raw: \"3.3\"" + ] + }, + { + "at": "tmux/server_interactive.go:192", + "has": [ + "current.AtLeast(serverInteractiveVersion33)" + ] + }, + { + "at": "tmux/server_interactive.go:193", + "has": [ + "&VersionTooLowError{" + ] + }, + { + "at": "tmux/server_interactive.go:223", + "has": [ + "s.literalCmd(ctx, arguments...)" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.CommandPrompt", + "command": "command-prompt", + "scope": null, + "when": "except before tmux 3.3", + "evidence": [ + { + "at": "tmux/server_interactive.go:9", + "has": [ + "serverInteractiveVersion33", + "raw: \"3.3\"" + ] + }, + { + "at": "tmux/server_interactive.go:240", + "has": [ + "current.AtLeast(serverInteractiveVersion33)" + ] + }, + { + "at": "tmux/server_interactive.go:241", + "has": [ + "&VersionTooLowError{" + ] + }, + { + "at": "tmux/server_interactive.go:301", + "has": [ + "s.literalCmd(ctx, arguments...)" + ] + } + ] } ] } diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index 49c63a454..1d86aed8a 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -405,31 +405,6 @@ } ] }, - { - "port": "ruby", - "owner": "Server", - "names": [ - "switch_client" - ], - "commands": [ - "list-commands" - ], - "why": "switch_client asks list-commands which spelling of switch-client a configured command-alias leaves alone, as a fence before the command it sends; the caller did not ask for the listing.", - "evidence": [ - { - "at": "gems/libtmux/lib/libtmux/terminal.rb:41", - "has": [ - "builtin_spellings(\"switch-client\"" - ] - }, - { - "at": "gems/libtmux/lib/libtmux/operations.rb:137", - "has": [ - "\"list-commands\"" - ] - } - ] - }, { "port": "ts", "owner": "Pane", diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 2b907cac6..0cfca0dde 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -745,6 +745,15 @@ ], "scope": null }, + { + "command": "list-windows", + "evidence": [ + "tmux/control_observation.go:346", + "tmux/control_observation.go:301" + ], + "reviewed": true, + "scope": "session" + }, { "command": "refresh-client", "evidence": [ @@ -1176,7 +1185,8 @@ "evidence": [ "tmux/server_interactive.go:301" ], - "scope": null + "scope": null, + "when": "except before tmux 3.3" } ], "tmux.Server.ConfirmBefore": [ @@ -1185,7 +1195,8 @@ "evidence": [ "tmux/server_interactive.go:223" ], - "scope": null + "scope": null, + "when": "except before tmux 3.3" } ], "tmux.Server.DeleteBuffer": [ @@ -2685,7 +2696,8 @@ "tmux/tmuxtest/resources.go:56" ], "reviewed": true, - "scope": null + "scope": null, + "when": "the test ends, in t.Cleanup" }, { "command": "new-session", diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json index 3a3e7ddcb..4216348c7 100644 --- a/site/src/data/tmux-usage/java.json +++ b/site/src/data/tmux-usage/java.json @@ -118,7 +118,8 @@ "evidence": [ "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" ], - "scope": null + "scope": null, + "when": "except before tmux 3.4" } ], "io.github.libtmux.Buffers.Buffers.list": [ @@ -484,10 +485,23 @@ { "command": "display-message", "evidence": [ - "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:90", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52" ], + "reviewed": true, "scope": null + }, + { + "command": "start-server", + "evidence": [ + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:106", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52" + ], + "reviewed": true, + "scope": null, + "when": "the launch chooses no socket" } ], "io.github.libtmux.MessageLog.MessageLog.lines": [ @@ -688,14 +702,16 @@ "evidence": [ "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], - "scope": null + "scope": null, + "when": "except before tmux 3.4" }, { "command": "paste-buffer", "evidence": [ "libtmux/src/main/java/io/github/libtmux/Pane.java:971" ], - "scope": null + "scope": null, + "when": "except before tmux 3.4" } ], "io.github.libtmux.Pane.Pane.pasteBuffer": [ @@ -1162,7 +1178,7 @@ "libtmux/src/main/java/io/github/libtmux/Shell.java:55" ], "scope": null, - "when": "except on tmux 3.3a and 3.4" + "when": "except from tmux 3.3 until 3.5" } ], "io.github.libtmux.Shell.Shell.choose": [ diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 4ec59bfd3..22d9f8011 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -326,6 +326,15 @@ ], "scope": null }, + { + "command": "list-windows", + "evidence": [ + "src/observation.jl:503", + "src/observation.jl:535" + ], + "reviewed": true, + "scope": "session" + }, { "command": "refresh-client", "evidence": [ @@ -572,6 +581,20 @@ "src/configuration.jl:478" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:403", + "src/configuration.jl:477" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" } ], "LibTmux.set_option": [ @@ -581,6 +604,19 @@ "src/configuration.jl:280" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:279" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" } ], "LibTmux.snapshot": [ @@ -728,6 +764,20 @@ "src/configuration.jl:486" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:403", + "src/configuration.jl:485" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" } ], "LibTmux.unset_option": [ @@ -737,6 +787,19 @@ "src/configuration.jl:293" ], "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:292" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" } ] } diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json index 691843a2f..65ab18820 100644 --- a/site/src/data/tmux-usage/kotlin.json +++ b/site/src/data/tmux-usage/kotlin.json @@ -153,7 +153,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.delete" - } + }, + "when": "except before tmux 3.4" } ], "io.github.libtmux.kotlin.Buffers.list": [ @@ -1031,7 +1032,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" - } + }, + "when": "except before tmux 3.4" }, { "command": "paste-buffer", @@ -1047,7 +1049,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" - } + }, + "when": "except before tmux 3.4" } ], "io.github.libtmux.kotlin.Pane.pasteBuffer": [ @@ -1928,7 +1931,7 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.capturing" }, - "when": "except on tmux 3.3a and 3.4" + "when": "except from tmux 3.3 until 3.5" } ], "io.github.libtmux.kotlin.Shell.choose": [ diff --git a/site/src/data/tmux-usage/lua.json b/site/src/data/tmux-usage/lua.json index 8e4f7c1e4..e9ab254ce 100644 --- a/site/src/data/tmux-usage/lua.json +++ b/site/src/data/tmux-usage/lua.json @@ -413,10 +413,12 @@ "evidence": [ "lua/libtmux/_internal/buffer.lua:9", "lua/libtmux/_internal/buffer.lua:140", - "lua/libtmux/_internal/server.lua:448" + "lua/libtmux/_internal/server.lua:448", + "lua/libtmux/_internal/buffer.lua:125" ], "reviewed": true, - "scope": null + "scope": null, + "when": "except before tmux 3.4" } ], "libtmux.Server:detach_client": [ diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json index d459e458e..ae76886be 100644 --- a/site/src/data/tmux-usage/ruby.json +++ b/site/src/data/tmux-usage/ruby.json @@ -305,6 +305,16 @@ } ], "LibTmux::Async::Server#switch_client": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "show-options", "evidence": [ @@ -818,6 +828,16 @@ } ], "LibTmux::Server#switch_client": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "show-options", "evidence": [ @@ -899,6 +919,18 @@ "reviewed": true, "scope": null }, + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:165", + "gems/libtmux/lib/libtmux/operations.rb:257" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "expected windows or panes are given" + }, { "command": "show-options", "evidence": [ @@ -1074,6 +1106,17 @@ ], "scope": null }, + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:245" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "show-options", "evidence": [ @@ -1096,6 +1139,17 @@ ], "scope": null }, + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:228" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "show-options", "evidence": [ @@ -1111,6 +1165,17 @@ } ], "LibTmux::WindowLink#move": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:235" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "move-window", "evidence": [ @@ -1133,6 +1198,17 @@ } ], "LibTmux::WindowLink#select": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:220" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "select-window", "evidence": [ @@ -1155,6 +1231,17 @@ } ], "LibTmux::WindowLink#swap": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:240" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "show-options", "evidence": [ @@ -1177,6 +1264,17 @@ } ], "LibTmux::WindowLink#unlink": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:224" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, { "command": "show-options", "evidence": [ diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json index 617524eb4..3a40f0ebe 100644 --- a/site/src/data/tmux-usage/scala.json +++ b/site/src/data/tmux-usage/scala.json @@ -97,6 +97,28 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "schemaVersion": 1, "symbols": { + "io.github.libtmux.scaladsl.cats.Batch.run": [ + { + "command": "display-message", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala:26" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.batch.Batch.Batch.run" + }, + "when": "the batch is not empty" + } + ], "io.github.libtmux.scaladsl.cats.Buffers.delete": [ { "command": "delete-buffer", @@ -113,7 +135,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Buffers.Buffers.delete" - } + }, + "when": "except before tmux 3.4" } ], "io.github.libtmux.scaladsl.cats.Buffers.list": [ @@ -1037,7 +1060,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" - } + }, + "when": "except before tmux 3.4" }, { "command": "paste-buffer", @@ -1054,7 +1078,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" - } + }, + "when": "except before tmux 3.4" } ], "io.github.libtmux.scaladsl.cats.Pane.pasteBuffer": [ @@ -1982,7 +2007,7 @@ "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Shell.Shell.capturing" }, - "when": "except on tmux 3.3a and 3.4" + "when": "except from tmux 3.3 until 3.5" } ], "io.github.libtmux.scaladsl.cats.Shell.choose": [ @@ -2579,7 +2604,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" - } + }, + "when": "except before tmux 3.4" }, { "command": "paste-buffer", @@ -2596,7 +2622,8 @@ "port": "java", "revision": "a0ecbc16da00140e2520462d478a2af470878272", "symbol": "io.github.libtmux.Pane.Pane.paste" - } + }, + "when": "except before tmux 3.4" } ], "io.github.libtmux.scaladsl.Pane.pasteBuffer": [ diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index 313aed0e3..43063d3cf 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -126,7 +126,7 @@ ], "reviewed": true, "scope": null, - "when": "a minimal launch, no explicit selection" + "when": "unless an explicit launch finds no server" }, { "command": "show-options", @@ -987,7 +987,8 @@ "packages/libtmux/src/_internal/operations/session_nav.ts:40", "packages/libtmux/src/session.ts:378" ], - "scope": null + "scope": null, + "when": "the target is not last, next or previous" } ], "session.Session.setEnvironment": [ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index f2644addd..b9f63b687 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -314,6 +314,64 @@ describe('which sends through a helper are listed', () => { }) }) +describe('a release a library refuses to send on', () => { + const use = (port: string, symbol: string, command: string) => TMUX_USAGE[port].symbols[symbol]?.find((entry) => entry.command === command) + + it('says so on a command that exists on a supported release and that the library will not send there', () => { + // Pane.paste and Buffers.delete throw before tmux 3.4, where deleting a named buffer can remove another; java supports 3.2a. + const refused = [ + ['java', 'io.github.libtmux.Pane.Pane.paste', ['load-buffer', 'paste-buffer']], + ['java', 'io.github.libtmux.Buffers.Buffers.delete', ['delete-buffer']], + ['kotlin', 'io.github.libtmux.kotlin.Pane.paste', ['load-buffer', 'paste-buffer']], + ['kotlin', 'io.github.libtmux.kotlin.Buffers.delete', ['delete-buffer']], + ['scala', 'io.github.libtmux.scaladsl.Pane.paste', ['load-buffer', 'paste-buffer']], + ['scala', 'io.github.libtmux.scaladsl.cats.Pane.paste', ['load-buffer', 'paste-buffer']], + ['scala', 'io.github.libtmux.scaladsl.cats.Buffers.delete', ['delete-buffer']], + ] as const + const entries = refused.flatMap(([port, symbol, commands]) => commands.map((command) => ({ label: `${port} ${symbol} ${command}`, entry: use(port, symbol, command) }))) + expect(entries).toHaveLength(11) + for (const { label, entry } of entries) expect(entry?.when, label).toBe('except before tmux 3.4') + // Lua's delete_buffer refuses the same way; go's confirm-before and command-prompt always send -b, which tmux has from 3.3. + expect(use('lua', 'libtmux.Server:delete_buffer', 'delete-buffer')?.when).toBe('except before tmux 3.4') + expect(use('go', 'tmux.Server.ConfirmBefore', 'confirm-before')?.when).toBe('except before tmux 3.3') + expect(use('go', 'tmux.Server.CommandPrompt', 'command-prompt')?.when).toBe('except before tmux 3.3') + // run-shell's output is lost on every release from 3.3 until 3.5, which is a range and not two releases. + for (const [port, symbol] of [['java', 'io.github.libtmux.Shell.Shell.capturing'], ['kotlin', 'io.github.libtmux.kotlin.Shell.capturing'], ['scala', 'io.github.libtmux.scaladsl.cats.Shell.capturing']] as const) { + expect(use(port, symbol, 'run-shell')?.when, `${port} ${symbol}`).toBe('except from tmux 3.3 until 3.5') + } + // The controls: a method that pastes a buffer that already exists refuses nothing, and a command that tmux itself lacks before a release needs no qualifier. + expect(use('java', 'io.github.libtmux.Pane.Pane.pasteBuffer', 'paste-buffer')?.when).toBeUndefined() + for (const [port, symbol] of [['csharp', 'LibTmux.Pane.CreatePaneAsync'], ['csharp', 'LibTmux.Window.CreatePaneAsync'], ['go', 'tmux.Pane.NewPane'], ['go', 'tmux.Window.NewPane'], ['py', 'libtmux.Pane.new_pane'], ['py', 'libtmux.Window.new_pane']] as const) { + const entry = use(port, symbol, 'new-pane') + expect(entry, `${port} ${symbol}`).toBeDefined() + expect(entry?.when, `${port} ${symbol}`).toBeUndefined() + } + }) + + it('says when a launch sends what it sends, from the line the default launch reaches', () => { + // ts: only a minimal launch starts the server and reads the owner option; the facts are disclosed whenever the server is there. + expect(use('ts', 'mcp.server.main', 'start-server')?.when).toBe('a minimal launch, no explicit selection') + expect(use('ts', 'mcp.server.main', 'show-options')?.when).toBe('a minimal launch, no explicit selection') + expect(use('ts', 'mcp.server.main', 'display-message')?.when).toBe('unless an explicit launch finds no server') + // java: the default launch is the dedicated server, which starts it and reads its metadata; an explicit one only reads it. + const main = 'io.github.libtmux.mcp.Main.Main.main' + expect(use('java', main, 'start-server')).toMatchObject({ when: 'the launch chooses no socket', reviewed: true }) + expect(use('java', main, 'start-server')?.evidence[0]).toBe('libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:106') + expect(use('java', main, 'display-message')?.when).toBeUndefined() + expect(use('java', main, 'display-message')?.evidence[0]).toBe('libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111') + // go: the helper registers a kill for the end of the test, which is not a send of the call itself. + expect(use('go', 'tmuxtest.NewSession', 'kill-session')?.when).toBe('the test ends, in t.Cleanup') + }) + + it('records the command-alias inventory of a guarded Ruby call as list-commands and show-options, on the same symbols', () => { + const readers = (command: string) => Object.entries(TMUX_USAGE.ruby.symbols).filter(([, entries]) => entries.some((entry) => entry.command === command && entry.incidental)).map(([symbol]) => symbol).sort() + expect(readers('show-options')).toHaveLength(9) + expect(readers('list-commands')).toEqual(readers('show-options')) + // Pane#capture asks list-commands only when a flag it has to check is set, so a default call does not and it stays out. + expect(use('ruby', 'LibTmux::Pane#capture', 'list-commands')).toBeUndefined() + }) +}) + describe('from a method to the command and its C function', () => { it('names the scope and links the manual page and the C function behind it', () => { const [send] = tmuxSymbolSends('swift', 'Server.panes()') @@ -404,8 +462,12 @@ describe('from a method to the command and its C function', () => { const listed = (port: string, symbol: string, command: string) => tmuxUsage(command)?.groups.flatMap((group) => group.ports).some((cell) => cell.port === port && cell.links.some((link) => link.symbolId === symbol)) ?? false expect(listed('java', 'io.github.libtmux.Pane.Pane.sendKeys', 'display-message')).toBe(false) // The same holds for the command-alias inventory a guarded Ruby call reads before it sends: on the method, not on the command's pages. - expect(tmuxSymbolSends('ruby', 'LibTmux::WindowLink#kill').map((send) => send.command).sort()).toEqual(['kill-window', 'show-options']) + expect(tmuxSymbolSends('ruby', 'LibTmux::WindowLink#kill').map((send) => send.command).sort()).toEqual(['kill-window', 'list-commands', 'show-options']) expect(listed('ruby', 'LibTmux::WindowLink#kill', 'show-options')).toBe(false) + expect(listed('ruby', 'LibTmux::WindowLink#kill', 'list-commands')).toBe(false) + // switch_client asks the same two questions before it sends, and neither is an exclusion: a default call sends both. + expect(tmuxSymbolSends('ruby', 'LibTmux::Server#switch_client').map((send) => send.command).sort()).toEqual(['list-commands', 'show-options', 'switch-client']) + expect(listed('ruby', 'LibTmux::Server#switch_client', 'list-commands')).toBe(false) expect(listed('ruby', 'LibTmux::WindowLink#kill', 'kill-window')).toBe(true) // The wrapper that stands on it is not listed either, and a claim that is not incidental still is. expect(listed('kotlin', 'io.github.libtmux.kotlin.Pane.sendKeys', 'display-message')).toBe(false) @@ -598,7 +660,7 @@ describe('the rendered lists', () => { // The data agrees: no Julia use says it is on a receiver unless some method of the function does not send it. for (const [symbol, uses] of Object.entries(TMUX_USAGE.julia.symbols)) { for (const use of uses) { - if (/^on a (?:Server|ControlConnection)$/.test(use.when ?? '')) expect(['capture_bytes', 'get_environment', 'load_buffer', 'save_buffer', 'snapshot'], `${symbol} ${use.command}`).toContain(symbol.split('.').at(-1)) + if (/^on a (?:Server|ControlConnection)$/.test(use.when ?? '')) expect(['capture_bytes', 'get_environment', 'load_buffer', 'save_buffer', 'snapshot', 'set_option', 'unset_option', 'set_hook', 'unset_hook'], `${symbol} ${use.command}`).toContain(symbol.split('.').at(-1)) } } }) @@ -662,7 +724,9 @@ describe('the rendered lists', () => { expect(previous.scopes[0].when).toBe('the target is "previous"') const rows = tmuxCommandRows(sends, []) expect(rows.find((row) => row.command === 'previous-window')!.when).toBe('the target is "previous"') - expect(rows.find((row) => row.command === 'select-window')!.when).toBeUndefined() + // The window it selects when the target is none of those three says so too, and a method that selects on every call does not. + expect(rows.find((row) => row.command === 'select-window')!.when).toBe('the target is not last, next or previous') + expect(tmuxCommandRows(tmuxSymbolSends('ts', 'window.Window.select'), []).find((row) => row.command === 'select-window')!.when).toBeUndefined() for (const document of Object.values(TMUX_USAGE)) { for (const uses of Object.values(document.symbols)) for (const use of uses) if (use.when) expect(use.when.trim().split(/\s+/).length).toBeLessThanOrEqual(8) } From d39851e29a3449f0034595174f7d20099c87f023 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 06:52:24 -0500 Subject: [PATCH 18/53] fix(site[tmux-usage]) Put the condition of a send in parentheses on the method page, as the Markdown does why: On a method page the condition of a scope followed its C function with only a space: `list-panes -s, cmd_list_panes_session the spec names a first window; list-panes -t, ...`, so a reader could take the words for part of the name, or for the start of the next item. The Markdown of the same page already wrote it in parentheses. A review of b8f892310 asked that the two match. what: - The method-page line puts a condition in parentheses after its scope's C function (or after the command, for a command with no scope), keeping the muted `.tmux-when` element for the words, so `list-panes -s, cmd_list_panes_session (the spec names a first window); list-panes -t, cmd_list_panes_window (the spec has more than one window)`. - The README says this where it says each scope has its own condition. The test reads the text of the line for the two-scope F# case. --- site/src/components/api/ApiEntry.astro | 6 +++--- site/test/tmux-library-usage.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index 530ea61d1..6e2049df3 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -679,10 +679,10 @@ const hasBody = {commandItems.length > 0 &&

tmux command - {/* No whitespace between an item and the separator that follows it, so a comma or semicolon never trails a space. */} + {/* No whitespace between an item and the separator that follows it, so a comma or semicolon never trails a space; a condition is in parentheses, as it is in the Markdown. */} {commandItems.map((item, i) => <>{i > 0 ? commandSeparator : ' '}{item.command}{item.scope - ? {item.scope.flag || item.scope.target ? <>{' '}-{item.scope.flag || item.scope.target} : null}{item.function ? <>{', '}{item.function.name} : <>{' '}{item.scope.label}}{item.when && <>{' '}{item.when}} - : item.when && <>{' '}{item.when}})} + ? {item.scope.flag || item.scope.target ? <>{' '}-{item.scope.flag || item.scope.target} : null}{item.function ? <>{', '}{item.function.name} : <>{' '}{item.scope.label}}{item.when && <>{' ('}{item.when}{')'}} + : item.when && <>{' ('}{item.when}{')'}})}

} {catalogEntries.length > 0 &&

tmux catalog diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index b9f63b687..b2d5f70aa 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -407,7 +407,7 @@ describe('from a method to the command and its C function', () => { // A condition follows the scope it holds for, inside its item. const fsharp = tmuxCommandRows(tmuxSymbolSends('fsharp', 'LibTmux.FSharp.Server.newSession'), []).filter((row) => row.command === 'list-panes') expect((await line(fsharp)).text).toBe( - 'tmux command list-panes -s, cmd_list_panes_session the spec names a first window; list-panes -t, cmd_list_panes_window the spec has more than one window') + 'tmux command list-panes -s, cmd_list_panes_session (the spec names a first window); list-panes -t, cmd_list_panes_window (the spec has more than one window)') // Commands with no C function to name keep the comma, and a line that mixes the two uses the semicolon throughout. const plain = [{ command: 'kill-pane', href: '/tmux/latest/manual/kill-pane/', scopes: [] }, { command: 'kill-window', href: '/tmux/latest/manual/kill-window/', scopes: [] }] expect((await line(plain)).text).toBe('tmux command kill-pane, kill-window') From ec24c927fa337adc31f90da54678a234bfe2478b Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 06:52:35 -0500 Subject: [PATCH 19/53] fix(site[tmux-reference]) Show only the head of a long declaration on a preview card why: A review of b8f892310 found that tmux 3.7c's anonymous enum of key codes (tmux.h:327) is one signature of 355,553 characters. Its preview payload was 712,008 bytes of JSON (the signature twice: as text and as the one token the highlighter makes of a line that long), a card that laid it out was a wall of text, and `renderPreviewSignature` would have written a style property for every token of a payload that did tokenize one. A card is a glance before a reader opens the page, which has the whole declaration. what: - `limitPreviewSignature` (preview-signature.ts) keeps the first 12 lines and 1,200 characters of a signature and ends a cut one with a line that says so ("..."). The C preview builder applies it, so the payload holds the head and is highlighted as the head, and its `detail` says the card shows the first lines. - The browser renderer applies the same limit again, so a payload from any producer, or one written before the limit, cannot make a card heavy; a payload whose highlighting no longer matches the cut text renders it as plain text. - Tests: the limit by lines, by characters and when it fits; the 3.7c enum's card is at most 1,202 characters and under 40 KB highlighted, a function that fits has no cut, and no declaration of any version exceeds the limit; the renderer cuts a 40-line and a 480,000-character payload and keeps the highlighting of one that fits. Measured over every payload the route writes, highlighted as the build does, before and after: latest 19,741,003 to 18,944,280 bytes, 3.7c the same set under its own address, 19,741,003 to 18,928,510, 3.2a 8,344,505 to 8,279,027; 47,826,511 to 46,151,817 bytes in 20,860 files, and 10.0 MB gzipped (8.3 MB brotli). The largest payload is 20,385 bytes where it was 712,008. The review's estimate of about 80 MB was high: the limit removes the outlier, and the rest is ordinary highlighting, about 2.2 KB for each of 20,860 declarations. I kept a payload for every declaration rather than only the ones something links to. Most of them are linked (4,738 of 7,885 in 3.7c are the target of another declaration, 4,029 of 5,090 in 3.2a, before counting the index, the usage tables, the manual and the catalog), the set of links is open to every page that renders a reference link, and a link without a payload is the silent failure this route exists to remove. Writing only the linked ones would save about a third of the 46 MB, at the price of that failure returning with the next page that links an unlinked one. --- site/src/lib/link-preview-browser.ts | 4 +++- site/src/lib/preview-signature.ts | 22 ++++++++++++++++++++ site/src/lib/tmux-reference.ts | 9 +++++--- site/test/link-preview.test.ts | 31 ++++++++++++++++++++++++++++ site/test/tmux-reference.test.ts | 28 +++++++++++++++++++++++++ 5 files changed, 90 insertions(+), 4 deletions(-) create mode 100644 site/src/lib/preview-signature.ts diff --git a/site/src/lib/link-preview-browser.ts b/site/src/lib/link-preview-browser.ts index 6bee37e40..aaf18b725 100644 --- a/site/src/lib/link-preview-browser.ts +++ b/site/src/lib/link-preview-browser.ts @@ -3,6 +3,7 @@ import type { CodeHighlight } from './highlight' import { linkPreviewTarget, linkPreviewCandidate, linkPreviewBlockLink, markLinkPreview } from './link-preview-paint' import { abbreviateNamespace, kindMark, markClass } from './api-labels' import { wordBreak } from './word-break' +import { limitPreviewSignature } from './preview-signature' export { linkPreviewTarget } from './link-preview-paint' const cache = new Map() @@ -62,7 +63,8 @@ export function renderPreviewKind(slot: HTMLElement | null, kind?: string) { /** Optional token metadata can fail independently of the real reference link. */ export function renderPreviewSignature(element: HTMLElement, preview: LinkPreview) { - const signature = preview.signature ?? '' + // The head of a declaration: a payload that carries more is cut here, and its highlighting no longer matches, so it is plain text. + const signature = limitPreviewSignature(preview.signature ?? '') const value = preview.signatureHighlight const color = (input: unknown) => typeof input === 'string' && /^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i.test(input) const object = (input: unknown): input is Record => !!input && typeof input === 'object' diff --git a/site/src/lib/preview-signature.ts b/site/src/lib/preview-signature.ts new file mode 100644 index 000000000..1b745fd76 --- /dev/null +++ b/site/src/lib/preview-signature.ts @@ -0,0 +1,22 @@ +/** + * How much of a declaration a preview card shows. + * + * A card is a glance before a reader decides to open the page, so it shows the head of a declaration and not all of it. + * One declaration in tmux's source, an anonymous enum of the key codes, is a single signature of hundreds of + * thousands of characters; a payload that carried it was most of a megabyte, and a card that rendered it laid out a + * wall of text. The page the card links to has the whole declaration. + * + * The payload is built with the limit and the browser applies it again, so a payload from any producer, or one written + * before the limit, cannot make a card heavy. + */ +export const PREVIEW_SIGNATURE_LINES = 12 +export const PREVIEW_SIGNATURE_CHARS = 1200 + +/** `signature` as it is shown: whole when it fits, otherwise its first lines and characters followed by a line that says so. */ +export function limitPreviewSignature(signature: string): string { + const lines = signature.split('\n') + let text = lines.slice(0, PREVIEW_SIGNATURE_LINES).join('\n') + let cut = lines.length > PREVIEW_SIGNATURE_LINES + if (text.length > PREVIEW_SIGNATURE_CHARS) { text = text.slice(0, PREVIEW_SIGNATURE_CHARS); cut = true } + return cut ? `${text.trimEnd()}\n…` : text +} diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index f83f4a778..83b24e81d 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -5,6 +5,7 @@ import v37 from '../data/tmux/api/3.7c.json?raw' import pins from '../data/tmux/versions.json' import { createApiIndex, type PortNavData } from './api-models' import type { LinkPreview } from './link-preview' +import { limitPreviewSignature } from './preview-signature' import { navTreeFor, referenceTreeFor, referenceBreadcrumbs } from './api-tree' import { apiRelationshipPath } from './api-relationships' import { PORTS } from './ports' @@ -328,16 +329,18 @@ export function tmuxSymbolSends(port: string, publicId: string, version = 'lates /** * The card a link to a declaration of tmux's C source opens, from the same record as the page it leads to. tmux's source * carries no Doxygen briefs, so the card says where the declaration is and shows it, which is what a reader following a - * link from a method wants to see before leaving the page. + * link from a method wants to see before leaving the page. A declaration longer than a card holds shows its head, and the + * page has all of it (`limitPreviewSignature`). */ export function tmuxReferencePreview(version: string, symbol: ApiSymbol): LinkPreview { const model = tmuxSourceModel(version) - const signature = symbol.signatures[0]?.raw ?? (symbol.value !== undefined ? `${symbol.name} = ${symbol.value}` : undefined) + const full = symbol.signatures[0]?.raw ?? (symbol.value !== undefined ? `${symbol.name} = ${symbol.value}` : undefined) + const signature = full === undefined ? undefined : limitPreviewSignature(full) const summary = symbol.doc?.summary ?? symbol.signatures.find((entry) => entry.doc?.summary)?.doc?.summary return { schema: 1, title: symbol.name, kind: symbol.kind, description: summary ? docSummaryText(summary, 'c') : '', - detail: `Defined in ${symbol.source.file}${symbol.source.line ? `, line ${symbol.source.line}` : ''} of tmux ${model.version}.`, + detail: `Defined in ${symbol.source.file}${symbol.source.line ? `, line ${symbol.source.line}` : ''} of tmux ${model.version}.${signature !== full ? ' The card shows the first lines of the declaration.' : ''}`, signature, signatureLanguage: signature ? 'c' : undefined, href: tmuxReferenceUrl(version, symbol), source: sourceUrl(model, symbol), } diff --git a/site/test/link-preview.test.ts b/site/test/link-preview.test.ts index e1d219e21..1dc8188bd 100644 --- a/site/test/link-preview.test.ts +++ b/site/test/link-preview.test.ts @@ -16,6 +16,7 @@ import { apiGlossaryHref } from '../src/lib/api-glossary' import { initLinkPreviews, disposeLinkPreviews, linkPreviewTarget, positionLinkPreview } from '../src/lib/link-preview-browser' import { GET } from '../src/pages/[...slug].preview.json' import { highlightTokens } from '../src/lib/highlight' +import { PREVIEW_SIGNATURE_CHARS, PREVIEW_SIGNATURE_LINES } from '../src/lib/preview-signature' import config from '../ec.config.mjs' it.each([ @@ -250,6 +251,36 @@ describe('preview lifecycle', () => { expect(code.classList.contains('lm-highlighted')).toBe(false) }) + it('shows only the head of a declaration too long for a card, whatever the payload carries', async () => { + const token = (content: string) => ({ content, light: { color: '#A626A4', fontStyle: 0 }, dark: { color: '#F97583', fontStyle: 0 } }) + const lines = Array.from({ length: 40 }, (_, index) => `case_${index}`) + const signature = `enum {\n${lines.join('\n')}\n}` + const payload = { schema: 1, title: 'enum', description: '', signature, signatureLanguage: 'c', href: `${prefix}-a/`, + signatureHighlight: { language: 'c', light: { foreground: '#24292E', background: '#FFFFFF' }, dark: { foreground: '#E1E4E8', background: '#24292E' }, + lines: signature.split('\n').map((line) => [token(line)]) } } + requests.mockResolvedValueOnce(new Response(JSON.stringify(payload))) + hover(); await settle() + const code = win.document.querySelector('[data-preview-signature]')! + // The lines it keeps, then a line that says the rest is on the page; the cut highlighting no longer fits, so it is plain text. + expect(code.textContent).toBe(`${signature.split('\n').slice(0, PREVIEW_SIGNATURE_LINES).join('\n')}\n…`) + expect(code.querySelectorAll('*')).toHaveLength(0) + escape() + // One line of hundreds of thousands of characters, as the tmux key-code enum is, is cut at the character limit. + requests.mockResolvedValueOnce(new Response(JSON.stringify({ ...payload, href: `${prefix}-b/`, signature: `enum { ${'KEYC_X, '.repeat(60_000)}}`, signatureHighlight: undefined }))) + hover('b'); await settle() + expect(code.textContent!.length).toBeLessThanOrEqual(PREVIEW_SIGNATURE_CHARS + 2) + expect(code.textContent!.endsWith('\n…')).toBe(true) + escape() + // The control: a declaration that fits keeps its highlighting and its text, with nothing added. + win.document.body.insertAdjacentHTML('afterbegin', `c`) + const short = 'enum { A, B }' + requests.mockResolvedValueOnce(new Response(JSON.stringify({ ...payload, href: `${prefix}-c/`, signature: short, + signatureHighlight: { ...payload.signatureHighlight, lines: [[token(short)]] } }))) + hover('c'); await settle() + expect(code.textContent).toBe(short) + expect(code.querySelectorAll('span')).toHaveLength(1) + }) + it('keeps the destructor name and native signature intact with meaningful title breaks', async () => { const name = 'libtmux::CommandOperation::~CommandOperation' const signature = '~CommandOperation();' diff --git a/site/test/tmux-reference.test.ts b/site/test/tmux-reference.test.ts index 5962a4fd9..facb2dda2 100644 --- a/site/test/tmux-reference.test.ts +++ b/site/test/tmux-reference.test.ts @@ -8,6 +8,8 @@ import { symbolMarkdown } from '../src/lib/symbol-markdown' import { relatedApiTypes } from '../src/lib/api-sections' import { PORTS } from '../src/lib/ports' import { linkPreviewTarget } from '../src/lib/link-preview-paint' +import { highlightedPreview } from '../src/lib/link-preview' +import { limitPreviewSignature, PREVIEW_SIGNATURE_CHARS, PREVIEW_SIGNATURE_LINES } from '../src/lib/preview-signature' import { TMUX_VERSIONS } from '../src/lib/tmux-manual-data' import { GET, getStaticPaths } from '../src/pages/tmux/[version]/reference/[...slug].preview.json' import { getStaticPaths as genericPreviewPaths } from '../src/pages/[...slug].preview.json' @@ -170,6 +172,32 @@ describe('the card a link to a C declaration opens', () => { expect(tmuxReferencePreview('latest', bare)).toMatchObject({ schema: 1, title: bare.name, signature: undefined, signatureLanguage: undefined }) }) + it('shows the head of a declaration too long for a card, and keeps one that fits whole', async () => { + expect(limitPreviewSignature('static void f(void)')).toBe('static void f(void)') + const lines = Array.from({ length: PREVIEW_SIGNATURE_LINES + 5 }, (_, index) => `line ${index}`) + expect(limitPreviewSignature(lines.join('\n'))).toBe(`${lines.slice(0, PREVIEW_SIGNATURE_LINES).join('\n')}\n…`) + expect(limitPreviewSignature(lines.slice(0, PREVIEW_SIGNATURE_LINES).join('\n'))).toBe(lines.slice(0, PREVIEW_SIGNATURE_LINES).join('\n')) + expect(limitPreviewSignature('x'.repeat(PREVIEW_SIGNATURE_CHARS * 3))).toBe(`${'x'.repeat(PREVIEW_SIGNATURE_CHARS)}\n…`) + // The key-code enum of tmux 3.7c is one signature of over three hundred thousand characters: its card carries the head, not all of it. + const model = tmuxSourceModel('3.7c') + const keycodes = model.symbols.reduce((longest, entry) => (entry.signatures[0]?.raw?.length ?? 0) > (longest.signatures[0]?.raw?.length ?? 0) ? entry : longest) + expect(keycodes.signatures[0].raw!.length).toBeGreaterThan(300_000) + const card = tmuxReferencePreview('3.7c', keycodes) + expect(card.signature!.length).toBeLessThanOrEqual(PREVIEW_SIGNATURE_CHARS + 2) + expect(card.signature!.endsWith('\n…')).toBe(true) + expect(card.detail).toContain('first lines') + expect(JSON.stringify(await highlightedPreview(card)).length).toBeLessThan(40_000) + // The control: a function that fits has no cut and says nothing of one. + const small = tmuxReferencePreview('3.7c', model.symbols.find((entry) => entry.name === 'cmd_list_panes_server')!) + expect(small.signature).toBe('static void cmd_list_panes_server(struct cmd *, struct cmdq_item *)') + expect(small.detail).not.toContain('first lines') + // No declaration of any version shows more than the limit. + for (const version of TMUX_VERSIONS) { + const over = tmuxSourceModel(version).symbols.filter((entry) => (tmuxReferencePreview(version, entry).signature ?? '').length > PREVIEW_SIGNATURE_CHARS + 2) + expect(over.map((entry) => entry.name), version).toEqual([]) + } + }) + it('catches a link with no card behind it, and the preview route that the generic one never covered', () => { const real = tmuxReferenceUrl('latest', tmuxSourceModel('latest').symbols.find((entry) => entry.name === 'cmd_list_panes_server')!) const invented = '/tmux/latest/reference/c-function-no-such-declaration/' From 0661e68d80be8e273948c2188f5bb2ceed95a2b0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 07:04:36 -0500 Subject: [PATCH 20/53] fix(site[tmux-reference]) Ask the preview check only for destinations the dev build serves why: `check-dev.mjs --reference-previews` failed with 30 links to `/en/py/stable/reference/...` answering 404. The pages the check reads (the C++ method page, the manual page of list-panes and two C pages) link the Python reference at its default version, `stable`, and the dev build serves each port's reference at one version, its own target, `latest`. The assembly renders the stable Python reference with Sphinx and skips it where there is no checkout, so no payload for it exists in either place; the check had no notion of what the build contains. Every non-py link resolved. what: - `servedByBuild` decides whether the build contains a link's destination: a port's core reference is a tree of its own, built for one version, and a link to another version of it leaves for a tree the build does not contain. Everything else (tmux, products, the glossary) is served at whatever version a link names. It reads the site's own sources: `PORTS`, `buildTarget` (the version the dev build is) and `referenceSegment`, so no port is named in it. check-dev.mjs now takes the version its mirror writes each port's reference routes, preview endpoints and landing pages at from the same `buildTarget`, where it was the literal `latest` in four places, and hands the check what it serves. - `payloadGaps` is the sweep: it asks for the payload of each destination the build serves and returns the missing ones apart from the ones it did not ask for. The check reports the count it left out. - The negative control runs the same function: a bogus declaration on a port the build serves must be reported as answering 404, and one on a version the build does not serve must be left out and not asked, so the sweep cannot go green by skipping what it should ask. The control link with no payload now receives the pointer as a dispatched event, which cannot be intercepted by a sticky header over the top of the page. - vitest: py is left out and every other port asked with the defaults of the dev build; another default moves which port is left out (a `ts` at `v1.2`), and none at all with no defaults; tmux's pages, a product's pages and guides are served at any version; asking for everything reports the destination the build does not contain, which is what the check did. - CONTRIBUTING.md describes the check, what it asks for and why. Where it runs: `scripts/test-all.sh` runs `node site/scripts/check-dev.mjs` (the 'fresh browser matrix'), with no mode flag, which is the full run that includes both this check and `--badge-centring`, and `.github/workflows/test.yml` runs test-all.sh. They run on check-dev's own source mirror, not on the assembly, so the assembly's "py latest sphinx skipped" does not reach them; what does is the same mirror, which serves py at `latest` and is linked to at `stable`, and that is what this fixes. Not run in a browser. --- CONTRIBUTING.md | 13 +++++ site/scripts/check-dev.mjs | 21 ++++--- site/scripts/check-page-readiness.mjs | 82 ++++++++++++++++++++++----- site/test/preview-check.test.ts | 56 ++++++++++++++++++ 4 files changed, 151 insertions(+), 21 deletions(-) create mode 100644 site/test/preview-check.test.ts diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 219a60faa..7334ce240 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -166,6 +166,19 @@ holds and requires the gate to notice, by the problem it names: $ node site/scripts/check-dev.mjs --badge-centring ``` +A link the page marks for a preview card must have a card to show. The preview +check hovers the C function link of a method page, then asks for the payload of +every marked link on four pages. It asks only for destinations the dev build +serves: one version of each port's reference, as its build target says, so the +Python reference that the other ports link to at `stable` is not asked for. A +payload missing on a port the build does serve is reported, and the check fails +if it would not report one. Both checks run in the publication audit through the +full `check-dev.mjs` matrix, on its own source mirror and not on the assembly: + +```console +$ node site/scripts/check-dev.mjs --reference-previews +``` + Keep the complete assembly, all output suites, link audits, source/model freshness, and full browser matrix in the publication audit: diff --git a/site/scripts/check-dev.mjs b/site/scripts/check-dev.mjs index 6e2144a77..5ad912ce0 100644 --- a/site/scripts/check-dev.mjs +++ b/site/scripts/check-dev.mjs @@ -5,7 +5,8 @@ import { join } from 'node:path' import { fileURLToPath } from 'node:url' import { dev } from 'astro' import { chromium, firefox, webkit } from 'playwright' -import { API_MODEL_PORTS, PORTS, productAvailable } from '../src/lib/ports.ts' +import { API_MODEL_PORTS, PORTS, productAvailable, referenceSegment } from '../src/lib/ports.ts' +import { buildTarget } from '../src/lib/versions.ts' import { checkClipboard, checkCompleteApiExamples } from './check-clipboard.mjs' import { checkApiAnchorArrival, checkApiExampleOwnership, checkApiNavigation, checkApiStickyHeadings, checkApiStickyHeadingsFail, checkDocumentationNavigation, checkNavigation } from './check-navigation.mjs' import { checkReferencePreferences, checkGlobalHeader, checkHeaderLinksFail } from './check-reference-preferences.mjs' @@ -56,6 +57,10 @@ Object.assign(process.env, { LIBTMUX_DOCS_LOCALES_ROOT: '', LIBTMUX_DOCS_LOCALE: 'en', LIBTMUX_DOCS_PORT: '', LIBTMUX_DOCS_VERSION: 'latest', LIBTMUX_DOCS_PORT_DEFAULTS: '{"py":"stable"}', }) +// The one version of each port's reference this build serves: its own target, as the site's build target says it. A port's core +// reference is a tree of its own, so a link to another version of it (the Python reference that the other ports link to at its +// default, `stable`) names a tree this build does not contain. The routes below and the checks that ask what is served read it here. +const MIRRORED_VERSION = buildTarget(process.env).version // Astro always writes root/.astro, so a separate cacheDir alone cannot isolate it. const source = fileURLToPath(new URL('../', import.meta.url)) // Astro resolves external component styles against the nearest shared path. @@ -183,7 +188,7 @@ for (const { port, symbol } of entries) { `) for (const { slug: port } of PORTS) { - const directory = join(root, `src/pages/${port}/latest/reference`) + const directory = join(root, `src/pages/${port}/${MIRRORED_VERSION}/reference`) mkdirSync(directory, { recursive: true }) writeFileSync(join(directory, '[...slug].astro'), `--- import Reference from '../../../reference/[...slug].astro' @@ -225,10 +230,10 @@ import { coreApiSymbols } from '../../../../lib/product-api' export { GET } from '../../../[...slug].preview.json' export function getStaticPaths() { const model = API_MODELS.${port} - const glossary = referenceUrl(PORT_BY_SLUG.${port}, 'latest') + 'glossary/' + const glossary = referenceUrl(PORT_BY_SLUG.${port}, '${MIRRORED_VERSION}') + 'glossary/' return [{ params: { slug: 'glossary' }, props: { preview: glossaryPreview(glossary) } }, ...coreApiSymbols(model).map((owner) => ({ params: { slug: owner.slug }, - props: { preview: symbolPreview(model, owner, 'latest') } }))] + props: { preview: symbolPreview(model, owner, '${MIRRORED_VERSION}') } }))] } `) writeFileSync(join(directory, 'tree.json.ts'), ` @@ -237,12 +242,14 @@ export const GET = () => new Response(JSON.stringify(referenceTree('${port}')), headers: { 'Content-Type': 'application/json' }, }) `) - writeFileSync(join(root, `src/pages/${port}/latest/index.astro`), `--- + writeFileSync(join(root, `src/pages/${port}/${MIRRORED_VERSION}/index.astro`), `--- import Home from '../../index.astro' --- `) } +/** What this build serves, for a check that asks whether a link's destination is in it. */ +const servedBuild = (base) => ({ root: new URL(base).pathname.replace(/\/$/, ''), ports: PORTS, version: MIRRORED_VERSION, segment: referenceSegment('core') }) let server, browser const terminate = async () => { await browser?.close() @@ -803,7 +810,7 @@ try { await checkMentionDensity(browser, base) await checkChipGrowth(browser, base) } else if (referencePreviewsOnly) { - await retryReload(() => checkTmuxReferencePreviews(browser, base)) + await retryReload(() => checkTmuxReferencePreviews(browser, base, { served: servedBuild(base) })) } else if (referencePreferencesOnly) { await retryReload(() => checkReferencePreferences(browser, base)) await retryReload(() => checkGlobalHeader(browser, base)) @@ -881,7 +888,7 @@ try { .then(() => checkMentionDensity(browser, base)) .then(() => checkChipGrowth(browser, base))) const blockLinks = schedule(() => retryReload(() => checkBlockLinksUndecorated(browser, base))) - const referencePreviews = schedule(() => retryReload(() => checkTmuxReferencePreviews(browser, base))) + const referencePreviews = schedule(() => retryReload(() => checkTmuxReferencePreviews(browser, base, { served: servedBuild(base) }))) await apiAnchors const apiSticky = schedule(() => retryReload(() => checkApiStickyHeadings(browser, base)) .then(() => checkApiStickyHeadingsFail(browser, base))) diff --git a/site/scripts/check-page-readiness.mjs b/site/scripts/check-page-readiness.mjs index e79757c66..fe4d129c3 100644 --- a/site/scripts/check-page-readiness.mjs +++ b/site/scripts/check-page-readiness.mjs @@ -531,16 +531,59 @@ export async function checkBlockLinksUndecorated(browser, base, { sample = false } } +/** + * Whether the build under test contains the destination of a link, as far as a preview payload is concerned. + * + * A port's core reference is a tree of its own, built for one version of the port, and the build under test serves + * one: `version`, the one its own target names. A link to another version of a port's reference leaves for a tree this + * build does not contain, such as the Python reference that the other ports' pages link to at its default, `stable` + * (the assembly renders that one with Sphinx, and skips it where there is no checkout). Everything else is served at + * whatever version a link names: tmux's pages, a product's pages, the glossary. + * + * `ports`, `version` and `segment` (the part of the path that makes a page a core reference) are the site's own: + * `PORTS`, `buildTarget` and `referenceSegment`, so a change to what is built moves this with it. + * + * @param {string} pathname the path of the link, root included + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean }[], version: string, segment: string }} build + */ +export function servedByBuild(pathname, { root, ports, version, segment }) { + const rest = pathname.startsWith(`${root}/`) ? pathname.slice(root.length + 1) : pathname.replace(/^\//, '') + const parts = rest.split('/') + const port = ports.find((entry) => entry.slug === parts[0]) + if (!port) return true + const at = port.versionedDocs ? 2 : 1 + if (parts.slice(at, at + segment.split('/').length).join('/') !== segment) return true + return !port.versionedDocs || parts[1] === version +} + +/** + * The links of `hrefs` that the build serves and that have no payload, and the ones it does not serve, which are not asked. + * A payload is at the path of the page with `.preview.json`, as the preview policy computes it. + */ +export async function payloadGaps(request, origin, hrefs, served) { + const missing = [] + const skipped = [] + for (const href of hrefs) { + if (served && !served(href)) { skipped.push(href); continue } + const response = await request.get(`${origin}${href.slice(0, -1)}.preview.json`) + if (!response.ok()) missing.push(`${href} answers ${response.status()}`) + } + return { missing, skipped } +} + /** * A link marked for a preview card has a card to show. A C function a method links to carried `data-link-preview` and * opened nothing, because no preview payload was served at its address. Hovering the link is what asks for the card, - * so hover it and read the card, then ask the same of every marked link on the pages, and of one that has no payload. + * so hover it and read the card, then ask the same of every marked link on the pages whose destination the build + * serves (`served`, from `servedByBuild`; without it every destination is asked), and of one that has no payload. */ -export async function checkTmuxReferencePreviews(browser, base) { +export async function checkTmuxReferencePreviews(browser, base, { served: build } = {}) { const context = await browser.newContext({ reducedMotion: 'reduce', viewport: { width: 1440, height: 1000 } }) const page = await context.newPage() page.setDefaultTimeout(process.env.CI ? 20000 : 10000) const opened = () => page.evaluate(() => document.getElementById('reference-link-preview')?.matches(':popover-open') ?? false) + const origin = new URL(base).origin + const served = build ? (href) => servedByBuild(href, build) : undefined try { await page.goto(`${base}/cxx/latest/reference/libtmux-server-panes/`, { waitUntil: 'load' }) await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') @@ -553,22 +596,32 @@ export async function checkTmuxReferencePreviews(browser, base) { assert.equal(await page.locator('#reference-link-preview [data-preview-title]').textContent(), 'cmd_list_panes_server') assert.match(await page.locator('#reference-link-preview [data-preview-signature]').textContent(), /^static void cmd_list_panes_server\(struct cmd \*, struct cmdq_item \*\)$/) assert.match(await page.locator('#reference-link-preview [data-preview-open]').getAttribute('href'), /\/tmux\/latest\/reference\/c-function-cmd-list-panes-c-cmd_list_panes_server\/$/) - // Every link a page marks for a card has a payload at the address the card asks for. + // Every link a page marks for a card, whose destination the build serves, has a payload at the address the card asks for. const missing = [] - let marked = 0 + const skipped = new Set() + let asked = 0 for (const path of ['/cxx/latest/reference/libtmux-server-panes/', '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', '/tmux/latest/reference/c-struct-window_pane/']) { await page.goto(`${base}${path}`, { waitUntil: 'load' }) await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') const hrefs = await page.evaluate(() => [...new Set([...document.querySelectorAll('a[data-link-preview]')].map((anchor) => new URL(anchor.href).pathname))]) - marked += hrefs.length - for (const href of hrefs) { - const response = await page.request.get(`${base.replace(/\/en$/, '')}${href.slice(0, -1)}.preview.json`) - if (!response.ok()) missing.push(`${path}: ${href} answers ${response.status()}`) - } + const gaps = await payloadGaps(page.request, origin, hrefs, served) + asked += hrefs.length - gaps.skipped.length + for (const href of gaps.skipped) skipped.add(href) + missing.push(...gaps.missing.map((gap) => `${path}: ${gap}`)) } - assert(marked > 3, `Only ${marked} links were marked for a card, so the pages were not measured`) + assert(asked > 3, `Only ${asked} links were asked for a payload, so the pages were not measured`) assert.deepEqual(missing, [], `A link marked for a card that has none:\n${missing.join('\n')}`) - // The control: a link marked for a card whose payload does not exist opens nothing, and the sweep above would name it. + // The controls. A payload missing on a destination the build serves is reported, and a destination it does not serve is + // left out and not reported, so the sweep cannot go green by skipping what it should have asked. + if (served) { + const kept = `${build.root}/${build.ports[0].slug}/${build.version}/${build.segment}/no-such-declaration/` + const elsewhere = build.version === 'stable' ? 'latest' : 'stable' + const away = `${build.root}/${build.ports.find((port) => port.versionedDocs).slug}/${elsewhere}/${build.segment}/no-such-declaration/` + const control = await payloadGaps(page.request, origin, [kept, away], served) + assert.deepEqual(control.missing, [`${kept} answers 404`], 'A payload missing on a served port was not reported') + assert.deepEqual(control.skipped, [away], 'A destination the build does not serve was asked for a payload') + } + // A link marked for a card whose payload does not exist opens nothing. await page.goto(`${base}/tmux/latest/manual/list-panes/`, { waitUntil: 'load' }) await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') await page.evaluate(() => { @@ -578,11 +631,12 @@ export async function checkTmuxReferencePreviews(browser, base) { anchor.textContent = 'no_such_declaration' document.querySelector('main').prepend(anchor) }) - const absent = await page.request.get(`${base.replace(/\/en$/, '')}/en/tmux/latest/reference/c-function-no-such-declaration.preview.json`) + const absent = await page.request.get(`${origin}/en/tmux/latest/reference/c-function-no-such-declaration.preview.json`) assert.equal(absent.status(), 404, 'The control address answered, so the sweep cannot show a missing payload') - await page.locator('#no-card').hover() + // The pointer arrives as the browser delivers it, to the link itself, so a sticky header over the top of the page cannot take it. + await page.evaluate(() => document.getElementById('no-card').dispatchEvent(new PointerEvent('pointerover', { pointerType: 'mouse', bubbles: true }))) await page.waitForTimeout(700) assert.equal(await opened(), false, 'A link with no payload opened a card') - console.log(`Tmux reference previews: the C function link of a method page opens its card with its signature; ${marked} marked links on four pages each have a payload; a link with none opens nothing PASS`) + console.log(`Tmux reference previews: the C function link of a method page opens its card with its signature; ${asked} marked links on four pages each have a payload (${skipped.size} to trees this build does not serve were not asked); a payload missing on a served port is reported, and a link with none opens nothing PASS`) } finally { await context.close() } } diff --git a/site/test/preview-check.test.ts b/site/test/preview-check.test.ts new file mode 100644 index 000000000..bed3aa6b2 --- /dev/null +++ b/site/test/preview-check.test.ts @@ -0,0 +1,56 @@ +import { describe, expect, it } from 'vitest' +import { payloadGaps, servedByBuild } from '../scripts/check-page-readiness.mjs' +import { PORTS, referenceSegment, referenceUrl } from '../src/lib/ports' +import { buildTarget, linkedVersionFor } from '../src/lib/versions' + +/** + * The browser check of preview cards asks each marked link's payload from the build it runs against. The build serves one + * version of each port's reference, so a link to another version names a tree it does not contain, and the check must + * leave that out and still ask for everything the build does serve. + */ +const environment = (defaults: Record) => ({ LIBTMUX_DOCS_VERSION: 'latest', LIBTMUX_DOCS_PORT_DEFAULTS: JSON.stringify(defaults) }) +const build = (env: Record) => ({ root: '', ports: PORTS, version: buildTarget(env).version, segment: referenceSegment('core') }) +/** Where the site sends a link to a port's core reference, at the version the assembly's defaults give it. */ +const linked = (env: Record) => PORTS.map((port) => ({ port, href: `${referenceUrl(port, linkedVersionFor(port.slug, env))}some-declaration/` })) + +describe('which destinations the build under test serves', () => { + it('leaves out a port whose reference the links name at another version, and asks for every other port', () => { + const env = environment({ py: 'stable' }) + const unserved = linked(env).filter(({ href }) => !servedByBuild(href, build(env))).map(({ port }) => port.slug) + expect(unserved).toEqual(['py']) + // The links of the other ports name the version the build serves. + expect(linked(env).filter(({ port }) => port.slug !== 'py').every(({ href }) => servedByBuild(href, build(env)))).toBe(true) + }) + + it('follows the site: another default moves which port is left out, and none is named in the check', () => { + const env = environment({ ts: 'v1.2', go: 'latest' }) + expect(linked(env).filter(({ href }) => !servedByBuild(href, build(env))).map(({ port }) => port.slug)).toEqual(['ts']) + expect(linked(environment({})).filter(({ href }) => !servedByBuild(href, build(environment({})))).map(({ port }) => port.slug)).toEqual([]) + }) + + it('serves what is not a port reference at whatever version a link names', () => { + const env = environment({ py: 'stable' }) + const py = PORTS.find((port) => port.slug === 'py')! + for (const href of [ + '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', '/tmux/3.2a/manual/list-panes/', '/tmux/latest/catalog/options/status-left/', + `${referenceUrl(py, 'stable', 'mcp')}tool/`, `${referenceUrl(py, 'stable', 'workspace')}builder/`, '/py/stable/guides/attaching-to-tmux/', + ]) expect(servedByBuild(href, build(env)), href).toBe(true) + // The same pages under a root, as the dev server mounts them. + expect(servedByBuild('/en/py/stable/reference/libtmux-server-panes/', { ...build(env), root: '/en' })).toBe(false) + expect(servedByBuild('/en/cxx/latest/reference/libtmux-server-panes/', { ...build(env), root: '/en' })).toBe(true) + }) +}) + +describe('asking for payloads', () => { + const request = (answers: Record) => ({ get: async (url: string) => ({ ok: () => answers[url] === 200, status: () => answers[url] ?? 404 }) }) + + it('reports a payload missing on a destination the build serves and names none it does not', async () => { + const env = environment({ py: 'stable' }) + const served = (href: string) => servedByBuild(href, { ...build(env), root: '/en' }) + const asked = request({ 'http://x/en/cxx/latest/reference/a.preview.json': 200 }) + const hrefs = ['/en/cxx/latest/reference/a/', '/en/cxx/latest/reference/missing/', '/en/py/stable/reference/b/'] + expect(await payloadGaps(asked, 'http://x', hrefs, served)).toEqual({ missing: ['/en/cxx/latest/reference/missing/ answers 404'], skipped: ['/en/py/stable/reference/b/'] }) + // The control: asking for everything reports the destination the build does not contain too, which is the failure this check had. + expect(await payloadGaps(asked, 'http://x', hrefs, undefined)).toEqual({ missing: ['/en/cxx/latest/reference/missing/ answers 404', '/en/py/stable/reference/b/ answers 404'], skipped: [] }) + }) +}) From 29d5890e7bc65bb8dafe0b52a962455971a2d063 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 07:37:00 -0500 Subject: [PATCH 21/53] fix(site[tmux-usage]) Keep a chip at the width its name needs beside its qualifier why: On the list-panes manual page the F# `newSession` chip, a name of ten characters with the qualifier "the spec names a first window", wrapped its name at 1440, 1134 and 900px, in a cell with room to spare. The item holding the chip and its qualifier was a flex row that could not wrap, and the qualifier could not wrap either (`white-space: nowrap`), so the row, narrower than the two side by side, took the width from the chip: a flex item with `overflow: hidden` has no minimum width, so the chip shrank until its name broke at its `` points. The chip should give up nothing to its qualifier. what: - The item may wrap (`flex-wrap: wrap`), the chip does not shrink (`flex: none`, still limited to the cell by its `max-inline-size`), and the qualifier wraps in the cell (`white-space: normal`). The qualifier sits beside the chip when it fits and drops under it when it does not, and a name wider than the cell wraps inside its chip, which grows. Every chip with a qualifier gets this, since it is the item's rule. - `qualifierProblems` in the chip-growth browser check reads each qualified chip on the page: it is at least as wide as the width its name needs, read from a copy in a box too wide to wrap anything and set in the chip's own type (not by hiding the qualifier, which would let the table lay out its columns again), or as wide as its cell when that is narrower, and its qualifier is not over it. A copy of a qualified chip in an 11rem cell is measured too, where the qualifier cannot sit beside the chip. The control puts the old layout back and requires the check to say the chip is narrower than its name needs. - Vitest: the layout test asserts the three rules and catches the layout of b8f892310 as a variant; the check is also read on written-down boxes (a chip at its width with the qualifier beside it or under it, a cell narrower than the name, a chip squeezed to 62px of 290 that needs 80, a qualifier laid over its chip). - CONTRIBUTING.md names the check. Not run in a browser: whether the table gives the F# column less room now that its qualifier can wrap, and whether the chip is then 20px at these widths, is for the gate to show. --- CONTRIBUTING.md | 7 +- site/scripts/check-badge-centring.mjs | 148 +++++++++++++++++++++-- site/scripts/check-dev.mjs | 6 +- site/src/components/tmux/TmuxUsage.astro | 11 +- site/test/chip-growth.test.ts | 2 +- site/test/tmux-library-usage.test.ts | 13 ++ site/test/usage-qualifier-check.test.ts | 61 ++++++++++ 7 files changed, 232 insertions(+), 16 deletions(-) create mode 100644 site/test/usage-qualifier-check.test.ts diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7334ce240..b8b15a132 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -159,8 +159,11 @@ grows with a name that wraps, so a related chip's mark is held flush with its corner and as tall as the first line. The gate measures the Related APIs chips on the Scala Server, Session, Window, Pane and Client pages at 1440 pixels, where a name wraps onto several lines, and requires each chip to hold its name -and clear the next. Each check ends with a negative control that breaks what it -holds and requires the gate to notice, by the problem it names: +and clear the next. It reads the chips of the usage table on the `list-panes` +manual page the same way, and requires a chip with a qualifier to keep the width +its name needs, with the qualifier beside it or under it. Each check ends with a +negative control that breaks what it holds and requires the gate to notice, by +the problem it names: ```console $ node site/scripts/check-dev.mjs --badge-centring diff --git a/site/scripts/check-badge-centring.mjs b/site/scripts/check-badge-centring.mjs index a4fc6f0ba..0fab4b5bd 100644 --- a/site/scripts/check-badge-centring.mjs +++ b/site/scripts/check-badge-centring.mjs @@ -231,7 +231,7 @@ export function judgeChipGrowth(chips) { const slack = 0.51 const problems = [] for (const chip of chips) { - const { text, box, mark, lines, border, line, rail } = chip + const { text, box, mark, lines, border, line, rail, where = 'Related APIs column' } = chip if (!lines.length) { problems.push(`${text}: the name has no line to measure`); continue } const top = box.top + border const bottom = box.bottom - border @@ -245,7 +245,7 @@ export function judgeChipGrowth(chips) { if (Math.abs(mark.top - top) > slack) problems.push(`${text}: the mark left the top of the chip`) const offset = (lines[0].top + lines[0].bottom) / 2 - (mark.top + mark.bottom) / 2 if (Math.abs(offset) > 1) problems.push(`${text}: the first line of the name is ${Math.abs(offset).toFixed(1)}px ${offset < 0 ? 'above' : 'below'} the centre of the mark`) - if (box.left < rail.left - slack || box.right > rail.right + slack) problems.push(`${text}: the chip runs out of the Related APIs column`) + if (box.left < rail.left - slack || box.right > rail.right + slack) problems.push(`${text}: the chip runs out of the ${where}`) } for (let i = 0; i < chips.length; i++) for (let j = i + 1; j < chips.length; j++) { const a = chips[i].box @@ -257,11 +257,14 @@ export function judgeChipGrowth(chips) { return problems } -/** The boxes and lines of every Related APIs chip on the page, judged by `judgeChipGrowth`. */ -export async function chipGrowthProblems(page) { - const chips = await page.evaluate(() => { +/** + * The boxes and lines of every chip of one list on the page, judged by `judgeChipGrowth`. The list is the Related APIs + * rail unless `scope` names another: the `.tmux-usage` table of senders on a tmux command page. + */ +export async function chipGrowthProblems(page, scope = { list: 'nav.api-related', where: 'Related APIs column' }) { + const chips = await page.evaluate(({ list, where }) => { const plain = (r) => ({ top: r.top, bottom: r.bottom, left: r.left, right: r.right }) - return [...document.querySelectorAll('nav.api-related a:has(> .api-nav__kind)')].filter((a) => a.offsetParent).map((a) => { + return [...document.querySelectorAll(`${list} a:has(> .api-nav__kind)`)].filter((a) => a.offsetParent).map((a) => { const name = a.querySelector(':scope > .api-nav__kind + code') const range = document.createRange() range.selectNodeContents(name) @@ -275,14 +278,53 @@ export async function chipGrowthProblems(page) { const box = a.getBoundingClientRect() return { text: name.textContent.trim(), box: plain(box), mark: plain(a.querySelector(':scope > .api-nav__kind').getBoundingClientRect()), lines, - border: parseFloat(style.borderTopWidth) || 0, line: parseFloat(style.minHeight) || box.height, rail: plain(a.closest('nav.api-related').getBoundingClientRect()), + border: parseFloat(style.borderTopWidth) || 0, line: parseFloat(style.minHeight) || box.height, rail: plain(a.closest(list).getBoundingClientRect()), where, clipped: a.scrollHeight > a.clientHeight + 1 || a.scrollWidth > a.clientWidth + 1, } }) - }) + }, scope) return { chips: chips.length, wrapped: chips.filter((chip) => chip.lines.length > 1).length, problems: judgeChipGrowth(chips) } } +/** + * A qualifier ("the spec names a first window") sits beside its chip or under it, and the chip keeps the width its name needs + * unless the cell is narrower than that: a chip that shrank to make room for its qualifier wrapped a name of ten characters in + * a cell with room to spare. The width a chip needs is read from a copy of it in a box too wide to wrap anything, not by + * hiding the qualifier, which would let the table lay its columns out again and move the cell being measured. + */ +export async function qualifierProblems(page) { + return page.evaluate(() => { + const problems = [] + let asked = 0 + const wide = document.createElement('div') + wide.className = 'tmux-usage' + wide.style.cssText = 'position:fixed;top:0;left:0;visibility:hidden;pointer-events:none;inline-size:4000px' + document.body.append(wide) + for (const item of document.querySelectorAll('.tmux-usage__item')) { + const chip = item.querySelector(':scope > a') + const when = item.querySelector(':scope > .tmux-usage__when') + if (!chip || !when || !item.offsetParent) continue + asked++ + const name = chip.textContent.trim() + // The copy is set in the type the chip is set in, since every length of a chip is in em. + const type = getComputedStyle(item) + Object.assign(wide.style, { fontSize: type.fontSize, fontFamily: type.fontFamily, fontWeight: type.fontWeight, letterSpacing: type.letterSpacing }) + const copy = chip.cloneNode(true) + wide.replaceChildren(copy) + const needs = copy.getBoundingClientRect().width + const box = chip.getBoundingClientRect() + const room = item.getBoundingClientRect().width + if (box.width < Math.min(needs, room) - 1) problems.push(`${name}: it is ${box.width.toFixed(1)}px wide in ${room.toFixed(1)}px of room and its name needs ${needs.toFixed(1)}px`) + const qualifier = when.getBoundingClientRect() + const across = Math.min(qualifier.right, box.right) - Math.max(qualifier.left, box.left) + const down = Math.min(qualifier.bottom, box.bottom) - Math.max(qualifier.top, box.top) + if (across > 1 && down > 1) problems.push(`${name}: its qualifier is over it by ${down.toFixed(1)}px`) + } + wide.remove() + return { asked, problems } + }) +} + /** * A group heading is one line: the title, the count and the permalink share a baseline. * Each is probed with a zero-size inline box, which sits on the baseline of the line it is in. @@ -647,6 +689,95 @@ export async function checkChipGrowth(browser, base) { } finally { await context.close() } } +const USAGE = { list: '.tmux-usage', where: 'usage table' } + +/** + * The chips of the usage table on the page the maintainer saw them wrap on, `list-panes` at 1134px, and in a container narrow + * enough to wrap a name onto three lines, each judged as the Related APIs chips are. A chip with a qualifier keeps the width its + * name needs. Each control breaks one thing and the check must name it: a chip pinned to one line's height, a name below its chip, + * a chip squeezed by its qualifier and one chip moved onto another. + */ +export async function checkUsageChips(browser, base) { + const context = await browser.newContext({ viewport: { width: 1134, height: 900 } }) + const page = await context.newPage() + page.setDefaultNavigationTimeout(60000) + const ready = () => page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready', null, { timeout: 30000 }).catch(() => {}) + const measure = () => chipGrowthProblems(page, USAGE) + try { + await page.goto(`${base}/tmux/latest/manual/list-panes/`, { waitUntil: 'load' }) + await ready() + const real = await measure() + assert(real.wrapped > 0, 'No chip wrapped its name at 1134px, so growth was not measured on the page that showed it') + assert.deepEqual(real.problems, [], `A chip of the usage table on the list-panes manual page:\n${real.problems.join('\n')}`) + // Each chip with a qualifier keeps the width its name needs, and its qualifier is beside it or under it. + const qualified = await qualifierProblems(page) + assert(qualified.asked > 0, 'No chip with a qualifier on the list-panes manual page, so none was measured') + assert.deepEqual(qualified.problems, [], `A qualifier took room from its chip:\n${qualified.problems.join('\n')}`) + // A narrow container with a name that fits, one that wraps twice and one that wraps three times. + await page.evaluate(() => { + const model = document.querySelector('.tmux-usage a:has(> .api-nav__kind)') + const box = document.createElement('div') + box.className = 'tmux-usage' + box.dataset.control = 'narrow' + box.style.cssText = 'display:flex;flex-direction:column;align-items:flex-start;gap:6px;inline-size:8.5rem;margin:1rem 0' + for (const name of ['Window#panes', 'Async::Server#list_panes', 'LibTmux::Server#search_panes_with_options']) { + const chip = model.cloneNode(true) + chip.querySelector(':scope > .api-nav__kind + code').innerHTML = name.replace(/(::|(?=[#_]))/g, '$1') + box.append(chip) + } + model.closest('main, article, body').append(box) + }) + const narrow = await measure() + assert(narrow.wrapped >= real.wrapped + 2, 'The narrow container did not wrap the long names') + assert.deepEqual(narrow.problems, [], `A wrapped chip in a narrow container:\n${narrow.problems.join('\n')}`) + // A qualified chip in a cell too narrow to hold it and its qualifier side by side: the qualifier goes under the chip, which keeps its size. + const addQualified = () => page.evaluate(() => { + const item = [...document.querySelectorAll('.tmux-usage__item')].find((entry) => entry.querySelector(':scope > .tmux-usage__when')) + const links = item.parentElement.cloneNode(false) + links.dataset.control = 'qualified' + links.style.cssText = 'inline-size:11rem;margin:1rem 0' + links.append(item.cloneNode(true)) + item.closest('.tmux-usage').append(links) + }) + await addQualified() + const narrowQualified = await qualifierProblems(page) + assert(narrowQualified.asked === qualified.asked + 1, 'The qualified chip in a narrow cell was not measured') + assert.deepEqual(narrowQualified.problems, [], `A qualifier took room from its chip in a narrow cell:\n${narrowQualified.problems.join('\n')}`) + const fresh = async () => { + await page.reload({ waitUntil: 'load' }) + await ready() + } + const CHIP = '.tmux-usage a:has(> .api-nav__kind)' + // Control 1: a chip held to one line's height cannot hold a name of two lines, so the name spills out of it. + await fresh() + await page.addStyleTag({ content: `${CHIP} { height: var(--sp-h) !important; min-height: 0 !important; }` }) + const pinned = await measure() + assert(pinned.problems.some((problem) => /the chip is still one line tall/.test(problem)), 'The check did not notice a chip too short for its name') + assert(pinned.problems.some((problem) => /the name starts .* above the chip's top edge/.test(problem)), 'The check did not notice a name spilling out of the top of its chip') + // Control 2: a name that ends below its chip's bottom edge. + await fresh() + await page.addStyleTag({ content: `${CHIP} > .api-nav__kind + code { margin-bottom: -8px !important; }` }) + const below = await measure() + assert(below.problems.some((problem) => /runs .* past the chip's bottom edge/.test(problem)), 'The check did not notice a name running past its chip') + // Control 3: the layout this replaced, in which the chip shrinks beside a qualifier that cannot wrap, so its name wraps with room to spare. + await fresh() + await addQualified() + await page.addStyleTag({ content: '.tmux-usage__item { flex-wrap: nowrap !important; white-space: nowrap !important; } .tmux-usage__item > a { flex: 0 1 auto !important; } .tmux-usage__when { white-space: nowrap !important; }' }) + const squeezed = await qualifierProblems(page) + assert(squeezed.problems.some((problem) => /px wide in .*px of room and its name needs/.test(problem)), 'The check did not notice a chip that shrank for its qualifier') + // Control 4: a chip moved onto the one above it overlaps. + await fresh() + await page.evaluate(() => { + const items = [...document.querySelectorAll('.tmux-usage__item a:has(> .api-nav__kind)')] + const second = items.find((chip, index) => items[index - 1] && chip.parentElement === items[index - 1].parentElement) ?? items[1] + second.style.transform = 'translateY(-12px)' + }) + const moved = await measure() + assert(moved.problems.some((problem) => /overlaps/.test(problem)), 'The check did not notice a chip on top of the one above') + console.log(`Usage chips: ${real.chips} chips on the list-panes manual page (${real.wrapped} wrapped) and 3 in an 8.5rem container, each tall enough for its name, level with its mark and clear of the next, and ${qualified.asked + 1} qualified chips at the width their names need; controls caught a pinned height (${pinned.problems.length} problems), a name below its chip (${below.problems.length}), a chip squeezed by its qualifier (${squeezed.problems.length}) and an overlap (${moved.problems.length}) PASS`) + } finally { await context.close() } +} + if (import.meta.url === `file://${process.argv[1]}`) { const url = process.argv.find((arg) => arg.startsWith('--url='))?.slice(6) ?? 'http://localhost:47392/en' const browser = await chromium.launch() @@ -654,5 +785,6 @@ if (import.meta.url === `file://${process.argv[1]}`) { await checkBadgeCentring(browser, url, { sample: process.argv.includes('--sample') }) await checkMentionDensity(browser, url) await checkChipGrowth(browser, url) + await checkUsageChips(browser, url) } finally { await browser.close() } } diff --git a/site/scripts/check-dev.mjs b/site/scripts/check-dev.mjs index 5ad912ce0..7b785ec30 100644 --- a/site/scripts/check-dev.mjs +++ b/site/scripts/check-dev.mjs @@ -18,7 +18,7 @@ import { checkColorScheme } from './check-color-scheme.mjs' import { checkHomeExampleOptions } from './check-home-example-options.mjs' import { checkDevSample, checkRowPermalinks } from './check-dev-sample.mjs' import { checkDeclarationControlAlignment, checkDeclarationControlsLevel, checkMemberBodyInsets, checkNativeSignatureGeometry, checkNativeSignatureLinks } from './check-native-layout.mjs' -import { checkBadgeCentring, checkChipGrowth, checkMentionDensity } from './check-badge-centring.mjs' +import { checkBadgeCentring, checkChipGrowth, checkMentionDensity, checkUsageChips } from './check-badge-centring.mjs' import { checkBlockLinksUndecorated, checkKindBadgeLinks, checkRequiredAppearance, checkTmuxReferencePreviews, checkWebAnalytics, checkWebAnalyticsTransitions } from './check-page-readiness.mjs' import { checkTypeParameters } from './check-type-parameters.mjs' import { checkTmuxKeys, TMUX_KEY_PAGES } from './check-tmux-keys.mjs' @@ -809,6 +809,7 @@ try { await retryReload(() => checkBadgeCentring(browser, base)) await checkMentionDensity(browser, base) await checkChipGrowth(browser, base) + await checkUsageChips(browser, base) } else if (referencePreviewsOnly) { await retryReload(() => checkTmuxReferencePreviews(browser, base, { served: servedBuild(base) })) } else if (referencePreferencesOnly) { @@ -886,7 +887,8 @@ try { const kindBadges = schedule(() => retryReload(() => checkKindBadgeLinks(browser, base))) const badgeCentring = schedule(() => retryReload(() => checkBadgeCentring(browser, base, { sample: sampleOnly })) .then(() => checkMentionDensity(browser, base)) - .then(() => checkChipGrowth(browser, base))) + .then(() => checkChipGrowth(browser, base)) + .then(() => checkUsageChips(browser, base))) const blockLinks = schedule(() => retryReload(() => checkBlockLinksUndecorated(browser, base))) const referencePreviews = schedule(() => retryReload(() => checkTmuxReferencePreviews(browser, base, { served: servedBuild(base) }))) await apiAnchors diff --git a/site/src/components/tmux/TmuxUsage.astro b/site/src/components/tmux/TmuxUsage.astro index ac2143083..343c94ff4 100644 --- a/site/src/components/tmux/TmuxUsage.astro +++ b/site/src/components/tmux/TmuxUsage.astro @@ -73,9 +73,14 @@ const headingOf = (group: (typeof usage.groups)[number]) => group.scope ? group. /* Chips stack flush at the start of the cell, one to a line, with an even gap. */ .tmux-usage__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; } .tmux-usage__links a, .tmux-usage__links code { white-space: nowrap; overflow-wrap: normal; } - /* A send that only some calls make says when, beside the method on its line, quieter than the name. */ - .tmux-usage__item { display: inline-flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; } - .tmux-usage__when { opacity: 0.65; font-size: 0.75rem; } + /* + * A send that only some calls make says when, beside the method on its line, quieter than the name. The chip never gives + * up width to it: a chip that shrank wrapped its name to make room, so the qualifier goes under the chip when it does not + * fit beside it, and wraps in the cell when it is wider than that. + */ + .tmux-usage__item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; max-inline-size: 100%; } + .tmux-usage__item > a { flex: none; } + .tmux-usage__when { opacity: 0.65; font-size: 0.75rem; white-space: normal; } /* The scope columns no longer fit beside each other: give each language its own block. */ @container tmux-usage (max-width: 50rem) { .tmux-usage thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } diff --git a/site/test/chip-growth.test.ts b/site/test/chip-growth.test.ts index bfeeae36a..1659a79d1 100644 --- a/site/test/chip-growth.test.ts +++ b/site/test/chip-growth.test.ts @@ -9,7 +9,7 @@ import { judgeChipGrowth, railProblems } from '../scripts/check-badge-centring.m */ const marks = readFileSync(new URL('../src/styles/kind-marks.css', import.meta.url), 'utf8') -const CHIPS = ':is(.api-elsewhere-value, .api-command-related, nav.api-related)' +const CHIPS = ':is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related)' /** The declarations of the rule whose selector is `selector`, comments removed. */ function declarations(css: string, selector: string): Record | undefined { const plain = css.replace(/\/\*[\s\S]*?\*\//g, '') diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index b2d5f70aa..9879c50a4 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -895,6 +895,13 @@ function layoutProblems(css: string): string[] { const held = rules.some((rule) => chips(rule) && rule.selector.split(',').some((part) => part.trim().endsWith(` ${target}`)) && rule.body['white-space'] === 'nowrap') if (!held) problems.push(`a chip's ${target} can wrap`) } + // A qualifier never takes the chip's width: the chip does not shrink, and the qualifier drops under it and wraps instead. + const item = rules.find((rule) => rule.selector.trim() === '.tmux-usage__item')?.body + const chip = rules.find((rule) => rule.selector.trim() === '.tmux-usage__item > a')?.body + const when = rules.find((rule) => rule.selector.trim() === '.tmux-usage__when')?.body + if (!chip || !(chip.flex === 'none' || chip['flex-shrink'] === '0')) problems.push('a chip shrinks to make room for its qualifier') + if (item?.['flex-wrap'] !== 'wrap') problems.push('a qualifier cannot drop under its chip') + if (item?.['white-space'] === 'nowrap' || when?.['white-space'] !== 'normal') problems.push('a qualifier cannot wrap in the cell') for (const rule of rules.filter((candidate) => /(?:^|[\s,])td\b|__links/.test(candidate.selector) && !/__function/.test(candidate.selector))) { if (/anywhere|break-word/.test(rule.body['overflow-wrap'] ?? '') || rule.body['word-break'] === 'break-all') problems.push(`${rule.selector} breaks a name anywhere`) } @@ -923,6 +930,12 @@ describe('the chip layout of the usage table', () => { .replace(/\.tmux-usage__links a, \.tmux-usage__links code \{[^}]*\}/, '.tmux-usage__links > a + a { margin-inline-start: 0.4rem; }\n .tmux-usage__links > a { white-space: nowrap; }\n .tmux-usage td { overflow-wrap: anywhere; }') .replace(' overflow-x: auto; container: tmux-usage / inline-size;', '') .replace(/@container tmux-usage \(max-width: 50rem\)/, '@media (max-width: 40rem)') + // The layout of b8f892310: the chip shrinks beside a qualifier that cannot wrap, so a name of ten characters wraps in a wide cell. + const squeezed = css + .replace(/\.tmux-usage__item \{[^}]*\}/, '.tmux-usage__item { display: inline-flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; }') + .replace(/\s*\.tmux-usage__item > a \{[^}]*\}/, '') + .replace(/\.tmux-usage__when \{[^}]*\}/, '.tmux-usage__when { opacity: 0.65; font-size: 0.75rem; }') + expect(layoutProblems(squeezed)).toEqual(['a chip shrinks to make room for its qualifier', 'a qualifier cannot drop under its chip', 'a qualifier cannot wrap in the cell']) const collision = css.replace(':is(table, tbody, th) {', ':is(table, tbody, th, td) {') expect(layoutProblems(collision)).toEqual(['td is both block and grid when stacked']) const problems = layoutProblems(before) diff --git a/site/test/usage-qualifier-check.test.ts b/site/test/usage-qualifier-check.test.ts new file mode 100644 index 000000000..6da4ecc23 --- /dev/null +++ b/site/test/usage-qualifier-check.test.ts @@ -0,0 +1,61 @@ +import { Window } from 'happy-dom' +import { afterEach, describe, expect, it, vi } from 'vitest' +import { qualifierProblems } from '../scripts/check-badge-centring.mjs' + +/** + * The browser check of the usage table judges boxes it reads from the page. Here the boxes are written down, one chip and + * its qualifier at a time, so the judgement can be read without a browser: a chip that keeps the width its name needs passes, + * and a chip that gave up width to its qualifier, or a qualifier laid over its chip, is named. + */ +const windows: Window[] = [] +afterEach(async () => { vi.unstubAllGlobals(); for (const win of windows.splice(0)) await win.happyDOM.abort() }) + +interface Box { top: number; left: number; width: number; height: number } +interface Qualified { chip: Box; needs: number; room: number; when: Box } + +/** Items of the usage table, each a chip and its qualifier, with the width the chip's name needs and the room its cell gives it. */ +async function qualified(items: Qualified[]) { + const win = new Window() + windows.push(win) + const { document } = win + document.body.innerHTML = '

' + const links = document.querySelector('.tmux-usage__links')! + const rect = (box: Box) => ({ top: box.top, left: box.left, bottom: box.top + box.height, right: box.left + box.width, width: box.width, height: box.height }) + const place = (element: object, box: Box) => Object.defineProperty(element, 'getBoundingClientRect', { value: () => rect(box), configurable: true }) + Object.defineProperty(win.HTMLElement.prototype, 'offsetParent', { get() { return document.body }, configurable: true }) + for (const spec of items) { + const item = document.createElement('span') + item.className = 'tmux-usage__item' + item.innerHTML = 'fnewSessionthe spec names a first window' + const [chip, when] = [item.querySelector('a')!, item.querySelector('.tmux-usage__when')!] + links.append(item) + place(item, { top: spec.chip.top, left: spec.chip.left, width: spec.room, height: spec.chip.height }) + place(chip, spec.chip) + place(when, spec.when) + // A copy of the chip in the wide measuring box is as wide as its name needs. + const clone = chip.cloneNode.bind(chip) + Object.defineProperty(chip, 'cloneNode', { value: (deep?: boolean) => { const copy = clone(deep); place(copy, { ...spec.chip, width: spec.needs }); return copy }, configurable: true }) + } + vi.stubGlobal('document', document) + vi.stubGlobal('getComputedStyle', win.getComputedStyle.bind(win)) + return (await qualifierProblems({ evaluate: async (read: () => unknown) => read() })).problems +} + +describe('the qualifier check of the browser gate', () => { + const chip = (width: number): Box => ({ top: 0, left: 0, width, height: 20 }) + const beside: Box = { top: 4, left: 90, width: 190, height: 14 } + const under: Box = { top: 22, left: 0, width: 160, height: 28 } + + it('passes a chip at the width its name needs, with its qualifier beside it or under it', async () => { + expect(await qualified([{ chip: chip(80), needs: 80, room: 290, when: beside }])).toEqual([]) + expect(await qualified([{ chip: chip(80), needs: 80, room: 176, when: under }])).toEqual([]) + // A cell narrower than the name gives it the cell: the chip is as wide as the room, and wraps its name inside. + expect(await qualified([{ chip: { top: 0, left: 0, width: 100, height: 35 }, needs: 190, room: 100, when: { top: 38, left: 0, width: 100, height: 28 } }])).toEqual([]) + }) + + it('names a chip that gave up width to its qualifier in a cell with room, and a qualifier laid over its chip', async () => { + // The layout of b8f892310: the chip is 62px of 290 and its name of ten characters needs 80. + expect(await qualified([{ chip: chip(62), needs: 80, room: 290, when: beside }])).toEqual(['fnewSession: it is 62.0px wide in 290.0px of room and its name needs 80.0px']) + expect(await qualified([{ chip: chip(80), needs: 80, room: 290, when: { top: 4, left: 40, width: 190, height: 14 } }])).toEqual(['fnewSession: its qualifier is over it by 14.0px']) + }) +}) From 04d5d7f21941894644225ab34fb8cc3b0cf99627 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 08:06:17 -0500 Subject: [PATCH 22/53] fix(site[tmux-usage]) Forward go's observation list-windows, record julia's get_hook and the ts launch probe why: A review of 6c9bfce7b found three sends that no entry recorded, and one sentence of the README wrong. go `Pane.OpenObservation` list-windows (control_observation.go:350) holds on every call, but its claim lacked `forwardable`, and the forwarding reads only forwardable claims, so `Running.StreamTo`, which calls `OpenObservation` at session_run.go:549, had the other four sends of it and not this one. julia `get_hook` has no entry, though it reads a hook's command array with `show-options -H` through `_configuration_hook_rows`, as `set_hook` and `unset_hook` check one before they write. ts `main` asks `server.isAlive()` on an explicit launch (startup.ts:107), which sends list-sessions (server_utils.ts:129), and no entry said so. The README said every default call makes the command-alias reads of a guarded Ruby call, which `Session#kill` does not: its default takes `super`, so its two entries say `when`. what: - The claim for `OpenObservation` list-windows is `forwardable`, so `StreamTo` has it too. I looked for others: every reviewed claim of java, csharp and go was made forwardable in a copy of the rules and the wrapper entries regenerated. The claims added since fbf0b3a3b that gain callers are this one (which holds for every call) and go `NewSession`'s name lookup (which holds only when a name is given, so it is not forwarded); the other additions of that experiment are older claims, and the PowerShell ones stand on `CaptureSnapshotAsync`, which holds only for the depth it was read with. - julia `get_hook` has show-options, not incidental and with no qualifier: it is what the function is for, and its ControlConnection method sends it too (control_options.jl:81), so neither receiver lacks it. Its claim cites the server method's chain. - ts `main` has list-sessions "an explicit launch", through `isAlive` (server.ts:1301), and its display-message claim cites startup.ts:107, :110 and :124, the lines that make the "unless an explicit launch finds no server" qualifier true. - README: the incidental paragraph says a send a call makes whether or not the caller asked for it, and says `Session#kill` reads the inventory only when it is given expected windows or panes. - Tests: StreamTo has all five sends of `OpenObservation`, get_hook's entry is not incidental and has no qualifier while `set_hook`'s is, and the ts entries and the lines cited. Entries 1851 to 1854 (go 228 to 229, julia 73 to 74, ts 119 to 120); conditions 122 to 123 (ts 12 to 13). --- scripts/README.md | 11 ++-- scripts/tmux-usage/claims.json | 94 ++++++++++++++++++++++++++++ site/src/data/tmux-usage/go.json | 18 ++++++ site/src/data/tmux-usage/julia.json | 14 +++++ site/src/data/tmux-usage/ts.json | 15 +++++ site/test/tmux-library-usage.test.ts | 16 +++++ 6 files changed, 164 insertions(+), 4 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index 549790528..25abe015e 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -302,10 +302,13 @@ negative script seeds a rule that is wrong: `copy-mode` branch of a helper that `enterCopyMode` shares), or a request option that a wrapper never sets. Each cites the lines that show the guard, an exclusion that removes nothing fails, and `commands` limits it to those - commands of the symbols it names. A send that every default call makes is not an - exclusion, even when the method only makes it to prepare the call: it is - `incidental`, as the command-alias inventory a guarded Ruby call reads before - it sends is (`show-options` and `list-commands`, on the same nine symbols). + commands of the symbols it names. A send that a call makes whether or not the + caller asked for it is not an exclusion, even when the method only makes it to + prepare the call: it is `incidental`, as the command-alias inventory a guarded + Ruby call reads before it sends is (`show-options` and `list-commands`, on the + same nine symbols). `Session#kill` reads it only when it is given expected + windows or panes, since its default call takes `super`, so its two entries say + `when`. - `dispatchers.json`: the calls that send what they are given, per port, and the calls that only build a command value. Each cites the lines of the pinned source that show it and, for a call that sends, the chain from there to a diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 0d2fa8c3b..8209aabca 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -2021,6 +2021,60 @@ "server.cmd(\"display-message\"" ] }, + { + "at": "packages/mcp/src/startup.ts:107", + "has": [ + "server.isAlive()" + ] + }, + { + "at": "packages/mcp/src/startup.ts:110", + "has": [ + "server.cmd(\"display-message\"" + ] + }, + { + "at": "packages/mcp/src/startup.ts:124", + "has": [ + "return Object.freeze(" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "list-sessions", + "scope": null, + "when": "an explicit launch", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/server_utils.ts:129", + "has": [ + "runtime.transport.execute(", + "[\"list-sessions\"]" + ], + "span": 6 + }, + { + "at": "packages/libtmux/src/server.ts:1301", + "has": [ + "isAlive(runtimeForServer(this))" + ] + }, + { + "at": "packages/mcp/src/startup.ts:107", + "has": [ + "server.isAlive()" + ] + }, { "at": "packages/mcp/src/server.ts:244", "has": [ @@ -11016,6 +11070,45 @@ } ] }, + { + "port": "julia", + "symbol": "LibTmux.get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:403", + "has": [ + "_configuration_option_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:439", + "has": [ + "_configuration_hook_rows(context, scope, args.name)" + ], + "in": "LibTmux.get_hook" + } + ] + }, { "port": "cxx", "symbol": "libtmux::Connection::set_pane_output", @@ -13252,6 +13345,7 @@ "symbol": "tmux.Pane.OpenObservation", "command": "list-windows", "scope": "session", + "forwardable": true, "evidence": [ { "at": "tmux/control_observation.go:346", diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 0cfca0dde..9a534b5a8 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -751,6 +751,7 @@ "tmux/control_observation.go:346", "tmux/control_observation.go:301" ], + "forwardable": true, "reviewed": true, "scope": "session" }, @@ -1071,6 +1072,23 @@ "symbol": "tmux.Pane.OpenObservation" } }, + { + "command": "list-windows", + "evidence": [ + "tmux/session_run.go:549" + ], + "scope": "session", + "via": { + "evidence": [ + "tmux/control_observation.go:346", + "tmux/control_observation.go:301" + ], + "port": "go", + "reviewed": true, + "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "symbol": "tmux.Pane.OpenObservation" + } + }, { "command": "refresh-client", "evidence": [ diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json index 22d9f8011..59866eddc 100644 --- a/site/src/data/tmux-usage/julia.json +++ b/site/src/data/tmux-usage/julia.json @@ -208,6 +208,20 @@ "when": "on a Server" } ], + "LibTmux.get_hook": [ + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:403", + "src/configuration.jl:439" + ], + "reviewed": true, + "scope": null + } + ], "LibTmux.get_option": [ { "command": "show-options", diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json index 43063d3cf..a0c607d6d 100644 --- a/site/src/data/tmux-usage/ts.json +++ b/site/src/data/tmux-usage/ts.json @@ -122,12 +122,27 @@ "command": "display-message", "evidence": [ "packages/mcp/src/startup.ts:92", + "packages/mcp/src/startup.ts:107", + "packages/mcp/src/startup.ts:110", + "packages/mcp/src/startup.ts:124", "packages/mcp/src/server.ts:244" ], "reviewed": true, "scope": null, "when": "unless an explicit launch finds no server" }, + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:129", + "packages/libtmux/src/server.ts:1301", + "packages/mcp/src/startup.ts:107", + "packages/mcp/src/server.ts:244" + ], + "reviewed": true, + "scope": null, + "when": "an explicit launch" + }, { "command": "show-options", "evidence": [ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 9879c50a4..bce6268cc 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -361,6 +361,22 @@ describe('a release a library refuses to send on', () => { expect(use('java', main, 'display-message')?.evidence[0]).toBe('libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111') // go: the helper registers a kill for the end of the test, which is not a send of the call itself. expect(use('go', 'tmuxtest.NewSession', 'kill-session')?.when).toBe('the test ends, in t.Cleanup') + // ts: an explicit launch asks whether the server is there (list-sessions) and, if it is, for its socket path; the lines that say so are cited. + expect(use('ts', 'mcp.server.main', 'list-sessions')).toMatchObject({ when: 'an explicit launch', reviewed: true }) + expect(use('ts', 'mcp.server.main', 'display-message')?.evidence).toEqual(expect.arrayContaining(['packages/mcp/src/startup.ts:107', 'packages/mcp/src/startup.ts:110', 'packages/mcp/src/startup.ts:124'])) + }) + + it('credits a wrapper with every send of a method it calls, and reads a hook the way it reads an option', () => { + // OpenObservation sends list-windows on every call, as it does the other four, so the method that opens one has all five. + const sends = (symbol: string) => (TMUX_USAGE.go.symbols[symbol] ?? []).map((entry) => entry.command).sort() + expect(sends('tmux.Pane.OpenObservation')).toEqual(['capture-pane', 'delete-buffer', 'list-windows', 'refresh-client', 'save-buffer']) + expect(sends('tmux.Running.StreamTo')).toEqual(expect.arrayContaining(sends('tmux.Pane.OpenObservation'))) + expect(use('go', 'tmux.Running.StreamTo', 'list-windows')).toMatchObject({ scope: 'session', via: { symbol: 'tmux.Pane.OpenObservation' } }) + // julia's get_hook reads hooks with show-options -H on either receiver, as set_hook and unset_hook check them first; it is what it is for. + expect(use('julia', 'LibTmux.get_hook', 'show-options')).toMatchObject({ reviewed: true }) + expect(use('julia', 'LibTmux.get_hook', 'show-options')?.incidental).toBeUndefined() + expect(use('julia', 'LibTmux.get_hook', 'show-options')?.when).toBeUndefined() + expect(use('julia', 'LibTmux.set_hook', 'show-options')).toMatchObject({ incidental: true, when: 'on a Server' }) }) it('records the command-alias inventory of a guarded Ruby call as list-commands and show-options, on the same symbols', () => { From c1c87e91dbc8c24bbfa1d08b4f2fc6cd9a7ecadb Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 08:06:41 -0500 Subject: [PATCH 23/53] fix(site[tmux-usage]) Record go's name lookups: an exclusion had been removing the claim for them why: Writing a test for the forwarding in the last commit found that go `Server.NewSession`'s list-sessions, the name lookup that 5c4a7cc2b says it recorded as a claim, is in no entry of go.json. exclusions.json carries an exclusion of the same send ("lists sessions to look up a name only when the request carries one"), exclusions are applied after claims, and the exclusion removed the claim's entry. The claim was verified against the source on every generation and never shown, and nothing said so. `NewSessionConnection` has the same lookup (connection.go:176) and the same exclusion. what: - The exclusions of `NewSession` and `NewSessionConnection` for list-sessions are gone, and `NewSessionConnection` has a claim like `NewSession`'s: list-sessions "a name is given", incidental, citing the dispatch at session_lifecycle.go:155, the condition and the call. The method pages show it, and the command's pages do not list the methods for it. - Neither claim is forwardable: it holds only when a name is given, so a wrapper that passes its own request does not inherit it (tested). - An exclusion that removes the entry of a reviewed claim is now an error, naming the exclusion and the claim. Regenerating every port with it found no other (the ruby `switch_client` one went in 1d9cebd44 for the same reason). The negative script puts the `NewSession` exclusion back and requires the generator to refuse it, with the committed go rules passing as the control. - README: the claim-or-exclusion rule is stated so that this cannot be read both ways. A read the method makes of the server for its own argument is a claim with `when`, marked incidental; an exclusion is for a probe that asks the running tmux whether it knows a flag the caller set (`capture` asking `list-commands`) and for a branch the caller's argument never takes; and the two for one send contradict each other. Entries 1854 to 1856 (go 229 to 231); conditions 123 to 125 (go 23 to 25). --- scripts/README.md | 15 ++++++--- scripts/gen-tmux-usage.negative.mjs | 4 +++ scripts/lib/tmux-usage-derive.mjs | 6 +++- scripts/tmux-usage/claims.json | 29 ++++++++++++++++ scripts/tmux-usage/exclusions.json | 50 ---------------------------- site/src/data/tmux-usage/go.json | 24 +++++++++++++ site/test/tmux-library-usage.test.ts | 4 +++ 7 files changed, 77 insertions(+), 55 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index 25abe015e..606121d18 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -296,8 +296,8 @@ negative script seeds a rule that is wrong: evidence; a wrapper that only builds a request sends nothing and is named in the page's "No method in" line. - `exclusions.json`: the symbols whose scanned send is not what a default call - does: a probe that runs only when an optional argument, a name or a tmux - release asks for it (`capture` asking `list-commands` whether a flag exists), + does: a probe that runs only when a flag or a tmux release asks for it + (`capture` asking `list-commands` whether a flag exists), a branch that the caller's argument never takes (`exitCopyMode` reaching the `copy-mode` branch of a helper that `enterCopyMode` shares), or a request option that a wrapper never sets. Each cites the lines that show the guard, @@ -388,8 +388,15 @@ same port. An entry records what the default call sends, on every tmux release the port supports at its revision. What an argument changes (`new_session` killing an existing session of the same name, `breakPane` sending `if-shell` when no -`named:` is given) belongs to a claim that says the condition in `when`, and an -auxiliary probe that only an argument asks for belongs to an exclusion. The scan +`named:` is given) belongs to a claim that says the condition in `when`, and so +does a read the method makes of the server for its own argument, marked +`incidental` (go's `NewSession` and `NewSessionConnection` listing sessions to +find the name they were given). An exclusion is for a probe that asks the +running tmux whether it knows a flag the caller set (`capture` asking +`list-commands`), and for a branch the caller's argument never takes. An +exclusion and a claim for the same symbol, command and scope contradict each +other: the exclusion removes the claim's entry, which is how a claim recorded +once and never shown was found. The scan does not tell a send guarded by a parameter from an unguarded one, so these were found by listing every entry whose cited lines sit under an `if`, a `case` or a loop and reading each; a guard written as an early `return` or `next unless` diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 02eb3da0b..d493d3f2b 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -263,6 +263,10 @@ const BAD_RULES = [ }, /rs: plan.Plan.run set-option null: is marked conditional, so it must say when/], ['a condition that qualifies no entry', 'fsharp', 'conditions.json', (document) => { document.conditions.find((item) => item.port === 'fsharp').command = 'no-such-command' }, /fsharp: LibTmux.FSharp.Server.newSession no-such-command session: condition qualifies no entry/], + ['an exclusion that removes the entry of a claim for the same send', 'go', 'exclusions.json', (document) => { + document.exclusions.push({ port: 'go', owner: 'Server', names: ['NewSession'], commands: ['list-sessions'], why: 'NewSession lists sessions to look up a name only when the request carries one.', + evidence: [{ at: 'tmux/session_lifecycle.go:208', has: ['request.Name != ""'] }, { at: 'tmux/session_lifecycle.go:215', has: ['sessionNamed('] }] }) + }, /go: exclusion of Server\.NewSession for list-sessions: removes the reviewed claim of tmux\.Server\.NewSession list-sessions null, which says it sends it/], ['a conditional guard that does not say when', 'go', 'guards.json', (document) => { delete document.guards.find((guard) => guard.port === 'go' && guard.name === 'guardCommand').when }, /go: guard guardCommand: is conditional, so it must say when/], ['a guard whose function builds no if-shell', 'java', 'guards.json', (document) => { diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs index a74e15a1d..b9bd9bdd2 100644 --- a/scripts/lib/tmux-usage-derive.mjs +++ b/scripts/lib/tmux-usage-derive.mjs @@ -502,7 +502,11 @@ export function applyExclusions({ exclusions, found, symbols, readSource }) { && (!exclusion.in || symbol.file.startsWith(exclusion.in))).map((symbol) => symbol.id)) let count = 0 for (const [key, entry] of found) { - if (matched.has(entry.symbol) && (!exclusion.commands || exclusion.commands.includes(entry.command))) { found.delete(key); removed.push(entry); count++ } + if (matched.has(entry.symbol) && (!exclusion.commands || exclusion.commands.includes(entry.command))) { + // A claim says the send is made and an exclusion says it is not: the exclusion would win and the claim would never show. + if (entry.reviewed) problems.push(`${label}: removes the reviewed claim of ${entry.symbol} ${entry.command} ${entry.scope}, which says it sends it`) + found.delete(key); removed.push(entry); count++ + } } if (!count) problems.push(`${label}: removes no entry, so it is stale`) } diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 8209aabca..4caca585b 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -12619,6 +12619,35 @@ ], "incidental": true }, + { + "port": "go", + "symbol": "tmux.Server.NewSessionConnection", + "command": "list-sessions", + "scope": null, + "when": "a name is given", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:155", + "has": [ + "s.literalCmd(ctx, \"list-sessions\"" + ] + }, + { + "at": "tmux/connection.go:176", + "has": [ + "if request.Name != \"\"" + ] + }, + { + "at": "tmux/connection.go:177", + "has": [ + "effective.sessionNamed(ctx, request.Name)" + ], + "in": "tmux.Server.NewSessionConnection" + } + ], + "incidental": true + }, { "port": "swift", "symbol": "Server.capture(_:includingHistory:maximumLines:)", diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index 1d86aed8a..e22ca4d76 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -195,56 +195,6 @@ } ] }, - { - "port": "go", - "owner": "Server", - "names": [ - "NewSession" - ], - "commands": [ - "list-sessions" - ], - "why": "NewSession lists sessions to look up a name only when the request carries one.", - "evidence": [ - { - "at": "tmux/session_lifecycle.go:208", - "has": [ - "request.Name != \"\"" - ] - }, - { - "at": "tmux/session_lifecycle.go:215", - "has": [ - "sessionNamed(" - ] - } - ] - }, - { - "port": "go", - "owner": "Server", - "names": [ - "NewSessionConnection" - ], - "commands": [ - "list-sessions" - ], - "why": "NewSessionConnection lists sessions to look up a name only when the request carries one.", - "evidence": [ - { - "at": "tmux/connection.go:176", - "has": [ - "request.Name != \"\"" - ] - }, - { - "at": "tmux/connection.go:177", - "has": [ - "sessionNamed(" - ] - } - ] - }, { "port": "go", "owner": "Server", diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index 9a534b5a8..e4497cad2 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -1412,6 +1412,18 @@ "scope": null, "when": "KillExisting is set, session exists" }, + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:155", + "tmux/session_lifecycle.go:208", + "tmux/session_lifecycle.go:215" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "a name is given" + }, { "command": "new-session", "evidence": [ @@ -1426,6 +1438,18 @@ } ], "tmux.Server.NewSessionConnection": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:155", + "tmux/connection.go:176", + "tmux/connection.go:177" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "a name is given" + }, { "command": "new-session", "evidence": [ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index bce6268cc..0e6977877 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -372,6 +372,10 @@ describe('a release a library refuses to send on', () => { expect(sends('tmux.Pane.OpenObservation')).toEqual(['capture-pane', 'delete-buffer', 'list-windows', 'refresh-client', 'save-buffer']) expect(sends('tmux.Running.StreamTo')).toEqual(expect.arrayContaining(sends('tmux.Pane.OpenObservation'))) expect(use('go', 'tmux.Running.StreamTo', 'list-windows')).toMatchObject({ scope: 'session', via: { symbol: 'tmux.Pane.OpenObservation' } }) + // The control: a claim that only some arguments reach is not forwarded, so a wrapper that passes its own does not inherit it. + expect(use('go', 'tmux.Server.NewSession', 'list-sessions')).toMatchObject({ when: 'a name is given', incidental: true, reviewed: true }) + expect(use('go', 'tmux.Server.NewSessionConnection', 'list-sessions')).toMatchObject({ when: 'a name is given', incidental: true, reviewed: true }) + expect(Object.entries(TMUX_USAGE.go.symbols).filter(([symbol, entries]) => symbol !== 'tmux.Server.NewSession' && entries.some((entry) => entry.via?.symbol === 'tmux.Server.NewSession' && entry.command === 'list-sessions'))).toEqual([]) // julia's get_hook reads hooks with show-options -H on either receiver, as set_hook and unset_hook check them first; it is what it is for. expect(use('julia', 'LibTmux.get_hook', 'show-options')).toMatchObject({ reviewed: true }) expect(use('julia', 'LibTmux.get_hook', 'show-options')?.incidental).toBeUndefined() From 89776ead6e2054de347a9fd377d5d528a99e89f0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 08:09:13 -0500 Subject: [PATCH 24/53] fix(site[tmux-reference]) Check the reference trees the dev build does not serve in the assembly, and bound what the preview check leaves out why: df1c19ff8 made the dev-build preview check ask only for destinations the dev build serves, which leaves out the links into `/py/stable/reference/`. A review of 6c9bfce7b pointed out that the link policy still marks those links for a card, that nothing then checks they have one, and offered two ways out: stop marking links into trees the site does not build, or check them in the assembly. The first rests on the sentence in df1c19ff8, which is wrong, and I should not have written it: it said the assembly renders the stable Python reference with Sphinx and skips it where there is no checkout, so no payload exists for it in either place. Sphinx output is each port's `api/` tree (`publishesOwnApi`); `build-site.sh` says the reference is "one reference per port and version, at ///reference/, rendered by that port's own shell build", and that build writes `reference/.preview.json` beside each page. `publishesOwnTree` (set on every port, wrappers included) says the port's publisher owns the version subtree, not that it is made another way. The dev build serves py at `latest` only, which is why the check could not see it. Links into the stable tree do have cards, so they stay marked, and the assembly is where to check it. what: - `reference-previews.test.ts` reads an assembled tree (the publication audit's, skipped without one like the other output suites): for every version tree of every port, its products' and tmux's, each `reference//` the preview policy marks for a card has a payload at the address the policy computes, which is a card (schema, title, description) that leads back to that page. The walk is tested on a written tree: pages whose payloads lead back pass, a page with none, one that is not a card, one that is not JSON and one that leads elsewhere are each named, and the index and a page two segments down are not read. I could not run it on an assembly here. - The dev-build check bounds what it leaves out. `ownTreeElsewhere` says a destination is a core reference of a port whose publisher owns its tree (`publishesOwnTree`) at a version the build does not serve, and the check asserts that every destination it did not ask for is of that kind and that none it asked for is. The kind is the site's own statement, so a link that the check leaves out for any other reason, such as a port that stops publishing its tree or a version that is not another version, fails the check. - Tests: the two rules agree on a set of links (py at `stable` is out and every other destination is in), a port whose publisher does not own its tree is not one that is left out, and the version the build serves is not. - CONTRIBUTING.md says what the check leaves out and where the rest is checked. Not run in a browser or on an assembly. --- CONTRIBUTING.md | 14 ++-- site/scripts/check-page-readiness.mjs | 59 ++++++++++++---- site/test/preview-check.test.ts | 23 ++++++- site/test/reference-previews.test.ts | 96 +++++++++++++++++++++++++++ 4 files changed, 173 insertions(+), 19 deletions(-) create mode 100644 site/test/reference-previews.test.ts diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b8b15a132..c17c1d498 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -173,10 +173,16 @@ A link the page marks for a preview card must have a card to show. The preview check hovers the C function link of a method page, then asks for the payload of every marked link on four pages. It asks only for destinations the dev build serves: one version of each port's reference, as its build target says, so the -Python reference that the other ports link to at `stable` is not asked for. A -payload missing on a port the build does serve is reported, and the check fails -if it would not report one. Both checks run in the publication audit through the -full `check-dev.mjs` matrix, on its own source mirror and not on the assembly: +Python reference that the other ports link to at `stable` is not asked for. What +it leaves out is bounded: only reference trees whose publisher owns the version +tree (`publishesOwnTree`), at versions the dev build does not serve. A payload +missing on a port the build does serve is reported, and the check fails if it +would not report one. Both checks run in the publication audit through the full +`check-dev.mjs` matrix, on its own source mirror and not on the assembly. The +trees it leaves out are the shell's own in the assembly (each port's shell build +renders `//reference/`), and `reference-previews.test.ts` reads +every port and tmux tree there and requires a payload beside each page a link is +marked for: ```console $ node site/scripts/check-dev.mjs --reference-previews diff --git a/site/scripts/check-page-readiness.mjs b/site/scripts/check-page-readiness.mjs index fe4d129c3..74f649e88 100644 --- a/site/scripts/check-page-readiness.mjs +++ b/site/scripts/check-page-readiness.mjs @@ -532,28 +532,52 @@ export async function checkBlockLinksUndecorated(browser, base, { sample = false } /** - * Whether the build under test contains the destination of a link, as far as a preview payload is concerned. - * - * A port's core reference is a tree of its own, built for one version of the port, and the build under test serves - * one: `version`, the one its own target names. A link to another version of a port's reference leaves for a tree this - * build does not contain, such as the Python reference that the other ports' pages link to at its default, `stable` - * (the assembly renders that one with Sphinx, and skips it where there is no checkout). Everything else is served at - * whatever version a link names: tmux's pages, a product's pages, the glossary. + * The port and version a link's destination is a core reference of, if it is one. * - * `ports`, `version` and `segment` (the part of the path that makes a page a core reference) are the site's own: - * `PORTS`, `buildTarget` and `referenceSegment`, so a change to what is built moves this with it. + * A port's core reference is a tree of its own, built for one version of the port. `ports`, `segment` (the part of the path + * that makes a page a core reference) and `root` are the site's own: `PORTS`, `referenceSegment` and the mount of the build. * * @param {string} pathname the path of the link, root included - * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean }[], version: string, segment: string }} build + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean }[], segment: string }} build */ -export function servedByBuild(pathname, { root, ports, version, segment }) { +function coreReference(pathname, { root, ports, segment }) { const rest = pathname.startsWith(`${root}/`) ? pathname.slice(root.length + 1) : pathname.replace(/^\//, '') const parts = rest.split('/') const port = ports.find((entry) => entry.slug === parts[0]) - if (!port) return true + if (!port) return undefined const at = port.versionedDocs ? 2 : 1 - if (parts.slice(at, at + segment.split('/').length).join('/') !== segment) return true - return !port.versionedDocs || parts[1] === version + if (parts.slice(at, at + segment.split('/').length).join('/') !== segment) return undefined + return { port, version: port.versionedDocs ? parts[1] : undefined } +} + +/** + * Whether the build under test contains the destination of a link, as far as a preview payload is concerned. + * + * The build under test serves one version of each port's core reference: `version`, the one its own target names. A link + * to another version of a port's reference leaves for a tree this build does not contain, such as the Python reference that + * the other ports' pages link to at its default, `stable`. That tree exists in the assembly, where the port's own shell build + * renders it at `///reference/` with its payloads; `reference-previews.test.ts` checks them there. + * Everything else is served at whatever version a link names: tmux's pages, a product's pages, the glossary. + * + * @param {string} pathname the path of the link, root included + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean }[], version: string, segment: string }} build + */ +export function servedByBuild(pathname, build) { + const target = coreReference(pathname, build) + return !target || target.version === undefined || target.version === build.version +} + +/** + * Whether a destination is a core reference of a port whose publisher owns its version tree (`publishesOwnTree`), at a + * version this build does not serve: the one kind of destination the check leaves out, so that what it leaves out is + * bounded by what the site says and not by what the check finds convenient. + * + * @param {string} pathname the path of the link, root included + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean, publishesOwnTree?: boolean }[], version: string, segment: string }} build + */ +export function ownTreeElsewhere(pathname, build) { + const target = coreReference(pathname, build) + return Boolean(target?.port.publishesOwnTree) && target?.version !== undefined && target.version !== build.version } /** @@ -599,6 +623,7 @@ export async function checkTmuxReferencePreviews(browser, base, { served: build // Every link a page marks for a card, whose destination the build serves, has a payload at the address the card asks for. const missing = [] const skipped = new Set() + const questioned = new Set() let asked = 0 for (const path of ['/cxx/latest/reference/libtmux-server-panes/', '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', '/tmux/latest/reference/c-struct-window_pane/']) { await page.goto(`${base}${path}`, { waitUntil: 'load' }) @@ -607,10 +632,16 @@ export async function checkTmuxReferencePreviews(browser, base, { served: build const gaps = await payloadGaps(page.request, origin, hrefs, served) asked += hrefs.length - gaps.skipped.length for (const href of gaps.skipped) skipped.add(href) + for (const href of hrefs) if (!gaps.skipped.includes(href)) questioned.add(href) missing.push(...gaps.missing.map((gap) => `${path}: ${gap}`)) } assert(asked > 3, `Only ${asked} links were asked for a payload, so the pages were not measured`) assert.deepEqual(missing, [], `A link marked for a card that has none:\n${missing.join('\n')}`) + // What was left out is bounded by what the site says: only reference trees that a port's publisher owns, at versions this build does not serve. + if (build) { + assert.deepEqual([...skipped].filter((href) => !ownTreeElsewhere(href, build)), [], 'A destination was left out of the payload check that is not another version of a port tree') + assert.deepEqual([...questioned].filter((href) => ownTreeElsewhere(href, build)), [], 'A destination in another version of a port tree was asked for a payload') + } // The controls. A payload missing on a destination the build serves is reported, and a destination it does not serve is // left out and not reported, so the sweep cannot go green by skipping what it should have asked. if (served) { diff --git a/site/test/preview-check.test.ts b/site/test/preview-check.test.ts index bed3aa6b2..1d652085e 100644 --- a/site/test/preview-check.test.ts +++ b/site/test/preview-check.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { payloadGaps, servedByBuild } from '../scripts/check-page-readiness.mjs' +import { ownTreeElsewhere, payloadGaps, servedByBuild } from '../scripts/check-page-readiness.mjs' import { PORTS, referenceSegment, referenceUrl } from '../src/lib/ports' import { buildTarget, linkedVersionFor } from '../src/lib/versions' @@ -54,3 +54,24 @@ describe('asking for payloads', () => { expect(await payloadGaps(asked, 'http://x', hrefs, undefined)).toEqual({ missing: ['/en/cxx/latest/reference/missing/ answers 404', '/en/py/stable/reference/b/ answers 404'], skipped: [] }) }) }) + +describe('what the check leaves out', () => { + it('is only a core reference of a port whose publisher owns its tree, at a version the build does not serve', () => { + const env = environment({ py: 'stable' }) + const mounted = { ...build(env), root: '/en' } + const links = ['/en/py/stable/reference/libtmux-server-panes/', '/en/cxx/latest/reference/libtmux-server-panes/', '/en/py/stable/mcp/reference/x/', '/en/tmux/latest/reference/c-function-x/', '/en/py/latest/reference/a/'] + // Every link the check leaves out is of that kind, and every one of that kind is left out: the two rules agree on these links. + expect(links.filter((href) => !servedByBuild(href, mounted))).toEqual(['/en/py/stable/reference/libtmux-server-panes/']) + expect(links.filter((href) => ownTreeElsewhere(href, mounted))).toEqual(['/en/py/stable/reference/libtmux-server-panes/']) + expect(PORTS.filter((port) => !port.publishesOwnTree).map((port) => port.slug)).toEqual([]) + }) + + it('does not call a port tree that its publisher does not own, or one of the version the build serves, one that is left out', () => { + const env = environment({ py: 'stable' }) + const ports = PORTS.map((port) => (port.slug === 'py' ? { ...port, publishesOwnTree: false } : port)) + expect(ownTreeElsewhere('/py/stable/reference/a/', { ...build(env), ports })).toBe(false) + expect(ownTreeElsewhere('/py/latest/reference/a/', build(env))).toBe(false) + // A destination the check would leave out with no port tree behind it is the difference the check asserts on. + expect(servedByBuild('/py/stable/reference/a/', { ...build(env), ports })).toBe(false) + }) +}) diff --git a/site/test/reference-previews.test.ts b/site/test/reference-previews.test.ts new file mode 100644 index 000000000..eb859e6cb --- /dev/null +++ b/site/test/reference-previews.test.ts @@ -0,0 +1,96 @@ +import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { afterEach, describe, expect, it } from 'vitest' +import { createLinkPreviewPolicy } from '../src/lib/link-preview-paint' +import { SITE_BUILT, SITE_ROOT } from './site-root' + +/** + * Every reference page a link can lead to has a preview payload beside it. + * + * The preview policy marks a link to `//reference//` for a card, and the card asks for `.preview.json`. The + * browser check of the dev build serves one version of each port's reference, so it cannot ask for the trees at the other + * versions the assembly builds, such as the Python reference that the other ports link to at `stable`. Those trees are the + * shell's own: each port's shell build renders `///reference/` (the native Sphinx output of a port is `api/`), + * and `publishesOwnTree` says the port's publisher owns the subtree, not that it is made another way. This reads the assembly. + */ +const ORIGIN = 'https://libtmux.org' +const policy = createLinkPreviewPolicy() + +/** The directories of a tree under `root` that hold reference pages: a port's version trees, its products', and tmux's. */ +function referenceRoots(root: string): string[] { + const directories = (path: string) => (existsSync(path) ? readdirSync(path, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name) : []) + return directories(root).flatMap((tree) => directories(join(root, tree)).flatMap((version) => ['reference', 'mcp/reference', 'workspace/reference'] + .map((section) => `${tree}/${version}/${section}`))).filter((path) => existsSync(join(root, path))) +} + +/** The reference pages the policy marks for a card, and what is wrong with each one's payload. */ +export function referencePayloadProblems(root: string) { + const pages: string[] = [] + const problems: string[] = [] + for (const base of referenceRoots(root)) { + for (const entry of readdirSync(join(root, base), { withFileTypes: true })) { + const url = `/${base}/${entry.name}/` + if (!entry.isDirectory() || !existsSync(join(root, base, entry.name, 'index.html'))) continue + const target = policy.target(url, ORIGIN) + if (!target || !/\/reference\/[^/]+\/$/.test(url)) continue + pages.push(url) + const file = join(root, target.endpoint) + if (!existsSync(file)) { problems.push(`${url} has no payload at ${target.endpoint}`); continue } + let card: { schema?: unknown; title?: unknown; description?: unknown; href?: unknown } + try { card = JSON.parse(readFileSync(file, 'utf8')) } catch { problems.push(`${target.endpoint} is not JSON`); continue } + if (card.schema !== 1 || typeof card.title !== 'string' || typeof card.description !== 'string') problems.push(`${target.endpoint} is not a card`) + else if (typeof card.href !== 'string' || !new URL(card.href, ORIGIN).pathname.endsWith(url)) problems.push(`${target.endpoint} leads to ${String(card.href)}, not to ${url}`) + } + } + return { pages, problems } +} + +/** A bare shell build has no port trees to read; an assembly has them, and then there must be pages in them. */ +const assembledTrees = SITE_BUILT && referenceRoots(SITE_ROOT).length > 0 + +describe('the reference trees of the assembly', () => { + it.runIf(assembledTrees)('has a payload beside every reference page the preview policy marks, in every port version and in tmux', () => { + const { pages, problems } = referencePayloadProblems(SITE_ROOT) + expect(pages.length).toBeGreaterThan(0) + expect(problems).toEqual([]) + }) +}) + +describe('the walk over a tree', () => { + const made: string[] = [] + afterEach(() => { for (const path of made.splice(0)) rmSync(path, { recursive: true, force: true }) }) + const tree = (files: Record) => { + const root = mkdtempSync(join(tmpdir(), 'reference-previews-')) + made.push(root) + for (const [path, body] of Object.entries(files)) { + mkdirSync(join(root, path, '..'), { recursive: true }) + writeFileSync(join(root, path), body) + } + return root + } + const card = (href: string) => JSON.stringify({ schema: 1, title: 'x', description: '', href }) + + it('passes a tree whose pages each have a payload that leads back to them, and names the page that has none', () => { + const root = tree({ + 'py/stable/reference/a/index.html': '', 'py/stable/reference/a.preview.json': card('/en/py/stable/reference/a/'), + 'ruby/latest/mcp/reference/b/index.html': '', 'ruby/latest/mcp/reference/b.preview.json': card('/en/ruby/latest/mcp/reference/b/'), + // Not pages a link is marked for: the index of the tree, and a page two segments down. + 'py/stable/reference/index.html': '', 'py/stable/reference/symbols/a/index.html': '', + }) + expect(referencePayloadProblems(root)).toEqual({ pages: ['/py/stable/reference/a/', '/ruby/latest/mcp/reference/b/'], problems: [] }) + const missing = tree({ 'py/stable/reference/a/index.html': '', 'py/stable/reference/b/index.html': '', 'py/stable/reference/a.preview.json': card('/en/py/stable/reference/a/') }) + expect(referencePayloadProblems(missing).problems).toEqual(['/py/stable/reference/b/ has no payload at /py/stable/reference/b.preview.json']) + }) + + it('names a payload that is not a card or leads to another page', () => { + const root = tree({ + 'go/latest/reference/a/index.html': '', 'go/latest/reference/a.preview.json': JSON.stringify({ schema: 2, title: 'x', description: '' }), + 'go/latest/reference/b/index.html': '', 'go/latest/reference/b.preview.json': card('/en/go/latest/reference/c/'), + 'go/latest/reference/c/index.html': '', 'go/latest/reference/c.preview.json': '{', + }) + expect(referencePayloadProblems(root).problems).toEqual([ + '/go/latest/reference/a.preview.json is not a card', '/go/latest/reference/b.preview.json leads to /en/go/latest/reference/c/, not to /go/latest/reference/b/', '/go/latest/reference/c.preview.json is not JSON', + ]) + }) +}) From 8785a973a14a9f8c7f58baaa0f1c183b46f6be8d Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 20 Oct 2026 08:11:26 -0500 Subject: [PATCH 25/53] fix(site[tmux-usage]) Record PowerShell's senders at its model revision why: The PowerShell API model on main moved to libtmux-powershell 48d77050, which adds README links to 00a482f6, so the usage data no longer matched the model it describes and its check refused it. what: - Regenerate the PowerShell usage data at 48d77050; only the revision changes, since no source file the scan reads differs --- site/src/data/tmux-usage/powershell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json index bb3571623..6b303cf29 100644 --- a/site/src/data/tmux-usage/powershell.json +++ b/site/src/data/tmux-usage/powershell.json @@ -94,7 +94,7 @@ ], "port": "powershell", "repo": "libtmux/libtmux-powershell", - "revision": "00a482f6be0f3b24a0c2bf52018efe401aef8c13", + "revision": "48d770503a01e36426839b94951109dea6ce4562", "schemaVersion": 1, "symbols": { "LibTmux\\Connect-TmuxControl": [ From d2830f784f860d87b70f5c260bd01ec4e9dac0f0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 05:34:03 -0500 Subject: [PATCH 26/53] refactor(site[api-reference]) Build related types in one place why: The Related types cards and the Related APIs chips share one list, but the list was assembled inline in ApiReference's frontmatter and the cards were inline in its markup. Nothing outside a full page render could ask what a page's related list says, so no test could check the labels of every page, and no template could be rendered on its own. what: - Add relatedTypeLinks in api-sections.ts. It resolves the declaring type from the model and returns each entry's label, qualified name, kind, link and symbol, with the label the page already used: the name, plus the module of a top-level type whose name repeats - Move the Related types section into ApiRelatedTypes.astro with the same markup - ApiReference calls the function and the component No label changes: the lists of all 14,794 pages across the 16 ports' committed models are identical before and after. --- site/src/components/api/ApiReference.astro | 21 +++----------- site/src/components/api/ApiRelatedTypes.astro | 24 +++++++++++++++ site/src/lib/api-sections.ts | 29 +++++++++++++++++-- 3 files changed, 55 insertions(+), 19 deletions(-) create mode 100644 site/src/components/api/ApiRelatedTypes.astro diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 7ed2c1548..1f905706f 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -12,7 +12,8 @@ import { apiGlossary, apiGlossaryHeadings, API_GLOSSARY_TITLE, apiGlossaryHref } import ApiQualifiedName from '../../components/api/ApiQualifiedName.astro' import ApiType from '../../components/api/ApiType.astro' import ApiPageContents from '../../components/api/ApiPageContents.astro' -import { apiEntryFields, apiEntrySections, apiMemberGroups, hasScalarMembers, relatedApiTypes, type ApiSection } from '../../lib/api-sections' +import ApiRelatedTypes from './ApiRelatedTypes.astro' +import { apiEntryFields, apiEntrySections, apiMemberGroups, hasScalarMembers, relatedTypeLinks, type ApiSection } from '../../lib/api-sections' import PageToolbar from '../../components/PageToolbar.astro' import PagePortSwitcher from '../../components/PagePortSwitcher.astro' import DocumentationContext from '../../components/docs/DocumentationContext.astro' @@ -362,10 +363,7 @@ const paths = (source?.paths ?? []).filter((path) => !owner || path.symbols.some if (relationshipSections.some((section) => ['api-calls', 'api-called-by'].includes(section.id))) pageSections.push({ id: 'api-call-network', label: 'Call neighborhood' }) if (paths.length) pageSections.push({ id: 'api-source-paths', label: 'Paths through the source', count: paths.length }) pageSections.push(...relationshipSections.map((section) => ({ id: section.id, label: section.label, count: section.items.length }))) -const related = owner ? relatedApiTypes(owner, members, index, declaringType, { includeInternal: Boolean(source) }).map((symbol) => ({ - name: ownerNames.get(symbol.name)! > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name, - identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, -})) : [] +const related = owner && model ? relatedTypeLinks(model, owner, members, index, hrefFor, { repeated: ownerNames, includeInternal: Boolean(source) }) : [] if (related.length) pageSections.push({ id: 'api-related-types', label: 'Related types', count: related.length }) const title = glossary ? API_GLOSSARY_TITLE : owner ? qualifiedNameOf(owner) @@ -827,18 +825,7 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] )} - {related.length > 0 && } + ) } diff --git a/site/src/components/api/ApiRelatedTypes.astro b/site/src/components/api/ApiRelatedTypes.astro new file mode 100644 index 000000000..01a61121c --- /dev/null +++ b/site/src/components/api/ApiRelatedTypes.astro @@ -0,0 +1,24 @@ +--- +import type { SymbolIndex } from '@libtmux/api-model' +import type { RelatedTypeLink } from '../../lib/api-sections' +import ApiBadge from './ApiBadge.astro' +import ApiDoc from './ApiDoc.astro' + +interface Props { + related: RelatedTypeLink[] + index: SymbolIndex +} +const { related, index } = Astro.props as Props +--- +{related.length > 0 && } diff --git a/site/src/lib/api-sections.ts b/site/src/lib/api-sections.ts index be398402c..e79e1a2a2 100644 --- a/site/src/lib/api-sections.ts +++ b/site/src/lib/api-sections.ts @@ -1,5 +1,5 @@ import { createHash } from 'node:crypto' -import { builtinHref, memberTier, typeParametersOf, type ApiSymbol, type MemberSignals, type Param, type Signature, type SymbolIndex } from '@libtmux/api-model' +import { builtinHref, memberTier, moduleOf, qualifiedNameOf, typeParametersOf, type ApiModelBase, type ApiSymbol, type MemberSignals, type Param, type Signature, type SymbolIndex } from '@libtmux/api-model' import { apiGlossaryHref } from './api-glossary' import { csharpParameters, supportsCSharpSignatures, supportsElixirSignatures, supportsGoSignatures, supportsJavaSignatures, supportsLuaSignatures, supportsRubySignatures, supportsRustSignatures, supportsTypeScriptSignatures, swiftBaseName } from './code-layout' @@ -300,12 +300,15 @@ export function apiMemberGroups(members: ApiSymbol[], signals: MemberSignals) { return groups.filter((group) => group.members.length > 0) } +/** The declarations a related-types list can hold. */ +const RELATED_KINDS: ReadonlySet = new Set(['class', 'struct', 'union', 'interface', 'trait', 'enum', 'typealias']) + /** Related declarations come from ownership, inheritance and return types. */ export function relatedApiTypes(owner: ApiSymbol, members: ApiSymbol[], index: SymbolIndex, parent?: ApiSymbol, options: { includeInternal?: boolean } = {}) { const types = new Map() const add = (symbol?: ApiSymbol) => { if (!symbol || symbol.id === owner.id || (!options.includeInternal && symbol.apiScope === 'internal') || - !['class', 'struct', 'union', 'interface', 'trait', 'enum', 'typealias'].includes(symbol.kind)) return + !RELATED_KINDS.has(symbol.kind)) return types.set(symbol.publicId ?? symbol.id, symbol) } add(parent) @@ -325,6 +328,28 @@ export function relatedApiTypes(owner: ApiSymbol, members: ApiSymbol[], index: S return [...types.values()].slice(0, 6) } +export interface RelatedTypeLink { + /** The label the page shows. */ + name: string + /** The source-qualified name, for the link's title. */ + identity: string + kind: ApiSymbol['kind'] + href: string + symbol: ApiSymbol +} + +/** The related types of a page with the label it shows for each; `repeated` counts the top-level types that share a name. */ +export function relatedTypeLinks( + model: ApiModelBase, owner: ApiSymbol, members: ApiSymbol[], index: SymbolIndex, hrefFor: (symbol: ApiSymbol) => string, + options: { repeated: ReadonlyMap; includeInternal?: boolean }, +): RelatedTypeLink[] { + const parent = owner.parent ? model.symbols.find((symbol) => symbol.id === owner.parent) : undefined + return relatedApiTypes(owner, members, index, parent, { includeInternal: options.includeInternal }).map((symbol) => ({ + name: (options.repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name, + identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, + })) +} + /** Describe unnamed native types without inventing a compilable declaration. */ export function anonymousDeclarationLabel(symbol: ApiSymbol): string { return symbol.type ? `${symbol.name}: ${symbol.type}` : `Anonymous ${symbol.kind}` From 0dd6de44892ecbb0a33ad379ceb96a408f8bc55e Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 05:59:29 -0500 Subject: [PATCH 27/53] fix(site[api-labels]) Name the owner of ambiguous related types why: The Elixir Server reference listed its Related types as `t/0`, `t/0`, `result/0` and `t/0`: the types of Snapshot, Error, Transport.OneShot and Server, which a reader could not tell apart. Elixir writes a type as `name/arity` and calls every module's main type `t`, so the name means nothing until its module is attached; ExDoc spells them `LibTmux.Snapshot.t/0`. The list used the bare symbol name and qualified only a top-level type whose name repeats, which never reaches a member type. Ruby had the same fault on a smaller scale: LibTmux::Async::Server and LibTmux::Server both read `Server`. what: - relatedLabels in api-labels.ts labels the entries of one page's list. A bare name stands when the page's subject, or the declaration that holds it, owns the entry, so Server's own page keeps `t/0` where ExDoc lists a module's own types unqualified. An entry that another declaration owns takes `Owner.name`: always for Elixir, through the OWNER_BOUND_TYPES language hook, and in other languages only when more than one type in the port carries the name. Entries that still read alike then take their owner, and last their full qualified name - Spell the owner with the separator the language's qualified name uses: `Snapshot.t/0`, the form the page heading and breadcrumb of an Elixir type already use, and `Async::Server` in Ruby. The full name stays in the link title and aria label - relatedTypeLinks passes the language and the repeated names, and marks a label that carries its owner. ApiRelatedTypes and the Related APIs chips render such a label through SymbolName, so it breaks at the owner's separator and reads the same without the break - Test the rule on the reported Server page, a same-owner control, a cross-port control and collisions. On every page of the 16 ports, require that no related list repeats a label and that a label outside Elixir changes only for a shared name or a collision. Render the real cards and chips of every list longer than one entry and compare labels, titles, links, marks and break points. Check the tmux C source reference is untouched Measured on the committed models, over 14,794 pages: before, 21 Elixir pages (51 entries) and 2 Ruby pages (4 entries) listed a label twice; after, none do. Labels change on 56 Elixir pages (84 entries) and 6 Ruby pages (8 entries). The lists of the other 14 ports are identical, as are those of the tmux C source reference. Java's nested Builder, carried by seven types, is always owned by its own page, so it stays bare. Verified: reverting the rule fails 12 of the 18 new tests, including both no-duplicate checks; turning the Elixir hook off, dropping the collision pass, qualifying an entry at home, qualifying every owned entry and rendering a card without break points each fail the tests that name them. On a dev server, the Elixir Server page reads `Snapshot.t/0`, `Error.t/0`, `OneShot.result/0` and `t/0` at desktop and phone widths, the Ruby Async::Server.open page reads `Async::Server` and `LibTmux::Server`, and the Scala Server chips are unchanged; check-dev.mjs --badge-centring passes its Related APIs chip-growth check and negative controls. --- site/src/components/api/ApiPageContents.astro | 5 +- site/src/components/api/ApiReference.astro | 2 +- site/src/components/api/ApiRelatedTypes.astro | 3 +- site/src/lib/api-labels.ts | 54 ++++ site/src/lib/api-sections.ts | 38 ++- site/test/related-labels.test.ts | 253 ++++++++++++++++++ 6 files changed, 345 insertions(+), 10 deletions(-) create mode 100644 site/test/related-labels.test.ts diff --git a/site/src/components/api/ApiPageContents.astro b/site/src/components/api/ApiPageContents.astro index 7d1508b8f..4d09d4884 100644 --- a/site/src/components/api/ApiPageContents.astro +++ b/site/src/components/api/ApiPageContents.astro @@ -1,10 +1,11 @@ --- import type { ApiSection } from '../../lib/api-sections' import ApiBadge from './ApiBadge.astro' +import SymbolName from './SymbolName.astro' interface Props { sections: ApiSection[] - related: { name: string; identity: string; kind: string; href: string }[] + related: { name: string; qualified?: boolean; identity: string; kind: string; href: string }[] } const { sections, related } = Astro.props as Props --- @@ -22,7 +23,7 @@ const { sections, related } = Astro.props as Props

Related APIs

} diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 1f905706f..926f58d77 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -363,7 +363,7 @@ const paths = (source?.paths ?? []).filter((path) => !owner || path.symbols.some if (relationshipSections.some((section) => ['api-calls', 'api-called-by'].includes(section.id))) pageSections.push({ id: 'api-call-network', label: 'Call neighborhood' }) if (paths.length) pageSections.push({ id: 'api-source-paths', label: 'Paths through the source', count: paths.length }) pageSections.push(...relationshipSections.map((section) => ({ id: section.id, label: section.label, count: section.items.length }))) -const related = owner && model ? relatedTypeLinks(model, owner, members, index, hrefFor, { repeated: ownerNames, includeInternal: Boolean(source) }) : [] +const related = owner && model ? relatedTypeLinks(model, owner, members, index, hrefFor, { language, repeated: ownerNames, includeInternal: Boolean(source) }) : [] if (related.length) pageSections.push({ id: 'api-related-types', label: 'Related types', count: related.length }) const title = glossary ? API_GLOSSARY_TITLE : owner ? qualifiedNameOf(owner) diff --git a/site/src/components/api/ApiRelatedTypes.astro b/site/src/components/api/ApiRelatedTypes.astro index 01a61121c..867d2996e 100644 --- a/site/src/components/api/ApiRelatedTypes.astro +++ b/site/src/components/api/ApiRelatedTypes.astro @@ -3,6 +3,7 @@ import type { SymbolIndex } from '@libtmux/api-model' import type { RelatedTypeLink } from '../../lib/api-sections' import ApiBadge from './ApiBadge.astro' import ApiDoc from './ApiDoc.astro' +import SymbolName from './SymbolName.astro' interface Props { related: RelatedTypeLink[] @@ -16,7 +17,7 @@ const { related, index } = Astro.props as Props {related.map((item) => )} diff --git a/site/src/lib/api-labels.ts b/site/src/lib/api-labels.ts index 915829d9e..d47699a63 100644 --- a/site/src/lib/api-labels.ts +++ b/site/src/lib/api-labels.ts @@ -39,3 +39,57 @@ export function abbreviateNamespace(namespace: string): string { return parts.map((part, index) => index % 2 === 0 && index < parts.length - 1 ? namespaceSegments.segment(part)[Symbol.iterator]().next().value?.segment ?? '' : part).join('') } + +/** + * Languages whose type names mean nothing without their module: Elixir writes a type as `name/arity` and calls + * each module's main type `t`, so `t/0` outside its own module has to be `Snapshot.t/0`. + */ +const OWNER_BOUND_TYPES: ReadonlySet = new Set(['elixir']) + +/** What the related-types label rule needs to know about one entry. */ +export interface RelatedLabelInput { + id: string + /** The label before this rule: the name, with the module of a top-level type whose name repeats. */ + label: string + name: string + /** The source-qualified spelling the page's own heading and title use. */ + qualifiedName: string + /** The declaration this one is a member of. */ + owner?: { id: string; name: string } + /** More than one type in the port has this name. */ + shared: boolean +} + +/** + * `Owner.name` or `Owner::name`: the owner's name and the separator the language's qualified name puts before the entry. + * An entry with no owner, or whose qualified name does not end in `owner.name`, is spelled in full. + */ +export function ownerQualifiedName({ name, qualifiedName, owner }: RelatedLabelInput): string { + const head = qualifiedName.endsWith(name) ? qualifiedName.slice(0, qualifiedName.length - name.length) : undefined + const separator = head?.match(/[^\w$]+$/)?.[0] + if (!owner || !head || !separator || !head.slice(0, head.length - separator.length).endsWith(owner.name)) return qualifiedName + return `${owner.name}${separator}${name}` +} + +/** + * The visible labels of one page's related types, in order. + * + * A bare name stands when it is unambiguous and the page's own subject owns it. An entry another declaration owns takes + * that owner when the language binds a type's name to its module, or when more than one type in the port carries the + * name. Entries that still share a label then take their owner, and last their full name, so no two read alike. + * Every other label is left as it was. + * + * `home` holds the ids of the page's subject and of what contains it; an entry that is one of them, or that one declares, + * is at home. + */ +export function relatedLabels(inputs: readonly RelatedLabelInput[], home: ReadonlySet, language?: string): string[] { + const bound = language !== undefined && OWNER_BOUND_TYPES.has(language) + const atHome = (input: RelatedLabelInput) => home.has(input.id) || (input.owner !== undefined && home.has(input.owner.id)) + const labels = inputs.map((input) => input.owner && !atHome(input) && (bound || input.shared) ? ownerQualifiedName(input) : input.label) + for (const spell of [ownerQualifiedName, (input: RelatedLabelInput) => input.qualifiedName]) { + const counts = new Map() + for (const label of labels) counts.set(label, (counts.get(label) ?? 0) + 1) + for (const [i, input] of inputs.entries()) if ((counts.get(labels[i]!) ?? 0) > 1) labels[i] = spell(input) + } + return labels +} diff --git a/site/src/lib/api-sections.ts b/site/src/lib/api-sections.ts index e79e1a2a2..361e0297f 100644 --- a/site/src/lib/api-sections.ts +++ b/site/src/lib/api-sections.ts @@ -1,6 +1,7 @@ import { createHash } from 'node:crypto' import { builtinHref, memberTier, moduleOf, qualifiedNameOf, typeParametersOf, type ApiModelBase, type ApiSymbol, type MemberSignals, type Param, type Signature, type SymbolIndex } from '@libtmux/api-model' import { apiGlossaryHref } from './api-glossary' +import { relatedLabels } from './api-labels' import { csharpParameters, supportsCSharpSignatures, supportsElixirSignatures, supportsGoSignatures, supportsJavaSignatures, supportsLuaSignatures, supportsRubySignatures, supportsRustSignatures, supportsTypeScriptSignatures, swiftBaseName } from './code-layout' export interface ApiSection { @@ -331,6 +332,8 @@ export function relatedApiTypes(owner: ApiSymbol, members: ApiSymbol[], index: S export interface RelatedTypeLink { /** The label the page shows. */ name: string + /** Whether the label spells out the owner, so it breaks at the owner's separator. */ + qualified: boolean /** The source-qualified name, for the link's title. */ identity: string kind: ApiSymbol['kind'] @@ -338,15 +341,38 @@ export interface RelatedTypeLink { symbol: ApiSymbol } -/** The related types of a page with the label it shows for each; `repeated` counts the top-level types that share a name. */ +const typeNameCounts = new WeakMap>() +const symbolsById = new WeakMap>() + +/** + * The related types of a page with the label it shows for each; `repeated` counts the top-level types that share a name. + * `language` selects the owner-bound spelling of an Elixir type, see `relatedLabels`. + */ export function relatedTypeLinks( model: ApiModelBase, owner: ApiSymbol, members: ApiSymbol[], index: SymbolIndex, hrefFor: (symbol: ApiSymbol) => string, - options: { repeated: ReadonlyMap; includeInternal?: boolean }, + options: { language?: string; repeated: ReadonlyMap; includeInternal?: boolean }, ): RelatedTypeLink[] { - const parent = owner.parent ? model.symbols.find((symbol) => symbol.id === owner.parent) : undefined - return relatedApiTypes(owner, members, index, parent, { includeInternal: options.includeInternal }).map((symbol) => ({ - name: (options.repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name, - identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, + let ids = symbolsById.get(model.symbols) + let names = typeNameCounts.get(model.symbols) + if (!ids || !names) { + ids = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + names = new Map() + for (const symbol of model.symbols) if (RELATED_KINDS.has(symbol.kind)) names.set(symbol.name, (names.get(symbol.name) ?? 0) + 1) + symbolsById.set(model.symbols, ids) + typeNameCounts.set(model.symbols, names) + } + const symbols = relatedApiTypes(owner, members, index, owner.parent ? ids.get(owner.parent) : undefined, { includeInternal: options.includeInternal }) + const inputs = symbols.map((symbol) => { + const declarer = symbol.parent ? ids.get(symbol.parent) : undefined + return { + id: symbol.id, name: symbol.name, qualifiedName: qualifiedNameOf(symbol), shared: (names.get(symbol.name) ?? 0) > 1, + label: (options.repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name, + owner: declarer && { id: declarer.id, name: declarer.name }, + } + }) + const labels = relatedLabels(inputs, new Set([owner.id, ...(owner.parent ? [owner.parent] : [])]), options.language) + return symbols.map((symbol, i) => ({ + name: labels[i]!, qualified: labels[i] !== inputs[i]!.label, identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, })) } diff --git a/site/test/related-labels.test.ts b/site/test/related-labels.test.ts new file mode 100644 index 000000000..7c34a67de --- /dev/null +++ b/site/test/related-labels.test.ts @@ -0,0 +1,253 @@ +import { afterEach, describe, expect, it } from 'vitest' +import { experimental_AstroContainer } from 'astro/container' +import { Window, type Document } from 'happy-dom' +import { membersOf, memberSignals, moduleOf, qualifiedNameOf, type ApiSymbol } from '@libtmux/api-model' +import mentionsData from '../src/data/mentions.json' +import { API_MODELS, indexFor, pageSlug, topLevelTypesOf } from '../src/lib/api-models' +import { ownerQualifiedName, relatedLabels, type RelatedLabelInput } from '../src/lib/api-labels' +import { relatedApiTypes, relatedTypeLinks, type RelatedTypeLink } from '../src/lib/api-sections' +import { coreApiSymbols } from '../src/lib/product-api' +import { tmuxReferenceIndex, tmuxReferenceUrl, tmuxSourceModel } from '../src/lib/tmux-reference' +import { loadAstroTemplate, withoutScope } from './astro-templates' + +/** + * A related type is labelled so that a reader can tell which entity it is. A bare name stays when it is unambiguous and the page's + * own subject owns it; an Elixir type, whose `t/0` means nothing outside its module, and any name more than one type in the port carries + * take their owner when another declaration owns them; entries that would still read alike take their owner, then their full name. + */ + +const entry = (id: string, over: Partial = {}): RelatedLabelInput => { + const name = id.split(/[.:]+/).at(-1)! + const owner = id.slice(0, id.length - name.length).replace(/[.:]+$/, '') + return { id, name, label: name, qualifiedName: id, shared: false, owner: owner ? { id: owner, name: owner.split(/[.:]+/).at(-1)! } : undefined, ...over } +} +const duplicates = (labels: readonly string[]) => [...new Set(labels.filter((label, i) => labels.indexOf(label) !== i))] + +describe('the label rule', () => { + // The reported page: LibTmux.Server lists four types, three of them called t/0. + const server = ['LibTmux.Snapshot.t/0', 'LibTmux.Error.t/0', 'LibTmux.Transport.OneShot.result/0', 'LibTmux.Server.t/0'].map((id) => entry(id)) + + it('names the owner of an Elixir type that another module owns, and leaves the page subject\'s own type bare', () => { + expect(relatedLabels(server, new Set(['LibTmux.Server']), 'elixir')).toEqual(['Snapshot.t/0', 'Error.t/0', 'OneShot.result/0', 't/0']) + }) + + it('names the owner of the same types on a page that is not their owner\'s', () => { + expect(relatedLabels(server, new Set(['LibTmux.Pane']), 'elixir')).toEqual(['Snapshot.t/0', 'Error.t/0', 'OneShot.result/0', 'Server.t/0']) + }) + + it('reads a member page\'s own module as home: the page and the module that declares it', () => { + expect(relatedLabels(server, new Set(['LibTmux.Server.new_session/2', 'LibTmux.Server']), 'elixir')[3]).toBe('t/0') + expect(relatedLabels(server, new Set(['LibTmux.Snapshot.t/0', 'LibTmux.Snapshot']), 'elixir')).toEqual(['t/0', 'Error.t/0', 'OneShot.result/0', 'Server.t/0']) + }) + + it('names the owner of an Elixir type even when no other type shares its name', () => { + const [only] = [entry('LibTmux.Schema.observation/0')] + expect(relatedLabels([only!], new Set(['LibTmux.Filter']), 'elixir')).toEqual(['Schema.observation/0']) + }) + + it('leaves another port\'s names alone when nothing makes them ambiguous', () => { + // A nested name only one type carries, a top-level name and a top-level name that repeats: none of them is touched. + const unique = [entry('swift.RegexPattern.Options'), entry('Server'), entry('libtmux.Server', { label: 'Server (libtmux)', owner: undefined })] + expect(relatedLabels(unique, new Set(['Client']), 'swift')).toEqual(['Options', 'Server', 'Server (libtmux)']) + }) + + it('separates colliding names in any language and leaves the unambiguous one in the same list alone', () => { + expect(relatedLabels(server, new Set(['LibTmux.Pane']), 'ruby')).toEqual(['Snapshot.t/0', 'Error.t/0', 'result/0', 'Server.t/0']) + }) + + it('names the owner of a nested name that more than one type in the port carries, when the page does not own it', () => { + const builder = entry('io.github.libtmux.CaptureSpec.Builder', { shared: true }) + expect(relatedLabels([builder], new Set(['io.github.libtmux.FilterSpec']), 'java')).toEqual(['CaptureSpec.Builder']) + expect(relatedLabels([builder], new Set(['io.github.libtmux.CaptureSpec']), 'java')).toEqual(['Builder']) + expect(relatedLabels([builder], new Set(['io.github.libtmux.CaptureSpec.Builder.from', 'io.github.libtmux.CaptureSpec.Builder']), 'java')).toEqual(['Builder']) + const async = entry('LibTmux::Async::Server', { shared: true }) + expect(relatedLabels([async], new Set(['LibTmux::Async::Scope#server', 'LibTmux::Async::Scope']), 'ruby')).toEqual(['Async::Server']) + }) + + it('names the owner of whichever entries still read alike, and spells the last collision in full', () => { + const pair = [entry('LibTmux::Async::Server', { label: 'Server' }), entry('LibTmux::Server', { label: 'Server', owner: undefined })] + expect(duplicates(pair.map((item) => item.label))).toEqual(['Server']) + expect(relatedLabels(pair, new Set(['LibTmux::Async::Server']), 'ruby')).toEqual(['Async::Server', 'LibTmux::Server']) + const twins = [entry('A.Request.t/0'), entry('B.Request.t/0')] + expect(relatedLabels(twins, new Set(['C']), 'elixir')).toEqual(['A.Request.t/0', 'B.Request.t/0']) + }) + + it('spells the owner with the separator the language\'s own qualified name uses', () => { + expect(ownerQualifiedName(entry('LibTmux.Snapshot.t/0'))).toBe('Snapshot.t/0') + expect(ownerQualifiedName(entry('libtmux::FilterExpr::Node'))).toBe('FilterExpr::Node') + expect(ownerQualifiedName(entry('LibTmux::Async::Server'))).toBe('Async::Server') + expect(ownerQualifiedName(entry('Server', { owner: undefined }))).toBe('Server') + expect(ownerQualifiedName(entry('x.Y.z', { owner: { id: 'x.Q', name: 'Q' } }))).toBe('x.Y.z') + }) +}) + +const TYPES = ['class', 'struct', 'union', 'interface', 'trait', 'enum', 'typealias'] + +/** `before` is each entry's label without the owner rule: its name, with the module of a top-level type whose name repeats. */ +interface Page { port: string; owner: ApiSymbol; links: RelatedTypeLink[]; before: string[] } + +let built: Page[] | undefined + +/** Every page of every port, with the related list the page builds. */ +function pages(): Page[] { + if (built) return built + const all: Page[] = [] + for (const [port, model] of Object.entries(API_MODELS)) { + const hrefFor = (symbol: ApiSymbol) => `/${port}/${symbol.slug ?? pageSlug(symbol.publicId ?? symbol.id)}/` + const index = indexFor(model, hrefFor) + const signals = memberSignals(port, mentionsData.mentions) + const repeated = new Map() + for (const type of topLevelTypesOf(model)) repeated.set(type.name, (repeated.get(type.name) ?? 0) + 1) + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + for (const owner of coreApiSymbols(model)) { + const members = membersOf(model, owner, signals) + const links = relatedTypeLinks(model, owner, members, index, hrefFor, { language: port, repeated }) + const before = relatedApiTypes(owner, members, index, owner.parent ? byId.get(owner.parent) : undefined) + .map((symbol) => (repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name) + all.push({ port, owner, links, before }) + } + } + return (built = all) +} + +describe('related types on the committed models', () => { + const all = pages() + const page = (port: string, id: string) => { + const found = all.find((entry) => entry.port === port && (entry.owner.publicId ?? entry.owner.id) === id) + if (!found) throw new Error(`no ${port} page for ${id}`) + return found + } + const labels = (entry: Page) => entry.links.map((link) => link.name) + + it('lists the reported Elixir page by owner and links each to its own page', () => { + const server = page('elixir', 'LibTmux.Server') + expect(server.before).toEqual(['t/0', 't/0', 'result/0', 't/0']) + expect(labels(server)).toEqual(['Snapshot.t/0', 'Error.t/0', 'OneShot.result/0', 't/0']) + expect(server.links.map((link) => link.identity)).toEqual(['LibTmux.Snapshot.t/0', 'LibTmux.Error.t/0', 'LibTmux.Transport.OneShot.result/0', 'LibTmux.Server.t/0']) + expect(server.links.map((link) => link.href)).toEqual(['/elixir/libtmux-snapshot-t-0/', '/elixir/libtmux-error-t-0/', '/elixir/libtmux-transport-oneshot-result-0/', '/elixir/libtmux-server-t-0/']) + expect(server.links.map((link) => link.kind)).toEqual(Array(4).fill('typealias')) + expect(server.links.map((link) => link.qualified)).toEqual([true, true, true, false]) + }) + + it('names the owner in an Elixir list for every type another module owns, and for no other', () => { + for (const { owner, links } of all.filter((entry) => entry.port === 'elixir')) { + for (const link of links.filter((item) => item.symbol.parent)) { + const home = link.symbol.parent === owner.id || link.symbol.parent === owner.parent || link.symbol.id === owner.parent + expect(link.name === link.symbol.name, `${qualifiedNameOf(owner)}: ${link.identity} reads as ${link.name}`).toBe(home) + } + } + }) + + it('shows no two entries of one related list with the same label, on any port', () => { + const alike = all.flatMap(({ port, owner, links }) => duplicates(links.map((link) => link.name)).map((label) => `${port} ${qualifiedNameOf(owner)}: ${label}`)) + expect(alike).toEqual([]) + }) + + it('shows no two entries alike on the tmux C source reference either, and renames none', () => { + const version = '3.7c' + const model = tmuxSourceModel(version) + const index = tmuxReferenceIndex(version) + const signals = memberSignals('', []) + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + const repeated = new Map() + for (const symbol of model.symbols) if (!symbol.parent) repeated.set(symbol.name, (repeated.get(symbol.name) ?? 0) + 1) + const renamed: string[] = [] + for (const owner of model.symbols) { + const members = membersOf(model, owner, signals) + const links = relatedTypeLinks(model, owner, members, index, (symbol) => tmuxReferenceUrl(version, symbol), { language: model.language, repeated, includeInternal: true }) + const before = relatedApiTypes(owner, members, index, owner.parent ? byId.get(owner.parent) : undefined, { includeInternal: true }) + .map((symbol) => (repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name) + if (links.some((link, i) => link.name !== before[i]) || duplicates(links.map((link) => link.name)).length > 0) renamed.push(owner.id) + } + expect(renamed).toEqual([]) + }, 120_000) + + it('can fail: without the rule the Elixir and Ruby lists repeat a label', () => { + const repeating = all.filter((entry) => duplicates(entry.before).length > 0) + expect([...new Set(repeating.map((entry) => entry.port))].sort()).toEqual(['elixir', 'ruby']) + }) + + it('changes a label outside Elixir only for a name more than one type carries or for entries that would read alike', () => { + const carried = new Map(Object.entries(API_MODELS).map(([port, model]) => { + const count = new Map() + for (const symbol of model.symbols) if (TYPES.includes(symbol.kind)) count.set(symbol.name, (count.get(symbol.name) ?? 0) + 1) + return [port, count] as const + })) + for (const { port, owner, links, before } of all.filter((entry) => entry.port !== 'elixir')) { + for (const [i, link] of links.entries()) { + if (!link.qualified) continue + const reason = (carried.get(port)!.get(link.symbol.name) ?? 0) > 1 || before.filter((label) => label === before[i]).length > 1 + expect(reason, `${port} ${qualifiedNameOf(owner)}: ${link.identity} reads as ${link.name}`).toBe(true) + } + } + }) + + it('leaves every label of a port with no nested type as its name, or its name and module', () => { + for (const [port, model] of Object.entries(API_MODELS)) { + if (model.symbols.some((symbol) => TYPES.includes(symbol.kind) && symbol.parent)) continue + for (const { owner, links } of all.filter((entry) => entry.port === port)) { + for (const link of links) { + expect([link.symbol.name, `${link.symbol.name} (${moduleOf(link.symbol)})`], `${port} ${qualifiedNameOf(owner)}`).toContain(link.name) + } + } + } + }) + + it('keeps Java\'s Builder bare on its own class and Ruby\'s two Servers apart', () => { + expect(labels(page('java', 'io.github.libtmux.CaptureSpec.CaptureSpec'))).toEqual(['Builder']) + expect(labels(page('java', 'io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build'))).toEqual(['Builder', 'CaptureSpec']) + expect(labels(page('ruby', 'LibTmux::Async::Server.open'))).toEqual(['Async::Server', 'LibTmux::Server']) + expect(labels(page('ruby', 'LibTmux::Async::Scope#server'))).toEqual(['Scope', 'Async::Server']) + }) +}) + +describe('the rendered related lists', () => { + const windows: Window[] = [] + afterEach(async () => { for (const win of windows.splice(0)) await win.happyDOM.abort() }) + + async function templates() { + const cards = await loadAstroTemplate('components/api/ApiRelatedTypes.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) + const rail = await loadAstroTemplate('components/api/ApiPageContents.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) + return { cards, rail } + } + + /** One related list as the reader sees it: the label and title of each link, and the label's markup. */ + function shown(root: Document, selector: string) { + return [...root.querySelectorAll(selector)].map((link) => { + const code = link.querySelector('code')! + return { label: code.textContent, markup: code.innerHTML, title: link.getAttribute('title'), href: link.getAttribute('href'), mark: link.querySelector('.api-nav__kind')?.textContent } + }) + } + + it('draws the same unique labels in the Related types cards and the Related APIs chips of every list', async () => { + const { cards, rail } = await templates() + const win = new Window({ url: 'https://libtmux.org/' }) + windows.push(win) + const container = await experimental_AstroContainer.create() + const render = async (template: unknown, props: Record) => withoutScope(await container.renderToString( + template as Parameters[0], { request: new Request('https://libtmux.org/'), props })) + let lists = 0 + for (const { port, owner, links } of pages().filter((entry) => entry.links.length > 1)) { + const where = `${port} ${qualifiedNameOf(owner)}` + win.document.body.innerHTML = await render(cards, { related: links, index: undefined }) + await render(rail, { sections: [], related: links }) + const card = shown(win.document, '.api-related-card > a') + const chip = shown(win.document, 'nav.api-related a') + expect(card.map((item) => item.label), where).toEqual(links.map((link) => link.name)) + expect(chip.map((item) => item.label), where).toEqual(links.map((link) => link.name)) + expect(duplicates(card.map((item) => item.label!)), where).toEqual([]) + expect(duplicates(chip.map((item) => item.label!)), where).toEqual([]) + for (const [i, link] of links.entries()) { + for (const item of [card[i]!, chip[i]!]) { + expect(item.title, where).toBe(link.identity) + expect(item.href, where).toBe(link.href) + expect(item.mark, where).toBeTruthy() + // A label with its owner breaks at the owner's separator and reads the same without the break points. + expect(item.markup.includes(''), `${where}: ${link.name}`).toBe(link.qualified && /[._#]|::/.test(link.name)) + expect(item.markup.replaceAll('', ''), where).toBe(link.name.replaceAll('&', '&')) + } + } + lists++ + } + expect(lists).toBeGreaterThan(1000) + }, 300_000) +}) From 498a1545d7a16e491f292565f1853af7e2e0ccd0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 06:27:42 -0500 Subject: [PATCH 28/53] test(site[related-labels]) Pin which labels break at their owner why: Review found that the `qualified` flag of a related type, which decides whether its label gets `` break points, was not tested outside the Elixir Server page. The rendered-list test took its expected break points from `link.qualified`, so the flag could be narrowed to Elixir and every other qualified label, Ruby's `Async::Server` and the collision labels among them, would lose its breaks with all 18 tests still passing. The label that repeats in the same list was also pinned to Elixir and Ruby by name, so a model change in another port could fail it for an unrelated reason, and the corpus was built while the file was collected, which every `-t` run paid for. what: - Assert on every page that `qualified` is true exactly when the label differs from the one the page used before the rule - Derive the expected markup of each card and chip from the label text and that earlier label: a changed label carries the break points that `wordBreak` gives its text, and an unchanged one carries none. The rendered test no longer reads `link.qualified` - Make the "can fail" case data-driven: some list repeats a label without the rule, and none does with it - Build the corpus in a `beforeAll` of the suite that reads it, so a run that selects only the rule's unit tests skips it Verified: narrowing the flag to `language === 'elixir'` passed all 18 tests before this commit and fails 2 of 19 now: the flag check, which names the 8 Ruby entries, and the rendered lists, which find `Async::ControlSubscription` without its break points. Setting the flag to true fails 4, and reverting the rule still fails 13, the can-fail case among them. The full site suite, lint and astro check pass. --- site/test/related-labels.test.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/site/test/related-labels.test.ts b/site/test/related-labels.test.ts index 7c34a67de..e0c76f353 100644 --- a/site/test/related-labels.test.ts +++ b/site/test/related-labels.test.ts @@ -1,4 +1,4 @@ -import { afterEach, describe, expect, it } from 'vitest' +import { afterEach, beforeAll, describe, expect, it } from 'vitest' import { experimental_AstroContainer } from 'astro/container' import { Window, type Document } from 'happy-dom' import { membersOf, memberSignals, moduleOf, qualifiedNameOf, type ApiSymbol } from '@libtmux/api-model' @@ -7,6 +7,7 @@ import { API_MODELS, indexFor, pageSlug, topLevelTypesOf } from '../src/lib/api- import { ownerQualifiedName, relatedLabels, type RelatedLabelInput } from '../src/lib/api-labels' import { relatedApiTypes, relatedTypeLinks, type RelatedTypeLink } from '../src/lib/api-sections' import { coreApiSymbols } from '../src/lib/product-api' +import { wordBreak } from '../src/lib/word-break' import { tmuxReferenceIndex, tmuxReferenceUrl, tmuxSourceModel } from '../src/lib/tmux-reference' import { loadAstroTemplate, withoutScope } from './astro-templates' @@ -111,7 +112,8 @@ function pages(): Page[] { } describe('related types on the committed models', () => { - const all = pages() + let all: Page[] = [] + beforeAll(() => { all = pages() }, 120_000) const page = (port: string, id: string) => { const found = all.find((entry) => entry.port === port && (entry.owner.publicId ?? entry.owner.id) === id) if (!found) throw new Error(`no ${port} page for ${id}`) @@ -162,9 +164,15 @@ describe('related types on the committed models', () => { expect(renamed).toEqual([]) }, 120_000) - it('can fail: without the rule the Elixir and Ruby lists repeat a label', () => { - const repeating = all.filter((entry) => duplicates(entry.before).length > 0) - expect([...new Set(repeating.map((entry) => entry.port))].sort()).toEqual(['elixir', 'ruby']) + it('can fail: without the rule some list repeats a label, and with it none does', () => { + expect(all.filter((entry) => duplicates(entry.before).length > 0).length).toBeGreaterThan(0) + expect(all.filter((entry) => duplicates(labels(entry)).length > 0)).toEqual([]) + }) + + it('marks as qualified exactly the labels the rule changed', () => { + const wrong = all.flatMap(({ port, owner, links, before }) => links.flatMap((link, i) => + link.qualified === (link.name !== before[i]) ? [] : [`${port} ${qualifiedNameOf(owner)}: ${link.identity} reads as ${link.name}, was ${before[i]}, qualified is ${link.qualified}`])) + expect(wrong).toEqual([]) }) it('changes a label outside Elixir only for a name more than one type carries or for entries that would read alike', () => { @@ -227,7 +235,7 @@ describe('the rendered related lists', () => { const render = async (template: unknown, props: Record) => withoutScope(await container.renderToString( template as Parameters[0], { request: new Request('https://libtmux.org/'), props })) let lists = 0 - for (const { port, owner, links } of pages().filter((entry) => entry.links.length > 1)) { + for (const { port, owner, links, before } of pages().filter((entry) => entry.links.length > 1)) { const where = `${port} ${qualifiedNameOf(owner)}` win.document.body.innerHTML = await render(cards, { related: links, index: undefined }) + await render(rail, { sections: [], related: links }) const card = shown(win.document, '.api-related-card > a') @@ -241,9 +249,9 @@ describe('the rendered related lists', () => { expect(item.title, where).toBe(link.identity) expect(item.href, where).toBe(link.href) expect(item.mark, where).toBeTruthy() - // A label with its owner breaks at the owner's separator and reads the same without the break points. - expect(item.markup.includes(''), `${where}: ${link.name}`).toBe(link.qualified && /[._#]|::/.test(link.name)) - expect(item.markup.replaceAll('', ''), where).toBe(link.name.replaceAll('&', '&')) + // A label the rule changed breaks where a symbol name breaks; one it left alone has no break points. + const changed = link.name !== before[i] + expect(item.markup, `${where}: ${link.name}`).toBe((changed ? wordBreak(link.name).join('') : link.name).replaceAll('&', '&')) } } lists++ From 1dca972f37482b056f9362ff845be1558247d641 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 06:45:22 -0500 Subject: [PATCH 29/53] test(site[tmux-usage]) Keep the Ruby break points on the usage chip why: The chip-growth fix that landed in #182 tests a Ruby name's break points in word-break and its stylesheet rules, but nothing renders the usage table, so nothing says the break before the hash reaches a chip of the table where the long Ruby names were crushed together. what: - Render the list-panes table and require Async::Server#list_panes to carry its break points as Async::|Server|#list|_panes, with a shorter Ruby name and a Python name as controls --- site/test/tmux-library-usage.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 0e6977877..32833aee1 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -1016,6 +1016,20 @@ function chipStateProblems(css: string): string[] { return problems } +describe('a chip with a name that wraps', () => { + it('renders the break points of a long name in the chip, and joins the parts back to the name', async () => { + const template = await loadAstroTemplate('components/tmux/TmuxUsage.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) + const document = dom(withoutScope(await renderAstroTemplate(template, { props: { usage: tmuxResolvedUsage('latest', 'list-panes') } }))) + const code = [...document.querySelectorAll('tr[data-port="ruby"] a > .api-nav__kind + code')].find((node) => node.textContent === 'Async::Server#list_panes')! + expect(code).toBeDefined() + expect(code.innerHTML.replaceAll('', '|')).toBe('Async::|Server|#list|_panes') + // The control: the same markup for a short Ruby name with fewer break points, and for a name the rule already broke. + const short = [...document.querySelectorAll('tr[data-port="ruby"] a > .api-nav__kind + code')].find((node) => node.textContent === 'Session#list_panes')! + expect(short.innerHTML.replaceAll('', '|')).toBe('Session|#list|_panes') + expect(document.querySelector('tr[data-port="py"] a > .api-nav__kind + code')!.innerHTML.replaceAll('', '|')).toBe('Server|.panes') + }) +}) + describe('the hover and focus of a split chip', () => { it('acts on the whole chip, leaves the mark as it rests, and focuses with one outline', () => { expect(chipStateProblems(MARKS_CSS)).toEqual([]) From 909dc4b066410851cd5383e2a591d1a4b1f98080 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 06:53:07 -0500 Subject: [PATCH 30/53] fix(site[tmux-usage]) Record go's senders at its model revision why: The Go API model on main moved to libtmux-go 2de249b6, 241 commits past the 6f3df55f its usage data describes, so the data no longer matched the model it describes and its check refused it. Between the two the core floor rose to tmux 3.3a, the identity probe stopped being display-message, and the transport gained dispatchAs, literalCmdAs and runCheckedCommand, so lines the reviewed rules cite had moved and some no longer said what the rule says. what: - Move every line a Go rule cites to where the same text sits at 2de249b6, following the diff of each file and searching only where a line changed; the lines that no longer exist are the semantic changes below. - Add the dispatchAs and runCheckedCommand hops to every Go dispatcher chain, the cmdWith hop to the control client's, and declare literalCmdAs, which RunShell, WaitFor and IfShell now send through. - Replace appendPopupVersion33Arguments, which the raised floor removed, with appendPopupStyleArguments, where those flags now live. - Record the identity probe as run-shell for the twelve lookups and searches, and Server.Snapshot, that claimed display-message: the probe is now `run-shell -C` so that no after-hook runs. Snapshot's was a scanned entry and is now an incidental claim like its siblings, so run-shell's page does not list it. The probe also precedes every ordinary command (version_check.go), which is not credited to each method, because every Go method that sends would then be listed under run-shell. - Cite OpenControl's and OpenNotifications' attach through openControlWithBacklog and startControlWithBacklog, and the guard that now precedes a command in a list instead of wrapping it. - Drop the "except before tmux 3.3" qualifier from confirm-before and command-prompt: the version gate is gone, and the test that expected it now requires them to carry none. - Cite the generator's exclusion control at the moved NewSession lines. - Regenerate go.json at 2de249b6: 231 entries before and after, 18 of them display-message turned run-shell and 2 qualifiers removed, no other entry changed except for its lines. Checked: `gen-tmux-usage --check --source` against a private clone at the model revision passes for go. --- scripts/gen-tmux-usage.negative.mjs | 2 +- scripts/tmux-usage/claims.json | 468 ++++++++++---- scripts/tmux-usage/conditions.json | 95 --- scripts/tmux-usage/dispatchers.json | 894 +++++++++++++++++++++------ scripts/tmux-usage/exclusions.json | 4 +- scripts/tmux-usage/guards.json | 14 +- scripts/tmux-usage/not-senders.json | 44 +- site/src/data/tmux-usage/go.json | 810 ++++++++++++------------ site/test/tmux-library-usage.test.ts | 8 +- 9 files changed, 1500 insertions(+), 839 deletions(-) diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index d493d3f2b..9538b8826 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -265,7 +265,7 @@ const BAD_RULES = [ /fsharp: LibTmux.FSharp.Server.newSession no-such-command session: condition qualifies no entry/], ['an exclusion that removes the entry of a claim for the same send', 'go', 'exclusions.json', (document) => { document.exclusions.push({ port: 'go', owner: 'Server', names: ['NewSession'], commands: ['list-sessions'], why: 'NewSession lists sessions to look up a name only when the request carries one.', - evidence: [{ at: 'tmux/session_lifecycle.go:208', has: ['request.Name != ""'] }, { at: 'tmux/session_lifecycle.go:215', has: ['sessionNamed('] }] }) + evidence: [{ at: 'tmux/session_lifecycle.go:210', has: ['request.Name != ""'] }, { at: 'tmux/session_lifecycle.go:217', has: ['sessionNamed('] }] }) }, /go: exclusion of Server\.NewSession for list-sessions: removes the reviewed claim of tmux\.Server\.NewSession list-sessions null, which says it sends it/], ['a conditional guard that does not say when', 'go', 'guards.json', (document) => { delete document.guards.find((guard) => guard.port === 'go' && guard.name === 'guardCommand').when }, /go: guard guardCommand: is conditional, so it must say when/], diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 4caca585b..1dcb6d8ec 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -2929,25 +2929,25 @@ "scope": null, "evidence": [ { - "at": "tmux/session_lifecycle.go:91", + "at": "tmux/session_lifecycle.go:93", "has": [ "\"new-session\"" ] }, { - "at": "tmux/session_lifecycle.go:62", + "at": "tmux/session_lifecycle.go:64", "has": [ "renderNewSessionArguments(" ] }, { - "at": "tmux/session_lifecycle.go:230", + "at": "tmux/session_lifecycle.go:232", "has": [ "newSessionArguments(request)" ] }, { - "at": "tmux/session_lifecycle.go:234", + "at": "tmux/session_lifecycle.go:236", "has": [ "literalCmd(ctx, arguments...)" ], @@ -2963,25 +2963,25 @@ "scope": null, "evidence": [ { - "at": "tmux/window_lifecycle.go:157", + "at": "tmux/window_lifecycle.go:159", "has": [ "\"new-window\"" ] }, { - "at": "tmux/window_lifecycle.go:213", + "at": "tmux/window_lifecycle.go:215", "has": [ "newWindowArguments(" ] }, { - "at": "tmux/window_lifecycle.go:224", + "at": "tmux/window_lifecycle.go:226", "has": [ "literalCmd(ctx, arguments...)" ] }, { - "at": "tmux/window_lifecycle.go:88", + "at": "tmux/window_lifecycle.go:90", "has": [ "return newWindow(" ], @@ -2996,25 +2996,25 @@ "scope": null, "evidence": [ { - "at": "tmux/window_lifecycle.go:157", + "at": "tmux/window_lifecycle.go:159", "has": [ "\"new-window\"" ] }, { - "at": "tmux/window_lifecycle.go:213", + "at": "tmux/window_lifecycle.go:215", "has": [ "newWindowArguments(" ] }, { - "at": "tmux/window_lifecycle.go:224", + "at": "tmux/window_lifecycle.go:226", "has": [ "literalCmd(ctx, arguments...)" ] }, { - "at": "tmux/window_lifecycle.go:117", + "at": "tmux/window_lifecycle.go:119", "has": [ "return newWindow(" ], @@ -4502,19 +4502,19 @@ "scope": null, "evidence": [ { - "at": "tmux/lifecycle_kill.go:132", + "at": "tmux/lifecycle_kill.go:151", "has": [ "kill-session" ] }, { - "at": "tmux/lifecycle_kill.go:153", + "at": "tmux/lifecycle_kill.go:172", "has": [ "s.literalCmd(ctx, arguments...)" ] }, { - "at": "tmux/lifecycle_kill.go:95", + "at": "tmux/lifecycle_kill.go:114", "has": [ "KillWith(" ], @@ -4568,25 +4568,25 @@ "scope": null, "evidence": [ { - "at": "tmux/session_lifecycle.go:91", + "at": "tmux/session_lifecycle.go:93", "has": [ "new-session" ] }, { - "at": "tmux/connection.go:185", + "at": "tmux/connection.go:193", "has": [ "effective.guardCommand(arguments" ] }, { - "at": "tmux/connection.go:299", + "at": "tmux/connection.go:307", "has": [ "renderNewSessionArguments(" ] }, { - "at": "tmux/connection.go:169", + "at": "tmux/connection.go:177", "has": [ "newSessionConnectionArguments(" ], @@ -4601,19 +4601,19 @@ "scope": null, "evidence": [ { - "at": "tmux/pane_create.go:421", + "at": "tmux/pane_create.go:425", "has": [ "\"split-window\"" ] }, { - "at": "tmux/pane_create.go:354", + "at": "tmux/pane_create.go:358", "has": [ "server.literalCmd(ctx, arguments...)" ] }, { - "at": "tmux/pane_create.go:327", + "at": "tmux/pane_create.go:331", "has": [ "splitPane(ctx, p.server" ], @@ -4628,19 +4628,19 @@ "scope": null, "evidence": [ { - "at": "tmux/pane_create.go:421", + "at": "tmux/pane_create.go:425", "has": [ "\"split-window\"" ] }, { - "at": "tmux/pane_create.go:354", + "at": "tmux/pane_create.go:358", "has": [ "server.literalCmd(ctx, arguments...)" ] }, { - "at": "tmux/pane_create.go:308", + "at": "tmux/pane_create.go:312", "has": [ "splitPane(ctx, w.server" ], @@ -10183,13 +10183,13 @@ "scope": null, "evidence": [ { - "at": "tmux/snapshot_capture.go:43", + "at": "tmux/snapshot_capture.go:39", "has": [ "\"list-sessions\"" ] }, { - "at": "tmux/snapshot_capture.go:49", + "at": "tmux/snapshot_capture.go:45", "has": [ "s.snapshotListing(" ], @@ -10205,14 +10205,14 @@ "scope": "server", "evidence": [ { - "at": "tmux/snapshot_capture.go:44", + "at": "tmux/snapshot_capture.go:40", "has": [ "\"list-windows\"", "\"-a\"" ] }, { - "at": "tmux/snapshot_capture.go:49", + "at": "tmux/snapshot_capture.go:45", "has": [ "s.snapshotListing(" ], @@ -10228,14 +10228,14 @@ "scope": "server", "evidence": [ { - "at": "tmux/snapshot_capture.go:45", + "at": "tmux/snapshot_capture.go:41", "has": [ "\"list-panes\"", "\"-a\"" ] }, { - "at": "tmux/snapshot_capture.go:49", + "at": "tmux/snapshot_capture.go:45", "has": [ "s.snapshotListing(" ], @@ -10251,13 +10251,13 @@ "scope": null, "evidence": [ { - "at": "tmux/snapshot_capture.go:46", + "at": "tmux/snapshot_capture.go:42", "has": [ "\"list-clients\"" ] }, { - "at": "tmux/snapshot_capture.go:49", + "at": "tmux/snapshot_capture.go:45", "has": [ "s.snapshotListing(" ], @@ -10313,13 +10313,13 @@ ] }, { - "at": "tmux/tmuxtest/harness.go:546", + "at": "tmux/tmuxtest/harness.go:549", "has": [ "runCommand(ctx, server, args...)" ] }, { - "at": "tmux/tmuxtest/harness.go:536", + "at": "tmux/tmuxtest/harness.go:539", "has": [ "server.Cmd(ctx, args...)" ] @@ -10597,14 +10597,14 @@ "when": "KillExisting is set, session exists", "evidence": [ { - "at": "tmux/session_lifecycle.go:223", + "at": "tmux/session_lifecycle.go:225", "has": [ "effective.literalCmd(ctx, \"kill-session\"" ], "in": "tmux.Server.NewSession" }, { - "at": "tmux/session_lifecycle.go:219", + "at": "tmux/session_lifecycle.go:221", "has": [ "!request.KillExisting" ] @@ -10619,14 +10619,14 @@ "when": "the request sets Pattern", "evidence": [ { - "at": "tmux/session_lifecycle.go:141", + "at": "tmux/session_lifecycle.go:143", "has": [ "s.literalCmd(ctx, \"has-session\"" ], "in": "tmux.Server.HasSession" }, { - "at": "tmux/session_lifecycle.go:137", + "at": "tmux/session_lifecycle.go:139", "has": [ "!request.Pattern" ] @@ -10770,13 +10770,13 @@ "scope": null, "evidence": [ { - "at": "tmux/session_lifecycle.go:234", + "at": "tmux/session_lifecycle.go:236", "has": [ "effective.literalCmd(ctx, arguments...)" ] }, { - "at": "tmux/session_lifecycle.go:230", + "at": "tmux/session_lifecycle.go:232", "has": [ "newSessionArguments(request)" ] @@ -10797,27 +10797,33 @@ "scope": null, "evidence": [ { - "at": "tmux/control_startup.go:122", + "at": "tmux/control_startup.go:155", "has": [ "exec.Command(state.config.executable, arguments...)" ] }, { - "at": "tmux/control_startup.go:91", + "at": "tmux/control_startup.go:107", "has": [ - "s.startControl(" + "s.startControlWithBacklog(" ] }, { - "at": "tmux/control_startup.go:80", + "at": "tmux/control_startup.go:96", "has": [ "\"attach-session\"" ] }, { - "at": "tmux/identity.go:134", + "at": "tmux/identity.go:137", + "has": [ + "s.boundToInstance()" + ] + }, + { + "at": "tmux/control_startup.go:50", "has": [ - "s.daemon == nil || s.boundToInstance()" + "s.openControlWithBacklog(" ] }, { @@ -10836,33 +10842,33 @@ "scope": null, "evidence": [ { - "at": "tmux/control_startup.go:122", + "at": "tmux/control_startup.go:155", "has": [ "exec.Command(state.config.executable, arguments...)" ] }, { - "at": "tmux/control_startup.go:91", + "at": "tmux/control_startup.go:107", "has": [ - "s.startControl(" + "s.startControlWithBacklog(" ] }, { - "at": "tmux/control_startup.go:80", + "at": "tmux/control_startup.go:96", "has": [ "\"attach-session\"" ] }, { - "at": "tmux/identity.go:134", + "at": "tmux/identity.go:137", "has": [ - "s.daemon == nil || s.boundToInstance()" + "s.boundToInstance()" ] }, { - "at": "tmux/notification_stream.go:67", + "at": "tmux/notification_stream.go:116", "has": [ - "s.openControl(" + "s.openControlWithBacklog(" ], "in": "tmux.Server.OpenNotifications" } @@ -12401,29 +12407,41 @@ { "port": "go", "symbol": "tmux.Server.Session", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/lookup.go:179", "has": [ @@ -12449,29 +12467,41 @@ { "port": "go", "symbol": "tmux.Server.Window", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/lookup.go:179", "has": [ @@ -12497,29 +12527,41 @@ { "port": "go", "symbol": "tmux.Server.Pane", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/lookup.go:179", "has": [ @@ -12545,29 +12587,41 @@ { "port": "go", "symbol": "tmux.Server.Client", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/lookup.go:179", "has": [ @@ -12598,19 +12652,19 @@ "when": "a name is given", "evidence": [ { - "at": "tmux/session_lifecycle.go:155", + "at": "tmux/session_lifecycle.go:157", "has": [ "s.literalCmd(ctx, \"list-sessions\"" ] }, { - "at": "tmux/session_lifecycle.go:208", + "at": "tmux/session_lifecycle.go:210", "has": [ "if request.Name != \"\"" ] }, { - "at": "tmux/session_lifecycle.go:215", + "at": "tmux/session_lifecycle.go:217", "has": [ "effective.sessionNamed(ctx, request.Name)" ], @@ -12627,19 +12681,19 @@ "when": "a name is given", "evidence": [ { - "at": "tmux/session_lifecycle.go:155", + "at": "tmux/session_lifecycle.go:157", "has": [ "s.literalCmd(ctx, \"list-sessions\"" ] }, { - "at": "tmux/connection.go:176", + "at": "tmux/connection.go:184", "has": [ "if request.Name != \"\"" ] }, { - "at": "tmux/connection.go:177", + "at": "tmux/connection.go:185", "has": [ "effective.sessionNamed(ctx, request.Name)" ], @@ -12988,29 +13042,41 @@ { "port": "go", "symbol": "tmux.Server.SearchSessions", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13036,29 +13102,41 @@ { "port": "go", "symbol": "tmux.Server.SearchClients", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13084,29 +13162,41 @@ { "port": "go", "symbol": "tmux.Server.SearchWindows", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13132,29 +13222,41 @@ { "port": "go", "symbol": "tmux.Server.SearchPanes", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13180,29 +13282,41 @@ { "port": "go", "symbol": "tmux.Session.SearchWindows", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13228,29 +13342,41 @@ { "port": "go", "symbol": "tmux.Session.SearchPanes", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13276,29 +13402,41 @@ { "port": "go", "symbol": "tmux.Window.SearchPanes", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13324,29 +13462,41 @@ { "port": "go", "symbol": "tmux.Server.SessionByName", - "command": "display-message", + "command": "run-shell", "scope": null, "when": "the Server has no daemon identity", "forwardable": true, "evidence": [ { - "at": "tmux/identity.go:210", + "at": "tmux/identity.go:226", "has": [ - "s.literalCmdWithRaw(" + "probe.runCheckedCommand(" ] }, { - "at": "tmux/identity.go:212", + "at": "tmux/identity.go:227", "has": [ - "\"display-message\"" + "identityProbeArguments(" ] }, { - "at": "tmux/identity.go:206", + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", "has": [ "if s.daemon != nil {" ] }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, { "at": "tmux/search.go:195", "has": [ @@ -13369,6 +13519,54 @@ ], "incidental": true }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/snapshot_capture.go:24", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ], + "in": "tmux.Server.Snapshot" + } + ], + "incidental": true + }, { "port": "go", "symbol": "tmux.Pane.OpenObservation", @@ -13377,7 +13575,7 @@ "forwardable": true, "evidence": [ { - "at": "tmux/control_observation.go:346", + "at": "tmux/control_observation.go:350", "has": [ "c.cmd(", "\"list-windows\"" @@ -13385,7 +13583,7 @@ "span": 9 }, { - "at": "tmux/control_observation.go:301", + "at": "tmux/control_observation.go:305", "has": [ "client.observePane(ctx, p)" ], diff --git a/scripts/tmux-usage/conditions.json b/scripts/tmux-usage/conditions.json index 3d291ea79..7ac440f4c 100644 --- a/scripts/tmux-usage/conditions.json +++ b/scripts/tmux-usage/conditions.json @@ -467,33 +467,6 @@ } ] }, - { - "port": "go", - "symbol": "tmux.Server.Snapshot", - "command": "display-message", - "scope": null, - "when": "the Server has no daemon identity", - "evidence": [ - { - "at": "tmux/identity.go:206", - "has": [ - "if s.daemon != nil {" - ] - }, - { - "at": "tmux/identity.go:207", - "has": [ - "return *s.daemon, nil" - ] - }, - { - "at": "tmux/identity.go:212", - "has": [ - "\"display-message\"" - ] - } - ] - }, { "port": "java", "symbol": "io.github.libtmux.Pane.Pane.paste", @@ -652,74 +625,6 @@ ] } ] - }, - { - "port": "go", - "symbol": "tmux.Server.ConfirmBefore", - "command": "confirm-before", - "scope": null, - "when": "except before tmux 3.3", - "evidence": [ - { - "at": "tmux/server_interactive.go:9", - "has": [ - "serverInteractiveVersion33", - "raw: \"3.3\"" - ] - }, - { - "at": "tmux/server_interactive.go:192", - "has": [ - "current.AtLeast(serverInteractiveVersion33)" - ] - }, - { - "at": "tmux/server_interactive.go:193", - "has": [ - "&VersionTooLowError{" - ] - }, - { - "at": "tmux/server_interactive.go:223", - "has": [ - "s.literalCmd(ctx, arguments...)" - ] - } - ] - }, - { - "port": "go", - "symbol": "tmux.Server.CommandPrompt", - "command": "command-prompt", - "scope": null, - "when": "except before tmux 3.3", - "evidence": [ - { - "at": "tmux/server_interactive.go:9", - "has": [ - "serverInteractiveVersion33", - "raw: \"3.3\"" - ] - }, - { - "at": "tmux/server_interactive.go:240", - "has": [ - "current.AtLeast(serverInteractiveVersion33)" - ] - }, - { - "at": "tmux/server_interactive.go:241", - "has": [ - "&VersionTooLowError{" - ] - }, - { - "at": "tmux/server_interactive.go:301", - "has": [ - "s.literalCmd(ctx, arguments...)" - ] - } - ] } ] } diff --git a/scripts/tmux-usage/dispatchers.json b/scripts/tmux-usage/dispatchers.json index f977901f9..48e65753d 100644 --- a/scripts/tmux-usage/dispatchers.json +++ b/scripts/tmux-usage/dispatchers.json @@ -2509,28 +2509,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -2538,7 +2552,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2546,34 +2560,48 @@ ] }, { - "at": "tmux/server.go:104", + "at": "tmux/server.go:291", "has": [ "literalCmd" ], "reaches": [ { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -2581,7 +2609,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2596,41 +2624,48 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/control_request.go:95", + "at": "tmux/control_request.go:102", "has": [ "Cmd" ], "reaches": [ { - "at": "tmux/control_request.go:99", + "at": "tmux/control_request.go:106", "has": [ "Call" ], "calls": "Call" }, { - "at": "tmux/control_request.go:122", + "at": "tmux/control_request.go:129", "has": [ "cmd" ], "calls": "cmd" }, { - "at": "tmux/control_request.go:141", + "at": "tmux/control_request.go:148", "has": [ "cmdUnobserved" ], "calls": "cmdUnobserved" }, { - "at": "tmux/control_request.go:163", + "at": "tmux/control_request.go:156", + "has": [ + "cmdWith" + ], + "calls": "cmdWith" + }, + { + "at": "tmux/control_request.go:195", "has": [ "submitControlRequest" ], "calls": "submitControlRequest" }, { - "at": "tmux/control_request.go:184", + "at": "tmux/control_request.go:216", "has": [ "c.requests <- request" ], @@ -2638,14 +2673,14 @@ "why": "the request is sent on a channel that runRequests receives from, and it writes the command to the control client" }, { - "at": "tmux/control_request.go:240", + "at": "tmux/control_request.go:272", "has": [ "executeControlRequest(" ], "calls": "executeControlRequest" }, { - "at": "tmux/control_request.go:268", + "at": "tmux/control_request.go:306", "has": [ "io.WriteString(c.stdin" ] @@ -2673,21 +2708,35 @@ "calls": "Cmd" }, { - "at": "tmux/server.go:100", + "at": "tmux/server.go:287", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -2695,7 +2744,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2710,27 +2759,34 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/control_request.go:129", + "at": "tmux/control_request.go:136", "has": [ "cmd" ], "reaches": [ { - "at": "tmux/control_request.go:141", + "at": "tmux/control_request.go:148", "has": [ "cmdUnobserved" ], "calls": "cmdUnobserved" }, { - "at": "tmux/control_request.go:163", + "at": "tmux/control_request.go:156", + "has": [ + "cmdWith" + ], + "calls": "cmdWith" + }, + { + "at": "tmux/control_request.go:195", "has": [ "submitControlRequest" ], "calls": "submitControlRequest" }, { - "at": "tmux/control_request.go:184", + "at": "tmux/control_request.go:216", "has": [ "c.requests <- request" ], @@ -2738,14 +2794,14 @@ "why": "the request is sent on a channel that runRequests receives from, and it writes the command to the control client" }, { - "at": "tmux/control_request.go:240", + "at": "tmux/control_request.go:272", "has": [ "executeControlRequest(" ], "calls": "executeControlRequest" }, { - "at": "tmux/control_request.go:268", + "at": "tmux/control_request.go:306", "has": [ "io.WriteString(c.stdin" ] @@ -2760,13 +2816,13 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/transport.go:156", + "at": "tmux/transport.go:237", "has": [ "runExactArgv" ], "reaches": [ { - "at": "tmux/transport.go:173", + "at": "tmux/transport.go:254", "has": [ "Run" ], @@ -2774,7 +2830,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2789,41 +2845,55 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/server_clients.go:364", + "at": "tmux/server_clients.go:353", "has": [ "runClientCommand" ], "reaches": [ { - "at": "tmux/server_clients.go:370", + "at": "tmux/server_clients.go:359", "has": [ "literalCmd" ], "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -2831,7 +2901,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2865,28 +2935,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -2894,7 +2978,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2928,28 +3012,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -2957,7 +3055,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -2991,28 +3089,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3020,7 +3132,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3061,28 +3173,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3090,7 +3216,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3125,28 +3251,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3154,7 +3294,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3182,28 +3322,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3211,7 +3365,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3239,28 +3393,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3268,7 +3436,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3303,28 +3471,42 @@ "calls": "snapshotListing" }, { - "at": "tmux/snapshot_capture.go:127", + "at": "tmux/snapshot_capture.go:123", "has": [ "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3332,7 +3514,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3360,28 +3542,42 @@ "calls": "snapshotListing" }, { - "at": "tmux/snapshot_capture.go:127", + "at": "tmux/snapshot_capture.go:123", "has": [ "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3389,7 +3585,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3424,28 +3620,42 @@ "calls": "snapshotListing" }, { - "at": "tmux/snapshot_capture.go:127", + "at": "tmux/snapshot_capture.go:123", "has": [ "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3453,7 +3663,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3481,28 +3691,42 @@ "calls": "snapshotListing" }, { - "at": "tmux/snapshot_capture.go:127", + "at": "tmux/snapshot_capture.go:123", "has": [ "s.literalCmdWithRaw(" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3510,7 +3734,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3525,27 +3749,91 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/server.go:109", + "at": "tmux/server.go:310", "has": [ "literalCmdWithRaw" ], "reaches": [ { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "literalCmdAs", + "why": "Sends the tmux arguments to the server on the lane its command kind names.", + "evidence": [ + { + "at": "tmux/server.go:298", + "has": [ + "literalCmdAs" + ], + "reaches": [ + { + "at": "tmux/server.go:306", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3553,7 +3841,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3581,28 +3869,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3610,7 +3912,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3638,28 +3940,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3667,7 +3983,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3695,28 +4011,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3724,7 +4054,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3752,28 +4082,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3781,7 +4125,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3809,28 +4153,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3838,7 +4196,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3873,28 +4231,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3902,7 +4274,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3917,41 +4289,55 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/pane_create.go:141", + "at": "tmux/pane_create.go:145", "has": [ "newPane" ], "reaches": [ { - "at": "tmux/pane_create.go:213", + "at": "tmux/pane_create.go:217", "has": [ "literalCmd" ], "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -3959,7 +4345,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -3974,41 +4360,55 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/pane_create.go:330", + "at": "tmux/pane_create.go:334", "has": [ "splitPane" ], "reaches": [ { - "at": "tmux/pane_create.go:354", + "at": "tmux/pane_create.go:358", "has": [ "literalCmd" ], "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4016,7 +4416,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4031,41 +4431,55 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/window_lifecycle.go:189", + "at": "tmux/window_lifecycle.go:191", "has": [ "newWindow" ], "reaches": [ { - "at": "tmux/window_lifecycle.go:224", + "at": "tmux/window_lifecycle.go:226", "has": [ "literalCmd" ], "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4073,7 +4487,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4116,28 +4530,42 @@ "on": "Server" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4145,7 +4573,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4174,28 +4602,42 @@ "on": "Server" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4203,7 +4645,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4218,34 +4660,48 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/snapshot_capture.go:113", + "at": "tmux/snapshot_capture.go:109", "has": [ "snapshotListing" ], "reaches": [ { - "at": "tmux/snapshot_capture.go:127", + "at": "tmux/snapshot_capture.go:123", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4253,7 +4709,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4281,28 +4737,42 @@ "calls": "literalCmd" }, { - "at": "tmux/server.go:105", + "at": "tmux/server.go:292", "has": [ "literalCmdWithRaw" ], "calls": "literalCmdWithRaw" }, { - "at": "tmux/server.go:116", + "at": "tmux/server.go:317", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4310,7 +4780,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4325,34 +4795,48 @@ "why": "Sends the tmux arguments or the command it is given to the server.", "evidence": [ { - "at": "tmux/tmuxtest/harness.go:535", + "at": "tmux/tmuxtest/harness.go:538", "has": [ "runCommand" ], "reaches": [ { - "at": "tmux/tmuxtest/harness.go:536", + "at": "tmux/tmuxtest/harness.go:539", "has": [ "Cmd" ], "calls": "Cmd" }, { - "at": "tmux/server.go:100", + "at": "tmux/server.go:287", "has": [ "dispatch" ], "calls": "dispatch" }, { - "at": "tmux/server.go:126", + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", "has": [ "runCommand" ], "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4360,7 +4844,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4368,13 +4852,20 @@ ] }, { - "at": "tmux/transport.go:40", + "at": "tmux/transport.go:53", "has": [ "runCommand" ], "reaches": [ { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4382,7 +4873,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4410,7 +4901,14 @@ "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4418,7 +4916,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4460,7 +4958,14 @@ "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4468,7 +4973,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4510,7 +5015,14 @@ "calls": "runCommand" }, { - "at": "tmux/transport.go:85", + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", "has": [ "Run" ], @@ -4518,7 +5030,7 @@ "on": "Runner" }, { - "at": "tmux/internal/tmuxcmd/runner.go:95", + "at": "tmux/internal/tmuxcmd/runner.go:99", "has": [ "exec.CommandContext(" ] @@ -4604,7 +5116,7 @@ "why": "Builds the argument list of a command from the command it is given.", "evidence": [ { - "at": "tmux/window_respawn.go:63", + "at": "tmux/window_respawn.go:65", "has": [ "respawnRequestArguments" ] @@ -4613,14 +5125,14 @@ }, { "port": "go", - "name": "appendPopupVersion33Arguments", + "name": "appendPopupStyleArguments", "kind": "builder", - "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", + "why": "Appends the style, border and environment flags to the display-popup argument list it is given and returns the list.", "evidence": [ { "at": "tmux/pane_popup.go:326", "has": [ - "func appendPopupVersion33Arguments(" + "func appendPopupStyleArguments(" ] } ] @@ -4632,7 +5144,7 @@ "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", "evidence": [ { - "at": "tmux/pane_popup.go:376", + "at": "tmux/pane_popup.go:349", "has": [ "func appendPopupVersion36Arguments(" ] diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json index e22ca4d76..5243b19b5 100644 --- a/scripts/tmux-usage/exclusions.json +++ b/scripts/tmux-usage/exclusions.json @@ -207,13 +207,13 @@ "why": "OpenNotifications arms the pause hold with refresh-client only when PauseAfter is positive.", "evidence": [ { - "at": "tmux/notification_stream.go:72", + "at": "tmux/notification_stream.go:121", "has": [ "options.PauseAfter > 0" ] }, { - "at": "tmux/notification_stream.go:73", + "at": "tmux/notification_stream.go:122", "has": [ "armPause(" ] diff --git a/scripts/tmux-usage/guards.json b/scripts/tmux-usage/guards.json index 5a9edf395..c8346e308 100644 --- a/scripts/tmux-usage/guards.json +++ b/scripts/tmux-usage/guards.json @@ -85,28 +85,28 @@ "name": "guardCommand", "purpose": "refuses a command when the tmux daemon is not the one the handle was read from", "conditional": true, - "when": "the Server carries a daemon identity", + "when": "the Server carries a daemon identity or startup version", "evidence": [ { - "at": "tmux/identity.go:130", + "at": "tmux/identity.go:133", "has": [ "func (s Server) guardCommand(" ] }, { - "at": "tmux/identity.go:134", + "at": "tmux/identity.go:137", "has": [ - "s.daemon == nil || s.boundToInstance()" + "(s.daemon == nil && s.startupVersion == nil) || s.boundToInstance()" ] }, { - "at": "tmux/identity.go:151", + "at": "tmux/identity.go:161", "has": [ - "\"if-shell\", \"-F\", condition, thenCommand, guard.failure" + "\"if-shell\", \"-F\", condition, \"\", guard.failure" ] }, { - "at": "tmux/control_startup.go:86", + "at": "tmux/control_startup.go:102", "has": [ "s.guardCommand(attach, false)" ] diff --git a/scripts/tmux-usage/not-senders.json b/scripts/tmux-usage/not-senders.json index 66b069594..eea8371e7 100644 --- a/scripts/tmux-usage/not-senders.json +++ b/scripts/tmux-usage/not-senders.json @@ -934,13 +934,13 @@ "why": "The typed setters of GlobalSessionScope write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", "evidence": [ { - "at": "tmux/option_generated.go:5078", + "at": "tmux/option_generated.go:5060", "has": [ "func (" ] }, { - "at": "tmux/option_generated.go:5081", + "at": "tmux/option_generated.go:5063", "has": [ "setTypedOption" ] @@ -993,13 +993,13 @@ "why": "The typed setters of GlobalWindowScope write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", "evidence": [ { - "at": "tmux/option_generated.go:4492", + "at": "tmux/option_generated.go:4474", "has": [ "func (" ] }, { - "at": "tmux/option_generated.go:4495", + "at": "tmux/option_generated.go:4477", "has": [ "setTypedOption" ] @@ -1051,13 +1051,13 @@ "why": "Clear types reset into the pane through SendKeys; it sends no clear-history.", "evidence": [ { - "at": "tmux/pane_input.go:428", + "at": "tmux/pane_input.go:459", "has": [ "command := \"reset\"" ] }, { - "at": "tmux/pane_input.go:429", + "at": "tmux/pane_input.go:460", "has": [ "p.SendKeys(ctx, SendKeysRequest{Command: &command})" ] @@ -1077,7 +1077,7 @@ "why": "ClearHistory sends clear-history; clear-prompt-history is a different command.", "evidence": [ { - "at": "tmux/pane_input.go:405", + "at": "tmux/pane_input.go:436", "has": [ "clear-history" ] @@ -1124,7 +1124,7 @@ "why": "These accessors of Pane read a field of the projection the handle holds; they send no command.", "evidence": [ { - "at": "tmux/format_generated.go:1228", + "at": "tmux/format_generated.go:1232", "has": [ "func (" ] @@ -1152,13 +1152,13 @@ "why": "The typed setters of Pane write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", "evidence": [ { - "at": "tmux/option_generated.go:4896", + "at": "tmux/option_generated.go:4878", "has": [ "func (" ] }, { - "at": "tmux/option_generated.go:4901", + "at": "tmux/option_generated.go:4883", "has": [ "setTypedOption" ] @@ -1223,7 +1223,7 @@ ] }, { - "at": "tmux/pane_wait.go:66", + "at": "tmux/pane_wait.go:74", "has": [ "o.read(ctx, block)" ] @@ -1243,7 +1243,7 @@ "why": "ClearPromptHistory sends clear-prompt-history, and not clear-history.", "evidence": [ { - "at": "tmux/prompt_history.go:69", + "at": "tmux/prompt_history.go:58", "has": [ "clear-prompt-history" ] @@ -1304,13 +1304,13 @@ "why": "The typed setters of Server write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", "evidence": [ { - "at": "tmux/option_generated.go:4718", + "at": "tmux/option_generated.go:4700", "has": [ "func (" ] }, { - "at": "tmux/option_generated.go:4721", + "at": "tmux/option_generated.go:4703", "has": [ "setTypedOption" ] @@ -1366,7 +1366,7 @@ "why": "These accessors of Session read a field of the projection the handle holds; they send no command.", "evidence": [ { - "at": "tmux/format_generated.go:906", + "at": "tmux/format_generated.go:910", "has": [ "func (" ] @@ -1444,13 +1444,13 @@ "why": "The typed setters of Session write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", "evidence": [ { - "at": "tmux/option_generated.go:5068", + "at": "tmux/option_generated.go:5050", "has": [ "func (" ] }, { - "at": "tmux/option_generated.go:5073", + "at": "tmux/option_generated.go:5055", "has": [ "setTypedOption" ] @@ -1476,13 +1476,13 @@ "why": "A Values type is the struct one show-options or format reply decodes into; its members are fields, not commands.", "evidence": [ { - "at": "tmux/option_generated.go:1816", + "at": "tmux/option_generated.go:1814", "has": [ "type ServerOptionValues struct" ] }, { - "at": "tmux/option_generated.go:3203", + "at": "tmux/option_generated.go:3201", "has": [ "type ServerHookValues struct" ] @@ -1514,7 +1514,7 @@ "why": "These accessors of Window read a field of the projection the handle holds; they send no command.", "evidence": [ { - "at": "tmux/format_generated.go:973", + "at": "tmux/format_generated.go:977", "has": [ "func (" ] @@ -1561,13 +1561,13 @@ "why": "The typed setters of Window write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", "evidence": [ { - "at": "tmux/option_generated.go:4482", + "at": "tmux/option_generated.go:4464", "has": [ "func (" ] }, { - "at": "tmux/option_generated.go:4487", + "at": "tmux/option_generated.go:4469", "has": [ "setTypedOption" ] diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index e4497cad2..aca54a021 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -94,134 +94,142 @@ ], "port": "go", "repo": "libtmux/libtmux-go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "schemaVersion": 1, "symbols": { "tmux.Client.Refresh": [ { - "command": "display-message", + "command": "list-clients", "evidence": [ "tmux/lookup.go:128" ], "scope": null, "via": { "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/lookup.go:179", - "tmux/lookup.go:139", "tmux/lookup.go:94" ], - "incidental": true, "port": "go", - "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Client" - }, - "when": "the Server has no daemon identity" + } }, { - "command": "list-clients", + "command": "run-shell", "evidence": [ "tmux/lookup.go:128" ], "scope": null, "via": { "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", "tmux/lookup.go:94" ], + "incidental": true, "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Client" - } + }, + "when": "the Server has no daemon identity" } ], "tmux.Client.ResolveAttachment": [ { - "command": "display-message", + "command": "list-clients", "evidence": [ "tmux/client_attachment.go:47" ], "scope": null, "via": { "evidence": [ - "tmux/identity.go:210", - "tmux/snapshot_capture.go:24" + "tmux/snapshot_capture.go:42", + "tmux/snapshot_capture.go:45" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Snapshot" - }, - "when": "the Server has no daemon identity" + } }, { - "command": "list-clients", + "command": "list-panes", "evidence": [ "tmux/client_attachment.go:47" ], - "scope": null, + "scope": "server", "via": { "evidence": [ - "tmux/snapshot_capture.go:46", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:41", + "tmux/snapshot_capture.go:45" ], "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Snapshot" } }, { - "command": "list-panes", + "command": "list-sessions", "evidence": [ "tmux/client_attachment.go:47" ], - "scope": "server", + "scope": null, "via": { "evidence": [ - "tmux/snapshot_capture.go:45", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:39", + "tmux/snapshot_capture.go:45" ], "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Snapshot" } }, { - "command": "list-sessions", + "command": "list-windows", "evidence": [ "tmux/client_attachment.go:47" ], - "scope": null, + "scope": "server", "via": { "evidence": [ - "tmux/snapshot_capture.go:43", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:40", + "tmux/snapshot_capture.go:45" ], "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Snapshot" } }, { - "command": "list-windows", + "command": "run-shell", "evidence": [ "tmux/client_attachment.go:47" ], - "scope": "server", + "scope": null, "via": { "evidence": [ - "tmux/snapshot_capture.go:44", - "tmux/snapshot_capture.go:49" + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/snapshot_capture.go:24" ], + "incidental": true, "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Snapshot" - } + }, + "when": "the Server has no daemon identity" } ], "tmux.GlobalSessionScope.AppendHook": [ @@ -418,7 +426,7 @@ { "command": "refresh-client", "evidence": [ - "tmux/notification_stream.go:103" + "tmux/notification_stream.go:152" ], "scope": null } @@ -427,7 +435,7 @@ { "command": "refresh-client", "evidence": [ - "tmux/notification_stream.go:196" + "tmux/notification_stream.go:235" ], "scope": null } @@ -436,7 +444,7 @@ { "command": "refresh-client", "evidence": [ - "tmux/notification_stream.go:216" + "tmux/notification_stream.go:255" ], "scope": null } @@ -551,7 +559,7 @@ "tmux/server_buffers.go:165" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.DeleteBuffer" } }, @@ -566,7 +574,7 @@ "tmux/server_buffers.go:190" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.SaveBuffer" } } @@ -602,9 +610,9 @@ { "command": "clear-history", "evidence": [ - "tmux/pane_input.go:395", - "tmux/pane_input.go:388", - "tmux/pane_input.go:405" + "tmux/pane_input.go:426", + "tmux/pane_input.go:419", + "tmux/pane_input.go:436" ], "scope": null } @@ -659,7 +667,7 @@ { "command": "display-popup", "evidence": [ - "tmux/pane_popup.go:202" + "tmux/pane_popup.go:204" ], "scope": null } @@ -668,7 +676,7 @@ { "command": "send-keys", "evidence": [ - "tmux/pane_input.go:292" + "tmux/pane_input.go:323" ], "scope": null } @@ -695,7 +703,7 @@ { "command": "kill-pane", "evidence": [ - "tmux/lifecycle_kill.go:238" + "tmux/lifecycle_kill.go:257" ], "scope": null } @@ -704,7 +712,7 @@ { "command": "kill-pane", "evidence": [ - "tmux/lifecycle_kill.go:248" + "tmux/lifecycle_kill.go:267" ], "scope": null } @@ -722,8 +730,8 @@ { "command": "new-pane", "evidence": [ - "tmux/pane_create.go:213", - "tmux/pane_create.go:138" + "tmux/pane_create.go:217", + "tmux/pane_create.go:142" ], "scope": null } @@ -732,24 +740,24 @@ { "command": "capture-pane", "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "scope": null }, { "command": "delete-buffer", "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "scope": null }, { "command": "list-windows", "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "forwardable": true, "reviewed": true, @@ -758,16 +766,16 @@ { "command": "refresh-client", "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "scope": null }, { "command": "save-buffer", "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "scope": null } @@ -794,60 +802,62 @@ ], "tmux.Pane.Refresh": [ { - "command": "display-message", + "command": "list-panes", "evidence": [ "tmux/lookup.go:123" ], - "scope": null, + "scope": "window", "via": { "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/lookup.go:179", + "tmux/lookup.go:198", + "tmux/lookup.go:196", "tmux/lookup.go:139", "tmux/lookup.go:79" ], - "incidental": true, "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Pane" - }, - "when": "the Server has no daemon identity" + } }, { - "command": "list-panes", + "command": "run-shell", "evidence": [ "tmux/lookup.go:123" ], - "scope": "window", + "scope": null, "via": { "evidence": [ - "tmux/lookup.go:198", - "tmux/lookup.go:196", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", "tmux/lookup.go:139", "tmux/lookup.go:79" ], + "incidental": true, "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Pane" - } + }, + "when": "the Server has no daemon identity" } ], "tmux.Pane.Reset": [ { "command": "clear-history", "evidence": [ - "tmux/pane_input.go:442" + "tmux/pane_input.go:473" ], "scope": null }, { "command": "send-keys", "evidence": [ - "tmux/pane_input.go:442" + "tmux/pane_input.go:473" ], "scope": null } @@ -917,9 +927,9 @@ { "command": "send-prefix", "evidence": [ - "tmux/pane_input.go:354", - "tmux/pane_input.go:350", - "tmux/pane_input.go:308" + "tmux/pane_input.go:385", + "tmux/pane_input.go:381", + "tmux/pane_input.go:339" ], "scope": null } @@ -978,9 +988,9 @@ { "command": "split-window", "evidence": [ - "tmux/pane_create.go:421", - "tmux/pane_create.go:354", - "tmux/pane_create.go:327" + "tmux/pane_create.go:425", + "tmux/pane_create.go:358", + "tmux/pane_create.go:331" ], "reviewed": true, "scope": null @@ -1026,15 +1036,15 @@ { "command": "run-shell", "evidence": [ - "tmux/session_run.go:593" + "tmux/session_run.go:663" ], "scope": null, "via": { "evidence": [ - "tmux/server_exec.go:235" + "tmux/server_exec.go:253" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.RunShell" } } @@ -1043,81 +1053,81 @@ { "command": "capture-pane", "evidence": [ - "tmux/session_run.go:549" + "tmux/session_run.go:619" ], "scope": null, "via": { "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.OpenObservation" } }, { "command": "delete-buffer", "evidence": [ - "tmux/session_run.go:549" + "tmux/session_run.go:619" ], "scope": null, "via": { "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.OpenObservation" } }, { "command": "list-windows", "evidence": [ - "tmux/session_run.go:549" + "tmux/session_run.go:619" ], "scope": "session", "via": { "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.OpenObservation" } }, { "command": "refresh-client", "evidence": [ - "tmux/session_run.go:549" + "tmux/session_run.go:619" ], "scope": null, "via": { "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.OpenObservation" } }, { "command": "save-buffer", "evidence": [ - "tmux/session_run.go:549" + "tmux/session_run.go:619" ], "scope": null, "via": { "evidence": [ - "tmux/control_observation.go:346", - "tmux/control_observation.go:301" + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.OpenObservation" } } @@ -1158,7 +1168,7 @@ { "command": "list-sessions", "evidence": [ - "tmux/server.go:165" + "tmux/server.go:375" ], "scope": null } @@ -1167,18 +1177,27 @@ { "command": "clear-prompt-history", "evidence": [ - "tmux/prompt_history.go:85" + "tmux/prompt_history.go:66" ], "scope": null } ], "tmux.Server.Client": [ { - "command": "display-message", + "command": "list-clients", + "evidence": [ + "tmux/lookup.go:94" + ], + "scope": null + }, + { + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/lookup.go:179", "tmux/lookup.go:139", "tmux/lookup.go:94" @@ -1188,33 +1207,24 @@ "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, - { - "command": "list-clients", - "evidence": [ - "tmux/lookup.go:94" - ], - "scope": null } ], "tmux.Server.CommandPrompt": [ { "command": "command-prompt", "evidence": [ - "tmux/server_interactive.go:301" + "tmux/server_interactive.go:294" ], - "scope": null, - "when": "except before tmux 3.3" + "scope": null } ], "tmux.Server.ConfirmBefore": [ { "command": "confirm-before", "evidence": [ - "tmux/server_interactive.go:223" + "tmux/server_interactive.go:219" ], - "scope": null, - "when": "except before tmux 3.3" + "scope": null } ], "tmux.Server.DeleteBuffer": [ @@ -1230,7 +1240,7 @@ { "command": "detach-client", "evidence": [ - "tmux/server_clients.go:268" + "tmux/server_clients.go:257" ], "scope": null } @@ -1239,7 +1249,7 @@ { "command": "detach-client", "evidence": [ - "tmux/server_clients.go:240" + "tmux/server_clients.go:229" ], "scope": null } @@ -1248,7 +1258,7 @@ { "command": "display-menu", "evidence": [ - "tmux/server_interactive.go:408" + "tmux/server_interactive.go:401" ], "scope": null } @@ -1277,8 +1287,8 @@ { "command": "has-session", "evidence": [ - "tmux/session_lifecycle.go:141", - "tmux/session_lifecycle.go:137" + "tmux/session_lifecycle.go:143", + "tmux/session_lifecycle.go:139" ], "reviewed": true, "scope": null, @@ -1287,8 +1297,8 @@ { "command": "list-sessions", "evidence": [ - "tmux/session_lifecycle.go:155", - "tmux/session_lifecycle.go:138" + "tmux/session_lifecycle.go:157", + "tmux/session_lifecycle.go:140" ], "scope": null } @@ -1297,7 +1307,7 @@ { "command": "if-shell", "evidence": [ - "tmux/server_exec.go:313" + "tmux/server_exec.go:413" ], "scope": null } @@ -1306,7 +1316,7 @@ { "command": "list-sessions", "evidence": [ - "tmux/server.go:146" + "tmux/server.go:356" ], "scope": null } @@ -1324,7 +1334,7 @@ { "command": "kill-session", "evidence": [ - "tmux/lifecycle_kill.go:82" + "tmux/lifecycle_kill.go:101" ], "scope": null } @@ -1387,7 +1397,7 @@ { "command": "lock-client", "evidence": [ - "tmux/server_clients.go:200" + "tmux/server_clients.go:189" ], "scope": null } @@ -1396,7 +1406,7 @@ { "command": "lock-server", "evidence": [ - "tmux/server_clients.go:152" + "tmux/server_clients.go:141" ], "scope": null } @@ -1405,8 +1415,8 @@ { "command": "kill-session", "evidence": [ - "tmux/session_lifecycle.go:223", - "tmux/session_lifecycle.go:219" + "tmux/session_lifecycle.go:225", + "tmux/session_lifecycle.go:221" ], "reviewed": true, "scope": null, @@ -1415,9 +1425,9 @@ { "command": "list-sessions", "evidence": [ - "tmux/session_lifecycle.go:155", - "tmux/session_lifecycle.go:208", - "tmux/session_lifecycle.go:215" + "tmux/session_lifecycle.go:157", + "tmux/session_lifecycle.go:210", + "tmux/session_lifecycle.go:217" ], "incidental": true, "reviewed": true, @@ -1427,10 +1437,10 @@ { "command": "new-session", "evidence": [ - "tmux/session_lifecycle.go:91", - "tmux/session_lifecycle.go:62", - "tmux/session_lifecycle.go:230", - "tmux/session_lifecycle.go:234" + "tmux/session_lifecycle.go:93", + "tmux/session_lifecycle.go:64", + "tmux/session_lifecycle.go:232", + "tmux/session_lifecycle.go:236" ], "forwardable": true, "reviewed": true, @@ -1441,9 +1451,9 @@ { "command": "list-sessions", "evidence": [ - "tmux/session_lifecycle.go:155", - "tmux/connection.go:176", - "tmux/connection.go:177" + "tmux/session_lifecycle.go:157", + "tmux/connection.go:184", + "tmux/connection.go:185" ], "incidental": true, "reviewed": true, @@ -1453,10 +1463,10 @@ { "command": "new-session", "evidence": [ - "tmux/session_lifecycle.go:91", - "tmux/connection.go:185", - "tmux/connection.go:299", - "tmux/connection.go:169" + "tmux/session_lifecycle.go:93", + "tmux/connection.go:193", + "tmux/connection.go:307", + "tmux/connection.go:177" ], "reviewed": true, "scope": null @@ -1466,10 +1476,11 @@ { "command": "attach-session", "evidence": [ - "tmux/control_startup.go:122", - "tmux/control_startup.go:91", - "tmux/control_startup.go:80", - "tmux/identity.go:134", + "tmux/control_startup.go:155", + "tmux/control_startup.go:107", + "tmux/control_startup.go:96", + "tmux/identity.go:137", + "tmux/control_startup.go:50", "tmux/control_startup.go:42" ], "reviewed": true, @@ -1480,11 +1491,11 @@ { "command": "attach-session", "evidence": [ - "tmux/control_startup.go:122", - "tmux/control_startup.go:91", - "tmux/control_startup.go:80", - "tmux/identity.go:134", - "tmux/notification_stream.go:67" + "tmux/control_startup.go:155", + "tmux/control_startup.go:107", + "tmux/control_startup.go:96", + "tmux/identity.go:137", + "tmux/notification_stream.go:116" ], "reviewed": true, "scope": null @@ -1492,39 +1503,41 @@ ], "tmux.Server.Pane": [ { - "command": "display-message", + "command": "list-panes", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/lookup.go:179", + "tmux/lookup.go:198", + "tmux/lookup.go:196", "tmux/lookup.go:139", "tmux/lookup.go:79" ], "forwardable": true, - "incidental": true, "reviewed": true, - "scope": null, - "when": "the Server has no daemon identity" + "scope": "window" }, { - "command": "list-panes", + "command": "run-shell", "evidence": [ - "tmux/lookup.go:198", - "tmux/lookup.go:196", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", "tmux/lookup.go:139", "tmux/lookup.go:79" ], "forwardable": true, + "incidental": true, "reviewed": true, - "scope": "window" + "scope": null, + "when": "the Server has no daemon identity" } ], "tmux.Server.RefreshClient": [ { "command": "refresh-client", "evidence": [ - "tmux/server_clients.go:186" + "tmux/server_clients.go:175" ], "scope": null } @@ -1543,7 +1556,7 @@ { "command": "run-shell", "evidence": [ - "tmux/server_exec.go:235" + "tmux/server_exec.go:253" ], "scope": null } @@ -1567,121 +1580,138 @@ } ], "tmux.Server.SearchClients": [ - { - "command": "display-message", - "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/search.go:195", - "tmux/search.go:175", - "tmux/search.go:46" - ], - "forwardable": true, - "incidental": true, - "reviewed": true, - "scope": null, - "when": "the Server has no daemon identity" - }, { "command": "list-clients", "evidence": [ "tmux/search.go:46" ], "scope": null - } - ], - "tmux.Server.SearchPanes": [ + }, { - "command": "display-message", + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", - "tmux/search.go:78" + "tmux/search.go:46" ], "forwardable": true, "incidental": true, "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, + } + ], + "tmux.Server.SearchPanes": [ { "command": "list-panes", "evidence": [ "tmux/search.go:78" ], "scope": "server" - } - ], - "tmux.Server.SearchSessions": [ + }, { - "command": "display-message", + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", - "tmux/search.go:28" + "tmux/search.go:78" ], "forwardable": true, "incidental": true, "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, + } + ], + "tmux.Server.SearchSessions": [ { "command": "list-sessions", "evidence": [ "tmux/search.go:28" ], "scope": null - } - ], - "tmux.Server.SearchWindows": [ + }, { - "command": "display-message", + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", - "tmux/search.go:62" + "tmux/search.go:28" ], "forwardable": true, "incidental": true, "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, + } + ], + "tmux.Server.SearchWindows": [ { "command": "list-windows", "evidence": [ "tmux/search.go:62" ], "scope": "server" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:62" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" } ], "tmux.Server.ServerAccess": [ { "command": "server-access", "evidence": [ - "tmux/server_clients.go:144" + "tmux/server_clients.go:133" ], "scope": null } ], "tmux.Server.Session": [ { - "command": "display-message", + "command": "list-sessions", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/lookup.go:11" + ], + "scope": null + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/lookup.go:179", "tmux/lookup.go:139", "tmux/lookup.go:11" @@ -1691,22 +1721,24 @@ "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, + } + ], + "tmux.Server.SessionByName": [ { "command": "list-sessions", "evidence": [ - "tmux/lookup.go:11" + "tmux/lookup.go:36" ], "scope": null - } - ], - "tmux.Server.SessionByName": [ + }, { - "command": "display-message", + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", "tmux/lookup.go:36" @@ -1716,13 +1748,6 @@ "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, - { - "command": "list-sessions", - "evidence": [ - "tmux/lookup.go:36" - ], - "scope": null } ], "tmux.Server.SetBuffer": [ @@ -1800,26 +1825,17 @@ { "command": "show-prompt-history", "evidence": [ - "tmux/prompt_history.go:59" + "tmux/prompt_history.go:48" ], "scope": null } ], "tmux.Server.Snapshot": [ - { - "command": "display-message", - "evidence": [ - "tmux/identity.go:210", - "tmux/snapshot_capture.go:24" - ], - "scope": null, - "when": "the Server has no daemon identity" - }, { "command": "list-clients", "evidence": [ - "tmux/snapshot_capture.go:46", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:42", + "tmux/snapshot_capture.go:45" ], "forwardable": true, "reviewed": true, @@ -1828,8 +1844,8 @@ { "command": "list-panes", "evidence": [ - "tmux/snapshot_capture.go:45", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:41", + "tmux/snapshot_capture.go:45" ], "forwardable": true, "reviewed": true, @@ -1838,8 +1854,8 @@ { "command": "list-sessions", "evidence": [ - "tmux/snapshot_capture.go:43", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:39", + "tmux/snapshot_capture.go:45" ], "forwardable": true, "reviewed": true, @@ -1848,21 +1864,37 @@ { "command": "list-windows", "evidence": [ - "tmux/snapshot_capture.go:44", - "tmux/snapshot_capture.go:49" + "tmux/snapshot_capture.go:40", + "tmux/snapshot_capture.go:45" ], "forwardable": true, "reviewed": true, "scope": "server" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/snapshot_capture.go:24" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" } ], "tmux.Server.SourceFile": [ { "command": "source-file", "evidence": [ - "tmux/server_exec.go:329", - "tmux/server_exec.go:325", - "tmux/server_exec.go:353" + "tmux/server_exec.go:451", + "tmux/server_exec.go:447", + "tmux/server_exec.go:475" ], "scope": null } @@ -1880,7 +1912,7 @@ { "command": "suspend-client", "evidence": [ - "tmux/server_clients.go:214" + "tmux/server_clients.go:203" ], "scope": null } @@ -1889,7 +1921,7 @@ { "command": "switch-client", "evidence": [ - "tmux/server_clients.go:285" + "tmux/server_clients.go:274" ], "scope": null } @@ -1930,39 +1962,41 @@ { "command": "wait-for", "evidence": [ - "tmux/server_exec.go:277" + "tmux/server_exec.go:318" ], "scope": null } ], "tmux.Server.Window": [ { - "command": "display-message", + "command": "list-windows", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/lookup.go:179", + "tmux/lookup.go:198", + "tmux/lookup.go:196", "tmux/lookup.go:139", "tmux/lookup.go:62" ], "forwardable": true, - "incidental": true, "reviewed": true, - "scope": null, - "when": "the Server has no daemon identity" + "scope": "session" }, { - "command": "list-windows", + "command": "run-shell", "evidence": [ - "tmux/lookup.go:198", - "tmux/lookup.go:196", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", "tmux/lookup.go:139", "tmux/lookup.go:62" ], "forwardable": true, + "incidental": true, "reviewed": true, - "scope": "session" + "scope": null, + "when": "the Server has no daemon identity" } ], "tmux.Session.AppendHook": [ @@ -2006,7 +2040,7 @@ { "command": "detach-client", "evidence": [ - "tmux/server_clients.go:340" + "tmux/server_clients.go:329" ], "scope": null } @@ -2025,9 +2059,9 @@ { "command": "kill-session", "evidence": [ - "tmux/lifecycle_kill.go:132", - "tmux/lifecycle_kill.go:153", - "tmux/lifecycle_kill.go:95" + "tmux/lifecycle_kill.go:151", + "tmux/lifecycle_kill.go:172", + "tmux/lifecycle_kill.go:114" ], "reviewed": true, "scope": null @@ -2037,7 +2071,7 @@ { "command": "kill-window", "evidence": [ - "tmux/lifecycle_kill.go:194" + "tmux/lifecycle_kill.go:213" ], "scope": null } @@ -2046,7 +2080,7 @@ { "command": "kill-session", "evidence": [ - "tmux/lifecycle_kill.go:153" + "tmux/lifecycle_kill.go:172" ], "scope": null } @@ -2064,7 +2098,7 @@ { "command": "lock-session", "evidence": [ - "tmux/server_clients.go:306" + "tmux/server_clients.go:295" ], "scope": null } @@ -2073,10 +2107,10 @@ { "command": "new-window", "evidence": [ - "tmux/window_lifecycle.go:157", - "tmux/window_lifecycle.go:213", - "tmux/window_lifecycle.go:224", - "tmux/window_lifecycle.go:88" + "tmux/window_lifecycle.go:159", + "tmux/window_lifecycle.go:215", + "tmux/window_lifecycle.go:226", + "tmux/window_lifecycle.go:90" ], "reviewed": true, "scope": null @@ -2102,42 +2136,44 @@ ], "tmux.Session.Refresh": [ { - "command": "display-message", + "command": "list-sessions", "evidence": [ "tmux/lookup.go:109" ], "scope": null, "via": { "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/lookup.go:179", - "tmux/lookup.go:139", "tmux/lookup.go:11" ], - "incidental": true, "port": "go", - "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Session" - }, - "when": "the Server has no daemon identity" + } }, { - "command": "list-sessions", + "command": "run-shell", "evidence": [ "tmux/lookup.go:109" ], "scope": null, "via": { "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", "tmux/lookup.go:11" ], + "incidental": true, "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Session" - } + }, + "when": "the Server has no daemon identity" } ], "tmux.Session.RemoveEnvironment": [ @@ -2154,18 +2190,27 @@ { "command": "rename-session", "evidence": [ - "tmux/session_lifecycle.go:272" + "tmux/session_lifecycle.go:274" ], "scope": null } ], "tmux.Session.SearchPanes": [ { - "command": "display-message", + "command": "list-panes", + "evidence": [ + "tmux/search.go:127" + ], + "scope": "session" + }, + { + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", "tmux/search.go:127" @@ -2175,22 +2220,24 @@ "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, + } + ], + "tmux.Session.SearchWindows": [ { - "command": "list-panes", + "command": "list-windows", "evidence": [ - "tmux/search.go:127" + "tmux/search.go:100" ], "scope": "session" - } - ], - "tmux.Session.SearchWindows": [ + }, { - "command": "display-message", + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", "tmux/search.go:100" @@ -2200,13 +2247,6 @@ "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, - { - "command": "list-windows", - "evidence": [ - "tmux/search.go:100" - ], - "scope": "session" } ], "tmux.Session.SelectWindow": [ @@ -2283,7 +2323,7 @@ { "command": "respawn-pane", "evidence": [ - "tmux/session_run.go:169" + "tmux/session_run.go:213" ], "scope": null, "via": { @@ -2291,7 +2331,7 @@ "tmux/pane_process.go:66" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.Respawn" } } @@ -2300,7 +2340,7 @@ { "command": "switch-client", "evidence": [ - "tmux/server_clients.go:356" + "tmux/server_clients.go:345" ], "scope": null } @@ -2383,7 +2423,7 @@ { "command": "kill-window", "evidence": [ - "tmux/lifecycle_kill.go:206" + "tmux/lifecycle_kill.go:225" ], "scope": null } @@ -2392,7 +2432,7 @@ { "command": "kill-window", "evidence": [ - "tmux/lifecycle_kill.go:225" + "tmux/lifecycle_kill.go:244" ], "scope": null } @@ -2432,8 +2472,8 @@ { "command": "new-pane", "evidence": [ - "tmux/pane_create.go:213", - "tmux/pane_create.go:121" + "tmux/pane_create.go:217", + "tmux/pane_create.go:125" ], "scope": null } @@ -2442,10 +2482,10 @@ { "command": "new-window", "evidence": [ - "tmux/window_lifecycle.go:157", - "tmux/window_lifecycle.go:213", - "tmux/window_lifecycle.go:224", - "tmux/window_lifecycle.go:117" + "tmux/window_lifecycle.go:159", + "tmux/window_lifecycle.go:215", + "tmux/window_lifecycle.go:226", + "tmux/window_lifecycle.go:119" ], "reviewed": true, "scope": null @@ -2471,53 +2511,55 @@ ], "tmux.Window.Refresh": [ { - "command": "display-message", + "command": "list-windows", "evidence": [ "tmux/lookup.go:116" ], - "scope": null, + "scope": "session", "via": { "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", - "tmux/lookup.go:179", + "tmux/lookup.go:198", + "tmux/lookup.go:196", "tmux/lookup.go:139", "tmux/lookup.go:62" ], - "incidental": true, "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Window" - }, - "when": "the Server has no daemon identity" + } }, { - "command": "list-windows", + "command": "run-shell", "evidence": [ "tmux/lookup.go:116" ], - "scope": "session", + "scope": null, "via": { "evidence": [ - "tmux/lookup.go:198", - "tmux/lookup.go:196", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", "tmux/lookup.go:139", "tmux/lookup.go:62" ], + "incidental": true, "port": "go", "reviewed": true, - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Server.Window" - } + }, + "when": "the Server has no daemon identity" } ], "tmux.Window.Rename": [ { "command": "rename-window", "evidence": [ - "tmux/window_lifecycle.go:360" + "tmux/window_lifecycle.go:362" ], "scope": null } @@ -2537,7 +2579,7 @@ { "command": "respawn-window", "evidence": [ - "tmux/window_respawn.go:49" + "tmux/window_respawn.go:51" ], "scope": null } @@ -2555,11 +2597,20 @@ ], "tmux.Window.SearchPanes": [ { - "command": "display-message", + "command": "list-panes", + "evidence": [ + "tmux/search.go:152" + ], + "scope": "window" + }, + { + "command": "run-shell", "evidence": [ - "tmux/identity.go:210", - "tmux/identity.go:212", - "tmux/identity.go:206", + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", "tmux/search.go:195", "tmux/search.go:175", "tmux/search.go:152" @@ -2569,20 +2620,13 @@ "reviewed": true, "scope": null, "when": "the Server has no daemon identity" - }, - { - "command": "list-panes", - "evidence": [ - "tmux/search.go:152" - ], - "scope": "window" } ], "tmux.Window.Select": [ { "command": "select-window", "evidence": [ - "tmux/window_lifecycle.go:382" + "tmux/window_lifecycle.go:384" ], "scope": null } @@ -2652,9 +2696,9 @@ { "command": "split-window", "evidence": [ - "tmux/pane_create.go:421", - "tmux/pane_create.go:354", - "tmux/pane_create.go:308" + "tmux/pane_create.go:425", + "tmux/pane_create.go:358", + "tmux/pane_create.go:312" ], "reviewed": true, "scope": null @@ -2722,8 +2766,8 @@ { "command": "display-message", "evidence": [ - "tmux/tmuxtest/harness.go:441", - "tmux/tmuxtest/harness.go:326" + "tmux/tmuxtest/harness.go:444", + "tmux/tmuxtest/harness.go:329" ], "scope": null } @@ -2733,8 +2777,8 @@ "command": "kill-session", "evidence": [ "tmux/tmuxtest/resources.go:135", - "tmux/tmuxtest/harness.go:546", - "tmux/tmuxtest/harness.go:536", + "tmux/tmuxtest/harness.go:549", + "tmux/tmuxtest/harness.go:539", "tmux/tmuxtest/resources.go:56" ], "reviewed": true, @@ -2744,8 +2788,8 @@ { "command": "new-session", "evidence": [ - "tmux/session_lifecycle.go:234", - "tmux/session_lifecycle.go:230", + "tmux/session_lifecycle.go:236", + "tmux/session_lifecycle.go:232", "tmux/tmuxtest/resources.go:49" ], "reviewed": true, @@ -2756,7 +2800,7 @@ { "command": "send-keys", "evidence": [ - "tmux/tmuxtest/screen.go:117" + "tmux/tmuxtest/screen.go:124" ], "scope": null, "via": { @@ -2766,7 +2810,7 @@ "tmux/pane_input.go:203" ], "port": "go", - "revision": "6f3df55f8a41999e41225eefb3940545b834e6a2", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", "symbol": "tmux.Pane.SendKeys" } } @@ -2775,7 +2819,7 @@ { "command": "send-keys", "evidence": [ - "tmux/pane_input.go:292" + "tmux/pane_input.go:323" ], "scope": null } diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 32833aee1..fb4a3cbc3 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -331,10 +331,12 @@ describe('a release a library refuses to send on', () => { const entries = refused.flatMap(([port, symbol, commands]) => commands.map((command) => ({ label: `${port} ${symbol} ${command}`, entry: use(port, symbol, command) }))) expect(entries).toHaveLength(11) for (const { label, entry } of entries) expect(entry?.when, label).toBe('except before tmux 3.4') - // Lua's delete_buffer refuses the same way; go's confirm-before and command-prompt always send -b, which tmux has from 3.3. + // Lua's delete_buffer refuses the same way. Go's confirm-before and command-prompt send -b on every release it supports, since its floor is the 3.3a that has it, so they carry no qualifier. expect(use('lua', 'libtmux.Server:delete_buffer', 'delete-buffer')?.when).toBe('except before tmux 3.4') - expect(use('go', 'tmux.Server.ConfirmBefore', 'confirm-before')?.when).toBe('except before tmux 3.3') - expect(use('go', 'tmux.Server.CommandPrompt', 'command-prompt')?.when).toBe('except before tmux 3.3') + for (const [symbol, command] of [['tmux.Server.ConfirmBefore', 'confirm-before'], ['tmux.Server.CommandPrompt', 'command-prompt']] as const) { + expect(use('go', symbol, command), symbol).toBeDefined() + expect(use('go', symbol, command)?.when, symbol).toBeUndefined() + } // run-shell's output is lost on every release from 3.3 until 3.5, which is a range and not two releases. for (const [port, symbol] of [['java', 'io.github.libtmux.Shell.Shell.capturing'], ['kotlin', 'io.github.libtmux.kotlin.Shell.capturing'], ['scala', 'io.github.libtmux.scaladsl.cats.Shell.capturing']] as const) { expect(use(port, symbol, 'run-shell')?.when, `${port} ${symbol}`).toBe('except from tmux 3.3 until 3.5') From 6a6ebf796f7391cb27aee822131b4a223e5c1e62 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:07:15 -0500 Subject: [PATCH 31/53] feat(scripts[tmux-usage]) Read Elixir by its text why: libtmux-elixir has an API model, so `portsWithModels` picks it up, but `GRAMMARS` had no entry for it. A port with no reader is scanned as an empty source, so the generator would have written an Elixir file that records nothing and passes, with no sign that nothing was read. Elixir has no tree-sitter grammar in the api-model package, so it is read the way Julia and F# are. what: - Add `scanElixir` and `tokenizeElixir` to the lexical readers. A `def` or `defp` clause is a function, extended by the `end` that closes its `do` block or by the lines indented under its `, do:`; the `defmodule` around it is its owner; the docs and attributes directly above it are part of it, which is the line the API model gives a function, and a heredoc is one token so a blank line inside a doc does not end it. - Read a call as a name against its parenthesis, with the alias before its dot as its receiver, so `Server.run(` resolves to `Server.run` and not to `OneShot.run`. A command in a call to a declared dispatcher is sent; a case label is not; any other literal is named and sends nothing, because Elixir hands a command on in variables the scan does not follow. - Add Elixir to `GRAMMARS` and `EXTENSIONS` (`.ex`, not the `.exs` scripts and tests), to the scan, and to `TRANSPORT`: the frame the one-shot transport writes to the port that starts tmux. - Test the reader on a clause of each form, a doc detached from its function, strings, interpolation, sigils, character literals and comments, and test that every port with an API model has a grammar, with a port the table lacks as the control that is named. - Say in scripts/README.md which ports are read by their text. --- scripts/README.md | 6 +- scripts/lib/tmux-usage-dispatch.mjs | 1 + scripts/lib/tmux-usage-lexical.mjs | 234 +++++++++++++++++++++++++++- scripts/lib/tmux-usage-scan.mjs | 9 +- site/test/tmux-usage-derive.test.ts | 109 ++++++++++++- 5 files changed, 350 insertions(+), 9 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index 606121d18..a724f062b 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -171,7 +171,11 @@ $ node scripts/gen-tmux-catalog.mjs --check --source ~/study/c/tmux each tmux command and at which scope, in `site/src/data/tmux-usage/.json`. It reads each port's source at the revision its API model was extracted from, through the port checkouts named in `ports.ts` or -`LIBTMUX_DOCS_CHECKOUT_`. +`LIBTMUX_DOCS_CHECKOUT_`. Tree-sitter reads the source of most ports; +Julia, F# and Elixir have no grammar here, and `lib/tmux-usage-lexical.mjs` reads +them by their text. `GRAMMARS` in `lib/tmux-usage-scan.mjs` names the reader of +every port that has an API model, and a test fails for one it lacks, because a +port with no reader would be generated as sending nothing. A command is recorded for a symbol only where it is sent. A literal that names a command is a send when it is an argument of a call that dispatches, in the diff --git a/scripts/lib/tmux-usage-dispatch.mjs b/scripts/lib/tmux-usage-dispatch.mjs index ab3e479b7..b2b11be76 100644 --- a/scripts/lib/tmux-usage-dispatch.mjs +++ b/scripts/lib/tmux-usage-dispatch.mjs @@ -31,6 +31,7 @@ export const TRANSPORT = { csharp: { pattern: /\bprocess\.Start\(\)|StandardInput\.WriteLineAsync/, files: /(?:TmuxProcessTransport|SystemControlModeProcess)\.cs$/ }, cxx: { pattern: /::posix_spawnp?\(|::write\(/, files: /(?:posix_child|connection|process)\.cpp$/ }, swift: { pattern: /Subprocess\.run\(|Glibc\.write\(/, files: /Sources\/LibTmux\/(?:Transport|ControlMode|NonblockingLineWriter)\.swift$/ }, + elixir: { pattern: /\bsend_port\(/, files: /transport\/oneshot\.ex$/ }, } const CONSTRUCTOR = /^(?:__init__|constructor|init|new|initialize)$/ diff --git a/scripts/lib/tmux-usage-lexical.mjs b/scripts/lib/tmux-usage-lexical.mjs index 07f509d2a..20e0a2bf0 100644 --- a/scripts/lib/tmux-usage-lexical.mjs +++ b/scripts/lib/tmux-usage-lexical.mjs @@ -1,5 +1,5 @@ /** - * Read the source of the two languages that have no tree-sitter grammar here, Julia and F#, by their + * Read the source of the three languages that have no tree-sitter grammar here, Julia, F# and Elixir, by their * text: comments and strings are stepped over, a function is the lines an offside rule or an `end` * gives it, and a call is a name written against its brackets. The result has the shape of a grammar * scan, so the same derivation reads it. @@ -328,6 +328,238 @@ export function scanJulia(text, { commands, known, dispatch }) { return { functions, types: [], orphans: [] } } +const CLOSING = { '"': '"', "'": "'", '/': '/', '|': '|', '(': ')', '[': ']', '{': '}', '<': '>' } + +/** + * Words, strings and sigils of Elixir source, with comments dropped. A string keeps its interpolation as text, + * a heredoc is marked `doc`, and a sigil other than `~s` or `~S` is a `sigil` and never a string. + * @returns {{ t: 'str' | 'chars' | 'sigil' | 'id' | 'num' | 'sym', v: string, line: number, col: number, doc?: boolean }[]} + */ +export function tokenizeElixir(text) { + const tokens = [] + let line = 1 + let col = 0 + let index = 0 + const step = (count = 1) => { + for (let n = 0; n < count; n++) { + if (text[index] === '\n') { line++; col = 0 } else col++ + index++ + } + } + /** Step over `#{ ... }`, whose code may hold strings and braces of its own. */ + const interpolation = () => { + step(2) + let depth = 1 + while (index < text.length && depth) { + const here = text[index] + if (here === '"') { step(); readQuoted('"', true) } + else if (here === '{') { depth++; step() } + else if (here === '}') { depth--; step() } + else step() + } + } + /** The text after an opening delimiter, up to the closing one; the closer is stepped over. */ + const readQuoted = (close, interpolate, escapes = true) => { + let value = '' + while (index < text.length && !text.startsWith(close, index)) { + if (escapes && text[index] === '\\') { value += text.slice(index, index + 2); step(2); continue } + if (interpolate && text.startsWith('#{', index)) { + const from = index + interpolation() + value += text.slice(from, index) + continue + } + value += text[index] + step() + } + step(close.length) + return value + } + while (index < text.length) { + const here = text[index] + const start = { line, col } + if (here === '#') { while (index < text.length && text[index] !== '\n') step(); continue } + if (/\s/.test(here)) { step(); continue } + if (text.startsWith('"""', index) || text.startsWith("'''", index)) { + const quote = text.slice(index, index + 3) + step(3) + tokens.push({ t: quote[0] === '"' ? 'str' : 'chars', v: readQuoted(quote, true), ...start, doc: true }) + continue + } + if (here === '"') { step(); tokens.push({ t: 'str', v: readQuoted('"', true), ...start }); continue } + if (here === "'") { step(); tokens.push({ t: 'chars', v: readQuoted("'", true), ...start }); continue } + if (here === '~' && /[A-Za-z]/.test(text[index + 1] ?? '') && CLOSING[text[index + 2]]) { + const letter = text[index + 1] + const heredoc = text.startsWith('"""', index + 2) || text.startsWith("'''", index + 2) + const close = heredoc ? text.slice(index + 2, index + 5) : CLOSING[text[index + 2]] + step(heredoc ? 5 : 3) + const lower = letter === letter.toLowerCase() + const value = readQuoted(close, lower, lower) + while (/[a-z]/.test(text[index] ?? '')) step() + tokens.push({ t: letter === 's' || letter === 'S' ? 'str' : 'sigil', v: value, ...start, ...(heredoc ? { doc: true } : {}) }) + continue + } + // A character literal, `?a` or `?"`, and not the end of a name such as `ready?`. + if (here === '?' && !/[\w?!]/.test(text[index - 1] ?? '') && text[index + 1] && !/\s/.test(text[index + 1])) { + step(text[index + 1] === '\\' ? 3 : 2) + tokens.push({ t: 'num', v: '?', ...start }) + continue + } + if (/[A-Za-z_]/.test(here)) { + let end = index + 1 + while (end < text.length && /\w/.test(text[end])) end++ + if (/[?!]/.test(text[end] ?? '') && text[end + 1] !== '=') end++ + const word = text.slice(index, end) + step(end - index) + tokens.push({ t: 'id', v: word, ...start }) + continue + } + if (/[0-9]/.test(here)) { + let end = index + 1 + while (end < text.length && (/\w/.test(text[end]) || (text[end] === '.' && /[0-9]/.test(text[end + 1] ?? '')))) end++ + const word = text.slice(index, end) + step(end - index) + tokens.push({ t: 'num', v: word, ...start }) + continue + } + step() + tokens.push({ t: 'sym', v: here, ...start }) + } + return tokens +} + +const ELIXIR_DEFINERS = new Set(['def', 'defp', 'defmacro', 'defmacrop', 'defdelegate', 'defguard', 'defguardp']) + +/** + * Elixir: a `def` or `defp` clause is a function, the `end` that closes its `do` block or the lines indented under + * its `, do:` give it its extent, the `defmodule` around it is its owner, and the attributes above it (`@doc`, + * `@spec`) are part of it, which is where the API model puts a function's line. A call is a name against its + * parenthesis, made on the alias before its dot. A command in a call to a declared dispatcher is sent; any other + * literal is only named, since Elixir hands a command on by variables the scan does not follow. + * @param {string} text + * @param {{ commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet }} input + */ +export function scanElixir(text, { commands, known, dispatch }) { + const lines = text.split('\n') + const tokens = tokenizeElixir(text) + const groups = bracketGroups(tokens) + const adjacent = (index, next) => tokens[next]?.line === tokens[index].line && tokens[next].col === tokens[index].col + tokens[index].v.length + const keyword = (index) => tokens[index + 1]?.v === ':' && adjacent(index, index + 1) + const atom = (index) => tokens[index - 1]?.v === ':' && adjacent(index - 1, index) + const word = (index, value) => tokens[index]?.t === 'id' && tokens[index].v === value && !keyword(index) && !atom(index) && tokens[index - 1]?.v !== '.' + const opens = (index) => word(index, 'do') || word(index, 'fn') + /** The token index of the `end` that closes the block opened at `index`, or -1. */ + const closing = (index) => { + let depth = 1 + for (let at = index + 1; at < tokens.length; at++) { + if (opens(at)) depth++ + else if (word(at, 'end') && --depth === 0) return at + } + return -1 + } + const first = new Map() + tokens.forEach((token, index) => { if (!first.has(token.line)) first.set(token.line, index) }) + /** The last line a token occupies: a string spans the lines of its text, and a heredoc ends on the line of its closing delimiter. */ + const endLine = (token) => token.line + (token.v.match(/\n/g)?.length ?? 0) + + const modules = [] + for (const [, index] of first) { + if (!word(index, 'defmodule')) continue + const path = [] + let at = index + 1 + while (tokens[at]?.t === 'id' && !word(at, 'do')) { + path.push(tokens[at].v) + if (tokens[at + 1]?.v === '.') at += 2 + else { at++; break } + } + const open = word(at, 'do') ? at : tokens.findIndex((token, i) => i > at && word(i, 'do')) + const close = open < 0 ? -1 : closing(open) + if (path.length && close > 0) modules.push({ name: path.at(-1), start: tokens[index].line, end: tokens[close].line }) + } + const moduleAt = (line) => modules.findLast((module) => module.start <= line && line <= module.end) + + const functions = [] + for (const [line, index] of first) { + if (tokens[index].t !== 'id' || !ELIXIR_DEFINERS.has(tokens[index].v) || tokens[index + 1]?.t !== 'id') continue + const name = tokens[index + 1].v + const after = tokens[index + 2] + if (after && !(after.line !== tokens[index].line || ['(', ',', 'do', 'when'].includes(after.v))) continue + let headEnd = index + 1 + if (tokens[index + 2]?.v === '(' && adjacent(index + 1, index + 2)) headEnd = groups.find((group) => group.open === index + 2)?.close ?? headEnd + const indent = indentOf(lines, line) + let body = -1 + for (let at = headEnd + 1; at < tokens.length; at++) { + if (tokens[at].line > line && indentOf(lines, tokens[at].line) <= indent && first.get(tokens[at].line) === at) break + const group = groups.find((candidate) => candidate.open === at) + if (group) { at = group.close; continue } + if (tokens[at].t === 'id' && tokens[at].v === 'do' && !atom(at)) { body = at; break } + } + let end = tokens[headEnd].line + if (body >= 0 && !keyword(body)) { + const close = closing(body) + if (close < 0) continue + end = tokens[close].line + } else if (body >= 0) { + end = tokens[body].line + for (let next = end + 1; next <= lines.length && lines[next - 1].trim() && indentOf(lines, next) > indent; next++) end = next + } + // The attributes and docs directly above belong to the function: a heredoc is one token, so a blank line inside a doc does not end them. + const lastEnd = functions.at(-1)?.end ?? 0 + let above = index + while (above > 0 && tokens[above].line - endLine(tokens[above - 1]) <= 1 && tokens[above - 1].line > lastEnd && !word(above - 1, 'end')) above-- + let start = line + for (let at = above; at < index; at++) if (tokens[at].v === '@' && first.get(tokens[at].line) === at) { start = tokens[at].line; break } + functions.push({ name, owner: moduleAt(line)?.name, start, nameLine: line, end, kind: tokens[index].v, sites: [], calls: new Map(), receivers: new Map(), callList: [] }) + } + const owner = (line) => functions.filter((fn) => fn.nameLine <= line && line <= fn.end).sort((a, b) => b.nameLine - a.nameLine)[0] + + const isCommand = (token) => { + if (token.t !== 'str' || token.doc) return undefined + const [head, next] = token.v.split(/\s+/) + return known.has(head) && (next === undefined || next.startsWith('-')) ? head : undefined + } + /** The flags written in the widest bracket group around a token that holds no other command. */ + const flagsAround = (index, command) => { + const holds = (group) => tokens.slice(group.open + 1, group.close).some((other) => { + const found = isCommand(other) + return found && found !== command + }) + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + let around = [tokens[index]] + for (const group of enclosing) { + if (holds(group)) break + around = tokens.slice(group.open, group.close + 1) + } + return [...flagLetters(around)].sort().join('') + } + const callOpen = (index) => tokens[index]?.t === 'id' && tokens[index + 1]?.v === '(' && adjacent(index, index + 1) + + tokens.forEach((token, index) => { + const fn = owner(token.line) + const command = isCommand(token) + if (command && commands.has(command)) { + const site = { command, line: token.line, flags: flagsAround(index, command) } + if (dispatch) { + const label = tokens[index + 1]?.v === '-' && tokens[index + 2]?.v === '>' + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + const call = enclosing.find((group) => callOpen(group.open - 1) && dispatch.has(tokens[group.open - 1].v)) + if (label) { site.dispatch = null; site.why = 'a case label names it, and sends nothing' } + else if (call) site.dispatch = { line: tokens[call.open - 1].line, name: tokens[call.open - 1].v } + else { site.dispatch = null; site.why = 'it reaches no call that sends' } + } + fn?.sites.push(site) + } + // The name a clause is declared with is not a call of it. + if (!callOpen(index) || !fn || ELIXIR_DEFINERS.has(token.v) || ELIXIR_DEFINERS.has(tokens[index - 1]?.v)) return + const qualified = tokens[index - 1]?.v === '.' && tokens[index - 2]?.t === 'id' + const receiver = qualified ? tokens[index - 2].v.toLowerCase() : undefined + if (!fn.calls.has(token.v)) fn.calls.set(token.v, token.line) + if (receiver) fn.receivers.set(token.v, new Set([...(fn.receivers.get(token.v) ?? []), receiver])) + fn.callList.push({ name: token.v, receiver, line: token.line, calleeLine: token.line }) + }) + return { functions, types: modules.map((module) => ({ name: module.name, start: module.start, end: module.end })), orphans: [] } +} + /** * F#: `let` bindings and members with their module or type, by the offside rule, and the member calls * inside them. F# in this tree sends nothing itself, so only the shape a wrapper needs is read. diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index 6b06ca356..57b08fa05 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -7,18 +7,18 @@ * with the command, because the flags choose the scope tmux lists. */ import { parserFor } from '../../packages/api-model/src/parser.ts' -import { receiverOf, scanFSharp, scanJulia } from './tmux-usage-lexical.mjs' +import { receiverOf, scanElixir, scanFSharp, scanJulia } from './tmux-usage-lexical.mjs' -/** Port to the tree-sitter grammar that reads its source. PowerShell cmdlets are C#. */ +/** Port to the grammar that reads its source. PowerShell cmdlets are C#; Julia, F# and Elixir are read by their text. */ export const GRAMMARS = { py: 'python', ts: 'typescript', rs: 'rust', go: 'go', java: 'java', kotlin: 'kotlin', scala: 'scala', - csharp: 'csharp', powershell: 'csharp', cxx: 'cpp', swift: 'swift', ruby: 'ruby', lua: 'lua', julia: 'julia', fsharp: 'fsharp', + csharp: 'csharp', powershell: 'csharp', cxx: 'cpp', swift: 'swift', ruby: 'ruby', lua: 'lua', julia: 'julia', fsharp: 'fsharp', elixir: 'elixir', } /** Source extensions per grammar, minus declaration-only files. */ export const EXTENSIONS = { python: /\.py$/, typescript: /(? { }) }) }) + +describe('reading Elixir by its text', () => { + const commands = new Set(['list-panes', 'list-windows']) + const elixir = (text: string, dispatch?: string[]) => scanElixir(text, { commands, known: commands, dispatch: dispatch && new Set(dispatch) }) as unknown as { + functions: (Scanned & { nameLine: number; callList: { name: string; receiver?: string; line: number }[] })[] + types: { name: string; start: number; end: number }[] + } + + it('finds a function by its do block or its keyword body, with the module around it and the docs above it', () => { + const text = [ + 'defmodule Demo.Capture do', + ' @moduledoc false', + '', + ' @doc """', + ' Reads the panes.', + '', + ' A blank line inside the doc does not end it.', + ' """', + ' @spec fetch(term()) :: term()', + ' def fetch(server) do', + ' if server, do: rows(server, "list-panes", ["-a"])', + ' end', + '', + ' defp rows(server, command, arguments),', + ' do: read(server, command, arguments)', + '', + ' defp read(_, _, _), do: :ok', + '', + ' @doc "Alone."', + '', + ' def lone(x), do: x', + 'end', + '', + ].join('\n') + const { functions, types } = elixir(text, ['rows']) + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(types).toEqual([{ name: 'Capture', start: 1, end: 22 }]) + // The API model puts a function at the line of its first doc, so the doc is part of the function. + expect([byName.fetch.start, byName.fetch.nameLine, byName.fetch.end, byName.fetch.owner]).toEqual([4, 10, 12, 'Capture']) + expect([byName.rows.start, byName.rows.end]).toEqual([14, 15]) + expect(byName.read).toMatchObject({ start: 17, end: 17 }) + // A doc with a blank line between it and the function belongs to nothing. + expect(byName.lone).toMatchObject({ start: 21, nameLine: 21 }) + expect(byName.fetch.sites).toEqual([{ command: 'list-panes', line: 11, flags: 'a', dispatch: { line: 11, name: 'rows' } }]) + expect([...byName.rows.calls.keys()]).toEqual(['read']) + }) + + it('reads a call by the alias before its dot, and a command no declared call is handed as named and not sent', () => { + const text = [ + 'defmodule Demo.Server do', + ' def snapshot(server), do: Capture.fetch(server)', + '', + ' def name(command) do', + ' case command do', + ' "list-panes" -> :panes', + ' _ -> Command.new("list-windows", [])', + ' end', + ' end', + 'end', + '', + ].join('\n') + const { functions } = elixir(text, ['run']) + const byName = Object.fromEntries(functions.map((fn) => [fn.name, fn])) + expect(byName.snapshot.callList).toEqual([{ name: 'fetch', receiver: 'capture', line: 2, calleeLine: 2 }]) + expect(byName.name.sites.map((site) => [site.command, (site as { dispatch?: unknown }).dispatch])).toEqual([['list-panes', null], ['list-windows', null]]) + expect((byName.name.sites[0] as { why?: string }).why).toMatch(/case label/) + }) + + it('steps over strings, interpolation, heredocs, sigils and comments, so a command in none of them is a send', () => { + const text = [ + 'defmodule Demo do', + ' def one(x) do', + ' # list-panes in a comment', + ' note = "run list-panes #{inspect("list-windows")} now"', + ' pattern = ~r/list-panes/', + ' format = ~S"#{pid}"', + ' run(x, "list-panes", ["-t", ?"])', + ' end', + '', + ' def ready?(x), do: x', + 'end', + '', + ].join('\n') + const { functions } = elixir(text, ['run']) + const one = functions.find((fn) => fn.name === 'one')! + expect(one.sites).toEqual([{ command: 'list-panes', line: 7, flags: 't', dispatch: { line: 7, name: 'run' } }]) + expect(functions.find((fn) => fn.name === 'ready?')).toMatchObject({ start: 10, end: 10 }) + expect(tokenizeElixir('~S"#{pid}"').map((token) => [token.t, token.v])).toEqual([['str', '#{pid}']]) + expect(tokenizeElixir('~r/x/i y').map((token) => token.t)).toEqual(['sigil', 'id']) + }) +}) + +describe('the ports whose source is read', () => { + const unread = (slugs: string[], grammars: Record) => slugs.filter((slug) => !grammars[slug]) + + it('has a grammar for every port with an API model, so one added later is not scanned as empty', () => { + const slugs = readdirSync(new URL('../src/data/api', import.meta.url)).filter((name) => /^[a-z]+\.json$/.test(name)).map((name) => name.replace(/\.json$/, '')) + expect(slugs).toContain('elixir') + expect(unread(slugs, GRAMMARS)).toEqual([]) + // The control: a port the table lacks is the one named. + expect(unread([...slugs, 'newport'], GRAMMARS)).toEqual(['newport']) + }) +}) From 323710503ddfcec32babdb35d85cd9927caa87b8 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:07:15 -0500 Subject: [PATCH 32/53] feat(site[tmux-usage]) Record Elixir's senders at its model revision why: The Elixir API model on main is at libtmux-elixir 6e6e88e8, and the usage table had no Elixir column, so a reader of `list-panes` could not tell whether Elixir has a method that sends it. The library sends little: a capture, a control connection and the requests submitted to it. what: - Record what `Capture.fetch/2`, `Server.snapshot/2` and `Server.snapshot!/2` send: list-sessions, list-windows and list-panes with -a (the server scope), list-clients, and display-message for the identity and text fields. Each is a reviewed claim, because the sends are two calls below the public function (`attempt`, then `topology` or `identity`), and a symbol is credited across one. - Record that `Control.start_link/1` attaches (attach-session, then the display-message that reads the pid) and that `Control.submit/3` and `submit!/3` send display-message for a field request and set-option for a user option, each qualified in a few words, since a request is built as one or the other. - Declare `read`, `rows` and `list` as dispatchers, each with the chain of calls to the line that writes the frame to the port, so a literal handed to one is a send and the chain is read back against the pinned source. - Leave `Request.field/2`, `Request.set_user_option/2`, `Server.run/3` and `OneShot.run/3` unrecorded: the first two build data that sends nothing until it is submitted, and the others run a command they are handed and spell none. `Control.reconnect/2` attaches again only after a close, by a message to the connection manager that the claims do not follow, so it is not recorded. - Name an Elixir function by its module, `Capture.fetch/2`, as a function of a type is named by its type: a module is the only owner an Elixir function has, and `fetch/2` alone was not a name to read in the table. - Register elixir.json in the site's usage table, list Elixir among the languages without a window-scope list-panes sender, and test the entries with the builders and runners as controls. - Add to the generator's negative script a command spelled where nothing sends it, a dispatcher chain that skips a function or stops short of the port, a claim whose line does not hold its text and one outside the symbol it names, with the committed Elixir entries and rules as the passing controls. Checked: `gen-tmux-usage --check --source` against a private clone at 6e6e88e8 regenerates and compares Elixir. --- scripts/gen-tmux-usage.negative.mjs | 13 +- scripts/tmux-usage/claims.json | 685 +++++++++++++++++++++++++++ scripts/tmux-usage/dispatchers.json | 189 ++++++++ site/src/data/tmux-usage/elixir.json | 346 ++++++++++++++ site/src/lib/tmux-library-usage.ts | 7 +- site/test/tmux-library-usage.test.ts | 24 +- 6 files changed, 1259 insertions(+), 5 deletions(-) create mode 100644 site/src/data/tmux-usage/elixir.json diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index 9538b8826..f8a8dce8b 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -184,7 +184,7 @@ if (existsSync(join(process.env.LIBTMUX_DOCS_CHECKOUT_FSHARP ?? join(homedir(), const CHECKOUTS = { py: '~/work/python/libtmux', java: '~/work/libtmux/libtmux-java', ts: '~/work/libtmux/libtmux-ts', swift: '~/work/libtmux/libtmux-swift', ruby: '~/work/libtmux/libtmux-ruby', rs: '~/work/libtmux/libtmux-rs', julia: '~/work/libtmux/libtmux-julia', go: '~/work/libtmux/libtmux-go', - fsharp: '~/work/libtmux/libtmux-dotnet', + fsharp: '~/work/libtmux/libtmux-dotnet', elixir: '~/work/libtmux/libtmux-elixir', } const checkoutOf = (port) => (process.env[`LIBTMUX_DOCS_CHECKOUT_${port.toUpperCase()}`] ?? CHECKOUTS[port]).replace(/^~/, homedir()) const SENDS_NOTHING = [ @@ -197,6 +197,7 @@ const SENDS_NOTHING = [ ['a generic runner that an allowlist admits', 'julia', 'LibTmux.run_command', 'kill-pane', ['src/control_protocol.jl:427', 'src/control.jl:580'], /julia: LibTmux.run_command kill-pane: src\/control_protocol.jl:427 is not a call that sends kill-pane/], ['the line that builds the command, where the call that sends is further down', 'rs', 'server.Server.command_prompt', 'command-prompt', ['crates/libtmux/src/server/interactive.rs:105'], /rs: server.Server.command_prompt command-prompt: crates\/libtmux\/src\/server\/interactive.rs:105 is not a call that sends command-prompt/], ['the literal of a builder, with the hop to a method of another type that shares its name', 'rs', 'pane.Pane.split', 'capture-pane', ['crates/libtmux/src/pane.rs:1618', 'crates/libtmux/src/pane.rs:515'], /rs: pane.Pane.split capture-pane: crates\/libtmux\/src\/pane.rs:1618 is not a call that sends capture-pane \(it builds a value for the caller\)/], + ['a command spelled in a request that is only built, where the call that sends is in the control lane', 'elixir', 'LibTmux.Control.Request.field/2', 'display-message', ['lib/libtmux/control/request.ex:51'], /elixir: LibTmux.Control.Request.field\/2 display-message: lib\/libtmux\/control\/request.ex:51 is not a call that sends display-message \(it reaches no call that sends\)/], ] const sourced = new Map() for (const [name, port, symbol, command, lines, message] of SENDS_NOTHING) { @@ -267,6 +268,16 @@ const BAD_RULES = [ document.exclusions.push({ port: 'go', owner: 'Server', names: ['NewSession'], commands: ['list-sessions'], why: 'NewSession lists sessions to look up a name only when the request carries one.', evidence: [{ at: 'tmux/session_lifecycle.go:210', has: ['request.Name != ""'] }, { at: 'tmux/session_lifecycle.go:217', has: ['sessionNamed('] }] }) }, /go: exclusion of Server\.NewSession for list-sessions: removes the reviewed claim of tmux\.Server\.NewSession list-sessions null, which says it sends it/], + ['an elixir dispatcher whose chain skips the function between two hops', 'elixir', 'dispatchers.json', (document) => { dispatcher(document, 'elixir', 'read').evidence[0].reaches.splice(3, 1) }, + /elixir: dispatcher read at lib\/libtmux\/capture.ex:307: hop lib\/libtmux\/transport\/oneshot.ex:86 leads to run_worker, but lib\/libtmux\/transport\/oneshot.ex:172 is not a line of it/], + ['an elixir dispatcher whose chain stops before the port is written to', 'elixir', 'dispatchers.json', (document) => { dispatcher(document, 'elixir', 'rows').evidence[0].reaches.pop() }, + /elixir: dispatcher rows at lib\/libtmux\/capture.ex:193: hop lib\/libtmux\/transport\/oneshot.ex:172 is not a transport/], + ['an elixir claim whose line does not hold its text', 'elixir', 'claims.json', (document) => { + document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Capture.fetch/2' && claim.command === 'list-sessions').evidence[0].has = ['list(state, "list-panes"'] + }, /elixir: LibTmux.Capture.fetch\/2 list-sessions null: lib\/libtmux\/capture.ex:158 does not contain "list\(state, \\"list-panes\\""/], + ['an elixir claim that is not anchored in the symbol it names', 'elixir', 'claims.json', (document) => { + document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Server.snapshot/2' && claim.command === 'list-clients').evidence.at(-1).at = 'lib/libtmux/server.ex:60' + }, /elixir: LibTmux.Server.snapshot\/2 list-clients null: lib\/libtmux\/server.ex:60 (?:does not contain|is outside the body of)/], ['a conditional guard that does not say when', 'go', 'guards.json', (document) => { delete document.guards.find((guard) => guard.port === 'go' && guard.name === 'guardCommand').when }, /go: guard guardCommand: is conditional, so it must say when/], ['a guard whose function builds no if-shell', 'java', 'guards.json', (document) => { diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index 1dcb6d8ec..aac493e75 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -14189,6 +14189,691 @@ "in": "LibTmux::Async::Server#switch_client" } ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:158", + "has": [ + "list(state, \"list-sessions\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:164", + "has": [ + "rows(state, \"list-windows\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:177", + "has": [ + "list(state, \"list-panes\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:178", + "has": [ + "list(state, \"list-clients\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:293", + "has": [ + "read(state, \"display-message\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:95", + "has": [ + "identity(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:158", + "has": [ + "list(state, \"list-sessions\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:164", + "has": [ + "rows(state, \"list-windows\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:177", + "has": [ + "list(state, \"list-panes\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:178", + "has": [ + "list(state, \"list-clients\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:293", + "has": [ + "read(state, \"display-message\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:95", + "has": [ + "identity(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:158", + "has": [ + "list(state, \"list-sessions\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:164", + "has": [ + "rows(state, \"list-windows\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:177", + "has": [ + "list(state, \"list-panes\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:178", + "has": [ + "list(state, \"list-clients\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:293", + "has": [ + "read(state, \"display-message\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:95", + "has": [ + "identity(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.start_link/1", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:17", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/start.ex:23", + "has": [ + "open(prepare(options)" + ] + }, + { + "at": "lib/libtmux/control.ex:74", + "has": [ + "Start.start(" + ], + "in": "LibTmux.Control.start_link/1" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.start_link/1", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:24", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/start.ex:23", + "has": [ + "open(prepare(options)" + ] + }, + { + "at": "lib/libtmux/control.ex:74", + "has": [ + "Start.start(" + ], + "in": "LibTmux.Control.start_link/1" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit/3", + "command": "display-message", + "scope": null, + "when": "the request reads a field", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:51", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ], + "in": "LibTmux.Control.submit/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit!/3", + "command": "display-message", + "scope": null, + "when": "the request reads a field", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:51", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:173", + "has": [ + "unwrap(submit(" + ], + "in": "LibTmux.Control.submit!/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit/3", + "command": "set-option", + "scope": null, + "when": "the request sets a user option", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:61", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ], + "in": "LibTmux.Control.submit/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit!/3", + "command": "set-option", + "scope": null, + "when": "the request sets a user option", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:61", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:173", + "has": [ + "unwrap(submit(" + ], + "in": "LibTmux.Control.submit!/3" + } + ] } ] } diff --git a/scripts/tmux-usage/dispatchers.json b/scripts/tmux-usage/dispatchers.json index 48e65753d..a78c54ded 100644 --- a/scripts/tmux-usage/dispatchers.json +++ b/scripts/tmux-usage/dispatchers.json @@ -1383,6 +1383,195 @@ } ] }, + { + "port": "elixir", + "name": "read", + "why": "Runs the tmux command it is given through the one-shot transport.", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:307", + "has": [ + "defp read(" + ], + "reaches": [ + { + "at": "lib/libtmux/capture.ex:317", + "has": [ + "Server.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/server.ex:58", + "has": [ + "OneShot.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:86", + "has": [ + "run_worker(spec)" + ], + "calls": "run_worker" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:142", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:172", + "has": [ + "open(spec)" + ], + "calls": "open" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:197", + "has": [ + "send_port(" + ] + } + ] + } + ] + }, + { + "port": "elixir", + "name": "rows", + "why": "Reads the rows of the command it is given, through read.", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:193", + "has": [ + "defp rows(" + ], + "reaches": [ + { + "at": "lib/libtmux/capture.ex:194", + "has": [ + "read(" + ], + "calls": "read" + }, + { + "at": "lib/libtmux/capture.ex:317", + "has": [ + "Server.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/server.ex:58", + "has": [ + "OneShot.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:86", + "has": [ + "run_worker(spec)" + ], + "calls": "run_worker" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:142", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:172", + "has": [ + "open(spec)" + ], + "calls": "open" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:197", + "has": [ + "send_port(" + ] + } + ] + } + ] + }, + { + "port": "elixir", + "name": "list", + "why": "Reads the rows of the command it is given, through rows.", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:185", + "has": [ + "defp list(" + ], + "reaches": [ + { + "at": "lib/libtmux/capture.ex:187", + "has": [ + "rows(" + ], + "calls": "rows" + }, + { + "at": "lib/libtmux/capture.ex:194", + "has": [ + "read(" + ], + "calls": "read" + }, + { + "at": "lib/libtmux/capture.ex:317", + "has": [ + "Server.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/server.ex:58", + "has": [ + "OneShot.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:86", + "has": [ + "run_worker(spec)" + ], + "calls": "run_worker" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:142", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:172", + "has": [ + "open(spec)" + ], + "calls": "open" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:197", + "has": [ + "send_port(" + ] + } + ] + } + ] + }, { "port": "ts", "name": "runCommand", diff --git a/site/src/data/tmux-usage/elixir.json b/site/src/data/tmux-usage/elixir.json new file mode 100644 index 000000000..3e80662d9 --- /dev/null +++ b/site/src/data/tmux-usage/elixir.json @@ -0,0 +1,346 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "elixir", + "repo": "libtmux/libtmux-elixir", + "revision": "6e6e88e886bdd9267fcd8be66f561dc5d5462476", + "schemaVersion": 1, + "symbols": { + "LibTmux.Capture.fetch/2": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/capture.ex:293", + "lib/libtmux/capture.ex:95", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lib/libtmux/capture.ex:178", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lib/libtmux/capture.ex:177", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lib/libtmux/capture.ex:158", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lib/libtmux/capture.ex:164", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Control.start_link/1": [ + { + "command": "attach-session", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:17", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/start.ex:23", + "lib/libtmux/control.ex:74" + ], + "reviewed": true, + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:24", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/start.ex:23", + "lib/libtmux/control.ex:74" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Control.submit!/3": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/request.ex:51", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152", + "lib/libtmux/control.ex:173" + ], + "reviewed": true, + "scope": null, + "when": "the request reads a field" + }, + { + "command": "set-option", + "evidence": [ + "lib/libtmux/control/request.ex:61", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152", + "lib/libtmux/control.ex:173" + ], + "reviewed": true, + "scope": null, + "when": "the request sets a user option" + } + ], + "LibTmux.Control.submit/3": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/request.ex:51", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152" + ], + "reviewed": true, + "scope": null, + "when": "the request reads a field" + }, + { + "command": "set-option", + "evidence": [ + "lib/libtmux/control/request.ex:61", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152" + ], + "reviewed": true, + "scope": null, + "when": "the request sets a user option" + } + ], + "LibTmux.Server.snapshot!/2": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/capture.ex:293", + "lib/libtmux/capture.ex:95", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lib/libtmux/capture.ex:178", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lib/libtmux/capture.ex:177", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lib/libtmux/capture.ex:158", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lib/libtmux/capture.ex:164", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Server.snapshot/2": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/capture.ex:293", + "lib/libtmux/capture.ex:95", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lib/libtmux/capture.ex:178", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lib/libtmux/capture.ex:177", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lib/libtmux/capture.ex:158", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lib/libtmux/capture.ex:164", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": "server" + } + ] + } +} diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts index 0ad311a40..66402f8be 100644 --- a/site/src/lib/tmux-library-usage.ts +++ b/site/src/lib/tmux-library-usage.ts @@ -12,6 +12,7 @@ import { PORTS } from './ports' import scopeTable from '../data/tmux-usage/scopes.json' import csharp from '../data/tmux-usage/csharp.json' import cxx from '../data/tmux-usage/cxx.json' +import elixir from '../data/tmux-usage/elixir.json' import fsharp from '../data/tmux-usage/fsharp.json' import go from '../data/tmux-usage/go.json' import java from '../data/tmux-usage/java.json' @@ -66,7 +67,7 @@ export interface TmuxScope { } export const TMUX_USAGE: Record = { - csharp, cxx, fsharp, go, java, julia, kotlin, lua, powershell, py, rs, ruby, scala, swift, ts, + csharp, cxx, elixir, fsharp, go, java, julia, kotlin, lua, powershell, py, rs, ruby, scala, swift, ts, } as unknown as Record const SCOPES = scopeTable.commands as Record @@ -142,10 +143,10 @@ function symbolOf(port: string, publicId: string): ApiSymbol | undefined { const TYPE_KINDS = new Set(['class', 'interface', 'struct', 'union', 'enum', 'trait', 'exception', 'typealias']) -/** The type that owns a member, when it has one. */ +/** The type that owns a member, when it has one. An Elixir function belongs to its module, which is its only owner. */ function ownerOf(port: string, symbol: ApiSymbol): ApiSymbol | undefined { const parent = symbol.parent ? API_MODELS[port]?.symbols.find((entry) => entry.id === symbol.parent) : undefined - return parent && TYPE_KINDS.has(parent.kind) ? parent : undefined + return parent && (TYPE_KINDS.has(parent.kind) || (port === 'elixir' && parent.kind === 'module')) ? parent : undefined } /** Where the segment that names the owner starts in a qualified name, whole segments only: `Pane` is not the end of `NewPane`. */ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index fb4a3cbc3..2185267ba 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -350,6 +350,28 @@ describe('a release a library refuses to send on', () => { } }) + it('records what elixir sends where a call spells it, and nothing for a function that builds or forwards a command', () => { + // A capture lists the server's sessions, windows, panes and clients, and reads identity and text fields with display-message. + for (const symbol of ['LibTmux.Capture.fetch/2', 'LibTmux.Server.snapshot/2', 'LibTmux.Server.snapshot!/2']) { + expect(use('elixir', symbol, 'list-panes'), symbol).toMatchObject({ scope: 'server', reviewed: true }) + expect(use('elixir', symbol, 'list-windows'), symbol).toMatchObject({ scope: 'server', reviewed: true }) + expect(use('elixir', symbol, 'list-sessions'), symbol).toMatchObject({ scope: null, reviewed: true }) + } + // A submitted request sends the command it was built as, which the request says. + expect(use('elixir', 'LibTmux.Control.submit/3', 'display-message')?.when).toBe('the request reads a field') + expect(use('elixir', 'LibTmux.Control.submit/3', 'set-option')?.when).toBe('the request sets a user option') + expect(use('elixir', 'LibTmux.Control.start_link/1', 'attach-session')).toMatchObject({ reviewed: true }) + // A function of a module that is not a type is still named by its module, and Lua's functions, which no type owns, are not. + const labels = (port: string, command: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) + expect(labels('elixir', 'list-panes')).toEqual(expect.arrayContaining(['Capture.fetch/2', 'Server.snapshot/2'])) + expect(labels('elixir', 'list-panes')).not.toContain('fetch/2') + expect(labels('lua', 'list-panes')).toContain('Server:snapshot') + // The controls: a request is data and sends nothing until it is submitted, and a function that runs the command it is handed spells none. + for (const symbol of ['LibTmux.Control.Request.set_user_option/2', 'LibTmux.Control.Request.field/2', 'LibTmux.Server.run/3', 'LibTmux.Transport.OneShot.run/3']) { + expect(TMUX_USAGE.elixir.symbols[symbol], symbol).toBeUndefined() + } + }) + it('says when a launch sends what it sends, from the line the default launch reaches', () => { // ts: only a minimal launch starts the server and reads the owner option; the facts are disclosed whenever the server is there. expect(use('ts', 'mcp.server.main', 'start-server')?.when).toBe('a minimal launch, no explicit selection') @@ -628,7 +650,7 @@ describe('the rendered lists', () => { // Every language has one somewhere for list-panes, so the table has no such line. expect((await render({ usage: tmuxResolvedUsage('latest', 'list-panes') })).querySelector('.tmux-usage__absent')).toBeNull() const windowPage = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) - expect(windowPage.querySelector('.tmux-usage__absent')!.textContent).toMatch(/^No method in Lua, TypeScript, .*sends this command at this scope itself\.$/) + expect(windowPage.querySelector('.tmux-usage__absent')!.textContent).toMatch(/^No method in Lua, Elixir, TypeScript, .*sends this command at this scope itself\.$/) // A command a few languages send names the rest, in the order the site lists them. const choose = await render({ usage: tmuxResolvedUsage('latest', 'choose-tree') }) const named = choose.querySelector('.tmux-usage__absent')!.textContent! From bf9de0de24dc0e1a48e17ccee182a09328d40203 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:22:43 -0500 Subject: [PATCH 33/53] fix(site[tmux-usage]) Judge a usage chip's name by its letters why: `--badge-centring` ran the usage table's chips through the judge the Related APIs chips use, and it named every chip on the list-panes manual page: the name starts 2px above the chip's top edge and its first line sits 1.5px above the centre of the mark. The chips are right. A name is trimmed to its cap height and baseline and centres on the mark within 0.1px, but the judge read the box of the text, and the table sets its names in a semibold face whose text box is 19px tall at 11.4px, taller than the chip's inside and not centred on the letters. The Related APIs names are a lighter face whose text box fits. what: - Give `chipGrowthProblems` an `ink` option that builds each line of a name from the trimmed name box, one cap height for the first line and a line pitch for each line after it, and use it for the usage table; the Related APIs chips keep the box of the text. - The controls of the usage check, a pinned height, a name below its chip, a chip squeezed by its qualifier and one chip over another, are each caught with it: 15, 199, 3 and 1 problems on the list-panes manual page. Checked: `check-dev.mjs --badge-centring` on a dev server at 4581 passes, with 68 chips on the page, 5 of them wrapped, and `--reference-previews` passes. --- site/scripts/check-badge-centring.mjs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/site/scripts/check-badge-centring.mjs b/site/scripts/check-badge-centring.mjs index 0fab4b5bd..3bafdb38e 100644 --- a/site/scripts/check-badge-centring.mjs +++ b/site/scripts/check-badge-centring.mjs @@ -259,10 +259,13 @@ export function judgeChipGrowth(chips) { /** * The boxes and lines of every chip of one list on the page, judged by `judgeChipGrowth`. The list is the Related APIs - * rail unless `scope` names another: the `.tmux-usage` table of senders on a tmux command page. + * rail unless `scope` names another: the `.tmux-usage` table of senders on a tmux command page. A line is the box of its + * text, or with `ink` the box of its letters, from the cap height to the baseline that `text-box` trims the name to: the + * usage table sets its names in a semibold face whose text box is taller than the chip's letters and not centred on them, + * so the box of the text would put every name a little above its chip. */ export async function chipGrowthProblems(page, scope = { list: 'nav.api-related', where: 'Related APIs column' }) { - const chips = await page.evaluate(({ list, where }) => { + const chips = await page.evaluate(({ list, where, ink }) => { const plain = (r) => ({ top: r.top, bottom: r.bottom, left: r.left, right: r.right }) return [...document.querySelectorAll(`${list} a:has(> .api-nav__kind)`)].filter((a) => a.offsetParent).map((a) => { const name = a.querySelector(':scope > .api-nav__kind + code') @@ -274,6 +277,13 @@ export async function chipGrowthProblems(page, scope = { list: 'nav.api-related' const last = lines.at(-1) if (last && r.top - last.top <= 3) { last.bottom = Math.max(last.bottom, r.bottom); last.right = Math.max(last.right, r.right) } else lines.push({ top: r.top, bottom: r.bottom, right: r.right }) } + if (ink) { + // The trimmed name spans the cap height of its first line to the baseline of its last, so it is one cap height and a line pitch for each line after the first. + const trimmed = name.getBoundingClientRect() + const pitch = lines.length > 1 ? (lines.at(-1).top - lines[0].top) / (lines.length - 1) : 0 + const cap = trimmed.height - pitch * (lines.length - 1) + lines.forEach((line, index) => { line.top = trimmed.top + index * pitch; line.bottom = line.top + cap }) + } const style = getComputedStyle(a) const box = a.getBoundingClientRect() return { @@ -689,7 +699,7 @@ export async function checkChipGrowth(browser, base) { } finally { await context.close() } } -const USAGE = { list: '.tmux-usage', where: 'usage table' } +const USAGE = { list: '.tmux-usage', where: 'usage table', ink: true } /** * The chips of the usage table on the page the maintainer saw them wrap on, `list-panes` at 1134px, and in a container narrow From 816bd3235fbe63277ef945063dafd065ef4a5dd2 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:42:09 -0500 Subject: [PATCH 34/53] fix(site[tmux-usage]) Say when go's HasSession lists sessions why: Go's HasSession lists sessions only when the request does not set Pattern, and sends has-session only when it does, but only the has-session entry said so. The list-sessions entry read as sent by every call, so a reader of the method page would take HasSession for a method that always lists. what: - Add the condition "the request does not set Pattern" to HasSession's list-sessions entry, citing the Pattern test, the call to sessionNamed and the literal, and regenerate go.json. - Test that the two entries carry the complementary qualifiers, with CheckAlive, which always lists sessions, as the control that carries none. --- scripts/tmux-usage/conditions.json | 27 +++++++++++++++++++++++++++ site/src/data/tmux-usage/go.json | 3 ++- site/test/tmux-library-usage.test.ts | 8 ++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/scripts/tmux-usage/conditions.json b/scripts/tmux-usage/conditions.json index 7ac440f4c..58e27456c 100644 --- a/scripts/tmux-usage/conditions.json +++ b/scripts/tmux-usage/conditions.json @@ -625,6 +625,33 @@ ] } ] + }, + { + "port": "go", + "symbol": "tmux.Server.HasSession", + "command": "list-sessions", + "scope": null, + "when": "the request does not set Pattern", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:139", + "has": [ + "!request.Pattern" + ] + }, + { + "at": "tmux/session_lifecycle.go:140", + "has": [ + "s.sessionNamed(ctx, request.Target)" + ] + }, + { + "at": "tmux/session_lifecycle.go:157", + "has": [ + "\"list-sessions\"" + ] + } + ] } ] } diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json index aca54a021..63b5cf466 100644 --- a/site/src/data/tmux-usage/go.json +++ b/site/src/data/tmux-usage/go.json @@ -1300,7 +1300,8 @@ "tmux/session_lifecycle.go:157", "tmux/session_lifecycle.go:140" ], - "scope": null + "scope": null, + "when": "the request does not set Pattern" } ], "tmux.Server.IfShell": [ diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 2185267ba..82c294737 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -407,6 +407,14 @@ describe('a release a library refuses to send on', () => { expect(use('julia', 'LibTmux.set_hook', 'show-options')).toMatchObject({ incidental: true, when: 'on a Server' }) }) + it('says which request HasSession sends has-session for and which it lists sessions for, since it does one or the other', () => { + // An exact-name check lists sessions and compares names, because tmux's exact-match marker still resolves identifiers; a pattern goes to has-session. + expect(use('go', 'tmux.Server.HasSession', 'has-session')).toMatchObject({ when: 'the request sets Pattern', reviewed: true }) + expect(use('go', 'tmux.Server.HasSession', 'list-sessions')?.when).toBe('the request does not set Pattern') + // The control: a method that always lists sessions carries no such qualifier. + expect(use('go', 'tmux.Server.CheckAlive', 'list-sessions')?.when).toBeUndefined() + }) + it('records the command-alias inventory of a guarded Ruby call as list-commands and show-options, on the same symbols', () => { const readers = (command: string) => Object.entries(TMUX_USAGE.ruby.symbols).filter(([, entries]) => entries.some((entry) => entry.command === command && entry.incidental)).map(([symbol]) => symbol).sort() expect(readers('show-options')).toHaveLength(9) From 00c1b590d60095f3bdcf13553de092f63e78daa2 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:42:31 -0500 Subject: [PATCH 35/53] fix(scripts[tmux-usage]) Fail by name for a grammar nothing reads why: The test that every port has a reader checked the GRAMMARS table, which names a grammar, and not the dispatch in `scanSource`, which reads it. With the Elixir line commented out, the generator crashed in the loader, asking for `tree-sitter-undefined.wasm`, and a port missing from the table was scanned as an empty source and generated as sending nothing. what: - `scanSource` throws "no reader for the grammar" for a grammar that none of its readers takes, naming the grammars it does read. - `scanPort` throws for a port that GRAMMARS lacks, naming the port and the table, in place of reading no files. - Run every grammar of the table through `scanSource` on an empty source, so a name with no reader fails its own case, and require a grammar nothing reads to fail with the named error. Commenting out the Elixir dispatch now fails the `elixir` case with that error. --- scripts/README.md | 6 ++++-- scripts/gen-tmux-usage.mjs | 4 +++- scripts/lib/tmux-usage-scan.mjs | 2 ++ site/test/tmux-usage-derive.test.ts | 9 +++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index a724f062b..aeb312e2c 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -174,8 +174,10 @@ through the port checkouts named in `ports.ts` or `LIBTMUX_DOCS_CHECKOUT_`. Tree-sitter reads the source of most ports; Julia, F# and Elixir have no grammar here, and `lib/tmux-usage-lexical.mjs` reads them by their text. `GRAMMARS` in `lib/tmux-usage-scan.mjs` names the reader of -every port that has an API model, and a test fails for one it lacks, because a -port with no reader would be generated as sending nothing. +every port that has an API model. The generator fails by name for a port the +table lacks, and for a grammar `scanSource` does not read, and a test dispatches +every grammar of the table, because a port with no reader would be generated as +sending nothing. A command is recorded for a symbol only where it is sent. A literal that names a command is a send when it is an argument of a call that dispatches, in the diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index 554709976..910ee7981 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -201,10 +201,12 @@ export function portDocument(port, model, found, commands) { /** Read a port's source at its pinned revision: every function, and the public symbols that name them. */ export async function scanPort({ port, model, commands, checkout, known, dispatch, builders, guards, labels, trace }) { const grammar = GRAMMARS[port] + // A port with no reader would be generated as sending nothing, and pass. + if (!grammar) throw new Error(`${port}: no reader for its source; add it to GRAMMARS in scripts/lib/tmux-usage-scan.mjs`) const symbols = publicSymbols(model) const functions = [] const types = [] - const sources = grammar ? librarySources(checkout, model.revision, grammar) : new Map() + const sources = librarySources(checkout, model.revision, grammar) const wanted = new Set(commands) for (const [path, text] of sources) { const scanned = await scanSource({ grammar, text, commands: wanted, known, dispatch, builders, guards, labels, trace }) diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs index 57b08fa05..6288c77b3 100644 --- a/scripts/lib/tmux-usage-scan.mjs +++ b/scripts/lib/tmux-usage-scan.mjs @@ -603,6 +603,8 @@ export async function scanSource({ grammar, text, commands, known, dispatch, bui if (grammar === 'julia') return scanJulia(text, { commands, known, dispatch }) if (grammar === 'elixir') return scanElixir(text, { commands, known, dispatch }) if (grammar === 'fsharp') return scanFSharp(text) + // A grammar that no reader above or below handles would reach the loader as a file that does not exist. + if (!(grammar in FUNCTIONS)) throw new Error(`no reader for the grammar ${JSON.stringify(grammar)}: scanSource reads ${[...Object.keys(FUNCTIONS), 'julia', 'fsharp', 'elixir'].join(', ')}`) const parser = await parserFor(grammar) // The Swift grammar predates typed throws; blanking the type keeps every line and column. const tree = parser.parse(grammar === 'swift' ? withoutNewSwift(text) : grammar === 'csharp' ? withoutPrimaryConstructors(text) : text) diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index 90c69caa4..adb3a0d45 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -1790,4 +1790,13 @@ describe('the ports whose source is read', () => { // The control: a port the table lacks is the one named. expect(unread([...slugs, 'newport'], GRAMMARS)).toEqual(['newport']) }) + + it.each([...new Set(Object.values(GRAMMARS))])('has a reader behind the grammar %s, and not only a name for it', async (grammar) => { + // The table names a grammar, and scanSource must dispatch it: a name with no reader failed in the loader, for a file that does not exist. + expect(await scanSource({ grammar, text: '', commands: new Set(['list-panes']), known })).toMatchObject({ functions: [] }) + }) + + it('refuses a grammar nothing reads, by name', async () => { + await expect(scanSource({ grammar: 'nonesuch', text: '', commands: new Set(['list-panes']), known })).rejects.toThrow(/no reader for the grammar "nonesuch"/) + }) }) From da5a61b105f4677f494cf631737a9033f19c4fdb Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:45:00 -0500 Subject: [PATCH 36/53] fix(site[tmux-usage]) Record that Elixir's reconnect attaches again why: `Control.reconnect/2` was left unrecorded because its send is a message away, and an omission reads as "never sends". It does: `control.ex:290` calls the connection manager, which on a closed connection (`manager.ex:613`) begins a start (`manager.ex:614`), and the epoch's guardian writes the stored bootstrap payload to the port (`manager.ex:244`, `guardian.ex:95`), so the client attaches again and reads its pid. The claims only read the lines they cite, so a message hop needs no machinery, only the lines on both sides of it. what: - Add reviewed claims, qualified "the connection is closed", for attach-session and display-message on `reconnect/2` and `reconnect!/2`, citing the literal in the bootstrap, the payload built at start, the write, the options that carry it, the closed phase, `begin_start`, the manager's handling of the message and the call that sends it. - Regenerate elixir.json, test the four entries with `start_link/1`, which attaches on every call and carries no qualifier, as the control, and add to the negative script a hop to the manager whose line does not hold its text. --- scripts/gen-tmux-usage.negative.mjs | 3 + scripts/tmux-usage/claims.json | 244 +++++++++++++++++++++++++++ site/src/data/tmux-usage/elixir.json | 70 ++++++++ site/test/tmux-library-usage.test.ts | 6 + 4 files changed, 323 insertions(+) diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index f8a8dce8b..e09ab6bcd 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -275,6 +275,9 @@ const BAD_RULES = [ ['an elixir claim whose line does not hold its text', 'elixir', 'claims.json', (document) => { document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Capture.fetch/2' && claim.command === 'list-sessions').evidence[0].has = ['list(state, "list-panes"'] }, /elixir: LibTmux.Capture.fetch\/2 list-sessions null: lib\/libtmux\/capture.ex:158 does not contain "list\(state, \\"list-panes\\""/], + ['an elixir claim whose message hop to the connection manager does not hold its text', 'elixir', 'claims.json', (document) => { + document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Control.reconnect/2' && claim.command === 'attach-session').evidence.find((item) => item.at.endsWith('manager.ex:573')).has = ['stop(state, ticket)'] + }, /elixir: LibTmux.Control.reconnect\/2 attach-session null: lib\/libtmux\/control\/manager.ex:573 does not contain "stop\(state, ticket\)"/], ['an elixir claim that is not anchored in the symbol it names', 'elixir', 'claims.json', (document) => { document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Server.snapshot/2' && claim.command === 'list-clients').evidence.at(-1).at = 'lib/libtmux/server.ex:60' }, /elixir: LibTmux.Server.snapshot\/2 list-clients null: lib\/libtmux\/server.ex:60 (?:does not contain|is outside the body of)/], diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json index aac493e75..c18afa88f 100644 --- a/scripts/tmux-usage/claims.json +++ b/scripts/tmux-usage/claims.json @@ -14874,6 +14874,250 @@ "in": "LibTmux.Control.submit!/3" } ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect/2", + "command": "attach-session", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:17", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ], + "in": "LibTmux.Control.reconnect/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect!/2", + "command": "attach-session", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:17", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ] + }, + { + "at": "lib/libtmux/control.ex:299", + "has": [ + "unwrap(reconnect(" + ], + "in": "LibTmux.Control.reconnect!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect/2", + "command": "display-message", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:24", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ], + "in": "LibTmux.Control.reconnect/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect!/2", + "command": "display-message", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:24", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ] + }, + { + "at": "lib/libtmux/control.ex:299", + "has": [ + "unwrap(reconnect(" + ], + "in": "LibTmux.Control.reconnect!/2" + } + ] } ] } diff --git a/site/src/data/tmux-usage/elixir.json b/site/src/data/tmux-usage/elixir.json index 3e80662d9..ccf29d8d1 100644 --- a/site/src/data/tmux-usage/elixir.json +++ b/site/src/data/tmux-usage/elixir.json @@ -149,6 +149,76 @@ "scope": "server" } ], + "LibTmux.Control.reconnect!/2": [ + { + "command": "attach-session", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:17", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290", + "lib/libtmux/control.ex:299" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + }, + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:24", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290", + "lib/libtmux/control.ex:299" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + } + ], + "LibTmux.Control.reconnect/2": [ + { + "command": "attach-session", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:17", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + }, + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:24", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + } + ], "LibTmux.Control.start_link/1": [ { "command": "attach-session", diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 82c294737..6c6dab6ef 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -361,6 +361,12 @@ describe('a release a library refuses to send on', () => { expect(use('elixir', 'LibTmux.Control.submit/3', 'display-message')?.when).toBe('the request reads a field') expect(use('elixir', 'LibTmux.Control.submit/3', 'set-option')?.when).toBe('the request sets a user option') expect(use('elixir', 'LibTmux.Control.start_link/1', 'attach-session')).toMatchObject({ reviewed: true }) + // A reconnect attaches again only after a close, through a message to the connection manager, which re-runs the bootstrap it was started with. + for (const symbol of ['LibTmux.Control.reconnect/2', 'LibTmux.Control.reconnect!/2']) { + for (const command of ['attach-session', 'display-message']) expect(use('elixir', symbol, command), `${symbol} ${command}`).toMatchObject({ reviewed: true, when: 'the connection is closed' }) + } + // The control: starting a connection attaches whenever it is called, so it carries no qualifier. + expect(use('elixir', 'LibTmux.Control.start_link/1', 'attach-session')?.when).toBeUndefined() // A function of a module that is not a type is still named by its module, and Lua's functions, which no type owns, are not. const labels = (port: string, command: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) expect(labels('elixir', 'list-panes')).toEqual(expect.arrayContaining(['Capture.fetch/2', 'Server.snapshot/2'])) From 8ce73f8aca16169075821bb9e0627e6bd0cb206a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:48:11 -0500 Subject: [PATCH 37/53] fix(site[tmux-usage]) Record go's probe before every command as a rule, not a claim why: Go's `runCommand` calls `checkForDispatch`, which calls `checkCore`, which probes the daemon with `run-shell -C` (`version_check.go:147`) before every ordinary command. The usage data credited that probe, as an incidental run-shell claim, to the 18 lookups and Snapshot that call `probeSnapshotIdentity` themselves, and to no other method, so a reader would infer that NewSession, Session.Kill and Pane.SendKeys never probe. Crediting it to each of them would list every Go method that sends under run-shell. what: - Choose to credit the probe to no method for the check itself, and to keep the incidental claim only where a method probes as a step of its own, which says when ("the Server has no daemon identity"). - Add `scripts/tmux-usage/preflights.json`, with the Go rule that says so and cites the call in `runCommand`, `checkForDispatch`, `checkCore`, `checkCoreVersion`, `probeServerIdentity` and the line that spells run-shell, and have the generator read each cited line back against the pinned source (`preflightProblems`). The usage table has no place for a note about one language, so the rule is the record; scripts/README.md says what it is for. - Test that the rule exists and says before every ordinary command, that NewSession, Session.Kill, Pane.SendKeys and ListSessions have no run-shell entry, that the other symbols with one carry the qualifier and are claims or forwarded from one, and that run-shell's page lists RunShell and not Session. - Test `preflightProblems` on a rule that holds, one whose line does not hold its text, one with no reason, one citing a line that does not exist and one that cites no line spelling the command, and add the first two to the generator's negative script. --- scripts/README.md | 10 +++++++ scripts/gen-tmux-usage.mjs | 7 +++-- scripts/gen-tmux-usage.negative.mjs | 7 ++++- scripts/lib/tmux-usage-dispatch.mjs | 28 +++++++++++++++++++ scripts/tmux-usage/preflights.json | 42 ++++++++++++++++++++++++++++ site/test/tmux-library-usage.test.ts | 19 +++++++++++++ site/test/tmux-usage-derive.test.ts | 17 ++++++++++- 7 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 scripts/tmux-usage/preflights.json diff --git a/scripts/README.md b/scripts/README.md index aeb312e2c..41f725cad 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -337,6 +337,16 @@ negative script seeds a rule that is wrong: (`through`: the line the method ends on), because a signature line names a type and shows neither. A method that may reach it only through a call the scan does not resolve leaves the question open, and fails until it is settled by a claim. +- `preflights.json`: a check a library makes before every command it sends, which + is the library's own and not a send of the method that triggers it. Go probes the + daemon with `run-shell -C` before each ordinary command, so crediting every + method would list each one that sends under `run-shell`, and crediting some + would tell a reader the others never probe. No method is credited for the check + itself, and one that probes as a step of its own (a lookup, a snapshot) has an + incidental claim that says when. The rule cites the lines from the call that + makes the check to the line that spells the command, read back against the + pinned source; a test pins which methods carry the claim. The usage table has + no place for a note about one language, so the rule is the record. - `not-senders.json`: why a public method whose own name carries a command has no entry for it, one of `builds` (it builds a command for a caller, or only holds one), `other-command` (it sends a different command, or runs it only diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs index 910ee7981..c48e680a1 100644 --- a/scripts/gen-tmux-usage.mjs +++ b/scripts/gen-tmux-usage.mjs @@ -34,7 +34,7 @@ import { extractProject } from '../packages/api-model/src/project.ts' import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' import { applyConditions, applyExclusions, conditionProblem, deriveUsage, partialProblems, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' import { auditEvidence } from './lib/tmux-usage-audit.mjs' -import { dispatcherProblems, guardProblems } from './lib/tmux-usage-dispatch.mjs' +import { dispatcherProblems, guardProblems, preflightProblems } from './lib/tmux-usage-dispatch.mjs' import { forwardUsage } from './lib/tmux-usage-forward.mjs' import { settleCandidates, sweepCandidates } from './lib/tmux-usage-sweep.mjs' import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' @@ -57,6 +57,7 @@ const reviewsPath = join(rulesDir, 'not-senders.json') const dispatchersPath = join(rulesDir, 'dispatchers.json') const guardsPath = join(rulesDir, 'guards.json') const conditionsPath = join(rulesDir, 'conditions.json') +const preflightsPath = join(rulesDir, 'preflights.json') const check = args.includes('--check') const regenerate = !check || args.includes('--source') const usageDir = args.includes('--data') ? resolve(option('--data')) : defaultUsageDir @@ -374,7 +375,7 @@ function sweepProblems({ port, model, document, reviews, exclusions, report, rea return problems } -export { dispatcherProblems, guardProblems } +export { dispatcherProblems, guardProblems, preflightProblems } export async function main() { const scopes = readJson(join(usageDir, 'scopes.json')) @@ -384,6 +385,7 @@ export async function main() { const dispatchers = existsSync(dispatchersPath) ? readJson(dispatchersPath).dispatchers : [] const guards = existsSync(guardsPath) ? readJson(guardsPath).guards : [] const conditions = existsSync(conditionsPath) ? readJson(conditionsPath).conditions : [] + const preflights = existsSync(preflightsPath) ? readJson(preflightsPath).preflights : [] const ports = await portsWithModels() const report = [] const failures = [] @@ -486,6 +488,7 @@ export async function main() { const pass = await derivePass({ port, model, core }) const { found, scanned } = pass failures.push(...pass.problems) + failures.push(...preflightProblems({ port: port.slug, preflights: preflights.filter((rule) => rule.port === port.slug), readSource: scanned.readSource })) if (config && core) { const forwarded = forwardPort({ port: port.slug, config, scanned, coreScan: core.scanned, readEvidence: scanned.readSource, diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs index e09ab6bcd..211cb0f46 100644 --- a/scripts/gen-tmux-usage.negative.mjs +++ b/scripts/gen-tmux-usage.negative.mjs @@ -28,7 +28,8 @@ * a label that names a parameter nothing takes, or is dropped, so that a literal the call * only reports a failure under is read as the command; a guard that builds no if-shell, a * conditional guard or claim that does not say when, a condition that qualifies no entry, and a - * guard dropped, so that the if-shell it wrapped is recorded in place of the command; and for a + * guard dropped, so that the if-shell it wrapped is recorded in place of the command; a preflight whose line does + * not hold its text or that gives no reason; and for a * generic function, a send some methods make with no condition that says so, a receiver * condition that cites a signature in place of the bodies, and one on a send every method makes. * Each is refused, and the committed rules beside them are accepted. @@ -281,6 +282,10 @@ const BAD_RULES = [ ['an elixir claim that is not anchored in the symbol it names', 'elixir', 'claims.json', (document) => { document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Server.snapshot/2' && claim.command === 'list-clients').evidence.at(-1).at = 'lib/libtmux/server.ex:60' }, /elixir: LibTmux.Server.snapshot\/2 list-clients null: lib\/libtmux\/server.ex:60 (?:does not contain|is outside the body of)/], + ['a preflight whose line does not hold its text', 'go', 'preflights.json', (document) => { document.preflights[0].evidence[1].has = ['s.checkNothing('] }, + /go: preflight run-shell: tmux\/transport.go:106 does not contain "s.checkNothing\("/], + ['a preflight that gives no reason', 'go', 'preflights.json', (document) => { delete document.preflights[0].why }, + /go: preflight run-shell: names no command or gives no reason/], ['a conditional guard that does not say when', 'go', 'guards.json', (document) => { delete document.guards.find((guard) => guard.port === 'go' && guard.name === 'guardCommand').when }, /go: guard guardCommand: is conditional, so it must say when/], ['a guard whose function builds no if-shell', 'java', 'guards.json', (document) => { diff --git a/scripts/lib/tmux-usage-dispatch.mjs b/scripts/lib/tmux-usage-dispatch.mjs index b2b11be76..ff21521ef 100644 --- a/scripts/lib/tmux-usage-dispatch.mjs +++ b/scripts/lib/tmux-usage-dispatch.mjs @@ -212,3 +212,31 @@ export function guardProblems({ port, guards, readSource, functions }) { } return problems } + +/** + * The checks a library makes before every command it sends, which are the library's own and not a send of the method that + * triggers them: Go probes the daemon with `run-shell -C` before each ordinary command. Crediting each method with one would + * list every method that sends under that command, and crediting only some would tell a reader the others never probe, so + * none is credited for the check itself. A method that probes as a step of its own carries a claim that says when. Each rule + * names the command and why, and cites the lines from the call that makes the check to the line that spells the command; the + * lines are read back against the pinned source. + * + * @param {{ port: string, preflights: { command: string, why?: string, evidence?: { at: string, has?: string[] }[] }[], readSource: (path: string) => string | undefined }} input + * @returns {string[]} + */ +export function preflightProblems({ port, preflights, readSource }) { + const problems = [] + for (const rule of preflights) { + const label = `${port}: preflight ${rule.command}` + if (!rule.command || !rule.why?.trim()) { problems.push(`${label}: names no command or gives no reason`); continue } + if (!rule.evidence?.length) { problems.push(`${label}: cites no lines`); continue } + for (const item of rule.evidence) { + const { file, line } = split(item.at) + const text = readSource(file)?.split('\n')[line - 1] + if (text === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!text.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + } + if (!rule.evidence.some((item) => (item.has ?? []).some((needle) => needle.includes(`"${rule.command}"`)))) problems.push(`${label}: no cited line spells the command`) + } + return problems +} diff --git a/scripts/tmux-usage/preflights.json b/scripts/tmux-usage/preflights.json new file mode 100644 index 000000000..97280fed3 --- /dev/null +++ b/scripts/tmux-usage/preflights.json @@ -0,0 +1,42 @@ +{ + "schemaVersion": 1, + "preflights": [ + { + "port": "go", + "command": "run-shell", + "why": "A Server with no daemon identity probes the daemon with run-shell -C before every ordinary command and remembers the answer, so the check is the library's own and not a send of the method that triggers it. No method is credited with it for that reason; a method that probes as a step of its own (a lookup or a snapshot) carries an incidental claim that says when.", + "evidence": [ + { + "at": "tmux/transport.go:71", + "has": [ + "s.checkForDispatch(" + ] + }, + { + "at": "tmux/transport.go:106", + "has": [ + "s.checkCore(" + ] + }, + { + "at": "tmux/version_check.go:96", + "has": [ + "s.checkCoreVersion(" + ] + }, + { + "at": "tmux/version_check.go:147", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + } + ] + } + ] +} diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 6c6dab6ef..8b7ea7df3 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -413,6 +413,25 @@ describe('a release a library refuses to send on', () => { expect(use('julia', 'LibTmux.set_hook', 'show-options')).toMatchObject({ incidental: true, when: 'on a Server' }) }) + it('credits go\'s probe before every command to no method for the check itself, and only to the methods that probe as a step of their own', () => { + // The probe is the library's own preflight, recorded as a rule, so a method that merely sends a command is not credited with the run-shell that precedes it. + const rules = JSON.parse(readFileSync(new URL('../../scripts/tmux-usage/preflights.json', import.meta.url), 'utf8')).preflights as { port: string; command: string; why: string }[] + expect(rules.find((rule) => rule.port === 'go' && rule.command === 'run-shell')?.why).toMatch(/before every ordinary command/) + for (const symbol of ['tmux.Server.NewSession', 'tmux.Session.Kill', 'tmux.Pane.SendKeys', 'tmux.Server.ListSessions']) { + expect(use('go', symbol, 'run-shell'), symbol).toBeUndefined() + } + // What carries run-shell besides the method that is run-shell is a lookup or a snapshot, whose own step is the probe, said so and not listed on the command's page. + const probers = Object.entries(TMUX_USAGE.go.symbols).filter(([symbol, entries]) => !/Server\.RunShell$|Running\.Kill$/.test(symbol) && entries.some((entry) => entry.command === 'run-shell')) + expect(probers.length).toBeGreaterThan(10) + for (const [symbol, entries] of probers) { + const entry = entries.find((candidate) => candidate.command === 'run-shell')! + expect(entry.when, symbol).toBe('the Server has no daemon identity') + expect(entry.reviewed || entry.via, symbol).toBeTruthy() + } + expect(tmuxUsage('run-shell')!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === 'go').flatMap((entry) => entry.links.map((link) => link.label))).toEqual(expect.arrayContaining(['Server.RunShell'])) + expect(tmuxUsage('run-shell')!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === 'go').flatMap((entry) => entry.links.map((link) => link.label))).not.toContain('Server.Session') + }) + it('says which request HasSession sends has-session for and which it lists sessions for, since it does one or the other', () => { // An exact-name check lists sessions and compares names, because tmux's exact-match marker still resolves identifiers; a pattern goes to has-session. expect(use('go', 'tmux.Server.HasSession', 'has-session')).toMatchObject({ when: 'the request sets Pattern', reviewed: true }) diff --git a/site/test/tmux-usage-derive.test.ts b/site/test/tmux-usage-derive.test.ts index adb3a0d45..70e3cdb6c 100644 --- a/site/test/tmux-usage-derive.test.ts +++ b/site/test/tmux-usage-derive.test.ts @@ -3,7 +3,7 @@ import { beforeAll, describe, expect, it } from 'vitest' import { GRAMMARS, scanSource } from '../../scripts/lib/tmux-usage-scan.mjs' import { MAX_SHARED_BY, applyConditions, applyExclusions, builtSites, callTargets, classify, conditionProblem, definitionsOf, deriveUsage, partialProblems, ruleHolds, verifyClaims } from '../../scripts/lib/tmux-usage-derive.mjs' import { auditEvidence } from '../../scripts/lib/tmux-usage-audit.mjs' -import { chainProblems, dispatcherProblems, guardProblems } from '../../scripts/lib/tmux-usage-dispatch.mjs' +import { chainProblems, dispatcherProblems, guardProblems, preflightProblems } from '../../scripts/lib/tmux-usage-dispatch.mjs' import { forwardUsage } from '../../scripts/lib/tmux-usage-forward.mjs' import { carriesCommand, memberWords, selects, settleCandidates, sweepCandidates } from '../../scripts/lib/tmux-usage-sweep.mjs' import { scanElixir, scanFSharp, scanJulia, tokenizeElixir } from '../../scripts/lib/tmux-usage-lexical.mjs' @@ -1800,3 +1800,18 @@ describe('the ports whose source is read', () => { await expect(scanSource({ grammar: 'nonesuch', text: '', commands: new Set(['list-panes']), known })).rejects.toThrow(/no reader for the grammar "nonesuch"/) }) }) + +describe('a check a library makes before every command', () => { + const source = ['func run() {', '\tcheck(ctx)', '\tsend("run-shell")', '}'].join('\n') + const readSource = (path: string) => (path === 'run.go' ? source : undefined) + const rule = { command: 'run-shell', why: 'It probes before every command.', evidence: [{ at: 'run.go:2', has: ['check('] }, { at: 'run.go:3', has: ['"run-shell"'] }] } + + it('is held to the lines it cites, and to a reason', () => { + expect(preflightProblems({ port: 'go', preflights: [rule], readSource })).toEqual([]) + expect(preflightProblems({ port: 'go', preflights: [{ ...rule, evidence: [{ at: 'run.go:2', has: ['verify('] }, rule.evidence[1]] }], readSource })).toEqual(['go: preflight run-shell: run.go:2 does not contain "verify("']) + expect(preflightProblems({ port: 'go', preflights: [{ ...rule, why: ' ' }], readSource })).toEqual(['go: preflight run-shell: names no command or gives no reason']) + expect(preflightProblems({ port: 'go', preflights: [{ ...rule, evidence: [{ at: 'run.go:9', has: ['check('] }, rule.evidence[1]] }], readSource })).toEqual(['go: preflight run-shell: run.go:9 is not a line of the pinned source']) + // A rule that cites no line that spells the command is about something else. + expect(preflightProblems({ port: 'go', preflights: [{ ...rule, evidence: [rule.evidence[0]] }], readSource })).toEqual(['go: preflight run-shell: no cited line spells the command']) + }) +}) From 8f4e8fc5648e2a7362e6c8fdcf3e181c38e6ddc1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:49:47 -0500 Subject: [PATCH 38/53] fix(site[kind-marks]) Keep the new chip hover and focus to the usage table why: The hover and focus rules that arrived with the usage table were written for the four chip containers at once, so they changed the chips that main already had. A hovered Related APIs, related-command or In other ports chip no longer lit its mark the way a hovered link's mark is lit, and a focused one gained a 2px outline. Those chips were not part of the change, and their behaviour is not what it was on main. what: - Put the main rule back for `.api-elsewhere-value`, `.api-command-related` and `nav.api-related`: the surface darkens on hover and focus, and nothing else. - Move the border darkening, the reset of the mark to its resting fill and shadow, the 2px focus outline and the forced-colours border to `.tmux-usage` alone. - Compare the two in a real browser, in `chip-state.outer.test.ts`: each chip, at rest, hovered and focused by keyboard, with `kind-marks.css` as main served it (`fixtures/kind-marks.main.css`, the file at `fcf99651e`) and as it is now. The computed background, borders, shadow, outline and ink of the chip and its mark match main for the three older chips. The usage chip differs, with a darker border on hover, a mark that keeps its fill and a 2px outline on focus, and the usage rules written for all four containers, as they were, are caught on the older chips in all three states. - Make the stylesheet test of the chip states read the usage table's rules, and fail when one of them reaches another chip, with the widened rule as the case. --- site/src/styles/kind-marks.css | 24 +- site/test/chip-state.outer.test.ts | 109 +++++++ site/test/fixtures/kind-marks.main.css | 382 +++++++++++++++++++++++++ site/test/tmux-library-usage.test.ts | 21 +- 4 files changed, 521 insertions(+), 15 deletions(-) create mode 100644 site/test/chip-state.outer.test.ts create mode 100644 site/test/fixtures/kind-marks.main.css diff --git a/site/src/styles/kind-marks.css b/site/src/styles/kind-marks.css index 8b9c05bfc..1d7a395f6 100644 --- a/site/src/styles/kind-marks.css +++ b/site/src/styles/kind-marks.css @@ -270,22 +270,26 @@ @supports not (text-box: trim-both cap alphabetic) { :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } } +/* A related or elsewhere chip darkens its surface on hover and focus; its mark takes the tree's active treatment, as any hovered link's does. */ +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { + background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); +} /* - * Hover and focus act on the chip, so it reads as one control: the surface and the border darken together - * and the mark keeps the fill it rests with. The loud active mark and its 2px ring are the selected row of - * the navigation tree; a ring on the mark alone overhangs the chip's rounded corner. Focus is one outline - * around the whole chip, clear of its edge. + * In the usage table hover and focus act on the whole chip, so it reads as one control: the surface and the border + * darken together and the mark keeps the fill it rests with. The loud active mark and its 2px ring are the selected + * row of the navigation tree; a ring on the mark alone overhangs the chip's rounded corner. Focus is one outline + * around the whole chip, clear of its edge. The related and elsewhere chips keep what they had. */ -:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { +.tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) { background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); border-color: color-mix(in srgb, var(--color-foreground-primary, currentColor) 40%, transparent); } -:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) > .api-nav__kind { +.tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) > .api-nav__kind { background: var(--mk-fill, var(--mk-bg, transparent)); color: var(--mk-ink, var(--mk-fg, inherit)); box-shadow: var(--mk-shadow, none); } -:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):focus-visible { +.tmux-usage a:has(> .api-nav__kind):focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; } @@ -385,11 +389,11 @@ color: HighlightText; border-color: Highlight; } - /* A hovered chip changes as a whole, in its border; its mark stays as it rests. */ - :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { + /* A hovered chip of the usage table changes as a whole, in its border; its mark stays as it rests. */ + .tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) { border-color: Highlight; } - :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) > .api-nav__kind { + .tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) > .api-nav__kind { background: Canvas; color: CanvasText; border-color: CanvasText; diff --git a/site/test/chip-state.outer.test.ts b/site/test/chip-state.outer.test.ts new file mode 100644 index 000000000..d02f9d277 --- /dev/null +++ b/site/test/chip-state.outer.test.ts @@ -0,0 +1,109 @@ +import { readdirSync, readFileSync } from 'node:fs' +import { join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { chromium, type Browser, type Page } from 'playwright' +import { afterAll, beforeAll, describe, expect, it } from 'vitest' + +/** + * The usage table's chips darken their border on hover, keep their mark as it rests and focus with one outline. The + * chips beside them (Related APIs, a command's related chips, In other ports) behave as they did on main, and this + * says so by painting both stylesheets in a real browser. `fixtures/kind-marks.main.css` is `kind-marks.css` as main + * served it when the usage table was added; every other sheet is the one in the tree, so only that file differs. + */ +const STYLES = fileURLToPath(new URL('../src/styles/', import.meta.url)) +const MAIN = readFileSync(fileURLToPath(new URL('./fixtures/kind-marks.main.css', import.meta.url)), 'utf8') +const sheets = [...readdirSync(STYLES).filter((name) => name.endsWith('.css')), ...readdirSync(join(STYLES, 'vendor')).filter((name) => name.endsWith('.css')).map((name) => `vendor/${name}`)] + .filter((name) => /api-nav__kind|api-badge|--mk-/.test(readFileSync(join(STYLES, name), 'utf8'))) +const css = (marks: string): string[] => sheets.map((name) => (name === 'kind-marks.css' ? marks : readFileSync(join(STYLES, name), 'utf8'))) +const CURRENT = readFileSync(join(STYLES, 'kind-marks.css'), 'utf8') + +/** The usage rules as they were when they applied to every chip: the scope this change narrows. */ +const SITEWIDE = CURRENT.replace(/^\.tmux-usage a:has\(> \.api-nav__kind\)/gm, ':is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind)') + .replace(/^ {2}\.tmux-usage a:has\(> \.api-nav__kind\)/gm, ' :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind)') + +const mark = '' +const chip = (id: string, wrap: (link: string) => string) => `

${wrap(`${mark}Server.panes`)}

` +const CHIPS = { + related: (link: string) => ``, + elsewhere: (link: string) => `${link}`, + command: (link: string) => ``, + usage: (link: string) => `
${link}
`, +} +const body = Object.entries(CHIPS).map(([name, wrap]) => chip(name, wrap)).join('') + +const CHIP_PROPERTIES = ['background-color', 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color', 'box-shadow', 'outline-style', 'outline-width', 'outline-color', 'outline-offset', 'color'] +const MARK_PROPERTIES = ['background-color', 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color', 'box-shadow', 'color'] + +type Painted = Record> + +/** The computed style of each chip and its mark at rest, hovered and focused by keyboard, in one load of `sheets`. */ +async function painted(page: Page, marks: string): Promise { + await page.emulateMedia({ colorScheme: 'light', reducedMotion: 'reduce' }) + await page.setContent(`${css(marks).map((sheet) => ``).join('')}${body}`) + const read = (id: string) => page.evaluate(({ id, chipProperties, markProperties }) => { + const link = document.getElementById(id)! + const style = (node: Element, names: string[]) => Object.fromEntries(names.map((name) => [name, getComputedStyle(node).getPropertyValue(name)])) + return { ...Object.fromEntries(Object.entries(style(link, chipProperties)).map(([name, value]) => [`chip ${name}`, value])), ...Object.fromEntries(Object.entries(style(link.querySelector('.api-nav__kind')!, markProperties)).map(([name, value]) => [`mark ${name}`, value])) } + }, { id, chipProperties: CHIP_PROPERTIES, markProperties: MARK_PROPERTIES }) + const result: Painted = {} + for (const id of Object.keys(CHIPS)) { + await page.mouse.move(0, 0) + await page.evaluate(() => (document.activeElement as HTMLElement | null)?.blur()) + result[`${id} at rest`] = await read(id) + await page.hover(`#${id}`) + result[`${id} hovered`] = await read(id) + await page.mouse.move(0, 0) + // Tab to the chip, so the focus is the keyboard's and :focus-visible matches. + for (let tries = 0; tries < 8 && (await page.evaluate(() => document.activeElement?.id)) !== id; tries++) await page.keyboard.press('Tab') + expect(await page.evaluate((id) => document.getElementById(id)!.matches(':focus-visible'), id), `${id} is focused by keyboard`).toBe(true) + result[`${id} focused`] = await read(id) + } + return result +} + +/** The properties that differ between two loads, by state. */ +const differences = (left: Painted, right: Painted, ids: string[]): string[] => Object.keys(left).filter((state) => ids.includes(state.split(' ')[0]!)).flatMap((state) => + Object.keys(left[state]!).filter((name) => left[state]![name] !== right[state]![name]).map((name) => `${state}: ${name} ${right[state]![name]} became ${left[state]![name]}`)) + +let browser: Browser +let page: Page +let main: Painted +beforeAll(async () => { + browser = await chromium.launch({ headless: true }) + page = await browser.newPage() + main = await painted(page, MAIN) +}) +afterAll(async () => { await browser?.close() }) + +const OTHERS = ['related', 'elsewhere', 'command'] + +describe('the hover and focus of a chip, against main', () => { + it('paints a Related APIs chip, a command\'s related chip and an In other ports chip, at rest, hovered and focused, as main does', async () => { + const now = await painted(page, CURRENT) + expect(differences(now, main, OTHERS)).toEqual([]) + }) + + it('measures something: the states differ from rest, and the usage table\'s chip hovers and focuses differently from main\'s', async () => { + const now = await painted(page, CURRENT) + // A hovered related chip darkens its surface, and a keyboard focus is a state the browser paints. + expect(now['related hovered']!['chip background-color']).not.toBe(now['related at rest']!['chip background-color']) + // The usage table's chip darkens its border and rings the whole chip on focus; main never styled it. + expect(now['usage hovered']!['chip border-top-color']).not.toBe(main['usage hovered']!['chip border-top-color']) + expect(now['usage hovered']!['chip border-top-color']).not.toBe(now['usage at rest']!['chip border-top-color']) + expect(now['usage focused']!['chip outline-style']).toBe('solid') + expect(now['usage focused']!['chip outline-width']).toBe('2px') + // Its mark keeps the fill and shadow it rests with. + expect(now['usage hovered']!['mark background-color']).toBe(now['usage at rest']!['mark background-color']) + expect(now['usage hovered']!['mark box-shadow']).toBe(now['usage at rest']!['mark box-shadow']) + }) + + it('notices the usage rules applied to every chip, which is how they once shipped', async () => { + expect(SITEWIDE).not.toBe(CURRENT) + const sitewide = await painted(page, SITEWIDE) + const moved = differences(sitewide, main, OTHERS) + expect(moved.some((line) => /related hovered: chip border-top-color/.test(line)), moved.join('\n')).toBe(true) + expect(moved.some((line) => /related focused: chip outline-style/.test(line)), moved.join('\n')).toBe(true) + expect(moved.some((line) => /related hovered: mark box-shadow/.test(line)), moved.join('\n')).toBe(true) + }) +}) diff --git a/site/test/fixtures/kind-marks.main.css b/site/test/fixtures/kind-marks.main.css new file mode 100644 index 000000000..49baf2934 --- /dev/null +++ b/site/test/fixtures/kind-marks.main.css @@ -0,0 +1,382 @@ +/* + * The kind mark and the treatments that adapt it to its context. + * + * One mark everywhere: a tuned per-mode tint on the six-family palette in + * `api-kinds.css`, built em-scaled, sans 600. Three rules choose how loud it is: + * + * 1. Fill follows crowding. Alone, a tint; a short run or a column, an outline + * or a split chip; a long run, chrome, or no colour budget, ink. + * 2. The word appears wherever the reader cannot hover: headings (the legend + * chip), menus, tables, tooltips. + * 3. Solid is a state or a hero, never a default. A pill is status, never kind. + * + * Centring. A mark's box snaps to an even height with `round()`, and its + * baseline snaps to a whole pixel from the box floor, so the ink centres at any + * sub-pixel position and zoom. The label is trimmed to the cap height, or the + * x-height for a m o r and the colon (`data-mark`), and sits on that floor. + * Centring the em box instead leaves capitals about half a pixel high and + * x-height letters low, and the baseline and the box edge round apart. + */ + +:root { --mark-step: 1px; } +@media (min-resolution: 2dppx) { :root { --mark-step: .5px; } } +@media (min-resolution: 3dppx) { :root { --mark-step: .3333px; } } + +/* ---- The mark ---- */ + +.api-nav__kind { + --mk-w: 1.35em; --mk-r: .2em; --mk-bw: 1px; --mk-gh: calc(.8 * 1cap); + --mk-bh: round(var(--mk-w), 2px); + display: inline-flex; + align-items: flex-end; + justify-content: center; + flex: none; + box-sizing: border-box; + min-width: var(--mk-bh); + height: var(--mk-bh); + padding: 0 0 round(calc((var(--mk-bh) - 2 * var(--mk-bwv, var(--mk-bw)) - var(--mk-gh)) / 2), var(--mark-step)); + border: var(--mk-bw) solid var(--mk-bd, color-mix(in srgb, var(--mk-hue, currentColor) var(--mark-border-alpha), transparent)); + border-radius: var(--mk-r); + background: var(--mk-fill, var(--mk-bg, transparent)); + color: var(--mk-ink, var(--mk-fg, inherit)); + box-shadow: var(--mk-shadow, none); + font: 600 min(1em, 1.25rem)/1 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + white-space: nowrap; + vertical-align: middle; + align-self: center; +} +.api-nav__kind > .api-badge__label { + display: block; + font-size: .8em; + line-height: 1; + text-box: trim-both cap alphabetic; +} +.api-nav__kind > .api-badge__label[data-mark='x'], +.api-nav__kind > .api-badge__label[data-mark='col'] { text-box: trim-both ex alphabetic; } +.api-nav__kind:has(> [data-mark='x']) { --mk-gh: calc(.8 * (1ex + .01em)); } +.api-nav__kind:has(> [data-mark='col']) { --mk-gh: calc(.8 * 1ex); } +.api-nav__kind:has(> [data-mark='asc']) { --mk-gh: calc(.8 * (1cap + .04em)); } +.api-nav__kind:has(> [data-mark='tee']) { --mk-gh: calc(.8 * (1cap - .035em)); } + +/* Without text-box, centre the em box and lift the x-height marks. */ +@supports not (text-box: trim-both cap alphabetic) { + .api-nav__kind { align-items: center; padding-bottom: 0; } + .api-nav__kind > .api-badge__label[data-mark='x'] { translate: 0 -.06em; } +} + +/* ---- Treatments by context ---- */ + +/* T outline, in a fixed gutter: the navigation tree, its search results, and member and index lists. */ +:is(.api-nav, .api-member-list, .api-index-card__heading, .api-related-cards) .api-nav__kind { + --mk-fill: transparent; + --mk-bd: color-mix(in srgb, var(--mk-hue, currentColor) 60%, transparent); +} + +/* U ink: secondary navigation, the contents column, and tables. No hue, so chrome stays calm. */ +:is(a.sidebar-link, summary a, .api-page-contents, .api-contents, table) .api-nav__kind { + --mk-fill: color-mix(in srgb, var(--color-foreground-primary, currentColor) 7%, transparent); + --mk-bd: color-mix(in srgb, var(--color-foreground-primary, currentColor) 14%, transparent); + --mk-ink: var(--color-foreground-primary, currentColor); +} + +/* T outline on an opaque base: a callout tints its own surface, so the mark keeps the page colour under its outline. */ +:is(.aside, aside[role='note']) .api-nav__kind { + --mk-fill: var(--background-color, Canvas); + --mk-bd: color-mix(in srgb, var(--mk-hue, currentColor) 60%, transparent); +} + +/* ---- The active state ---- */ + +/* + * The selected node, the targeted heading and the hovered or focused link: + * the one loud mark. Solid in the family hue, or a 2px ring where white on the + * solid step is under 4.5:1. + */ +.api-nav__leaf[aria-current='page'] > .api-nav__kind, +.api-nav__row:has(> [aria-current='page']) > .api-nav__kind, +:is(a, summary):is(:hover, :focus-visible) > .api-nav__kind, +:is(h1, h2, h3, h4, h5, h6):target .api-nav__kind { + background: var(--mk-act-bg, var(--mk-fill, var(--mk-bg))); + color: var(--mk-act-fg, var(--mk-fg)); + border-color: var(--mk-hue, currentColor); + box-shadow: var(--mk-act-ring, none); +} + +/* ---- The legend chip: mark and word in one token ---- */ + +/* + * One box with one border and radius. The mark and the word are equal-height + * segments inside it, split by a 1px divider with the mark on a darker tint. + * They are one line of text: both sit on the same snapped baseline, and the run + * is centred as a whole by its cap height, never each segment on its own. + * Registered lengths resolve the em units once, on the chip. + */ +@property --leg-h { syntax: ''; inherits: true; initial-value: 0px; } +@property --leg-pb { syntax: ''; inherits: true; initial-value: 0px; } + +.api-badge.api-leg { + --leg-h: round(1.35em, 2px); + --leg-pb: round(calc((var(--leg-h) - 2px - .8 * 1cap) / 2), var(--mark-step)); + display: inline-flex; + align-items: stretch; + box-sizing: border-box; + height: var(--leg-h); + padding: 0; + overflow: hidden; + vertical-align: middle; + border: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) var(--mark-border-alpha), transparent); + border-radius: .2em; + background: var(--mk-bg, transparent); + color: var(--mk-fg, inherit); + font: 600 .8125rem/1 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + letter-spacing: 0; + text-transform: none; + text-decoration: none; + white-space: nowrap; +} +.api-leg__m { + display: flex; + align-items: flex-end; + justify-content: center; + min-width: 1.3em; + padding: 0 .4em var(--leg-pb); + border-inline-end: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) var(--mark-border-alpha), transparent); + background: color-mix(in srgb, var(--mk-hue, currentColor) 22%, var(--mk-bg, transparent)); +} +.api-leg__g { display: block; font-size: .8em; line-height: 1; text-box: trim-both cap alphabetic; } +.api-leg__w { + display: flex; + align-items: flex-end; + padding: 0 .55em var(--leg-pb) .5em; + font-size: .8em; + line-height: 1; +} +.api-leg__wl { display: block; text-box: trim-both cap alphabetic; } +@supports not (text-box: trim-both cap alphabetic) { + .api-leg__m, .api-leg__w { align-items: center; padding-bottom: 0; } +} + +/* A plain kind word, for a table's kind column and the trailing word of a list row or a result. */ +.api-kind-word { + color: var(--color-foreground-muted); + font: .75rem/1.3 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + text-transform: none; + letter-spacing: 0; +} + +/* ---- Navigation: the gutter, and the word that trails a result ---- */ + +/* + * In the API tree, marks sit in one fixed column and the names indent after + * them, so a reader scans down the left edge to filter methods from properties. + * A tree whose groups name their kind (`data-marks='mixed'`, the MCP sidebar) + * has no gutter: a row's mark, where it has one, is inline before its name at + * the row's normal gap, and a row without a mark starts at the row's indent. + */ +.api-nav:not([data-marks='mixed']) .api-nav__row { + padding-inline-start: .5rem; +} +.api-nav:not([data-marks='mixed']) .api-nav__row > .api-nav__label { + padding-inline-start: calc((var(--level, 1) - 1) * var(--api-nav-indent)); +} +.api-nav:not([data-marks='mixed']) .api-nav__row:not(:has(> .api-nav__kind)) > .api-nav__label { + padding-inline-start: calc(1.35em + .25rem + (var(--level, 1) - 1) * var(--api-nav-indent)); +} +.api-nav__results strong > .api-kind-word { margin-inline-start: auto; padding-inline-start: .5rem; font-weight: 400; } + +/* ---- A mark that leads a bare name ---- */ + +/* + * One rule for every place a compact mark precedes a name that is not in a code + * chip: index and tool cards, and the rows of a member list. The mark and the + * name are one run, centred as a unit: a gap clear of the name, and the mark's + * baseline raised by half the difference between the name's capital height and + * the mark's ink, so the two share a centre. A card's link is a row that holds + * the mark on the first line's baseline when a long name wraps. (The name's own + * code chip, in prose, supplies part of that gap with its padding.) + */ +:root { --mark-gap: .5em; } +:is(.api-index-card:not(.api-related-card) .api-index-card__link, .api-member-list li > span:first-child) > .api-nav__kind:first-child { + align-self: baseline; + vertical-align: baseline; + position: relative; + top: calc(-1 * round(calc((1cap - var(--mk-gh)) / 2), var(--mark-step))); + margin-inline-end: var(--mark-gap); +} +.api-index-card:not(.api-related-card) .api-index-card__link:has(> .api-nav__kind:first-child) { + display: flex; + align-items: baseline; + gap: 0; +} + +/* ---- A split chip: the mark and the name bound into one token ---- */ + +/* + * Contiguous runs ("In other ports", related APIs): the mark is the cap of a + * single outlined chip, the name sits on a quiet surface, and the chip replaces + * the link underline. The cap and the name are one line of text: both sit on + * the name's snapped baseline. + */ +@property --sp-h { syntax: ''; inherits: true; initial-value: 0px; } +@property --sp-pb { syntax: ''; inherits: true; initial-value: 0px; } +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind) { + --sp-h: round(1.6em, 2px); + --sp-pb: round(calc((var(--sp-h) - 2px - .875 * 1cap) / 2), var(--mark-step)); + display: inline-flex; + align-items: stretch; + gap: 0; + box-sizing: border-box; + /* One line keeps the snapped height; a name that wraps at its points grows the chip instead of spilling out of it. */ + min-height: var(--sp-h); + max-inline-size: 100%; + /* The contents column pads and flags its links; a chip's box is its own. */ + padding: 0; + overflow: hidden; + vertical-align: middle; + border: 1px solid color-mix(in srgb, var(--color-foreground-primary, currentColor) 16%, transparent); + border-radius: .25em; + background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 4%, transparent); + text-decoration: none; +} +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind { + --mk-w: 1.6em; --mk-bwv: 0px; + --mk-fill: color-mix(in srgb, var(--mk-hue, currentColor) 18%, var(--background-color, transparent)); + /* The mark is one line tall and stays on the first line, however many lines the name takes. */ + align-self: flex-start; + height: calc(var(--sp-h) - 2px); + min-width: 1.6em; + padding-bottom: var(--sp-pb); + border-width: 0; + border-inline-end: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) 30%, transparent); + border-radius: 0; +} +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { + /* + * The last line's baseline keeps its gap from the bottom edge. The top margin reserves exactly the space the first + * line has in a one-line chip (a hair less, so a single line never grows it), so the first line sits level with + * the mark, and each line after it adds one line of height to the chip. + */ + align-self: flex-end; + margin: calc(var(--sp-h) - 2px - var(--sp-pb) - 1cap - .1px) 0 var(--sp-pb); + padding: 0 .45em; + border: 0; + background: none; + font-size: .875em; + /* The text is trimmed to its cap and baseline, so this spaces the lines of a wrapped name and does not move one line. */ + line-height: 1.3; + text-box: trim-both cap alphabetic; + text-decoration: none; +} +@supports not (text-box: trim-both cap alphabetic) { + :is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } +} +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { + background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); +} +/* In the contents column each chip is its own row: as wide as its content, with an even gap between rows. */ +.api-page-contents nav.api-related ul { display: grid; gap: .5rem; justify-items: start; } +.api-page-contents nav.api-related a:has(> .api-nav__kind) { display: flex; } +/* In the contents column the cap is ink, like the rest of the chrome. */ +.api-page-contents nav.api-related a > .api-nav__kind { + --mk-fill: color-mix(in srgb, var(--color-foreground-primary, currentColor) 7%, transparent); + --mk-ink: var(--color-foreground-primary, currentColor); + border-inline-end-color: color-mix(in srgb, var(--color-foreground-primary, currentColor) 14%, transparent); +} + +/* ---- Modifier chips: outline-only, on the legend chip's geometry ---- */ + +/* + * Kind is filled and a modifier is an outline, so an entry has one loud thing. + * A modifier keeps its gp-sphinx hue (async violet, abstract indigo, classmethod + * and static amber, final and readonly green, the rest a readable grey), taken + * from the tokens in the vendored stylesheet, which scopes them to `dl.py`; they + * apply here wherever a modifier sits. Text is the token's ink, never a muted + * grey on a transparent fill. Deprecated is a status and takes the warning ink. + * A package names the container of a type, so it takes the types hue. + * + * The chip is the legend chip's box: the same snapped height, radius and sans + * 600 word, trimmed to its cap height on a whole-pixel baseline, so a row of + * kind and modifiers reads as one family. + */ +/* gp-sphinx's light amber ink is 4.4:1 on the declaration band; five percent darker clears 4.5:1 and keeps the hue. Dark takes the token as it is. */ +:root { --md-amber-fg: color-mix(in srgb, var(--gp-sphinx-badge-mod-classmethod-fg) 95%, #000); } +[data-theme-mode='dark'] { --md-amber-fg: var(--gp-sphinx-badge-mod-classmethod-fg); } +.api-badge--mod { + --md-fg: var(--gp-sphinx-badge-mod-default-fg); + --md-bd: var(--gp-sphinx-badge-mod-default-border); +} +.api-badge--mod-async { --md-fg: var(--gp-sphinx-badge-mod-async-fg); --md-bd: var(--gp-sphinx-badge-mod-async-border); } +.api-badge--mod-abstract { --md-fg: var(--gp-sphinx-badge-mod-abstract-fg); --md-bd: var(--gp-sphinx-badge-mod-abstract-border); } +.api-badge--mod-classmethod, .api-badge--mod-static { --md-fg: var(--md-amber-fg); --md-bd: var(--gp-sphinx-badge-mod-classmethod-border); } +.api-badge--mod-final, .api-badge--mod-readonly { --md-fg: var(--gp-sphinx-badge-mod-final-fg); --md-bd: var(--gp-sphinx-badge-mod-final-border); } +.api-badge--mod-deprecated { --md-fg: var(--api-ink-keyword); --md-bd: var(--api-ink-danger-border); } +.api-badge--mod-package { --md-fg: var(--mark-types-fg); --md-bd: var(--mark-types-hue); } + +/* The doubled class outranks the vendored `dl.py .api-badge--mod`, which would otherwise repaint a deprecated or package chip grey. */ +.api-badge.api-badge--mod.api-badge--mod { + --leg-h: round(1.35em, 2px); + --leg-pb: round(calc((var(--leg-h) - 2px - .8 * 1cap) / 2), var(--mark-step)); + display: inline-flex; + align-items: flex-end; + box-sizing: border-box; + height: var(--leg-h); + max-inline-size: 100%; + padding: 0 .4em var(--leg-pb); + overflow: hidden; + vertical-align: middle; + border: 1px solid var(--md-bd); + border-radius: .2em; + background: transparent; + color: var(--md-fg); + font: 600 .8125rem/1 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + letter-spacing: 0; + text-transform: none; + text-decoration: none; + white-space: nowrap; +} +.api-badge--mod > .api-badge__label { display: block; font-size: .8em; line-height: 1; text-box: trim-both cap alphabetic; } +@supports not (text-box: trim-both cap alphabetic) { + .api-badge.api-badge--mod.api-badge--mod { align-items: center; padding-bottom: 0; } +} + +/* ---- Print, forced colours and increased contrast ---- */ + +/* Print is ink: tints stripped, a 1px border, the glyph in black. */ +@media print { + .api-nav__kind, .api-badge.api-leg, .api-leg__m, .api-badge.api-badge--mod.api-badge--mod { + background: transparent !important; + color: #000 !important; + border-color: #000 !important; + box-shadow: none !important; + } + .api-leg__m { border-inline-end-color: #000 !important; } +} + +/* Forced colours: an outline in system colours, Highlight where active. */ +@media (forced-colors: active) { + .api-nav__kind, .api-badge.api-leg, .api-badge.api-badge--mod.api-badge--mod { + forced-color-adjust: none; + background: Canvas; + color: CanvasText; + border-color: CanvasText; + box-shadow: none; + } + .api-leg__m { background: Canvas; border-inline-end-color: CanvasText; } + .api-nav__leaf[aria-current='page'] > .api-nav__kind, + .api-nav__row:has(> [aria-current='page']) > .api-nav__kind, + :is(a, summary):is(:hover, :focus-visible) > .api-nav__kind { + background: Highlight; + color: HighlightText; + border-color: Highlight; + } +} + +/* More contrast: the border at full strength. */ +@media (prefers-contrast: more) { + .api-nav__kind, .api-badge.api-leg, .api-badge.api-badge--mod.api-badge--mod { + --mk-bd: currentColor; + --md-bd: currentColor; + border-color: currentColor; + } + .api-leg__m { border-inline-end-color: currentColor; } +} diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts index 8b7ea7df3..b98036252 100644 --- a/site/test/tmux-library-usage.test.ts +++ b/site/test/tmux-library-usage.test.ts @@ -1029,7 +1029,8 @@ describe('the chip layout of the usage table', () => { }) const MARKS_CSS = readFileSync(new URL('../src/styles/kind-marks.css', import.meta.url), 'utf8') -const CHIP_CONTAINERS = ['.api-elsewhere-value', '.api-command-related', '.tmux-usage', 'nav.api-related'] +/** The chips that were there before the usage table, whose hover and focus stay as they were. */ +const OLDER_CHIPS = /\.api-elsewhere-value|\.api-command-related|nav\.api-related/ const squash = (selector: string) => selector.replace(/\s+/g, ' ').trim() /** @@ -1041,7 +1042,7 @@ const squash = (selector: string) => selector.replace(/\s+/g, ' ').trim() function chipStateProblems(css: string): string[] { const all = parseRules(css) const problems: string[] = [] - const inChip = (rule: { selector: string }) => CHIP_CONTAINERS.every((container) => rule.selector.includes(container)) && rule.selector.includes('a:has(> .api-nav__kind)') + const inChip = (rule: { selector: string }) => rule.selector.includes('.tmux-usage') && !OLDER_CHIPS.test(rule.selector) && rule.selector.includes('a:has(> .api-nav__kind)') const chipRules = all.filter((rule) => !rule.at && inChip(rule)) const reachesChip = (rule: { selector: string }, state: string) => squash(rule.selector).includes(state) /** The selector without the `:has(> .api-nav__kind)` that picks out the chip, so `> .api-nav__kind` means its mark. */ @@ -1067,6 +1068,10 @@ function chipStateProblems(css: string): string[] { const forcedReset = forced.find((rule) => inChip(rule) && reachesChip(rule, ':is(:hover, :focus-visible) > .api-nav__kind')) if (!forcedReset || forcedReset.body.background !== 'Canvas') problems.push("forced colours light a hovered chip's mark alone") + // The chips that were there before it keep their hover and focus: nothing that reaches one of them takes the border, the outline or the reset of the mark. + const older = all.filter((rule) => OLDER_CHIPS.test(rule.selector) && /:hover|:focus-visible/.test(rule.selector) && rule.selector.includes('a:has(> .api-nav__kind)')) + if (older.some((rule) => 'border-color' in rule.body || 'outline' in rule.body || 'outline-offset' in rule.body || targetsMark(rule))) problems.push('the usage table\'s hover and focus reach the other chips') + // The control: the tree still selects a node with the ring. const selected = ring.find((rule) => squash(rule.selector).includes(".api-nav__leaf[aria-current='page'] > .api-nav__kind")) if (!selected) problems.push("the tree's selected node lost its ring") @@ -1093,15 +1098,21 @@ describe('the hover and focus of a split chip', () => { }) it('catches the mark-only ring, the surface-only hover and a focus that rings the mark', () => { - const chipReset = /:is\(\.api-elsewhere-value[^{]*a:has\(> \.api-nav__kind\):is\(:hover, :focus-visible\) > \.api-nav__kind \{[^}]*\}\n/ + const chipReset = /\.tmux-usage a:has\(> \.api-nav__kind\):is\(:hover, :focus-visible\) > \.api-nav__kind \{[^}]*\}\n/ expect(MARKS_CSS).toMatch(chipReset) expect(chipStateProblems(MARKS_CSS.replace(chipReset, ''))).toEqual(["a hovered chip's mark takes the active ring"]) - expect(chipStateProblems(MARKS_CSS.replace(/(a:has\(> \.api-nav__kind\):is\(:hover, :focus-visible\) \{\n[^}]*?)\n border-color:[^\n]*/, '$1'))) + expect(chipStateProblems(MARKS_CSS.replace(/(\.tmux-usage a:has\(> \.api-nav__kind\):is\(:hover, :focus-visible\) \{\n[^}]*?)\n border-color:[^\n]*/, '$1'))) .toEqual(['a hovered chip changes its surface but not its border']) - expect(chipStateProblems(MARKS_CSS.replace(/(a:has\(> \.api-nav__kind\):focus-visible \{\n) outline: [^\n]*\n outline-offset: [^\n]*\n/, '$1 box-shadow: var(--mk-act-ring, none);\n'))) + expect(chipStateProblems(MARKS_CSS.replace(/(\.tmux-usage a:has\(> \.api-nav__kind\):focus-visible \{\n) outline: [^\n]*\n outline-offset: [^\n]*\n/, '$1 box-shadow: var(--mk-act-ring, none);\n'))) .toEqual(expect.arrayContaining(['focus is not one outline clear of the whole chip', 'focus rings the chip with a shadow', 'a chip rule sets the active ring'])) }) + it('catches the usage table\'s rules reaching the other chips', () => { + const widened = MARKS_CSS.replace('.tmux-usage a:has(> .api-nav__kind):focus-visible {', ':is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind):focus-visible {') + expect(widened).not.toBe(MARKS_CSS) + expect(chipStateProblems(widened)).toEqual(expect.arrayContaining(["the usage table's hover and focus reach the other chips"])) + }) + it('keeps the ring on the tree, so the fix is not to drop it everywhere', () => { // A fix that deletes the active ring would pass the chip checks and lose the tree's selected node. const noRing = MARKS_CSS.replace('box-shadow: var(--mk-act-ring, none);', '') From 1d444c2514cf5d12735c22d0e9af80a5d94e2969 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 07:51:39 -0500 Subject: [PATCH 39/53] feat(site[port-picker]) Group Elixir under a BEAM family why: Elixir compiles to bytecode for the BEAM, Erlang's virtual machine. The picker already groups JVM and .NET ports by runtime, but listed Elixir under "Scripting & web", where it sat beside languages with no shared runtime. The maintainer decided it belongs in a runtime group of its own. what: - Add a BEAM family holding Elixir and drop Elixir from "Scripting & web". BEAM follows .NET so the three runtime families stay together, after the two language families and before the "Other languages" catch-all, which stays last. JVM and .NET keep their positions. - Move the family list out of PagePortSwitcher.astro into lib/port-families.ts so a test can import it. The component calls portFamilies(), which appends the catch-all for any port no family names, as before. - Map the new module in the picker test's component compiler, which resolves the component's imports by hand. - Add port-families.test.ts: every registered port is in exactly one family, each family names only registered ports once, Elixir is in BEAM and nowhere else, the runtime families keep their order, and an unlisted port lands in the catch-all once. - Render the picker and check the drawn headings and ports: Elixir under BEAM only, every registered port drawn once. Verified: putting Elixir back under "Scripting & web" without BEAM fails the Elixir-in-BEAM test, the family-order test and the rendered-picker test. Listing Elixir under both families fails the exactly-one-family, the once-each, the Elixir-in-BEAM and the rendered tests, plus five picker tests that count rows. The Elixir reference page on a dev server at desktop width draws Scripting & web, Compiled & native, JVM, .NET and BEAM, with Elixir checked under BEAM. Site tests with LIBTMUX_DOCS_TEST_SOURCE_ONLY=1, pnpm run lint and astro check pass. No label is translated: the picker's group headings are English-only strings, so there is no Japanese label to add. --- site/src/components/PagePortSwitcher.astro | 10 +--- site/src/lib/port-families.ts | 30 ++++++++++++ .../documentation-picker-interaction.test.ts | 14 ++++++ site/test/port-families.test.ts | 46 +++++++++++++++++++ 4 files changed, 92 insertions(+), 8 deletions(-) create mode 100644 site/src/lib/port-families.ts create mode 100644 site/test/port-families.test.ts diff --git a/site/src/components/PagePortSwitcher.astro b/site/src/components/PagePortSwitcher.astro index c67e6c9f1..8a1bdc597 100644 --- a/site/src/components/PagePortSwitcher.astro +++ b/site/src/components/PagePortSwitcher.astro @@ -1,6 +1,7 @@ --- import type { PagePortLink } from '../lib/page-port-links' import { PORT_BY_SLUG } from '../lib/ports' +import { portFamilies } from '../lib/port-families' import { branding } from '../lib/branding' import { withRoot, withPortRoot } from '../lib/site-root' import TmuxLogo from './tmux/Logo.astro' @@ -20,14 +21,7 @@ const { entries, portSlug, label, tmux = false, homeLanguageIcons = false, reser const current = entries.find((entry) => entry.port === portSlug) const name = tmux ? 'tmux CLI' : current?.name ?? PORT_BY_SLUG[portSlug ?? '']?.name ?? 'In other ports' const shortName = tmux ? 'tmux' : PORT_BY_SLUG[portSlug ?? '']?.shortName ?? name -const families = [ - { label: 'Scripting & web', ports: ['py', 'ruby', 'lua', 'julia', 'elixir', 'ts'] }, - { label: 'Compiled & native', ports: ['rs', 'go', 'cxx', 'swift'] }, - { label: 'JVM', ports: ['java', 'kotlin', 'scala'] }, - { label: '.NET', ports: ['csharp', 'fsharp', 'powershell'] }, -] -const known = new Set(families.flatMap((family) => family.ports)) -families.push({ label: 'Other languages', ports: entries.filter((entry) => !known.has(entry.port)).map((entry) => entry.port) }) +const families = portFamilies(entries.map((entry) => entry.port)) ---
diff --git a/site/src/lib/port-families.ts b/site/src/lib/port-families.ts new file mode 100644 index 000000000..7ebee4884 --- /dev/null +++ b/site/src/lib/port-families.ts @@ -0,0 +1,30 @@ +/** A heading in the port picker and the ports listed under it, in display order. */ +export interface PortFamily { + label: string + ports: string[] +} + +/** + * The picker's groups, in display order. Ports that share a language runtime + * (the JVM, .NET, the BEAM) sit in a group named for it; the rest are split + * by how they are built and run. A port belongs to one group. + */ +export const PORT_FAMILIES: readonly PortFamily[] = [ + { label: 'Scripting & web', ports: ['py', 'ruby', 'lua', 'julia', 'ts'] }, + { label: 'Compiled & native', ports: ['rs', 'go', 'cxx', 'swift'] }, + { label: 'JVM', ports: ['java', 'kotlin', 'scala'] }, + { label: '.NET', ports: ['csharp', 'fsharp', 'powershell'] }, + { label: 'BEAM', ports: ['elixir'] }, +] + +/** The label of the group that collects every port no family names. */ +export const OTHER_FAMILY_LABEL = 'Other languages' + +/** The groups to draw for these ports, ending with the ports no family names. */ +export function portFamilies(ports: readonly string[]): PortFamily[] { + const known = new Set(PORT_FAMILIES.flatMap((family) => family.ports)) + return [ + ...PORT_FAMILIES.map((family) => ({ label: family.label, ports: [...family.ports] })), + { label: OTHER_FAMILY_LABEL, ports: ports.filter((port) => !known.has(port)) }, + ] +} diff --git a/site/test/documentation-picker-interaction.test.ts b/site/test/documentation-picker-interaction.test.ts index 3381a9c40..acb547b3e 100644 --- a/site/test/documentation-picker-interaction.test.ts +++ b/site/test/documentation-picker-interaction.test.ts @@ -5,6 +5,7 @@ import { experimental_AstroContainer } from 'astro/container' import { pagePortLinks, type PagePortLink } from '../src/lib/page-port-links' import { API_MODELS } from '../src/lib/api-models' import { PORTS, productAvailable } from '../src/lib/ports' +import { PORT_FAMILIES } from '../src/lib/port-families' import ts from 'typescript' import { Window, type HTMLAnchorElement, type HTMLElement } from 'happy-dom' import { afterEach, beforeEach, expect, it, vi } from 'vitest' @@ -126,6 +127,7 @@ async function renderPicker(entries: PagePortLink[], portSlug = 'julia') { const component = await compile('../src/components/PagePortSwitcher.astro', { '../lib/ports': new URL('../src/lib/ports.ts', import.meta.url).href, '../lib/branding': new URL('../src/lib/branding.ts', import.meta.url).href, + '../lib/port-families': new URL('../src/lib/port-families.ts', import.meta.url).href, '../lib/site-root': root, './tmux/Logo.astro': logo, }) return (await import(/* @vite-ignore */ component)).default @@ -134,6 +136,18 @@ async function renderPicker(entries: PagePortLink[], portSlug = 'julia') { win.document.body.innerHTML = await container.renderToString(await pickerComponent, { props: { entries, portSlug } }) } +it('draws each port once, under its family, with Elixir under BEAM', async () => { + await renderPicker(pagePortLinks({ pagePath: 'reference/glossary', portSlug: 'elixir', version: 'latest', defaults: {}, docs: [] }), 'elixir') + const drawn = Array.from(win.document.querySelectorAll('.port-family')).map((section) => ({ + label: section.querySelector('h3')!.textContent, + ports: [...new Set(Array.from(section.querySelectorAll('[data-port]')).map((row) => row.getAttribute('data-port')))], + })) + expect(drawn.map((family) => family.label)).toEqual(PORT_FAMILIES.map((family) => family.label)) + expect(drawn.find((family) => family.label === 'BEAM')?.ports).toEqual(['elixir']) + expect(drawn.filter((family) => family.ports.includes('elixir'))).toHaveLength(1) + expect(drawn.flatMap((family) => family.ports).sort()).toEqual(PORTS.map((port) => port.slug).sort()) +}) + it('renders safe native glossary destinations without JavaScript', async () => { const entries = pagePortLinks({ pagePath: 'reference/glossary', portSlug: 'scala', version: 'latest', defaults: {}, docs: [] }) await renderPicker(entries, 'scala') diff --git a/site/test/port-families.test.ts b/site/test/port-families.test.ts new file mode 100644 index 000000000..b9c74ad11 --- /dev/null +++ b/site/test/port-families.test.ts @@ -0,0 +1,46 @@ +import { describe, expect, it } from 'vitest' +import { OTHER_FAMILY_LABEL, PORT_FAMILIES, portFamilies } from '../src/lib/port-families' +import { PORTS } from '../src/lib/ports' + +const slugs = PORTS.map((port) => port.slug) +const familiesOf = (slug: string) => PORT_FAMILIES.filter((family) => family.ports.includes(slug)).map((family) => family.label) + +describe('port picker families', () => { + it('files every registered port under exactly one family', () => { + for (const slug of slugs) expect(familiesOf(slug), slug).toHaveLength(1) + }) + + it('names only registered ports, once each, under distinct labels', () => { + const named = PORT_FAMILIES.flatMap((family) => family.ports) + expect(named.filter((slug) => !slugs.includes(slug))).toEqual([]) + expect(new Set(named).size).toBe(named.length) + const labels = [...PORT_FAMILIES.map((family) => family.label), OTHER_FAMILY_LABEL] + expect(new Set(labels).size).toBe(labels.length) + expect(PORT_FAMILIES.filter((family) => family.ports.length === 0)).toEqual([]) + }) + + it('puts Elixir in the BEAM family and in no other', () => { + expect(familiesOf('elixir')).toEqual(['BEAM']) + for (const family of portFamilies(slugs)) { + expect(family.ports.includes('elixir'), family.label).toBe(family.label === 'BEAM') + } + }) + + it('keeps the runtime families together, after the language families', () => { + const labels = PORT_FAMILIES.map((family) => family.label) + expect(labels.slice(0, 2)).toEqual(['Scripting & web', 'Compiled & native']) + expect(labels.slice(2)).toEqual(['JVM', '.NET', 'BEAM']) + }) + + it('leaves the catch-all family empty for the registered ports, and last', () => { + const drawn = portFamilies(slugs) + expect(drawn.at(-1)).toEqual({ label: OTHER_FAMILY_LABEL, ports: [] }) + expect(drawn.slice(0, -1)).toEqual(PORT_FAMILIES) + }) + + it('collects a port no family names under the catch-all, once', () => { + const drawn = portFamilies([...slugs, 'zig']) + expect(drawn.at(-1)).toEqual({ label: OTHER_FAMILY_LABEL, ports: ['zig'] }) + expect(drawn.filter((family) => family.ports.includes('zig'))).toHaveLength(1) + }) +}) From 81448295207fca6ccc8309435ad0b39b5c0e815f Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 08:18:02 -0500 Subject: [PATCH 40/53] fix(site[api-reference]) Keep the related section in ApiReference why: The merge train of #183, #184 and #185 lost the Related types section on the tmux C reference pages. #184's page test renders ApiReference with only the components that sit beside the section listed as real, and an unlisted child renders as its slot. #183 had moved the section into ApiRelatedTypes.astro, so under that harness it drew nothing, and `api-related-types` vanished from every page. The related types themselves were intact: the data and the rail, which ApiPageContents draws, were the same at the base and at #183's head. Only the markup moved, and #183's own tests listed the new component, so none of them could see the loss. what: - Put the Related types section back inline in ApiReference and delete ApiRelatedTypes.astro. The page now differs from the base only in how it builds the list and in the break points of a label that carries its owner, so a harness that names what is real still gets the section - Render the Related types cards in tests from the real ApiReference, with the page-adjacent components real, as #184's test lists them: every page where the rule changed a label, and the first list of each other port. The Related APIs chips stay checked for every list through ApiPageContents. Choose the pages by the label change, not by the `qualified` flag the pages are meant to test - Pin the C pages: cmd_list_panes_exec and cmd_list_panes_window keep the related types they listed before, with their labels, titles and links, in a section that follows the declarations the function references and in the chips, and carry no break points. A section that a later change appends after it does not disturb the pin Verified: the two tests that pin the C pages and the card test of the Elixir and Ruby pages fail on 498a1545d, where the section is missing, and pass here. Rebuilt on main with this branch, #184 and #185, the train passes #184's C page tests and these. Against the base fcf99651e, the lists of 14,794 pages of the 16 ports differ on 62 pages (56 Elixir, 6 Ruby, 92 labels) and on none in the other 14 ports, and the lists of the tmux C references differ on none: 7,885 pages of 3.7c and 5,090 of 3.2a. Of 200 C pages drawn under the #184 harness, none differs from the base in sections, cards, chips, titles or links. The full site suite, lint and astro check pass. --- site/src/components/api/ApiReference.astro | 14 +- site/src/components/api/ApiRelatedTypes.astro | 25 ---- site/test/related-labels.test.ts | 121 ++++++++++++++---- 3 files changed, 107 insertions(+), 53 deletions(-) delete mode 100644 site/src/components/api/ApiRelatedTypes.astro diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 926f58d77..52eaaf677 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -12,7 +12,6 @@ import { apiGlossary, apiGlossaryHeadings, API_GLOSSARY_TITLE, apiGlossaryHref } import ApiQualifiedName from '../../components/api/ApiQualifiedName.astro' import ApiType from '../../components/api/ApiType.astro' import ApiPageContents from '../../components/api/ApiPageContents.astro' -import ApiRelatedTypes from './ApiRelatedTypes.astro' import { apiEntryFields, apiEntrySections, apiMemberGroups, hasScalarMembers, relatedTypeLinks, type ApiSection } from '../../lib/api-sections' import PageToolbar from '../../components/PageToolbar.astro' import PagePortSwitcher from '../../components/PagePortSwitcher.astro' @@ -825,7 +824,18 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] )} - + {related.length > 0 && } ) } diff --git a/site/src/components/api/ApiRelatedTypes.astro b/site/src/components/api/ApiRelatedTypes.astro deleted file mode 100644 index 867d2996e..000000000 --- a/site/src/components/api/ApiRelatedTypes.astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -import type { SymbolIndex } from '@libtmux/api-model' -import type { RelatedTypeLink } from '../../lib/api-sections' -import ApiBadge from './ApiBadge.astro' -import ApiDoc from './ApiDoc.astro' -import SymbolName from './SymbolName.astro' - -interface Props { - related: RelatedTypeLink[] - index: SymbolIndex -} -const { related, index } = Astro.props as Props ---- -{related.length > 0 && } diff --git a/site/test/related-labels.test.ts b/site/test/related-labels.test.ts index e0c76f353..7a29ce84d 100644 --- a/site/test/related-labels.test.ts +++ b/site/test/related-labels.test.ts @@ -1,4 +1,4 @@ -import { afterEach, beforeAll, describe, expect, it } from 'vitest' +import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest' import { experimental_AstroContainer } from 'astro/container' import { Window, type Document } from 'happy-dom' import { membersOf, memberSignals, moduleOf, qualifiedNameOf, type ApiSymbol } from '@libtmux/api-model' @@ -8,9 +8,11 @@ import { ownerQualifiedName, relatedLabels, type RelatedLabelInput } from '../sr import { relatedApiTypes, relatedTypeLinks, type RelatedTypeLink } from '../src/lib/api-sections' import { coreApiSymbols } from '../src/lib/product-api' import { wordBreak } from '../src/lib/word-break' -import { tmuxReferenceIndex, tmuxReferenceUrl, tmuxSourceModel } from '../src/lib/tmux-reference' +import { tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxSourceModel } from '../src/lib/tmux-reference' import { loadAstroTemplate, withoutScope } from './astro-templates' +vi.mock('astro:content', () => ({ getCollection: async () => [] })) + /** * A related type is labelled so that a reader can tell which entity it is. A bare name stays when it is unambiguous and the page's * own subject owns it; an Elixir type, whose `t/0` means nothing outside its module, and any name more than one type in the port carries @@ -213,11 +215,11 @@ describe('the rendered related lists', () => { const windows: Window[] = [] afterEach(async () => { for (const win of windows.splice(0)) await win.happyDOM.abort() }) - async function templates() { - const cards = await loadAstroTemplate('components/api/ApiRelatedTypes.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) - const rail = await loadAstroTemplate('components/api/ApiPageContents.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) - return { cards, rail } - } + /** + * A page as its own components draw it. Only what a page shows beside the related section is real, as a harness that + * renders a reference page lists it: the section is part of `ApiReference`, so no child has to be named for it to appear. + */ + const PAGE_COMPONENTS = ['components/api/ApiPageContents.astro', 'components/api/ApiBadge.astro', 'components/api/SymbolName.astro', 'components/api/ApiRelationships.astro'] /** One related list as the reader sees it: the label and title of each link, and the label's markup. */ function shown(root: Document, selector: string) { @@ -227,35 +229,102 @@ describe('the rendered related lists', () => { }) } - it('draws the same unique labels in the Related types cards and the Related APIs chips of every list', async () => { - const { cards, rail } = await templates() + /** What a chip or card draws for a label: break points where the rule changed it, plain text where it did not. */ + const markup = (label: string, before: string) => (label !== before ? wordBreak(label).join('') : label).replaceAll('&', '&') + + it('draws the Related APIs chips of every list with unique labels, titles, links, marks and break points', async () => { + const rail = await loadAstroTemplate('components/api/ApiPageContents.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) const win = new Window({ url: 'https://libtmux.org/' }) windows.push(win) const container = await experimental_AstroContainer.create() - const render = async (template: unknown, props: Record) => withoutScope(await container.renderToString( - template as Parameters[0], { request: new Request('https://libtmux.org/'), props })) let lists = 0 for (const { port, owner, links, before } of pages().filter((entry) => entry.links.length > 1)) { const where = `${port} ${qualifiedNameOf(owner)}` - win.document.body.innerHTML = await render(cards, { related: links, index: undefined }) + await render(rail, { sections: [], related: links }) - const card = shown(win.document, '.api-related-card > a') - const chip = shown(win.document, 'nav.api-related a') - expect(card.map((item) => item.label), where).toEqual(links.map((link) => link.name)) - expect(chip.map((item) => item.label), where).toEqual(links.map((link) => link.name)) - expect(duplicates(card.map((item) => item.label!)), where).toEqual([]) - expect(duplicates(chip.map((item) => item.label!)), where).toEqual([]) + win.document.body.innerHTML = withoutScope(await container.renderToString(rail as Parameters[0], { + request: new Request('https://libtmux.org/'), props: { sections: [], related: links }, + })) + const chips = shown(win.document, 'nav.api-related a') + expect(chips.map((item) => item.label), where).toEqual(links.map((link) => link.name)) + expect(duplicates(chips.map((item) => item.label!)), where).toEqual([]) for (const [i, link] of links.entries()) { - for (const item of [card[i]!, chip[i]!]) { - expect(item.title, where).toBe(link.identity) - expect(item.href, where).toBe(link.href) - expect(item.mark, where).toBeTruthy() - // A label the rule changed breaks where a symbol name breaks; one it left alone has no break points. - const changed = link.name !== before[i] - expect(item.markup, `${where}: ${link.name}`).toBe((changed ? wordBreak(link.name).join('') : link.name).replaceAll('&', '&')) - } + expect(chips[i]!.title, where).toBe(link.identity) + expect(chips[i]!.href, where).toBe(link.href) + expect(chips[i]!.mark, where).toBeTruthy() + expect(chips[i]!.markup, `${where}: ${link.name}`).toBe(markup(link.name, before[i]!)) } lists++ } expect(lists).toBeGreaterThan(1000) }, 300_000) + + async function reference(props: Record, slug: string | undefined, path: string) { + const template = await loadAstroTemplate('components/api/ApiReference.astro', { real: PAGE_COMPONENTS }) + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + const win = new Window() + windows.push(win) + win.document.body.innerHTML = withoutScope(await container.renderToString(template as never, { + request: new Request(`https://libtmux.org${path}`), params: slug ? { slug } : undefined, props, + })) + return win.document + } + + it('draws the Related types cards of a page from ApiReference, beside the chips that name the same entries', async () => { + const all = pages() + // Every page where the rule changed a label, and the first page of each other port with a list to compare. + const changed = all.filter((entry) => entry.links.some((link, i) => link.name !== entry.before[i])) + const others = Object.keys(API_MODELS).flatMap((port) => changed.some((entry) => entry.port === port) ? [] : all.filter((entry) => entry.port === port && entry.links.length > 1).slice(0, 1)) + const template = await loadAstroTemplate('components/api/ApiReference.astro', { real: PAGE_COMPONENTS }) + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + const win = new Window() + windows.push(win) + for (const { port, owner, links, before } of [...changed, ...others]) { + const where = `${port} ${qualifiedNameOf(owner)}` + win.document.body.innerHTML = withoutScope(await container.renderToString(template as never, { + request: new Request(`https://libtmux.org/en/${port}/latest/reference/${owner.slug}/`), params: { slug: owner.slug }, props: { model: API_MODELS[port], owner }, + })) + const ids = [...win.document.querySelectorAll('h2[id^="api-"]')].map((heading) => heading.id) + expect(ids, where).toContain('api-related-types') + const cards = shown(win.document, '.api-related-card > a') + const chips = shown(win.document, 'nav.api-related a') + expect(cards.map((item) => item.label), where).toEqual(links.map((link) => link.name)) + expect(chips.map((item) => item.label), where).toEqual(cards.map((item) => item.label)) + expect(duplicates(cards.map((item) => item.label!)), where).toEqual([]) + for (const [i, link] of links.entries()) { + expect(cards[i]!.title, where).toBe(link.identity) + expect(cards[i]!.href, where).toMatch(new RegExp(`/${link.symbol.slug}/$`)) + expect(cards[i]!.mark, where).toBeTruthy() + expect(cards[i]!.markup, `${where}: ${link.name}`).toBe(markup(link.name, before[i]!)) + } + } + expect(changed.length).toBeGreaterThan(0) + }, 300_000) + + describe('on the tmux C source reference', () => { + // The related types these two pages listed before the owner rule, which no C page takes. + const expected = { + cmd_list_panes_exec: ['c:enum:cmd_retval', 'c:struct:cmd', 'c:struct:cmdq_item'], + cmd_list_panes_window: ['c:struct:cmd', 'c:struct:session', 'c:struct:winlink', 'c:struct:cmdq_item'], + } + + it.each(Object.entries(expected))('keeps the related types of %s, as a section of the page and in the chips', async (name, related) => { + const model = tmuxSourceModel('latest') + const byId = new Map(model.symbols.map((entry) => [entry.id, entry])) + const symbol = model.symbols.find((entry) => entry.name === name)! + const document = await reference({ source: tmuxReferenceContext('latest', symbol), owner: symbol, searchable: false }, undefined, '/') + const ids = [...document.querySelectorAll('h2[id^="api-"]')].map((heading) => heading.id) + // The section follows the declarations the function references, and a section a later change appends may follow it. + expect(ids).toContain('api-referenced-declarations') + expect(ids.indexOf('api-related-types')).toBeGreaterThan(ids.indexOf('api-referenced-declarations')) + const labels = related.map((id) => byId.get(id)!.name) + const cards = shown(document, '.api-related-card > a') + expect(cards.map((item) => item.label)).toEqual(labels) + expect(shown(document, 'nav.api-related a').map((item) => item.label)).toEqual(labels) + for (const [i, item] of cards.entries()) { + expect(item.markup, item.label!).toBe(item.label) + expect(item.title, item.label!).toBe(item.label) + expect(item.href, item.label!).toBe(tmuxReferenceUrl('latest', byId.get(related[i]!)!)) + expect(item.mark, item.label!).toBeTruthy() + } + }, 120_000) + }) }) From 23b7e6e83a7de8515e7cab9da2ce3a3e258f3257 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 09:12:51 -0500 Subject: [PATCH 41/53] fix(site) Keep Python's tmux minimum at 3.2a why: The 3.3a sweep moved the Python, tmuxp and libtmux-mcp pages to a floor that none of them declares. At tmux-python/libtmux master, TMUX_MIN_VERSION is "3.2a", the README says "tmux: >= 3.2a", and the CI matrix starts at 3.2a. The 3.3a raise exists only in the open draft tmux-python/libtmux#779, so a reader on 3.2a would be told to upgrade for a library that runs there. The refusal sentence added to the Python pages was also untrue: libtmux exposes has_minimum_version, which compares the `tmux -V` of its executable with TMUX_MIN_VERSION, and no operation in src/libtmux calls it, so nothing refuses an older daemon. Evidence, pinned to the trunk heads read on 2026-10-24: - libtmux e5cb17c: src/libtmux/common.py TMUX_MIN_VERSION = "3.2a" https://github.com/tmux-python/libtmux/blob/e5cb17c855fb9c9427e9c51a7239d6e843f4ede0/src/libtmux/common.py#L29 README "tmux: >= 3.2a" https://github.com/tmux-python/libtmux/blob/e5cb17c855fb9c9427e9c51a7239d6e843f4ede0/README.md#L33 tests.yml tmux-version matrix begins at 3.2a https://github.com/tmux-python/libtmux/blob/e5cb17c855fb9c9427e9c51a7239d6e843f4ede0/.github/workflows/tests.yml#L15 - tmuxp 7965262: README "tmux support: 3.2+"; matrix begins at 3.2a https://github.com/tmux-python/tmuxp/blob/7965262d4a376f5f6cd9238b6ce4189d35a5d9e7/README.md#L313 - libtmux-mcp 263541d: README "tmux >= 3.2a on $PATH"; compatibility table "< 3.2a: Not supported (libtmux requirement)" https://github.com/tmux-python/libtmux-mcp/blob/263541d4b7c72507ab64bbb066592181522eec6c/docs/reference/compatibility.md#L20 what: - Restore 3.2a on the Python guides, the MCP entry and guide pages, the tmuxp workspace pages, the shared workspace installation page's tmuxp paragraph and the Python home quickstart prerequisites - Restore the "3.2+" rows of the options and hooks requirements table, which sits beside the 3.3+ rows for individual hooks - Keep the link to the shared tmux support guide on the two Python pages that gained it, and drop the sentence that said an older daemon is refused before any effect --- .../_workspace-shared/workspace/guides/installation.md | 2 +- site/src/content/docs/ports/py/guides/attaching-to-tmux.md | 2 +- site/src/content/docs/ports/py/mcp/guides.md | 2 +- site/src/content/docs/ports/py/mcp/index.md | 2 +- site/src/content/docs/ports/py/topics/options-and-hooks.md | 4 ++-- site/src/content/docs/ports/py/workspace/guides.md | 2 +- .../docs/ports/py/workspace/reference/compatibility.md | 2 +- site/src/data/home-examples.json | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/site/src/content/_workspace-shared/workspace/guides/installation.md b/site/src/content/_workspace-shared/workspace/guides/installation.md index 6b2c49550..41109c8c4 100644 --- a/site/src/content/_workspace-shared/workspace/guides/installation.md +++ b/site/src/content/_workspace-shared/workspace/guides/installation.md @@ -11,7 +11,7 @@ title: Install and load a workspace The runnable terminal loader is the separate Python application tmuxp. Its -documented prerequisites are Python 3.10 or newer and tmux 3.3a or newer. Install +documented prerequisites are Python 3.10 or newer and tmux 3.2a or newer. Install it in an isolated tool environment with uv: ```console $ uv tool install tmuxp diff --git a/site/src/content/docs/ports/py/guides/attaching-to-tmux.md b/site/src/content/docs/ports/py/guides/attaching-to-tmux.md index d7f0624ff..4a007a2c0 100644 --- a/site/src/content/docs/ports/py/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/py/guides/attaching-to-tmux.md @@ -38,7 +38,7 @@ print(session.session_name) ## Setup and run -Use an empty directory on Linux with Git and tmux 3.3a or newer installed. +Use an empty directory on Linux with Git and tmux 3.2a or newer installed. This example was checked with Python 3.14.6. diff --git a/site/src/content/docs/ports/py/mcp/guides.md b/site/src/content/docs/ports/py/mcp/guides.md index 3985fe063..72925dd3f 100644 --- a/site/src/content/docs/ports/py/mcp/guides.md +++ b/site/src/content/docs/ports/py/mcp/guides.md @@ -10,7 +10,7 @@ sidebar: --- Configure the client to launch `libtmux-mcp` with a named tmux socket. -Install [uv](https://docs.astral.sh/uv/) first, and make tmux 3.3a or newer +Install [uv](https://docs.astral.sh/uv/) first, and make tmux 3.2a or newer available in the environment the client passes to the server. ## Launch the server diff --git a/site/src/content/docs/ports/py/mcp/index.md b/site/src/content/docs/ports/py/mcp/index.md index 0279535d7..cd7ec11c0 100644 --- a/site/src/content/docs/ports/py/mcp/index.md +++ b/site/src/content/docs/ports/py/mcp/index.md @@ -13,7 +13,7 @@ run commands, and wait for their results. The distribution and executable are `libtmux-mcp`; Python imports use `libtmux_mcp`. The server runs over standard input and output. It requires Python 3.10 or -newer and tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../tmux/guides/tmux-support/). Its default toolsets are `inspect`, `manage`, +newer and tmux 3.2a or newer; see [tmux support](../../../tmux/guides/tmux-support/). Its default toolsets are `inspect`, `manage`, and `execute`; deletion tools require an explicit selection. ## Start here diff --git a/site/src/content/docs/ports/py/topics/options-and-hooks.md b/site/src/content/docs/ports/py/topics/options-and-hooks.md index aea739c2b..44c04cfda 100644 --- a/site/src/content/docs/ports/py/topics/options-and-hooks.md +++ b/site/src/content/docs/ports/py/topics/options-and-hooks.md @@ -82,8 +82,8 @@ The compatibility notes list these tmux requirements: | Feature | Minimum tmux | |---------|-------------| -| All options/hooks features | 3.3a+ | -| Window/pane hook *scope flags* (`-w`, `-p`) accepted | 3.3a+; see the supported-scope caveat above | +| All options/hooks features | 3.2+ | +| Window/pane hook *scope flags* (`-w`, `-p`) accepted | 3.2+; see the supported-scope caveat above | | `client-active`, `window-resized` hooks | 3.3+ | | `pane-title-changed` hook | 3.2+ | diff --git a/site/src/content/docs/ports/py/workspace/guides.md b/site/src/content/docs/ports/py/workspace/guides.md index b52c391c5..b705f5abd 100644 --- a/site/src/content/docs/ports/py/workspace/guides.md +++ b/site/src/content/docs/ports/py/workspace/guides.md @@ -9,7 +9,7 @@ sidebar: tableOfContents: true --- -Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.3a or newer +Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.2a or newer available on the host: ```console diff --git a/site/src/content/docs/ports/py/workspace/reference/compatibility.md b/site/src/content/docs/ports/py/workspace/reference/compatibility.md index 7d0735957..f193a557e 100644 --- a/site/src/content/docs/ports/py/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/py/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true These pages document tmuxp 1.74.0 at the source revision linked below. Install tmuxp in its own Python environment and let its dependency resolver select a compatible libtmux release. The walkthroughs use Python 3.10 or newer and -tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). +tmux 3.2a or newer; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Configuration and extensions diff --git a/site/src/data/home-examples.json b/site/src/data/home-examples.json index 33bba2b83..24d28a1a6 100644 --- a/site/src/data/home-examples.json +++ b/site/src/data/home-examples.json @@ -18,7 +18,7 @@ "code": "from __future__ import annotations\n\nfrom pathlib import Path\nimport shutil\nimport tempfile\nimport time\n\nimport libtmux\n\ndirectory = Path(tempfile.mkdtemp(prefix=\"libtmux-py-home-\"))\nsocket = directory / \"tmux.sock\"\nserver = libtmux.Server(socket_path=socket, config_file=\"/dev/null\")\n\ntry:\n session = server.new_session(session_name=\"demo\")\n window = session.active_window\n assert window is not None\n pane = window.split(shell=\"sh\")\n\n pane.send_keys(\"printf '\\\\nHello world\\\\n'\", enter=True)\n\n deadline = time.monotonic() + 5\n while \"Hello world\" not in pane.capture_pane():\n if time.monotonic() >= deadline:\n raise TimeoutError(\"The pane did not print Hello world\")\n time.sleep(0.02)\n\n print(\"Hello world\")\nexcept Exception as error:\n raise RuntimeError(\"tmux quickstart failed\") from error\nfinally:\n if socket.exists():\n server.kill()\n shutil.rmtree(directory)\n" } ], - "prerequisites": "POSIX shell, Git, tmux 3.3a or newer, Python 3.14.6 and uv (tested 0.12.0).", + "prerequisites": "POSIX shell, Git, tmux 3.2a or newer, Python 3.14.6 and uv (tested 0.12.0).", "commands": [ "git init -q source\ngit -C source fetch -q --depth=1 \\\n https://github.com/tmux-python/libtmux.git \\\n 9fdd083a8181a827889337b63cd4e6daea661a8c\ngit -C source checkout -q --detach FETCH_HEAD\nuv venv .venv\nuv pip install --python .venv/bin/python ./source", "unset TMUX TMUX_PANE\nexport ENV=/dev/null BASH_ENV=/dev/null SHELL=/bin/sh\n.venv/bin/python quickstart.py" From 400da2a64445443dcf538ef55257d28acc603bec Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 09:12:51 -0500 Subject: [PATCH 42/53] fix(site) State each port's own tmux floor in the guide why: The support guide opened with "Every libtmux port ... support tmux 3.3a and newer", and tmux-minimum.test.ts required every minimum on the site to name 3.3a. Two ports declare another floor, so the guide and the check both contradicted their sources, and the check could not catch a Python page that claimed 3.3a, which is the mistake the previous commit removes. No port declares a floor above 3.3a. Evidence, pinned to the trunk heads read on 2026-10-24: - Elixir 2cc4430: priv/tmux/support.json has "tmux_minimum": "3.3" and lists 3.3, 3.3a, 3.4 and 3.8 as required Linux releases; the README says "3.3 minimum; tested with 3.3, 3.3a, 3.4 and 3.8". lib/ holds no version check, so the floor is declared and tested, not refused at run time. https://github.com/libtmux/libtmux-elixir/blob/2cc4430595da7e3b1c50148d1e476baf70191194/priv/tmux/support.json - Python: see the previous commit. common.py compares the `tmux -V` of the executable with TMUX_MIN_VERSION in has_minimum_version, which no operation in src/libtmux calls. https://github.com/tmux-python/libtmux/blob/e5cb17c855fb9c9427e9c51a7239d6e843f4ede0/src/libtmux/common.py#L608 - The rs standard-library-core page documents a prototype pinned at libtmux-rs d7541fb, whose README says 3.2a; that experiment is gone from libtmux-rs master, so the page keeps the floor of its pin. https://github.com/libtmux/libtmux-rs/blob/d7541fbace16d6a45882cd0af0ea6880f9c21748/experiments/standard-library-core/README.md#L36 what: - Open the guide with "no port requires a tmux newer than 3.3a" and add a list of minimums: 3.2a for Python, tmuxp and libtmux-mcp, 3.3 for Elixir, 3.3a for every other port - Say that Python exposes an executable check that its operations do not call and that Elixir has no run-time refusal, beside the rules that judge the daemon - Check each statement against its port's floor: Python and Elixir pages must name theirs, other pages 3.3a - List the statements that keep another floor by file and version with the reason, and fail an entry that no longer matches its text - Fail when the guide's list lacks a floor the check knows - Without the entries the check reported the Elixir and Python statements and the rs prototype; with them it passes, a Python page that says 3.3a again fails, and an entry whose text is gone fails --- site/src/content/docs/guides/tmux-support.md | 29 +++-- site/test/tmux-minimum.test.ts | 127 +++++++++++++++++-- 2 files changed, 134 insertions(+), 22 deletions(-) diff --git a/site/src/content/docs/guides/tmux-support.md b/site/src/content/docs/guides/tmux-support.md index 1d7c9b117..a7f48ff1f 100644 --- a/site/src/content/docs/guides/tmux-support.md +++ b/site/src/content/docs/guides/tmux-support.md @@ -9,18 +9,26 @@ sidebar: tableOfContents: true --- -Every libtmux port, the MCP servers and the workspace builders support tmux -3.3a and newer. A daemon older than 3.3a is refused before the requested -operation has any effect. +No libtmux port requires a tmux newer than 3.3a. The ports, the MCP servers +and the workspace builders support tmux 3.3a and newer, except Python and +Elixir, which state an earlier floor. A port that enforces its minimum +refuses an older daemon before the requested operation has any effect. + +## Minimum by port + +- Python (`libtmux`), tmuxp and `libtmux-mcp`: tmux 3.2a. +- Elixir: tmux 3.3. +- Every other port, with its MCP server and workspace builder: tmux 3.3a. ## The core minimum The minimum for ordinary reads, writes, batches, raw commands, workspace -loading and MCP tools is tmux 3.3a. Releases compare in full, including patch -letters, so 3.3 is below the minimum and 3.3a is the first supported release. -A development build such as `next-3.9` ranks below the release it precedes, and -a release candidate ranks below its release. A version the library cannot -read is refused, not assumed to be new enough. +loading and MCP tools is the port's own, tmux 3.3a for most ports. Releases +compare in full, including patch letters, so 3.3 is below a 3.3a minimum and +3.3a is the first supported release. A development build such as `next-3.9` +ranks below the release it precedes, and a release candidate ranks below its +release. A version the library cannot read is refused, not assumed to be new +enough. Libraries judge the daemon that answers on the selected socket, not the `tmux` executable that sends the command. The two can differ, for example when a @@ -38,6 +46,11 @@ newer client binary talks to a server started by an older one. The rules are: - The refusal raises the port's version error and happens before the command runs, so a refused call leaves no session, window, option or buffer behind. +The Python library does not refuse an older tmux by itself. Its +`has_minimum_version` helper compares the version that the `tmux` executable +reports with 3.2a, and no library operation calls it. The Elixir port declares +its floor and tests it, and has no runtime refusal. + Running `tmux -V` or `tmux -h` on an older executable still works; see the [command reference](/tmux/latest/manual/full/#COMMANDS). Their output does not authorize later operations. diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index a1311601b..283f00e05 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -4,16 +4,69 @@ import { fileURLToPath } from 'node:url' import { describe, expect, it } from 'vitest' /** - * Every statement of a tmux minimum names the core floor. + * Every statement of a tmux minimum names the floor of the port it is about. * * A requirement phrased "tmux X or newer", "tmux X+" or "tmux X through Y" * is a support promise. These pages, example prerequisites and install notes - * must agree with the floor in the core tmux support contract. Facts about - * tmux itself, such as the release that added a format field, use other - * phrasing, or follow "on", and are not matched. Staged port guides come from - * pinned port revisions and carry their own floor. + * must agree with the floor in the core tmux support contract, which is 3.3a + * unless the port declares another. Facts about tmux itself, such as the + * release that added a format field, use other phrasing, or follow "on", and + * are not matched. Staged port guides come from pinned port revisions and + * carry their own floor. */ const FLOOR = '3.3a' + +/** + * Ports whose own documented floor is not the core one. Every statement below + * the path names that floor, so a page for the port cannot quietly claim the + * core one. A path ending in "/" covers every file below it. + */ +export const PORT_FLOORS = [ + { + path: 'site/src/content/docs/ports/py/', + version: '3.2a', + why: 'libtmux and libtmux-mcp declare TMUX_MIN_VERSION and a README floor of 3.2a', + }, + { + path: 'site/src/content/docs/ports/elixir/', + version: '3.3', + why: 'priv/tmux/support.json declares tmux_minimum 3.3, and 3.3 is a required CI release', + }, +] + +/** + * Single statements elsewhere that name another floor on purpose, usually in + * a file that speaks for several ports. An entry that matches no statement + * fails, so an exemption cannot outlive the text it covers. + */ +export const OTHER_FLOORS = [ + { + path: 'site/src/content/_workspace-shared/workspace/guides/installation.md', + version: '3.2a', + why: 'the tmuxp paragraph; tmuxp runs on the libtmux floor, 3.2a', + }, + { + path: 'site/src/data/home-examples.json', + version: '3.2a', + why: 'the Python quickstart prerequisites', + }, + { + path: 'site/src/data/home-examples.json', + version: '3.3', + why: 'the Elixir quickstart prerequisites; priv/tmux/support.json declares tmux_minimum 3.3', + }, + { + path: 'site/src/lib/ports.ts', + version: '3.3', + why: 'the Elixir install notes; priv/tmux/support.json declares tmux_minimum 3.3', + }, + { + path: 'site/src/content/docs/ports/rs/concepts/standard-library-core.md', + version: '3.2a', + why: 'documents a prototype pinned at an older libtmux-rs revision whose own README says 3.2a', + }, +] + const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') const RANGES = [ 'site/src/content', @@ -37,6 +90,24 @@ export function minimums(text: string): string[] { return found } +interface Statement { path: string, version: string } +interface Floor { path: string, version: string } + +/** Statements that disagree with their floor, then entries that excuse or require nothing. */ +export function mismatches(statements: Statement[], ports: Floor[], others: Floor[]): string[] { + const covers = (entry: Floor, statement: Statement) => + statement.version === entry.version && statement.path.startsWith(entry.path) + const expected = (statement: Statement) => + ports.find((port) => statement.path.startsWith(port.path))?.version ?? FLOOR + const wrong = statements + .filter((statement) => statement.version !== expected(statement) && !others.some((entry) => covers(entry, statement))) + .map((statement) => `${statement.path}: tmux ${statement.version}, expected ${expected(statement)}`) + const unused = [...ports, ...others] + .filter((entry) => !statements.some((statement) => covers(entry, statement))) + .map((entry) => `stale entry: ${entry.path} names tmux ${entry.version}, which no statement there states`) + return [...wrong, ...unused] +} + describe('tmux minimum statements', () => { it('recognizes each phrasing of a minimum', () => { expect(minimums('Use tmux 3.2a or newer.')).toEqual(['3.2a']) @@ -47,17 +118,45 @@ describe('tmux minimum statements', () => { expect(minimums('The example ran on tmux 3.2a and 3.7c.')).toEqual([]) }) - it('names the core floor everywhere a minimum is stated', () => { - const stale: string[] = [] - let seen = 0 + it('names the floor of its port everywhere a minimum is stated', () => { + const statements: Statement[] = [] for (const path of RANGES.flatMap(files)) { if (!/\.(md|mdx|json|ts)$/.test(path) || path.includes('/_staged/')) continue - for (const version of minimums(readFileSync(join(ROOT, path), 'utf8'))) { - seen += 1 - if (version !== FLOOR) stale.push(`${path}: tmux ${version}`) - } + for (const version of minimums(readFileSync(join(ROOT, path), 'utf8'))) statements.push({ path, version }) + } + expect(statements.length).toBeGreaterThan(50) + expect(mismatches(statements, PORT_FLOORS, OTHER_FLOORS)).toEqual([]) + }) + + it('lists each floor in the support guide', () => { + const guide = readFileSync(join(ROOT, 'site/src/content/docs/guides/tmux-support.md'), 'utf8') + const section = guide.slice(guide.indexOf('## Minimum by port'), guide.indexOf('## The core minimum')) + expect(section).not.toBe('') + for (const version of [FLOOR, ...PORT_FLOORS.map((port) => port.version)]) { + expect(section).toContain(`: tmux ${version}.`) } - expect(seen).toBeGreaterThan(50) - expect(stale).toEqual([]) + }) + + it('fails a wrong floor, a port page on the core floor and an entry that matches nothing', () => { + const ports = [{ path: 'a/', version: '3.2a' }] + const others = [{ path: 'm.md', version: '3.3' }] + const clean = [ + { path: 'a/b.md', version: '3.2a' }, + { path: 'c.md', version: FLOOR }, + { path: 'm.md', version: '3.3' }, + ] + expect(mismatches(clean, ports, others)).toEqual([]) + expect(mismatches([...clean, { path: 'c.md', version: '3.2a' }], ports, others)).toEqual([ + 'c.md: tmux 3.2a, expected 3.3a', + ]) + expect(mismatches([...clean, { path: 'a/d.md', version: FLOOR }], ports, others)).toEqual([ + 'a/d.md: tmux 3.3a, expected 3.2a', + ]) + expect(mismatches(clean.slice(1), ports, others)).toEqual([ + 'stale entry: a/ names tmux 3.2a, which no statement there states', + ]) + expect(mismatches(clean.slice(0, 2), ports, others)).toEqual([ + 'stale entry: m.md names tmux 3.3, which no statement there states', + ]) }) }) From 256fa6b0e157a4215aa8ebd8471e0670043e94c9 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 09:12:51 -0500 Subject: [PATCH 43/53] fix(site[data]) State tmux 3.3a in the JVM example intros why: The tmux 3.3a sweep changed the JVM example template in jvm-examples.ts to "tmux 3.3a through 3.7c", but the Java, Kotlin and Scala API models still hold the text it produced before, so the complete examples the site renders kept telling readers 3.2a was enough. libtmux-java master declares 3.3a for the core, the MCP server and the workspace CLI, and enforces it in TmuxVersion.MINIMUM. Main made the same template and model change for the other ports in 924496b03 and c65a5360d; the JVM ports were left because their pages still said 3.2a. Evidence, libtmux-java master 08ee74b, read on 2026-10-24: - libtmux/src/main/java/io/github/libtmux/TmuxVersion.java declares MINIMUM = new TmuxVersion(3, 3, "a") https://github.com/libtmux/libtmux-java/blob/08ee74b26ceee96c399daf9348bebcbade7e5188/libtmux/src/main/java/io/github/libtmux/TmuxVersion.java#L45 - README: "tmux 3.3a through 3.7c" for ordinary operations https://github.com/libtmux/libtmux-java/blob/08ee74b26ceee96c399daf9348bebcbade7e5188/README.md#L718 - The Kotlin and Scala READMEs state the same floor. https://github.com/libtmux/libtmux-java/blob/08ee74b26ceee96c399daf9348bebcbade7e5188/libtmux-scala/README.md#L92 what: - Replace "tmux 3.2a through 3.7c" with "tmux 3.3a through 3.7c" in the generated example intros of the Java, Kotlin and Scala models, the substitution a regeneration at the unchanged pin makes - Leave the text extracted from the pinned sources alone; it changes with a pin bump --- site/src/data/api/java.json | 2 +- site/src/data/api/kotlin.json | 2 +- site/src/data/api/scala.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/src/data/api/java.json b/site/src/data/api/java.json index bd1539af5..d378fd8fa 100644 --- a/site/src/data/api/java.json +++ b/site/src/data/api/java.json @@ -1 +1 @@ -{"port":"java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model@0.0.1","symbols":[{"id":"io.github.libtmux.batch.Batch.Batch","name":"Batch","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Several tmux commands in one invocation, each with an outcome of its own.","body":"tmux runs a group until a command fails and then discards the rest, so the number of replies\ncannot say which command failed: an error in the first position and an error in the last both\ncome back as one nonzero exit. Counting replies is wrong in every position but one.\n\nA marker is therefore interleaved after each operation. Markers are discarded along with\neverything else after a failure, so the last marker seen is exactly the last operation tmux ran,\nand the operations either side of that boundary are known rather than guessed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.Batch","name":"Batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"public Batch(Function>, CommandResult> dispatch)","params":[{"name":"dispatch","type":"Function>, CommandResult>","doc":"runs the assembled commands in one invocation and returns tmux's raw reply"}],"typeScopeBoundary":false}],"doc":{"summary":"Collects operations to run together."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.add","name":"add","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Batch","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Adds one tmux command, its arguments already separate elements."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.add","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.add","product":"core","slug":"io-github-libtmux-batch-batch-batch-add"},{"id":"io.github.libtmux.batch.Batch.Batch.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many operations have been collected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.size","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.size","product":"core","slug":"io-github-libtmux-batch-batch-batch-size"},{"id":"io.github.libtmux.batch.Batch.Batch.length","name":"length","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int length()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses.","body":"tmux packs a command into MAX_IMSGSIZE, 16384 bytes, and refuses a longer one with\n{@code command too long}; measured, it takes about 16300 of them. A batch taken from a handle\ntravels as this one string plus the guard that fences it, so it costs this and a little more.\nOne dispatched as separate arguments costs less, since nothing there is quoted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.length","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.length","product":"core","slug":"io-github-libtmux-batch-batch-batch-length"},{"id":"io.github.libtmux.batch.Batch.Batch.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false,"returnsDoc":"one result per operation, in submission order"}],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.run","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.run","product":"core","slug":"io-github-libtmux-batch-batch-batch-run"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult","name":"BatchResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record BatchResult(@ReadOnly List operations)","params":[{"name":"operations","type":"List","doc":"one result per submitted operation, in submission order"}]}],"typeScopeBoundary":false,"doc":{"summary":"What became of every operation in one batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran every operation and all of them succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-succeeded"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.failure","name":"failure","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public Optional failure()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The operation that failed, if one did. Everything after it was discarded by tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.failure","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.failure","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-failure"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.toString","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-tostring"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.operations","name":"operations","kind":"method","parent":"io.github.libtmux.batch.BatchResult.BatchResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"one result per submitted operation, in submission order"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.operations","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.operations","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-operations"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","name":"OperationOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What became of one operation in a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.COMPLETE","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-complete"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","name":"FAILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it failed. Everything after it was discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.FAILED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-failed"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","name":"SKIPPED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux never reached it, because an earlier operation failed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.SKIPPED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-skipped"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Whether tmux applied it cannot be determined."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.UNKNOWN","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-unknown"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult","name":"OperationResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationResult(\n @ReadOnly List argv,\n OperationOutcome outcome,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"argv","type":"List","doc":"the operation as it was submitted"},{"name":"outcome","type":"OperationOutcome","doc":"what became of it"},{"name":"stdout","type":"List","doc":"the lines this operation produced, separated from its neighbours'"},{"name":"stderr","type":"List","doc":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"}]}],"typeScopeBoundary":false,"doc":{"summary":"One operation's own result within a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran this operation and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-succeeded"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: argv and output carry pane content and socket paths."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.toString","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-tostring"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.argv","name":"argv","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the operation as it was submitted"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.argv","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.argv","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-argv"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what became of it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.outcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-outcome"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines this operation produced, separated from its neighbours'"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stdout","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stdout"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stderr","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stderr"},{"id":"io.github.libtmux.BufferInfo.BufferInfo","name":"BufferInfo","kind":"class","modifiers":[],"signatures":[{"raw":"public record BufferInfo(String name, int size)","params":[{"name":"name","type":"String","doc":"the buffer name, which is how every other buffer command addresses it"},{"name":"size","type":"int","doc":"how many bytes it holds"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux paste buffer, as a listing described it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.name","name":"name","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the buffer name, which is how every other buffer command addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.name","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-name"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.size","name":"size","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many bytes it holds"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.size","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-size"},{"id":"io.github.libtmux.Buffers.Buffers","name":"Buffers","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux server's paste buffers.","body":"Buffers are the server's, not a session's: anything copied in one session can be pasted into\nanother. They are addressed by name rather than by the stack position tmux also accepts, because\na position moves whenever anything else is copied."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","name":"EXACT_NAMED_DELETE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[],"typeScopeBoundary":true,"type":"TmuxVersion","value":"new TmuxVersion(3, 4, \"\")","doc":{"summary":"tmux's own history dates the fix to {@code 0f6227f4} (\"When deleting or renaming a buffer and a buffer name is specified, complain if the buffer doesn't exist instead of silently deleting or renaming the most recent buffer\", GitHub issue 3205); {@code git tag --contains} places it on {@code 3.4} and nothing earlier, so 3.3 and 3.3a both have the bug. Confirmed on the matrix: {@code set-buffer -b a x; set-buffer -b b y; delete-buffer -b nope} answers {@code unknown buffer: nope} on 3.4 and leaves both buffers, but on 3.3a it exits 0 and takes {@code b}, the one {@code delete-buffer} was never told to touch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.EXACT_NAMED_DELETE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","product":"core","slug":"io-github-libtmux-buffers-buffers-exact_named_delete"},{"id":"io.github.libtmux.Buffers.Buffers.Buffers","name":"Buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"Buffers(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list, empty if the live server holds no buffers","raises":[{"type":"LibTmuxException","doc":"if the listing fails, including when no daemon is running"}]}],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.list","product":"core","slug":"io-github-libtmux-buffers-buffers-list"},{"id":"io.github.libtmux.Buffers.Buffers.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String contents)","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there.","body":"The contents end the options, because they are the one argument here tmux would otherwise\nread as flags: {@code set(\"clip\", \"-nfoo\")} used to rename the buffer to {@code foo} and write\nnothing, and report success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.set","product":"core","slug":"io-github-libtmux-buffers-buffers-set"},{"id":"io.github.libtmux.Buffers.Buffers.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.READ)\n public String show(String name)","params":[{"name":"name","type":"String"}],"returns":"String","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"What a buffer holds, without any line breaks it ends with.","body":"tmux prints a buffer as it is, and the transport drops trailing blank lines, so {@code \"a\"}\nand {@code \"a\\n\"} read the same. A marker printed after it cannot keep them: tmux writes a\nbuffer through its file stream, which a second command in the same invocation interrupts.\n{@link #save} writes the exact bytes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.show","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.show","product":"core","slug":"io-github-libtmux-buffers-buffers-show"},{"id":"io.github.libtmux.Buffers.Buffers.delete","name":"delete","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void delete(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, whose named deletion silently removes the top buffer when the name is absent"}]}],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.delete","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.delete","product":"core","slug":"io-github-libtmux-buffers-buffers-delete"},{"id":"io.github.libtmux.Buffers.Buffers.save","name":"save","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void save(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.save","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.save","product":"core","slug":"io-github-libtmux-buffers-buffers-save"},{"id":"io.github.libtmux.Buffers.Buffers.load","name":"load","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void load(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.load","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.load","product":"core","slug":"io-github-libtmux-buffers-buffers-load"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec","name":"CaptureSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What part of a pane to read, and how.","body":"The shape {@link SplitSpec} uses. A plain {@link Pane#capture()} reads what is on screen; this\nis how to reach the scrollback above it, or to keep what tmux otherwise strips.\n\nLines are numbered from the top of the visible area, so {@code 0} is the first row on screen\nand negatives climb into the history. {@code fromStartOfHistory()} is the whole of what tmux\nkept.","examples":[{"lang":"java","code":"List everything = pane.capture(c -> c.fromStartOfHistory());\nList lastTen = pane.capture(c -> c.from(-10));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec","product":"core","slug":"io-github-libtmux-capturespec-capturespec"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder that reads what is on screen and nothing else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-17ql"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"List argv(String target, TmuxVersion running)","params":[{"name":"target","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that reads the pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","product":"core","slug":"io-github-libtmux-capturespec-capturespec-argv"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the flag it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-v00t"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","name":"from","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder from(int line)","params":[{"name":"line","type":"int","doc":"{@code 0} is the first row on screen; negatives climb into the scrollback"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at a line, counted from the top of the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.from","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-from"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","name":"fromStartOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromStartOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at the oldest line tmux still has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromStartOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromstartofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","name":"to","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder to(int line)","params":[{"name":"line","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at a line, counted the same way as {@link #from}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.to","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-to"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","name":"toEndOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder toEndOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at the newest line, including anything below the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.toEndOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-toendofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","name":"withEscapeSequences","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withEscapeSequences()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the escape sequences that colour and position the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withEscapeSequences","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withescapesequences"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","name":"escapingNonPrintable","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder escapingNonPrintable()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Writes anything unprintable as an octal escape rather than dropping it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.escapingNonPrintable","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-escapingnonprintable"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","name":"joiningWrappedLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder joiningWrappedLines()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Joins a line tmux wrapped back into the one line it was."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.joiningWrappedLines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-joiningwrappedlines"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","name":"preservingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder preservingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the spaces at the end of a line, which tmux otherwise drops."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.preservingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-preservingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","name":"trimmingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder trimmingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Drops trailing space and the empty lines below the content. Requires tmux 3.4."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.trimmingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-trimmingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","name":"fromAlternateScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromAlternateScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads the alternate screen, which is what a full-screen program draws on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromAlternateScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromalternatescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","name":"pendingOnly","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder pendingOnly()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads only output tmux has not drawn yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.pendingOnly","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-pendingonly"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","name":"fromModeScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromModeScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads what a mode is showing rather than the pane beneath it. Requires tmux 3.6."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":211,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromModeScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-frommodescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","name":"withHyperlinks","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withHyperlinks()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps hyperlink markers. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withHyperlinks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withhyperlinks"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","name":"withLineNumbers","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withLineNumbers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Prefixes each line with its number. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":223,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withLineNumbers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withlinenumbers"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public CaptureSpec build()","params":[],"returns":"CaptureSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-build"},{"id":"io.github.libtmux.catalog.Advanced.Advanced","name":"Advanced","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target({TYPE, METHOD})\npublic @interface Advanced","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Public for orchestration across processes or clients, such as the MCP server's pane reservations; not part of the surface a language facade mirrors."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Advanced.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Advanced","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Advanced.Advanced","product":"core","slug":"io-github-libtmux-catalog-advanced-advanced"},{"id":"io.github.libtmux.catalog.Kind.Kind","name":"Kind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What shape a facade needs to give one operation of the core API.","body":"A Kotlin or Scala wrapper, or a generated reference page, reads this off {@link Operation}\nrather than guessing from a method's name or return type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind","product":"core","slug":"io-github-libtmux-catalog-kind-kind"},{"id":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","name":"CAPTURED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"No tmux I/O: answers from the handle's own capture, or collects a command to send later. Field accessors, navigation within one capture, and building a batch or chain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.CAPTURED","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","product":"core","slug":"io-github-libtmux-catalog-kind-kind-captured"},{"id":"io.github.libtmux.catalog.Kind.Kind.READ","name":"READ","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Contacts tmux and changes nothing: listings, captures, {@code show-*}, expansion, liveness, lookups."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.READ","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.READ","product":"core","slug":"io-github-libtmux-catalog-kind-kind-read"},{"id":"io.github.libtmux.catalog.Kind.Kind.MUTATION","name":"MUTATION","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Changes tmux state: sending keys, renaming, killing, splitting, setting options, pasting, resizing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.MUTATION","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.MUTATION","product":"core","slug":"io-github-libtmux-catalog-kind-kind-mutation"},{"id":"io.github.libtmux.catalog.Kind.Kind.WAIT","name":"WAIT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Blocks until something else happens; the waiting itself changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.WAIT","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.WAIT","product":"core","slug":"io-github-libtmux-catalog-kind-kind-wait"},{"id":"io.github.libtmux.catalog.Kind.Kind.STREAM","name":"STREAM","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Returns a subscription, stream, or publisher of events."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.STREAM","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.STREAM","product":"core","slug":"io-github-libtmux-catalog-kind-kind-stream"},{"id":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","name":"LIFECYCLE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Opens, attaches, derives, or closes a resource."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.LIFECYCLE","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","product":"core","slug":"io-github-libtmux-catalog-kind-kind-lifecycle"},{"id":"io.github.libtmux.catalog.Operation.Operation","name":"Operation","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target(METHOD)\npublic @interface Operation","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Classifies one public method of the core API as a tmux operation of a given {@link Kind}.","body":"Every public method that performs or describes a tmux operation carries this, so a facade\nnever has to infer the shape of a call from its name or signature."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation","product":"core","slug":"io-github-libtmux-catalog-operation-operation"},{"id":"io.github.libtmux.catalog.Operation.Operation.value","name":"value","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"Kind value();","params":[],"returns":"Kind","typeScopeBoundary":false}],"doc":{"summary":"What shape this operation gives a facade."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.value","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.value","product":"core","slug":"io-github-libtmux-catalog-operation-operation-value"},{"id":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","name":"tmuxSince","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"String tmuxSince() default \"\";","params":[],"returns":"String","typeScopeBoundary":false}],"value":"\"\"","doc":{"summary":"The first tmux release that has this operation, when it is newer than the supported floor, 3.2a. Empty when the whole supported range has it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.tmuxSince","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","product":"core","slug":"io-github-libtmux-catalog-operation-operation-tmuxsince"},{"id":"io.github.libtmux.Channel.Channel","name":"Channel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's wait-for channels, named once.","body":"A channel is server-wide and shared by everything on it, including programs running in panes.\nNothing creates or destroys one: a name either has a signal remembered against it or does not.\n\ntmux's own {@code wait-for} has two traps, and this exists to close both. It exits successfully\nwhen the server dies under the waiter, which is indistinguishable from a real signal, so the\nserver is checked afterwards rather than believed. And a signal sent when nobody is waiting is\nremembered, satisfying the next wait whenever that happens — possibly in a later run of a\ndifferent program — so {@link #drain()} is how a caller starts from a known state on a channel\nwhose history is not its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.Channel","name":"Channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"Channel(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name this channel is known by on its server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.name","product":"core","slug":"io-github-libtmux-channel-channel-name"},{"id":"io.github.libtmux.Channel.Channel.signal","name":"signal","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void signal()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Signals the channel, waking one waiter, or being remembered until something waits.","body":"{@code -S} takes no argument of its own — it says which of wait-for's three modes this is —\nso the name that follows is a positional and needs the options ended before it, exactly as\nthe wait does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.signal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.signal","product":"core","slug":"io-github-libtmux-channel-channel-signal"},{"id":"io.github.libtmux.Channel.Channel.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which is never simply \"successfully\"","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits for something to signal the channel."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.await","product":"core","slug":"io-github-libtmux-channel-channel-await"},{"id":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason awaitReservingCapacity(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.DispatchException","doc":"if the wait could not be dispatched"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits while preserving process capacity for a call through this server that signals it.","body":"Use this when the waiter and its release share a bounded transport. A wait released outside\nthat transport should use {@link #await}; reserving capacity for it only rejects useful\nconcurrency."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.awaitReservingCapacity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","product":"core","slug":"io-github-libtmux-channel-channel-awaitreservingcapacity"},{"id":"io.github.libtmux.Channel.Channel.drain","name":"drain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public boolean drain() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether a signal was there to consume","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Consumes a signal already waiting, so a stale one cannot satisfy a later wait."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.drain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.drain","product":"core","slug":"io-github-libtmux-channel-channel-drain"},{"id":"io.github.libtmux.Channel.Channel.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.toString","product":"core","slug":"io-github-libtmux-channel-channel-tostring"},{"id":"io.github.libtmux.Client.Client","name":"Client","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One attached tmux client, as one capture saw it.","body":"Identity is the server and the client name, which is how tmux addresses it. What it is\nattached to is state: a client can switch sessions without becoming a different client.\n\n{@link #name()}, {@link #session()}, and {@link #attachment()} return what the capture holds\nand do no I/O; {@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client","product":"core","slug":"io-github-libtmux-client-client"},{"id":"io.github.libtmux.Client.Client.Client","name":"Client","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"Client(Server server, ServerSnapshot snapshot, ClientState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"ClientState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.Client","product":"core","slug":"io-github-libtmux-client-client-client"},{"id":"io.github.libtmux.Client.Client.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.name","product":"core","slug":"io-github-libtmux-client-client-name"},{"id":"io.github.libtmux.Client.Client.detach","name":"detach","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detach()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running.","body":"Detaching is not killing: the session outlives the client, which is the reason tmux exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detach","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detach","product":"core","slug":"io-github-libtmux-client-client-detach"},{"id":"io.github.libtmux.Client.Client.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachOthers()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detachOthers","product":"core","slug":"io-github-libtmux-client-client-detachothers"},{"id":"io.github.libtmux.Client.Client.switchTo","name":"switchTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void switchTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this client to another session.","body":"The client keeps its identity: switching is a change of what it is looking at, not a\ndetach and a fresh attach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.switchTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.switchTo","product":"core","slug":"io-github-libtmux-client-client-switchto"},{"id":"io.github.libtmux.Client.Client.redraw","name":"redraw","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void redraw()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to redraw this client.","body":"Not {@link #refresh()}, which takes a new capture of what tmux knows. This one is tmux's\n{@code refresh-client}, and it changes the terminal rather than this handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.redraw","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.redraw","product":"core","slug":"io-github-libtmux-client-client-redraw"},{"id":"io.github.libtmux.Client.Client.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.server","product":"core","slug":"io-github-libtmux-client-client-server"},{"id":"io.github.libtmux.Client.Client.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.snapshot","product":"core","slug":"io-github-libtmux-client-client-snapshot"},{"id":"io.github.libtmux.Client.Client.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional session()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.session","product":"core","slug":"io-github-libtmux-client-client-session"},{"id":"io.github.libtmux.Client.Client.attachment","name":"attachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional attachment()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command.","body":"Empty when the capture shows the client attached to nothing, or shows a session whose\nactive window or pane the capture did not include."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.attachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.attachment","product":"core","slug":"io-github-libtmux-client-client-attachment"},{"id":"io.github.libtmux.Client.Client.fetchAttachment","name":"fetchAttachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional fetchAttachment()","params":[],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached"}]}],"doc":{"summary":"Takes a new capture and returns what this client is looking at now.","body":"Named to say it dispatches, unlike {@link #attachment()}. Every call is one live capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.fetchAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.fetchAttachment","product":"core","slug":"io-github-libtmux-client-client-fetchattachment"},{"id":"io.github.libtmux.Client.Client.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Client refresh()","params":[],"returns":"Client","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached, or a different daemon answers on the endpoint"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this client as it is now.","body":"This handle remains unchanged, as every handle's does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.refresh","product":"core","slug":"io-github-libtmux-client-client-refresh"},{"id":"io.github.libtmux.Client.Client.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.equals","product":"core","slug":"io-github-libtmux-client-client-equals"},{"id":"io.github.libtmux.Client.Client.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.hashCode","product":"core","slug":"io-github-libtmux-client-client-hashcode"},{"id":"io.github.libtmux.Client.Client.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.toString","product":"core","slug":"io-github-libtmux-client-client-tostring"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment","name":"ClientAttachment","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientAttachment(Session session, Window activeWindow, Pane activePane)","params":[{"name":"session","type":"Session","doc":"the session the client is attached to"},{"name":"activeWindow","type":"Window","doc":"that session's active window"},{"name":"activePane","type":"Pane","doc":"that window's active pane, which is what the client's keystrokes reach"}]}],"typeScopeBoundary":false,"doc":{"summary":"What a client was looking at.","body":"All three are present together or not at all. A client attached to a session is looking at\nexactly one window of it and one pane of that window; an attachment holding only some of those\nwould describe a state tmux does not have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.session","name":"session","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Session"}],"doc":{"summary":"the session the client is attached to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.session","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-session"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Window"}],"doc":{"summary":"that session's active window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activewindow"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Pane"}],"doc":{"summary":"that window's active pane, which is what the client's keystrokes reach"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activepane"},{"id":"io.github.libtmux.CommandChain.CommandChain","name":"CommandChain","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs: a {@code new-window} makes the new window\ncurrent, a following {@code split-window} splits that window, and a following {@code send-keys}\ntypes into the pane that split produced. None of these steps names a target, and that is the\npoint — the alternative is a round trip per step to learn the id of the thing just created.\n\nThe whole chain is one tmux invocation, and every step is attributed individually, so a chain\nthat fails halfway says which step failed and which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.CommandChain","name":"CommandChain","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"CommandChain(Batch batch, Supplier running)","params":[{"name":"batch","type":"Batch"},{"name":"running","type":"Supplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.newWindow","name":"newWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain newWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Creates a window and makes it the one following steps act on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.newWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-newwindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.renameWindow","name":"renameWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain renameWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Renames the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.renameWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.renameWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-renamewindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitLeftRight()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a left and a right one.","body":"Named for what it produces rather than for tmux's {@code -h}, which reads as though it\ndescribed the divider."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitLeftRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splitleftright"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitTopBottom()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a top and a bottom one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitTopBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splittopbottom"},{"id":"io.github.libtmux.CommandChain.CommandChain.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Types a line into the current pane and presses Enter, which is how a command gets run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.sendLine","product":"core","slug":"io-github-libtmux-commandchain-commandchain-sendline"},{"id":"io.github.libtmux.CommandChain.CommandChain.arrange","name":"arrange","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandChain arrange(String layout)","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout, which on some versions ends the whole server rather than the command"},{"type":"UnsupportedFeatureException","doc":"if the layout name arrived after this release, which tmux cannot tell from any other name it does not know"}]}],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.arrange","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.arrange","product":"core","slug":"io-github-libtmux-commandchain-commandchain-arrange"},{"id":"io.github.libtmux.CommandChain.CommandChain.then","name":"then","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"CommandChain","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Adds any tmux command, for whatever this class does not name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.then","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.then","product":"core","slug":"io-github-libtmux-commandchain-commandchain-then"},{"id":"io.github.libtmux.CommandChain.CommandChain.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false}],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.run","product":"core","slug":"io-github-libtmux-commandchain-commandchain-run"},{"id":"io.github.libtmux.Commands.Commands","name":"Commands","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The commands this tmux knows, read without starting a server to answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.Commands","name":"Commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"Commands(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.list","product":"core","slug":"io-github-libtmux-commands-commands-list"},{"id":"io.github.libtmux.control.ControlClient.ControlClient","name":"ControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"This is what a semicolon group cannot be. tmux discards a group after its first failure, so a\nclient has to infer which command failed; here each request is independent, so a failure\ndiscards nothing behind it.\n\nReplies arrive in request order, so the writer sends one request at a time and matches its\nreply by position. A reply is the first block tmux writes for the request: an acknowledgement,\nwhich work the command deferred may outlive. What that command queued, as {@code if-shell}\nqueues its branch, and what a hook ran, arrive as blocks of their own, and none of them is taken\nfor the next request's reply. A deadline before the writer picks a request writes nothing; a\ndeadline after that point ends the client because the next reply could no longer be attributed\nsafely.\n\nThe reader and writer are platform threads. A library does not own the virtual-thread\nscheduler: a caller's CPU-bound task that never blocks keeps its carrier, and either thread\nunable to run stops the client from making progress. The reader only\nresolves replies and fills bounded subscription buffers; subscriber code runs on the thread that\npulls a value.\n\n**Threads.** {@link #send} may be called from several threads at once: requests\nqueue in the order they arrive and each caller gets its own reply. A subscription is read by one\nthread at a time.\n\n**Close it.** The client holds an attached tmux client, which is what makes tmux\npush output to it, and closing is what detaches that client and stops its threads. A client that\nis forgotten does not hold the JVM open — its threads are daemons — and the attached tmux client\nexits once the JVM does, because it reads its commands from a pipe that closes with it. Until then\nit is listed among the session's clients like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","name":"attachUnfenced","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session, Duration timeout)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches a control client to whatever server now answers this endpoint.","body":"Attaching is what makes tmux push {@code %output}: a control client that never attaches is\ntold about command replies and nothing else.\n\nThis does not check which tmux process answered. A socket can be taken over by a new\nserver that reuses the same session id. {@link io.github.libtmux.Server#control} attaches to\nthe process a capture already named; prefer it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attachUnfenced","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attachunfenced"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attach","name":"attach","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ServerConfig config, SessionId session, long serverPid, String serverVersion, Duration timeout)","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long","doc":"the tmux process a capture recorded"},{"name":"serverVersion","type":"String","doc":"the version text that process reported, compared as text"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ControlCarrier carrier,\n ServerConfig config,\n SessionId session,\n long serverPid,\n java.util.OptionalLong serverStartTime,\n String serverVersion,\n Duration timeout)","params":[{"name":"carrier","type":"ControlCarrier"},{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"java.util.OptionalLong","doc":"when the captured process started, as {@code #{start_time}} reported it; compared when present, since a restarted tmux can be given the same pid and version"},{"name":"serverVersion","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches, then leaves unless the live server is still the process that was captured.","body":"A pid can be reused, so the version tmux reports is part of the check. A mismatch detaches\nbefore this client changes the server: layout refresh runs only after the check passes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attach","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attach","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attach"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.send","name":"send","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv)","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv, Duration timeout)","params":[{"name":"argv","type":"List","doc":"the command, its arguments already separate elements"},{"name":"timeout","type":"Duration","doc":"how long to wait for tmux to answer"}],"returns":"ControlReply","typeScopeBoundary":false,"returnsDoc":"tmux's reply","raises":[{"type":"DispatchException","doc":"if the request cannot complete; its {@link DispatchException#outcome() outcome} is {@link DispatchOutcome#NOT_DISPATCHED} until the writer picks the request and {@link DispatchOutcome#UNKNOWN} afterwards"}]}],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.send","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.send","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-send"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the client is still running.","body":"A control client is a client of the server it talks to, so it ends when that server does.\nA carrier holding one needs to tell \"this command failed\" from \"there is no longer anything\nto send commands to\", which are the same exception until this is asked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":408,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.isAlive","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-isalive"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","name":"subscribeOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeOutput(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to terminal output tmux pushes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":421,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeoutput"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","name":"subscribeEvents","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeEvents(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to state changes tmux volunteers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":434,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeEvents","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeevents"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.watch","name":"watch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply watch(String name, String target, String format)","params":[{"name":"name","type":"String","doc":"what to call it; registering the same name again replaces the old one"},{"name":"target","type":"String","doc":"{@code %*} for every pane, {@code @*} for every window, a specific {@code %id} or {@code @id}, or the attached session (pass {@code \"\"} - see below)"},{"name":"format","type":"String","doc":"a tmux format, such as {@code #{pane_current_command}}"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to report a format whenever its value changes.","body":"tmux re-expands the format about once a second and writes a {@code subscription-changed}\nevent only when the result differs from last time, so the comparison happens in the server and\na client that subscribes does nothing at all between changes. This is what makes watching a\nserver cost nothing while it is idle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":452,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.watch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.watch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-watch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","name":"unwatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply unwatch(String name)","params":[{"name":"name","type":"String"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Stops a watch. tmux reads a name with no colon in it as one to remove."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unwatch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unwatch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.close","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-close"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux parses a control-mode request as one line, so an argument has to survive its lexer. Single quotes preserve everything except a single quote, which is closed, escaped and reopened."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":524,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.line","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-line"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes.","body":"Empty when the process wrote none. {@link #standardErrorTruncated()} says the stream\ncontinued past that bound. The text is whatever had been read when this is called."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":580,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardError","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderror"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether {@link #standardError()} stopped before the process finished writing it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":588,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardErrorTruncated","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unescape","name":"unescape","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static byte[] unescape(byte[] line, int from)","params":[{"name":"line","type":"byte[]"},{"name":"from","type":"int"}],"returns":"byte[]","typeScopeBoundary":true}],"doc":{"summary":"tmux writes a control byte or a backslash as a three-digit octal escape, and the rest raw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unescape","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unescape","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unescape"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent","name":"ControlEvent","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlEvent(\n String kind, @ReadOnly List fields, Optional value, Notification notification)","params":[{"name":"kind","type":"String","doc":"the notification name, such as {@code window-add} or {@code subscription-changed}"},{"name":"fields","type":"List","doc":"the words that followed it, before any {@code :} separator"},{"name":"value","type":"Optional","doc":"what followed a {@code :} separator, which only a subscription carries"},{"name":"notification","type":"Notification","doc":"the same notification, typed"}]}],"typeScopeBoundary":false,"doc":{"summary":"Something tmux volunteered, rather than an answer to a request.","body":"A control client is told about changes as they happen — a window appearing, a session being\nrenamed, a layout moving — without anything asking. That is the difference between watching a\nserver and polling one.\n\nTwo readings of one line. {@link #notification()} is typed, for matching on: a sealed set of\nwhat tmux sends, with a {@link Notification.Unknown} case so that a notification a newer tmux adds\nstill arrives rather than being dropped. {@link #kind()}, {@link #fields()} and {@link #value()}\nare what tmux wrote, word by word, for anything the typed reading does not cover."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","name":"ControlEvent","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public ControlEvent(String kind, List fields, Optional value)","params":[{"name":"kind","type":"String"},{"name":"fields","type":"List"},{"name":"value","type":"Optional"}],"typeScopeBoundary":false}],"doc":{"summary":"An event from its words, with the typed reading taken from them.","body":"A name is rejoined from the words with single spaces, so one tmux wrote with a run of them\nreads back with one. {@link #parse} reads the line tmux wrote and has no such loss."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"static Optional parse(String line)","params":[{"name":"line","type":"String","doc":"the line as tmux wrote it, leading {@code %} and all"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"the event, or empty when the line is not a notification"}],"doc":{"summary":"Reads one notification line."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.parse","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-parse"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","name":"subscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional subscription()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name a subscription was registered under, for an event that came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.subscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-subscription"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","name":"paneId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional paneId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a pane, which is how an event says which pane it is about."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.paneId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-paneid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","name":"windowId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional windowId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.windowId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-windowid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the notification name, such as {@code window-add} or {@code subscription-changed}"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-kind"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","name":"fields","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the words that followed it, before any {@code :} separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.fields","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-fields"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.value","name":"value","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"what followed a {@code :} separator, which only a subscription carries"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.value","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-value"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","name":"notification","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Notification"}],"doc":{"summary":"the same notification, typed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-notification"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads bounded physical lines from a control client's byte stream."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"ControlLineReader(InputStream source, int maxBytes)","params":[{"name":"source","type":"InputStream"},{"name":"maxBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","name":"Line","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@SuppressWarnings(\"ArrayRecordComponent\") // Internal: read once by the thread that made it.\n record Line(String text, int encodedBytes, byte[] bytes)","params":[{"name":"text","type":"String"},{"name":"encodedBytes","type":"int"},{"name":"bytes","type":"byte[]"}]}],"typeScopeBoundary":true,"doc":{"summary":"A line as text, its length on the wire, and its bytes without the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","name":"text","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-text"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","name":"encodedBytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.encodedBytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-encodedbytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","name":"bytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"byte[]"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-bytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","name":"readLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Nullable\n Line readLine() throws IOException","params":[],"returns":"Line","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.readLine","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-readline"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Override\n public void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-close"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Frames control-mode replies and encodes requests for tmux's command parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","name":"DEFAULT_MAX_REPLY_BYTES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"type":"int","value":"16 * 1024 * 1024","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-default_max_reply_bytes"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"ControlProtocol()","params":[],"typeScopeBoundary":false},{"raw":"ControlProtocol(int maxReplyBytes)","params":[{"name":"maxReplyBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","name":"Result","kind":"interface","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Result","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-result"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","name":"Awaiting","kind":"enum","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","name":"INSTANCE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting.INSTANCE","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting-instance"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","name":"Notification","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Notification(String line) implements Result","params":[{"name":"line","type":"String"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","name":"line","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","name":"Reply","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Reply(OperationOutcome outcome, @ReadOnly List lines, boolean requested) implements Result","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"One reply block. {@code requested} is tmux's guard flag: set for a command this client wrote, and for any that command queued, and clear for what a hook ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-outcome"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-lines"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","name":"requested","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.requested","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-requested"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","name":"accept","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"Result accept(String line)","params":[{"name":"line","type":"String"}],"returns":"Result","typeScopeBoundary":false},{"raw":"Result accept(String line, int encodedBytes)","params":[{"name":"line","type":"String"},{"name":"encodedBytes","type":"int"}],"returns":"Result","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.accept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-accept"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","name":"LimitExceeded","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","name":"LimitExceeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","signatures":[{"raw":"LimitExceeded(int limit)","params":[{"name":"limit","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded-limitexceeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply","name":"ControlReply","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlReply(\n OperationOutcome outcome, @ReadOnly List lines)","params":[{"name":"outcome","type":"OperationOutcome","doc":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},{"name":"lines","type":"List","doc":"the lines tmux produced between the reply's own begin and end markers"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command's reply in control mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran the command and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.succeeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-succeeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: reply lines carry pane content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.toString","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-tostring"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.outcome","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-outcome"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines tmux produced between the reply's own begin and end markers"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.lines","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-lines"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter","name":"ControlWriter","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the process-pipe write and the FIFO that attributes replies to requests.","body":"A request's reply is the first block tmux writes for it: an acknowledgement, which deferred\nwork may outlive. But tmux answers every command another one queues with a block of its own, as\n{@code if-shell} queues its branch and {@code run-shell} reports its job, numbered like any other.\nSo each request line is followed by a second, {@code display-message -p} of a marker unique to it:\ntmux runs that after everything the request queued, whether the request failed or not. Blocks\nbetween a reply and its marker belong to the request already answered, and are not handed to\nthe next one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","name":"DEFAULT_CAPACITY","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"type":"int","value":"64","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.DEFAULT_CAPACITY","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-default_capacity"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","name":"ControlWriter","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlWriter(BufferedWriter output, int capacity, Consumer failed)","params":[{"name":"output","type":"BufferedWriter"},{"name":"capacity","type":"int"},{"name":"failed","type":"Consumer"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","name":"expectInitial","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"Request expectInitial(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Request","typeScopeBoundary":false}],"doc":{"summary":"Records the attach request dispatched by the process invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.expectInitial","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-expectinitial"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.start","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.start","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-start"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","name":"exchange","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply exchange(String line, Duration timeout)","params":[{"name":"line","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.exchange","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-exchange"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","name":"takeTiming","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"long[] takeTiming(long elapsed)","params":[{"name":"elapsed","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, for the last exchange on this thread; {@code elapsed} as run time when this thread made none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.takeTiming","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-taketiming"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void complete(OperationOutcome outcome, List lines, boolean requested)","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean","doc":"tmux's guard flag: clear for a block a hook ran, which answers no request"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called by the reader for each reply block, in the order tmux wrote them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","name":"readerEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void readerEnded()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.readerEnded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-readerended"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.close","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-close"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.join","name":"join","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void join(long timeoutMillis) throws InterruptedException","params":[{"name":"timeoutMillis","type":"long"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.join","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.join","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-join"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply await(Request request)","params":[{"name":"request","type":"Request"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","name":"Request","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","name":"pick","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean pick()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.pick","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-pick"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","name":"timing","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long[] timing(long now)","params":[{"name":"now","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, up to now. A request never picked spent all of it queued."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.timing","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-timing"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","name":"cancel","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean cancel(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.cancel","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-cancel"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void complete(ControlReply reply)","params":[{"name":"reply","type":"ControlReply"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","name":"fail","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean fail(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.fail","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-fail"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","name":"claimFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean claimFailure()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.claimFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-claimfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","name":"publishFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void publishFailure(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.publishFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-publishfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","name":"isDone","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean isDone()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.isDone","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-isdone"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","name":"remainingNanos","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long remainingNanos()","params":[],"returns":"long","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":410,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.remainingNanos","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-remainingnanos"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean await() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","name":"answer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"ControlReply answer()","params":[],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.answer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-answer"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","name":"awaitTerminal","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void awaitTerminal()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.awaitTerminal","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-awaitterminal"},{"id":"io.github.libtmux.control.Delivery.Delivery","name":"Delivery","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"One step in a control subscription.","body":"A {@link Gap} sits in the sequence where events were discarded, ahead of the events that\nsurvived. It is not a side total: the next read is the gap, and the one after it is whatever\nremains."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery","product":"core","slug":"io-github-libtmux-control-delivery-delivery"},{"id":"io.github.libtmux.control.Delivery.Delivery.kept","name":"kept","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"static T kept(Delivery step)","params":[{"name":"step","type":"Delivery","doc":"the subscription's next step"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"returnsDoc":"the event","raises":[{"type":"IllegalStateException","doc":"if {@code step} is a gap"}]}],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.kept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.kept","product":"core","slug":"io-github-libtmux-control-delivery-delivery-kept"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event","name":"Event","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Event(T value) implements Delivery","params":[{"name":"value","type":"T","doc":"the event"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"An event the subscription kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Event","modifiers":[],"signatures":[{"params":[],"returns":"T"}],"doc":{"summary":"the event"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event.value","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event-value"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap","name":"Gap","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Gap(long missed) implements Delivery","params":[{"name":"missed","type":"long","doc":"the number discarded, at least one"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"How many events were discarded since the previous read because the buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","name":"missed","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Gap","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"the number discarded, at least one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap.missed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap-missed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription","name":"EventSubscription","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"Pulls events volunteered by one control client.","body":"Each subscription owns a fixed-capacity buffer. When that buffer is full, the next event\nreplaces its oldest event. The read that follows is a {@link Delivery.Gap} naming how many were\ndiscarded since the previous read, and only then the events that remain. {@link #droppedCount()}\nis the total across the subscription's life. Another subscription has its own buffer and its own\ngaps. The control protocol reader only offers values to these buffers, and never runs subscriber\ncode beyond a {@link #onReady readiness callback}.\n\nOne reader at a time. Public operations are thread-safe, and reads from different threads one\nafter another are fine — a coroutine or a fiber moves between threads — but a read that overlaps\nanother, or any read once {@link #stream()} or {@link #publisher()} has taken the subscription, is\nrefused with {@link IllegalStateException}: two readers would split one sequence and its gaps\nbetween them. For a second reader, subscribe again; each subscription gets every event.\n\n{@link #next()} blocks. {@link #poll()} never does, and {@link #onReady(Runnable)} arms a\none-shot wakeup for when there is something to poll, so an event loop or a coroutine can read\nwithout holding a thread while nothing arrives.\n\nA subscription does not reconnect. When it ends, {@link #next()} returns empty. {@link\n#cause()} is empty when the caller closed it, and set when the control client ended it. Attach\nagain from the captured session and read a snapshot; nothing already missed is replayed.\n\nEnding is terminal and wakes threads blocked in {@link #next()}. A caller's {@link #close()}\ndiscards buffered events: the caller has chosen not to read them, so they are not overflow and do\nnot increment the loss count. When the control client ends a subscription, what it had already\ndelivered stays readable, a pending gap first, and only then does a read return empty with\n{@link #cause()} set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","name":"EventSubscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"EventSubscription(int capacity, Consumer> onClose)","params":[{"name":"capacity","type":"int"},{"name":"onClose","type":"Consumer>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","name":"offer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void offer(T event)","params":[{"name":"event","type":"T"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.offer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-offer"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","name":"droppedCount","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public long droppedCount()","params":[],"returns":"long","typeScopeBoundary":false,"returnsDoc":"the monotonic loss count"}],"doc":{"summary":"Returns the exact number of events discarded because this subscription's buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.droppedCount","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-droppedcount"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this subscription ended, when the control client ended it.","body":"Empty when the subscription is still open, and empty when the caller closed it. A client\nthat died sets this before the read returns empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-cause"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.next","name":"next","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional> next() throws InterruptedException","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when the subscription has closed and no gap is waiting","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public Optional> next(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, zero to inspect the buffer without waiting"}],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none arrived before the deadline","raises":[{"type":"IllegalArgumentException","doc":"if {@code timeout} is negative"},{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits until the next step arrives or this subscription closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.next","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.next","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-next"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","name":"poll","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional> poll()","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none is buffered; after the subscription has ended, empty once what it held is read","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Returns the next step if one is waiting, without blocking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.poll","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-poll"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","name":"onReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onReady(Runnable callback)","params":[{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Arms a one-shot wakeup for when this subscription has something to read, or has ended.","body":"Runs {@code callback} at once, on this thread, when a step is already waiting or the\nsubscription has ended. Otherwise it runs once, on the control client's reader thread, when the\nfirst step arrives or the subscription ends, and is then disarmed: drain with {@link #poll()}\nuntil it is empty, then arm again. Checking and arming happen under the lock that delivery\ntakes, so a step cannot slip between them unannounced.\n\nThe callback runs on the thread delivering events, so it must not block: resume a waiting\ncoroutine, complete a promise, and return. One that throws is logged and ignored, and delivery\ncontinues."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.onReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-onready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","name":"clearReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearReady()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the readiness callback, if one is armed. For a reader that stopped waiting."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.clearReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-clearready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","name":"stream","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public java.util.stream.Stream> stream()","params":[],"returns":"java.util.stream.Stream>","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.LibTmuxException","doc":"from the stream if the reading thread is interrupted; its interrupt status is set again"}]}],"doc":{"summary":"The steps still to come, in order, each read by the thread consuming the stream.","body":"Pull-only: a step is read when the stream asks for one, and events that arrive meanwhile\nwait in this subscription's buffer, so its capacity alone decides what becomes a {@link\nDelivery.Gap}. The stream ends when this subscription closes. When the control client ended\nit, the stream fails with {@link #cause()}. Closing the stream closes this subscription, and\nclosing this subscription from another thread ends a stream that is waiting.","examples":[{"lang":"java","code":"try (Stream> steps = subscription.stream()) {\n steps.map(Delivery::kept).forEach(output -> System.out.print(output.data()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.stream","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-stream"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","name":"publisher","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher()","params":[],"returns":"Flow.Publisher>","typeScopeBoundary":false},{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher(Executor executor)","params":[{"name":"executor","type":"Executor","doc":"where each blocking read for the subscriber runs; one that runs a task on the calling thread makes {@link Flow.Subscription#request request} block on tmux, which the Reactive Streams rules forbid"}],"returns":"Flow.Publisher>","typeScopeBoundary":false}],"doc":{"summary":"A {@link Flow.Publisher} view of this subscription's steps, delivered as demand allows.","body":"Reads that wait for the next step run on a fresh virtual thread, started only while a\nsubscriber has outstanding demand, so a subscriber that never asks never blocks anything. Use\n{@link #publisher(Executor)} to read somewhere else instead.\n\n@see #publisher(Executor)"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.publisher","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-publisher"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","name":"isClosed","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isClosed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this subscription has reached its terminal state.","body":"This distinguishes a timed read that expired from one that returned empty because the\nsubscription ended. A pending gap can still be read after the subscription has closed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.isClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-isclosed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards buffered events, removes this subscriber, and wakes every waiting reader."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.close","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-close"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void end(@Nullable Throwable failure)","params":[{"name":"failure","type":"Throwable"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as the control client saw it end, recording why. Unlike {@link #close()}, events already delivered stay readable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.end","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.end","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-end"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","name":"finish","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void finish()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as a producer with nothing more to send: not a failure, and nothing is discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":711,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.finish","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-finish"},{"id":"io.github.libtmux.control.Notification.Notification","name":"Notification","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a control-mode notification says, typed, for matching on.","body":"Sealed, with {@link Unknown} as the case for everything else. tmux adds notifications between\nreleases, and a closed set with nowhere to put a new one would drop it; here a notification this\nlibrary does not model yet still arrives, as {@code Unknown}, and {@link ControlEvent#kind()} and\n{@link ControlEvent#fields()} still carry what tmux wrote.\n\nThe forms are tmux's own, from {@code control-notify.c}. A name — of a window, a session, a\nclient — is everything after the id, spaces included, as tmux writes it.","examples":[{"lang":"java","code":"switch (event.notification()) {\n case Notification.WindowRenamed(WindowId window, String name, boolean attached) -> relabel(window, name);\n case Notification.SessionsChanged changed -> refreshSessions();\n default -> {}\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification","product":"core","slug":"io-github-libtmux-control-notification-notification"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded","name":"WindowAdded","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowAdded(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-add}: a window was created; {@code attached} is false for {@code unlinked-window-add}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed","name":"WindowClosed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowClosed(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-close}: a window was destroyed; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed","name":"WindowRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowRenamed(WindowId window, String name, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"name","type":"String"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-renamed}: a window has a new name; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","name":"WindowPaneChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowPaneChanged(WindowId window, PaneId pane) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-pane-changed}: a window's active pane changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged","name":"LayoutChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record LayoutChanged(WindowId window, WindowLayout layout) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"layout","type":"WindowLayout"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %layout-change}: a window's layout changed, in whichever form tmux reports it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","name":"layout","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowLayout"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.layout","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-layout"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged","name":"SessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionChanged(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-changed}: the attached client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed","name":"SessionRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionRenamed(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-renamed}: a session has a new name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionsChanged","name":"SessionsChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionsChanged() implements Notification","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %sessions-changed}: a session was created or destroyed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionsChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionsChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionschanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","name":"SessionWindowChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionWindowChanged(SessionId session, WindowId window) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"window","type":"WindowId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-window-changed}: a session's current window changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","name":"ClientSessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientSessionChanged(String client, SessionId session, String name) implements Notification","params":[{"name":"client","type":"String"},{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-session-changed}: another client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-client"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached","name":"ClientDetached","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientDetached(String client) implements Notification","params":[{"name":"client","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-detached}: a client detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientDetached","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached-client"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","name":"PaneModeChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PaneModeChanged(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pane-mode-changed}: a pane entered or left a mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","name":"PasteBufferChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferChanged(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-changed}: a paste buffer was created or changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","name":"PasteBufferDeleted","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferDeleted(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-deleted}: a paste buffer was deleted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","name":"SubscriptionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SubscriptionChanged(\n String name, String value, Optional session, Optional window, Optional pane)\n implements Notification","params":[{"name":"name","type":"String","doc":"what the subscription was registered under"},{"name":"value","type":"String","doc":"what the format expanded to"},{"name":"session","type":"Optional","doc":"the session it is about, when tmux named one"},{"name":"window","type":"Optional","doc":"the window, when tmux named one"},{"name":"pane","type":"Optional","doc":"the pane, when tmux named one"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %subscription-changed}: a watched format has a new value."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the subscription was registered under"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the format expanded to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-value"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it is about, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the window, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the pane, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Pause","name":"Pause","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Pause(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pause}: tmux stopped sending a pane's output to this client, which turned flow control on with {@code refresh-client -f pause-after=N} and fell N seconds behind. {@code refresh-client -A '%1:continue'} resumes it. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause","product":"core","slug":"io-github-libtmux-control-notification-notification-pause"},{"id":"io.github.libtmux.control.Notification.Notification.Pause.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Pause","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-pause-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Continue","name":"Continue","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Continue(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %continue}: a paused pane's output flows to this client again. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue","product":"core","slug":"io-github-libtmux-control-notification-notification-continue"},{"id":"io.github.libtmux.control.Notification.Notification.Continue.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Continue","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-continue-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Message","name":"Message","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Message(String text) implements Notification","params":[{"name":"text","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %message}: text another client showed on this one with {@code display-message -c}. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message","product":"core","slug":"io-github-libtmux-control-notification-notification-message"},{"id":"io.github.libtmux.control.Notification.Notification.Message.text","name":"text","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Message","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message.text","product":"core","slug":"io-github-libtmux-control-notification-notification-message-text"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError","name":"ConfigError","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ConfigError(String cause) implements Notification","params":[{"name":"cause","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %config-error}: a configuration file tmux loaded for this client had an error. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","name":"cause","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ConfigError","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror-cause"},{"id":"io.github.libtmux.control.Notification.Notification.Exit","name":"Exit","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Exit(Optional reason) implements Notification","params":[{"name":"reason","type":"Optional"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %exit}: the client is exiting, with tmux's reason when it gave one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit","product":"core","slug":"io-github-libtmux-control-notification-notification-exit"},{"id":"io.github.libtmux.control.Notification.Notification.Exit.reason","name":"reason","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Exit","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit.reason","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit.reason","product":"core","slug":"io-github-libtmux-control-notification-notification-exit-reason"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown","name":"Unknown","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Unknown(String kind) implements Notification","params":[{"name":"kind","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"A notification this library does not model; {@link ControlEvent} still carries all of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Unknown","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown.kind","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown-kind"},{"id":"io.github.libtmux.control.Notification.Notification.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"static Notification read(String kind, String rest, Optional value)","params":[{"name":"kind","type":"String","doc":"the name without its {@code %}"},{"name":"rest","type":"String","doc":"what followed the name, as tmux wrote it, without any {@code \" : \"} value"},{"name":"value","type":"Optional","doc":"what followed {@code \" : \"}, which only a subscription carries"}],"returns":"Notification","typeScopeBoundary":true}],"doc":{"summary":"Reads one notification from its kind and the text after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.read","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.read","product":"core","slug":"io-github-libtmux-control-notification-notification-read"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput","name":"PaneOutput","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneOutput(PaneId pane, String data, ByteBuffer bytes)","params":[{"name":"pane","type":"PaneId","doc":"the pane that produced it"},{"name":"data","type":"String","doc":"this piece as text"},{"name":"bytes","type":"ByteBuffer","doc":"this piece exactly, read-only"}]}],"typeScopeBoundary":false,"doc":{"summary":"Terminal output tmux pushed without being asked.","body":"tmux cuts a pane's output into pieces by byte count, not by character. {@code bytes} is\nexactly what one piece carried, so a pane's pieces concatenate to what it wrote. {@code data} is\nthe same output as text, decoded per pane: a character cut between two pieces arrives whole with\nthe later one, and a byte that is not UTF-8 is written {@code \\xHH}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","name":"PaneOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"public PaneOutput(PaneId pane, String data)","params":[{"name":"pane","type":"PaneId"},{"name":"data","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"Output whose bytes are {@code data} in UTF-8."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","name":"bytes","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public ByteBuffer bytes()","params":[],"returns":"ByteBuffer","typeScopeBoundary":false}],"doc":{"summary":"This piece's bytes, read-only, positioned at the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-bytes"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Identifies the pane only: the data is terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-tostring"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane that produced it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-pane"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.data","name":"data","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"this piece as text"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.data","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.data","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-data"},{"id":"io.github.libtmux.Dimensions.Dimensions","name":"Dimensions","kind":"class","modifiers":[],"signatures":[{"raw":"public record Dimensions(int width, int height)","params":[{"name":"width","type":"int","doc":"columns"},{"name":"height","type":"int","doc":"rows"}]}],"typeScopeBoundary":false,"doc":{"summary":"How big something is, in terminal cells.","body":"A pair rather than two loose numbers, because width and height are only meaningful together and\na call site that takes them separately can transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions","product":"core","slug":"io-github-libtmux-dimensions-dimensions"},{"id":"io.github.libtmux.Dimensions.Dimensions.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Dimensions.Dimensions","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.toString","product":"core","slug":"io-github-libtmux-dimensions-dimensions-tostring"},{"id":"io.github.libtmux.Dimensions.Dimensions.width","name":"width","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.width","product":"core","slug":"io-github-libtmux-dimensions-dimensions-width"},{"id":"io.github.libtmux.Dimensions.Dimensions.height","name":"height","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.height","product":"core","slug":"io-github-libtmux-dimensions-dimensions-height"},{"id":"io.github.libtmux.Direction.Direction","name":"Direction","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which way to move or grow something.","body":"An enum rather than tmux's {@code -U -D -L -R} flags, so a call site says which way it means\nand a wrong direction cannot be spelled at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.UP","name":"UP","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.UP","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.UP","product":"core","slug":"io-github-libtmux-direction-direction-up"},{"id":"io.github.libtmux.Direction.Direction.DOWN","name":"DOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.DOWN","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.DOWN","product":"core","slug":"io-github-libtmux-direction-direction-down"},{"id":"io.github.libtmux.Direction.Direction.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.LEFT","product":"core","slug":"io-github-libtmux-direction-direction-left"},{"id":"io.github.libtmux.Direction.Direction.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.RIGHT","product":"core","slug":"io-github-libtmux-direction-direction-right"},{"id":"io.github.libtmux.Direction.Direction.Direction","name":"Direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"Direction(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that selects this direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.flag","product":"core","slug":"io-github-libtmux-direction-direction-flag"},{"id":"io.github.libtmux.Environment.Environment","name":"Environment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The environment tmux gives to processes it starts, at one scope.","body":"tmux keeps one environment per server and one per session, and hands the result to every\nprocess it spawns afterwards. That is what this is for: a pane opened later sees what is set here,\nso it is how a program refreshes a value that goes stale in a long-lived session — {@code\nSSH_AUTH_SOCK} after reconnecting, a token, a display.\n\nA scope is chosen when the view is obtained rather than passed to every call, as {@link\nOptions} does, so a caller cannot read one scope and write another. There are only the two scopes,\nbecause tmux has only those two.\n\nA name is in one of three states, and they are not the same question. It can be *set* to\na value, which {@link #get} answers. It can be *removed*, which is tmux's way of saying a\nnew process should not inherit it even though the server's own environment has it — {@link\n#isRemoved} answers that, and {@link #get} is empty for it. Or it can simply be absent, which is\nboth of those empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment","product":"core","slug":"io-github-libtmux-environment-environment"},{"id":"io.github.libtmux.Environment.Environment.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.global","product":"core","slug":"io-github-libtmux-environment-environment-global"},{"id":"io.github.libtmux.Environment.Environment.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.session","product":"core","slug":"io-github-libtmux-environment-environment-session"},{"id":"io.github.libtmux.Environment.Environment.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.get","product":"core","slug":"io-github-libtmux-environment-environment-get"},{"id":"io.github.libtmux.Environment.Environment.isRemoved","name":"isRemoved","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isRemoved(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.isRemoved","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.isRemoved","product":"core","slug":"io-github-libtmux-environment-environment-isremoved"},{"id":"io.github.libtmux.Environment.Environment.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every name set at this scope, in tmux's order. Removed names are not values, so not here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.all","product":"core","slug":"io-github-libtmux-environment-environment-all"},{"id":"io.github.libtmux.Environment.Environment.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a read otherwise fails"}]}],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together.","body":"{@link #all} answers for one scope, which is what a caller writing to it needs and not what\na pane opened later will see: tmux gives a new process the server's environment with the\nsession's laid over it, minus whatever the session marked as not to be inherited. At the\nserver scope the two are the same thing.\n\nThe counterpart to {@link Options#effective()}, and named after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.effective","product":"core","slug":"io-github-libtmux-environment-environment-effective"},{"id":"io.github.libtmux.Environment.Environment.removed","name":"removed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Set removed()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.removed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.removed","product":"core","slug":"io-github-libtmux-environment-environment-removed"},{"id":"io.github.libtmux.Environment.Environment.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to a literal value.","body":"The value is not expanded: a {@code #{...}} in it arrives as those characters. {@link\n#setExpanded} is how to ask for the other thing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.set","product":"core","slug":"io-github-libtmux-environment-environment-set"},{"id":"io.github.libtmux.Environment.Environment.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.setExpanded","product":"core","slug":"io-github-libtmux-environment-environment-setexpanded"},{"id":"io.github.libtmux.Environment.Environment.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.unset","product":"core","slug":"io-github-libtmux-environment-environment-unset"},{"id":"io.github.libtmux.Environment.Environment.remove","name":"remove","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void remove(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Tells processes started after this not to inherit the name.","body":"Different from {@link #unset}: the name is remembered, as removed, and tmux subtracts it\nfrom what a new process is given rather than simply not adding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.remove","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.remove","product":"core","slug":"io-github-libtmux-environment-environment-remove"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException","name":"CardinalityException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A lookup that required exactly one match, or at most one, did not get it.","body":"Loosen or tighten the filter, or handle the case explicitly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","name":"CardinalityException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[{"raw":"CardinalityException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","name":"NoMatch","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing matched where the caller required something."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","name":"NoMatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","signatures":[{"raw":"public NoMatch(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","name":"MultipleMatches","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"More than one thing matched where the caller required at most one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","name":"MultipleMatches","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public MultipleMatches(String message, int atLeast)","params":[{"name":"message","type":"String"},{"name":"atLeast","type":"int","doc":"how many matched, at least; never less than two"}],"typeScopeBoundary":false}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public int atLeast()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many matched, at least.","body":"Exact when the matches came from a capture this library holds, as a handle lookup's do.\n{@link io.github.libtmux.query.Selections} stops at the second match, since its source may be\nlazy or unbounded, so there it is two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.atLeast","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-atleast"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux ran a command to completion and refused it.","body":"The request reached a live server and tmux answered no: a duplicate session name, a target it\ncannot find, an option it does not know. Resending the same command gets the same answer, so read\n{@link #errorLines()} and change the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","signatures":[{"raw":"public CommandRejectedException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public CommandRejectedException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A refusal of {@code command}, with tmux's exit status and the lines it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The control client ended, and anything reading from it will not resume.","body":"Attach again with {@link io.github.libtmux.Server#control} and read a snapshot: the events this\nclient did not deliver are not replayed, because tmux keeps no history of them. {@link\n#standardError()} is what the tmux process wrote to its error stream, bounded, and empty when it\nwrote nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public ControlEndedException(String standardError, boolean standardErrorTruncated, @Nullable Throwable cause)","params":[{"name":"standardError","type":"String"},{"name":"standardErrorTruncated","type":"boolean"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured before the process ended, possibly truncated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardError","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderror"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the error stream continued past the captured bound."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardErrorTruncated","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderrortruncated"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException","name":"DispatchException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The request did not complete, with how certain it is that tmux applied it.","body":"\"tmux never started\" and \"tmux timed out halfway\" call for opposite recovery, so the certainty\ntravels with the failure. {@link #safeToRetry()} answers the question a caller usually has: whether\nsending the exact same request again can do harm."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","name":"DispatchException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"DispatchException(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"How certain the transport is that tmux applied the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-outcome"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether every command in the request only reads, so running it twice changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.idempotence","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-idempotence"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","name":"safeToRetry","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public boolean safeToRetry()","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"{@link DispatchOutcome#canRetryVerbatim} for this failure's outcome and idempotence"}],"doc":{"summary":"Whether sending the exact same request again cannot apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.safeToRetry","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-safetoretry"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","name":"Failed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The transport failed for a reason other than a deadline: tmux could not start, or the channel broke."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","name":"Failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","signatures":[{"raw":"public Failed(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public Failed(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","name":"TimedOut","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed before the request finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","name":"TimedOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","signatures":[{"raw":"public TimedOut(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public TimedOut(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout-timedout"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The root of every operational failure this library raises.","body":"Unchecked, because a tmux failure can arise from any call and forcing every caller to declare\nit would say nothing. Sealed, with every branch abstract, so matching on the permitted subtypes is\nexhaustive in Java, Kotlin and Scala alike.\n\nA failure that came from a tmux command carries that command, its exit status when it has one,\nand the error lines tmux printed. Those lines, and the message that quotes them, name what tmux\nnamed — sessions, windows, panes and buffers included."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"LibTmuxException(String message, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"LibTmuxException(\n String message,\n @Nullable Throwable cause,\n @Nullable String command,\n int exitCode,\n List errorLines)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public Optional command()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The command that failed, when this failure came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.command","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-command"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","name":"exitCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public OptionalInt exitCode()","params":[],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The process exit status, when the failure has one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.exitCode","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-exitcode"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","name":"errorLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"@ReadOnly\n public List errorLines()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The error lines tmux printed, in full. Empty when this failure has none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.errorLines","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-errorlines"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux answered, and the answer did not have the shape this library asked for.","body":"A listing row with the wrong number of fields, a number that did not parse, an identity that\nwas not one row: this library's own template disagreed with what tmux sent. Check the tmux release\nis inside the supported range, and report it if it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","signatures":[{"raw":"public MalformedResponseException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public MalformedResponseException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A handle was used after the {@link io.github.libtmux.Server} it belongs to was closed.","body":"Programmer error, so deliberately outside {@link LibTmuxException}'s sealed tree: an exhaustive\nmatch over operational failures should not have to decide about a lifecycle bug. {@link\n#outcome()} says whether tmux may have run the call that raced the close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public ServerClosedException(String message, DispatchOutcome outcome)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"{@link DispatchOutcome#NOT_DISPATCHED} when the server was closed before the call reached tmux, {@link DispatchOutcome#UNKNOWN} when a concurrent close ended a tmux already running it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-outcome"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"No tmux daemon answered on this endpoint.","body":"Nothing was there to answer, rather than an answer that could not be trusted. Start a server on\ndemand, or treat the endpoint as down."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","signatures":[{"raw":"public ServerUnavailableException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public ServerUnavailableException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A daemon found absent by the command that tried to reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server answered, and the session, window, pane, buffer or server incarnation a handle addresses is gone.","body":"Re-resolve the handle — run again the lookup or filter that produced it — or stop. An\nunreachable server is a {@link ServerUnavailableException} instead, which calls for something else\nentirely."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","signatures":[{"raw":"public TargetGoneException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Text this JVM cannot hand to tmux intact, with no route left to send it by.","body":"A child process receives its arguments as bytes, and the JVM encodes them with the platform's\nnative encoding — which is the locale's, decided before {@code main} runs. In a locale that is\nnot UTF-8 that encoding cannot carry most of Unicode, so tmux would receive {@code ?} where a\ncaller wrote {@code é}. The process transport therefore sends such a command over tmux's standard\ninput instead, which this library encodes itself, and this is raised only when that route is\nalready taken — a command that reads standard input — or when the text is in the endpoint, the\nbinary or socket path, which nothing but an argument can carry.\n\nOnly the environment removes the limit: start the JVM with {@code LC_ALL} or {@code LANG}\nnaming a UTF-8 locale. {@code -Dsun.jnu.encoding} and {@code -Dfile.encoding} do not, because the\nnative encoding is read before either is applied.\n\nASCII text is unaffected on every locale, and so is everything tmux sends back: a reply is\ndecoded as the UTF-8 tmux wrote rather than through the platform's encoding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","signatures":[{"raw":"public UnencodableTextException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public UnencodableTextException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"doc":{"summary":"Text refused because of {@code cause}, such as a path the platform cannot represent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The running tmux does not have something the call asked for.","body":"Raised instead of dropping the option. The Python sibling warns and carries on, which returns a\npane that differs from the one described in a way nothing downstream can detect; a caller who\nasked for an empty pane and got a shell has no way to notice before something runs in it. Skip the\nfeature, or require a newer tmux.\n\nThe feature and the versions are in the message and not in accessors: a throwable is\nserializable, so exposing a {@link TmuxVersion} here would mean making that serializable too."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","signatures":[{"raw":"public UnsupportedFeatureException(String feature, TmuxVersion required, TmuxVersion running)","params":[{"name":"feature","type":"String"},{"name":"required","type":"TmuxVersion"},{"name":"running","type":"TmuxVersion"}],"typeScopeBoundary":false},{"raw":"public UnsupportedFeatureException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A feature that needs {@code required} or newer, on a server running {@code running}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.format.RowFormat.RowFormat","name":"RowFormat","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A listing template and the reader for the rows it produces.","body":"tmux returns a listing as plain lines, so what separates one field from the next is whatever\nstring the client put between them — and tmux gives no character a special meaning there. Any\nfixed choice is therefore something a user can put in a window name. A window named with the\nseparator turns an n-field template into n+1 fields and shifts everything after it, so a pane id\narrives where a name belongs, and nothing downstream can tell.\n\nThe separator is generated once per process instead. Colliding with it means naming a window\nwith the exact token this process happened to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public static RowFormat of(String... fields)","params":[{"name":"fields","type":"String","variadic":"positional","doc":"tmux format names, without the surrounding {@code #{}}"}],"returns":"RowFormat","typeScopeBoundary":true}],"doc":{"summary":"A format over the given tmux format names, in the order rows will report them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.of","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.of","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-of"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.template","name":"template","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String template()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The argument to pass to tmux's {@code -F}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.template","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.template","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-template"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.separator","name":"separator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String separator()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The token this process separates fields with."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.separator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.separator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-separator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.terminator","name":"terminator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"String terminator()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.terminator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.terminator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-terminator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many fields a row must have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.size","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.size","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-size"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row","name":"Row","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One row's values, addressed by the field name that asked for them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","name":"text","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public String text(String field)","params":[{"name":"field","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The field's value as tmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.text","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-text"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","name":"number","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public int number(String field)","params":[{"name":"field","type":"String"}],"returns":"int","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.number","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-number"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","name":"count","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public long count(String field)","params":[{"name":"field","type":"String"}],"returns":"long","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole count."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.count","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-count"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public boolean flag(String field)","params":[{"name":"field","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux printed anything else"}]}],"doc":{"summary":"The field as one of tmux's flags, which it prints as 0 or 1."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.flag","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-flag"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.rows","name":"rows","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List rows(List lines)","params":[{"name":"lines","type":"List","doc":"the listing as tmux printed it"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the listing ends mid-row, or a row does not have exactly the expected number of fields"}]}],"doc":{"summary":"Reads a whole listing back into rows.","body":"tmux ends a row with a newline and frames it no other way, so a listing's lines are not its\nrows: a value carrying a newline arrives as several. A working directory may contain one, and\nanything running in a pane may change into it, so this is caller-reachable rather than\ntheoretical. A row is closed by carrying every separator, not by the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.rows","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.rows","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-rows"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.split","name":"split","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List split(String row)","params":[{"name":"row","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the row does not have exactly the expected number of fields, which is the only chance to notice that something shifted"}]}],"doc":{"summary":"Reads one row back into its fields."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.split","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.split","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-split"},{"id":"io.github.libtmux.format.Tokens.Tokens","name":"Tokens","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The token this process marks its own text with.","body":"tmux gives no character a special meaning in a name or in output, so any fixed marker is\nsomething a user can produce. One random token per process makes a collision mean naming a window\nwith the exact value this run generated.\n\nHexadecimal, because the token is spliced into tmux format templates and into regular\nexpressions and must be inert in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens","product":"core","slug":"io-github-libtmux-format-tokens-tokens"},{"id":"io.github.libtmux.format.Tokens.Tokens.perProcess","name":"perProcess","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"public static String perProcess()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A token generated once per process, shared by everything that needs to mark its own text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.perProcess","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.perProcess","product":"core","slug":"io-github-libtmux-format-tokens-tokens-perprocess"},{"id":"io.github.libtmux.format.Tokens.Tokens.generate","name":"generate","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"static String generate()","params":[],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.generate","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.generate","product":"core","slug":"io-github-libtmux-format-tokens-tokens-generate"},{"id":"io.github.libtmux.Hooks.Hooks","name":"Hooks","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux hooks at one scope.","body":"A hook binds a tmux command to an event, so tmux runs it without a client asking.\n\nEvery hook is an array: several commands can hang off one event, and tmux runs them in order.\nThat is why a listing answers with a list per event rather than a value — a hook set once is a\nlist of one, not a special case.\n\nEach hook lives at a particular scope, and not every hook lives at every one.\n{@code pane-focus-in} is a window hook, {@code alert-bell} a session hook. Setting one at a scope\nit does not belong to is accepted and then silently discarded, on every supported release — so a\nhook that never fires is worth checking against {@link #all()} before it is worth debugging."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks","product":"core","slug":"io-github-libtmux-hooks-hooks"},{"id":"io.github.libtmux.Hooks.Hooks.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.global","product":"core","slug":"io-github-libtmux-hooks-hooks-global"},{"id":"io.github.libtmux.Hooks.Hooks.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.session","product":"core","slug":"io-github-libtmux-hooks-hooks-session"},{"id":"io.github.libtmux.Hooks.Hooks.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.window","product":"core","slug":"io-github-libtmux-hooks-hooks-window"},{"id":"io.github.libtmux.Hooks.Hooks.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.pane","product":"core","slug":"io-github-libtmux-hooks-hooks-pane"},{"id":"io.github.libtmux.Hooks.Hooks.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it.","body":"Replacing, not adding: tmux discards the whole array. {@link #append} is how a second\ncommand joins the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.set","product":"core","slug":"io-github-libtmux-hooks-hooks-set"},{"id":"io.github.libtmux.Hooks.Hooks.append","name":"append","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.append","product":"core","slug":"io-github-libtmux-hooks-hooks-append"},{"id":"io.github.libtmux.Hooks.Hooks.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.unset","product":"core","slug":"io-github-libtmux-hooks-hooks-unset"},{"id":"io.github.libtmux.Hooks.Hooks.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event.","body":"tmux spells this {@code set-hook -R}, which reads as setting something. It runs the hook\nand binds nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.run","product":"core","slug":"io-github-libtmux-hooks-hooks-run"},{"id":"io.github.libtmux.Hooks.Hooks.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> all()","params":[],"returns":"Map>","typeScopeBoundary":false}],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.","body":"tmux prints one line per entry, subscripted — {@code after-new-window[0]}. The subscript is\na position in the list rather than part of the name, so it becomes the ordering here and the\nkey stays the event a caller would look up."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.all","product":"core","slug":"io-github-libtmux-hooks-hooks-all"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server incarnation a handle or batch may act on: the pid tmux reports, and its start time when known, since a pid alone is reusable — a tmux started on the pid of one just probed, as a container's first processes often are, would otherwise answer as if it were that server.","body":"Every guarded command is sent as tmux's own {@code if-shell -F} test of this condition, so a\nserver that has been replaced under a stale handle is refused before anything runs, rather than\nacting on the wrong incarnation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"IncarnationFence(Server server, ServerIdentity identity)","params":[{"name":"server","type":"Server"},{"name":"identity","type":"ServerIdentity"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","name":"identity","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false},{"raw":"ServerIdentity identity(ServerSnapshot snapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-identity"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameserver"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameincarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","name":"incarnation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"static String incarnation(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A condition true only on the server a capture named: its pid, and its start time when known."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.incarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","name":"guarded","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command, String input)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(long pid, String condition, String command, String input)","params":[{"name":"pid","type":"long"},{"name":"condition","type":"String"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Refuses to reach a tmux server that is not the one this handle was made against."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.guarded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-guarded"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult run(ServerSnapshot snapshot, WindowContext expected, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"expected","type":"WindowContext"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"As {@link #guarded(ServerSnapshot, String, String)}, refused as well once the window has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.run","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-run"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings","name":"CommandStrings","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Encodes a tmux command for each of the two parsers tmux reads commands with.","body":"Every argv this takes is literal: what a caller meant, with nothing escaped for either parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","name":"arguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static List arguments(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the flat argv tmux's own argv parser reads.","body":"tmux ends a command at an argument whose last byte is {@code ;}, and keeps the semicolon\ninstead when a backslash precedes it, so an argument ending in one is escaped here and a bare\n{@code ;} separates commands."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.arguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-arguments"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","name":"stringify","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String stringify(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One command as the string tmux's command parser reads, which is what {@code if-shell} takes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.stringify","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-stringify"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","name":"group","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String group(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the one string tmux's parser reads as a group.","body":"Each argument is quoted, so a semicolon inside one stays part of it and only the separators\nbetween commands end a command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.group","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-group"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText","name":"ErrorText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux printed on its error stream, as it appears in a failure's message."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText","product":"core","slug":"io-github-libtmux-internal-errortext-errortext"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","name":"suffix","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.ErrorText.ErrorText","signatures":[{"raw":"public static String suffix(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"{@code \": \"} and the non-blank lines joined by {@code \"; \"}, or nothing when tmux printed none.","body":"Capped at {@link OperationReport#ERROR_LIMIT} characters: a message lands in every log line\nthat prints the failure, and the failure's own {@code errorLines()} keeps the text whole."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText.suffix","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","product":"core","slug":"io-github-libtmux-internal-errortext-errortext-suffix"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree","name":"ProcessTree","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns bounded, idempotent termination of one process and its observable descendants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","name":"ProcessTree","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public ProcessTree(Process root)","params":[{"name":"root","type":"Process"}],"typeScopeBoundary":false}],"doc":{"summary":"Takes ownership of terminating {@code root} and descendants visible from it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","name":"captureDescendants","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized void captureDescendants()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Retains descendants before another cleanup step can make the root disappear."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.captureDescendants","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-capturedescendants"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","name":"terminate","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized boolean terminate()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Terminates the known process tree, closes the root's streams, and reports reclamation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.terminate","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-terminate"},{"id":"io.github.libtmux.internal.Utf8.Utf8","name":"Utf8","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The UTF-8 boundary shared by process and control transports, in both directions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","name":"requireEncodableArguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static void requireEncodableArguments(List argv)","params":[{"name":"argv","type":"List"}],"returns":"void","typeScopeBoundary":true,"raises":[{"type":"UnencodableTextException","doc":"if an argument holds non-ASCII text and this JVM's native encoding is not UTF-8"}]}],"doc":{"summary":"Refuses argument text this JVM would corrupt on the way to tmux.","body":"Checked here rather than at each call site because every process this library starts is\nbuilt from one of these lists, and a value that reaches tmux mangled is indistinguishable\nthere from one the caller meant."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.requireEncodableArguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-requireencodablearguments"},{"id":"io.github.libtmux.internal.Utf8.Utf8.encodable","name":"encodable","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static boolean encodable(List argv)","params":[{"name":"argv","type":"List"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this JVM can hand every one of these to a child process intact."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.encodable","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.encodable","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-encodable"},{"id":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","name":"argumentsAreUtf8","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"static boolean argumentsAreUtf8(String encoding)","params":[{"name":"encoding","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.argumentsAreUtf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-argumentsareutf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","name":"backslashReplace","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static String backslashReplace(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Decodes valid UTF-8 and writes each malformed byte as a recoverable {@code \\xNN} escape."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.backslashReplace","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-backslashreplace"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream","name":"Stream","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Decodes one byte stream that arrives in pieces cut anywhere, as {@link #backslashReplace} decodes a whole one. A character cut between two pieces is held back and returned whole with the later piece. One per stream, on one thread."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","name":"decode","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.Utf8.Utf8.Stream","signatures":[{"raw":"public String decode(byte[] piece)","params":[{"name":"piece","type":"byte[]"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The text this piece completes, leaving a character it only starts for the next."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream.decode","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream-decode"},{"id":"io.github.libtmux.JsonLayout.JsonLayout","name":"JsonLayout","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux's restricted JSON grammar and layout cells, for pre-mutation workspace validation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout"},{"id":"io.github.libtmux.JsonLayout.JsonLayout.leaves","name":"leaves","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.JsonLayout.JsonLayout","signatures":[{"raw":"static int leaves(String text)","params":[{"name":"text","type":"String"}],"returns":"int","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout.leaves","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout.leaves","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout-leaves"},{"id":"io.github.libtmux.Keys.Keys","name":"Keys","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"tmux keeps bindings in named tables: {@code prefix}, pressed after the prefix key, is where a\nbinding goes unless another table is named; {@code root} is pressed without it; the copy-mode\ntables belong to copy mode. {@link Server#keys()} answers for {@code prefix} when binding and for\nevery table when listing; {@link #in} names one.","examples":[{"lang":"java","code":"server.keys().bind(\"F12\", List.of(\"display-message\", \"hello\"));\nserver.keys().in(\"root\").bind(\"F11\", List.of(\"next-window\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.Keys","name":"Keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"Keys(Server server, @Nullable String table)","params":[{"name":"server","type":"Server"},{"name":"table","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys in(String table)","params":[{"name":"table","type":"String"}],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.in","product":"core","slug":"io-github-libtmux-keys-keys-in"},{"id":"io.github.libtmux.Keys.Keys.bind","name":"bind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void bind(String key, List command)","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a key to a tmux command, given as its words.","body":"Each word reaches tmux as itself: the command is passed as arguments, never as a line for\ntmux to split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.bind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.bind","product":"core","slug":"io-github-libtmux-keys-keys-bind"},{"id":"io.github.libtmux.Keys.Keys.unbind","name":"unbind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unbind(String key)","params":[{"name":"key","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.unbind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.unbind","product":"core","slug":"io-github-libtmux-keys-keys-unbind"},{"id":"io.github.libtmux.Keys.Keys.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"The bindings as tmux lists them, one per line.","body":"Every table unless one was named. Read without starting a daemon to answer, which tmux\nwould otherwise do for {@code list-keys}: its tables are compiled in, so it can answer an\nendpoint nothing serves by serving it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.list","product":"core","slug":"io-github-libtmux-keys-keys-list"},{"id":"io.github.libtmux.Layout.Layout","name":"Layout","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's built-in pane arrangements.","body":"An enum rather than a string, and not for tidiness: {@code select-layout} with a name tmux does\nnot recognise *ends the server* on 3.3a, taking every session on that socket with it —\nincluding sessions this program never created. Every other supported release answers\n{@code invalid layout} and carries on.\n\nA name that cannot be misspelled cannot trigger that. {@link Window#applyLayout} covers the\nother way in, a serialized layout string, by checking it before tmux sees it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","name":"EVEN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-even_horizontal"},{"id":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","name":"EVEN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-even_vertical"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","name":"MAIN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","name":"MAIN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical"},{"id":"io.github.libtmux.Layout.Layout.TILED","name":"TILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.TILED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.TILED","product":"core","slug":"io-github-libtmux-layout-layout-tiled"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","name":"MAIN_HORIZONTAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal_mirrored"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","name":"MAIN_VERTICAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical_mirrored"},{"id":"io.github.libtmux.Layout.Layout.Layout","name":"Layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"Layout(String name)","params":[{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.tmuxName","name":"tmuxName","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public String tmuxName()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name tmux knows this by."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.tmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.tmuxName","product":"core","slug":"io-github-libtmux-layout-layout-tmuxname"},{"id":"io.github.libtmux.Layout.Layout.byTmuxName","name":"byTmuxName","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public static Optional byTmuxName(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The layout with this exact tmux name, or empty if none matches.","body":"One map built once, so a caller that already has a canonical name does not repeat the scan\nover {@link #values()} that resolving an abbreviation already did."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.byTmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.byTmuxName","product":"core","slug":"io-github-libtmux-layout-layout-bytmuxname"},{"id":"io.github.libtmux.Layout.Layout.since","name":"since","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"TmuxVersion since()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false}],"doc":{"summary":"The first supported release that has this layout.","body":"A switch rather than a field, so that adding a layout cannot compile until someone says\nwhich release brought it — and so the enum holds nothing but its name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.since","product":"core","slug":"io-github-libtmux-layout-layout-since"},{"id":"io.github.libtmux.Layout.Layout.requireSupported","name":"requireSupported","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public void requireSupported(TmuxVersion running)","params":[{"name":"running","type":"TmuxVersion"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Refuses this layout when the running tmux predates it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.requireSupported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.requireSupported","product":"core","slug":"io-github-libtmux-layout-layout-requiresupported"},{"id":"io.github.libtmux.Layout.Layout.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.toString","product":"core","slug":"io-github-libtmux-layout-layout-tostring"},{"id":"io.github.libtmux.Layouts.Layouts","name":"Layouts","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which layout names are safe to hand to tmux.","body":"Public because every path that can reach select-layout needs it, not only the one that reads\na workspace file. This check exists because an unrecognised layout name does not produce an error on every tmux:\non 3.3a it crashes the server, taking down every session on that socket, including ones this\nprogram never created. A workspace file is user-supplied text, so the name has to be checked\nbefore it is dispatched rather than after tmux has had it.\n\ntmux accepts either one of its named layouts or a serialized layout tmux itself produced. Since\n3.8 that serialized form is either the classic checksummed grammar or JSON, and {@code\nselect-layout} takes either back - but only JSON round-trips exactly. The classic grammar\ncarries no pane identity, only shape, so which process lands in which cell can differ from\nwhere it started; see {@link Window#applyLayout}. The classic checksum is verified here; a\nfour-hex-digit prefix alone does not make the rest safe for tmux to parse. JSON carries no such\nsignature, so a JSON-shaped string is only trusted once the running tmux is new enough to have\nwritten it - see {@link #requireSerialized}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts","product":"core","slug":"io-github-libtmux-layouts-layouts"},{"id":"io.github.libtmux.Layouts.Layouts.require","name":"require","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static String require(String layout)","params":[{"name":"layout","type":"String"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the name, which on some versions is not a recoverable error"}]},{"raw":"public static String require(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout"},{"type":"UnsupportedFeatureException","doc":"if the name or the JSON format arrived after this release"}]},{"raw":"public static String require(String layout, Server server, int paneCount)","params":[{"name":"layout","type":"String","doc":"a built-in name, unique abbreviation or serialized tree"},{"name":"server","type":"Server","doc":"the endpoint which will apply the layout"},{"name":"paneCount","type":"int","doc":"the number of panes which the layout must accommodate"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"a full built-in name or the unchanged serialized layout","raises":[{"type":"IllegalArgumentException","doc":"if the layout is invalid or has too few pane cells"},{"type":"UnsupportedFeatureException","doc":"if an exact built-in name requires a newer daemon"},{"type":"LibTmuxException","doc":"if the daemon or client version cannot be read"}]}],"doc":{"summary":"Returns the layout unchanged, having checked tmux will recognise it.","body":"Accepts the classic checksummed form, a JSON layout (by shape only — a running version is\nneeded to say whether this server could have written it, which {@link #require(String,\nTmuxVersion)} does), a built-in name, or an unambiguous prefix of exactly one built-in name\n({@code layout_set_lookup} is a prefix match, so {@code tile} and {@code even-h} apply on\nevery tmux release). Ambiguity is judged against every name this library knows, not only the\nones the eventual server will have — the version to narrow that with is not available here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.require","product":"core","slug":"io-github-libtmux-layouts-layouts-require"},{"id":"io.github.libtmux.Layouts.Layouts.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static Optional builtIn(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The built-in layout a name or an unambiguous prefix of one denotes, resolved against what {@code running} actually supports — the same resolution {@link #require(String, TmuxVersion)} applies, exposed so a caller that must choose between the enum path and a raw string (a workspace file's own dispatch) makes the same choice the guard just validated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.builtIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.builtIn","product":"core","slug":"io-github-libtmux-layouts-layouts-builtin"},{"id":"io.github.libtmux.Layouts.Layouts.requireSerialized","name":"requireSerialized","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"static String requireSerialized(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but {@code running} predates the format, so it cannot be one this server wrote"}]}],"doc":{"summary":"Requires an exact layout string rather than a built-in layout name.","body":"The classic form answers \"did tmux write this?\" by its own checksum, without needing to\nknow what tmux is running. JSON carries nothing equivalent, so the only question left to ask\nis \"could this tmux have written it?\" - which is a version, not a parse. Recognising the shape\nis as far as this goes: a JSON body that passes the shape check but is not real is tmux's own\nproblem to refuse, and it does, safely, on every release that understands the format at all\n(confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash)."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.requireSerialized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.requireSerialized","product":"core","slug":"io-github-libtmux-layouts-layouts-requireserialized"},{"id":"io.github.libtmux.MessageLog.MessageLog","name":"MessageLog","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's own message log, newest last.","body":"tmux before 3.6 answers {@code no current client} when nothing is attached. A gate would\nrefuse the case that works: with a client attached the log is readable on every supported\nrelease. The failure tmux reports is left to reach the caller."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.MessageLog","name":"MessageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"MessageLog(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.lines","name":"lines","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List lines()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"before 3.6 when no client is attached"}]}],"doc":{"summary":"The log lines."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.lines","product":"core","slug":"io-github-libtmux-messagelog-messagelog-lines"},{"id":"io.github.libtmux.OptionKey.OptionKey","name":"OptionKey","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"what the value reads as"}],"doc":{"summary":"A tmux option and the Java type its value reads as.","body":"Declared by the caller rather than catalogued here. tmux has hundreds of options, adds them\nbetween releases and changes a few of their types, so a closed catalogue would be wrong somewhere\non every release it did not track. A key says how to read one option; the name-and-string methods\non {@link Options} remain for anything else.\n\nThe constants are the ones whose type is the same on every supported release, checked against\ntmux's own option table from 3.2a to 3.7c. {@code status} is not among the flags for that reason:\ntmux reads it as a choice of {@code off}, {@code on} and a line count.","examples":[{"lang":"java","code":"session.options().set(OptionKey.HISTORY_LIMIT, 50_000);\nint kept = session.options().get(OptionKey.HISTORY_LIMIT).orElseThrow(); // → 50000\n\nOptionKey bell = OptionKey.flag(\"visual-bell\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey","product":"core","slug":"io-github-libtmux-optionkey-optionkey"},{"id":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","name":"HISTORY_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"history-limit\")","doc":{"summary":"Lines of scrollback a pane keeps. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.HISTORY_LIMIT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","product":"core","slug":"io-github-libtmux-optionkey-optionkey-history_limit"},{"id":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","name":"BASE_INDEX","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"base-index\")","doc":{"summary":"The index a session's first window gets. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.BASE_INDEX","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","product":"core","slug":"io-github-libtmux-optionkey-optionkey-base_index"},{"id":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","name":"ESCAPE_TIME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"escape-time\")","doc":{"summary":"How long tmux waits after an escape to see whether a key sequence follows. A server option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.ESCAPE_TIME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-escape_time"},{"id":"io.github.libtmux.OptionKey.OptionKey.MOUSE","name":"MOUSE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"mouse\")","doc":{"summary":"Whether the mouse is captured. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.MOUSE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.MOUSE","product":"core","slug":"io-github-libtmux-optionkey-optionkey-mouse"},{"id":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","name":"AUTOMATIC_RENAME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"automatic-rename\")","doc":{"summary":"Whether a window renames itself after what its pane runs. A window option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.AUTOMATIC_RENAME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-automatic_rename"},{"id":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","name":"SYNCHRONIZE_PANES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"synchronize-panes\")","doc":{"summary":"Whether keys typed into one pane go to every pane in the window. A window or pane option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.SYNCHRONIZE_PANES","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","product":"core","slug":"io-github-libtmux-optionkey-optionkey-synchronize_panes"},{"id":"io.github.libtmux.OptionKey.OptionKey.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey text(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option read as the text tmux reports, which suits a string, a choice, a style or a colour."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.text","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.text","product":"core","slug":"io-github-libtmux-optionkey-optionkey-text"},{"id":"io.github.libtmux.OptionKey.OptionKey.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey number(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.number","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.number","product":"core","slug":"io-github-libtmux-optionkey-optionkey-number"},{"id":"io.github.libtmux.OptionKey.OptionKey.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey flag(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a flag, which it reports as {@code on} or {@code off}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.flag","product":"core","slug":"io-github-libtmux-optionkey-optionkey-flag"},{"id":"io.github.libtmux.OptionKey.OptionKey.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The option's name, as tmux spells it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.name","product":"core","slug":"io-github-libtmux-optionkey-optionkey-name"},{"id":"io.github.libtmux.OptionKey.OptionKey.read","name":"read","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"T read(String reported)","params":[{"name":"reported","type":"String"}],"returns":"T","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.read","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.read","product":"core","slug":"io-github-libtmux-optionkey-optionkey-read"},{"id":"io.github.libtmux.OptionKey.OptionKey.write","name":"write","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"String write(T value)","params":[{"name":"value","type":"T"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.write","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.write","product":"core","slug":"io-github-libtmux-optionkey-optionkey-write"},{"id":"io.github.libtmux.OptionKey.OptionKey.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.toString","product":"core","slug":"io-github-libtmux-optionkey-optionkey-tostring"},{"id":"io.github.libtmux.Options.Options","name":"Options","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux options at one scope.","body":"tmux keeps options on the server, on a session, on a window and on a pane, and the same option\nname can exist at more than one of them. A scope is therefore chosen when the view is obtained,\nnot passed to every call, so a caller cannot read one scope and write another.\n\nArray options keep the subscript tmux prints — {@code command-alias[0]} — because that is what\naddresses the individual entry when setting it back.\n\nEvery read asks the daemon its version in the same tmux invocation as the values, since how a\nvalue is printed depends on that version: tmux 3.4 and 3.5 print a carriage return and a literal\n{@code \\r} alike under {@code -v}, so on those two the escaped listing is decoded instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options","product":"core","slug":"io-github-libtmux-options-options"},{"id":"io.github.libtmux.Options.Options.server","name":"server","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options server(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.server","product":"core","slug":"io-github-libtmux-options-options-server"},{"id":"io.github.libtmux.Options.Options.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.global","product":"core","slug":"io-github-libtmux-options-options-global"},{"id":"io.github.libtmux.Options.Options.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.session","product":"core","slug":"io-github-libtmux-options-options-session"},{"id":"io.github.libtmux.Options.Options.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.window","product":"core","slug":"io-github-libtmux-options-options-window"},{"id":"io.github.libtmux.Options.Options.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.pane","product":"core","slug":"io-github-libtmux-options-options-pane"},{"id":"io.github.libtmux.Options.Options.get","name":"get","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when tmux does not know the option, which it reports as an error; an option genuinely set to the empty string comes back as an empty value, not as absent. A value spanning several lines comes back whole","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails, including a name tmux finds ambiguous — option names may be abbreviated, and a prefix matching several is a question tmux declined to answer rather than an option it does not have"}]},{"raw":"@Operation(Kind.READ)\n public Optional get(OptionKey key)","params":[{"name":"key","type":"OptionKey"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"LibTmuxException","doc":"if tmux reports a value the key's type cannot hold, which means the key was declared with the wrong type"}]}],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it.","body":"This is what tmux itself will act on. To ask the narrower question — whether this scope\nsets the option at all — look for the name in {@link #all()}, which lists only what is set\nhere."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.get","product":"core","slug":"io-github-libtmux-options-options-get"},{"id":"io.github.libtmux.Options.Options.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(OptionKey key, T value)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"returns":"void","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #set(String, String)}, written the way tmux reads the key's type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.set","product":"core","slug":"io-github-libtmux-options-options-set"},{"id":"io.github.libtmux.Options.Options.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option set at this scope, in tmux's order. Inherited values are not listed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.all","product":"core","slug":"io-github-libtmux-options-options-all"},{"id":"io.github.libtmux.Options.Options.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values.","body":"Inherited user-option names are not listed by tmux. {@link #get(String)} still reads their\neffective values by name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.effective","product":"core","slug":"io-github-libtmux-options-options-effective"},{"id":"io.github.libtmux.Options.Options.setIfAbsent","name":"setIfAbsent","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public boolean setIfAbsent(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether the value was taken, false when this scope already set the option"}],"doc":{"summary":"Sets one option only if this scope does not already set it.","body":"tmux reports the already-set case as an error, which it is not: declining to overwrite is\nthe whole point of asking. The answer comes back as a value instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":336,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setIfAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setIfAbsent","product":"core","slug":"io-github-libtmux-options-options-setifabsent"},{"id":"io.github.libtmux.Options.Options.append","name":"append","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String name, String suffix)","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Adds to the end of a string option, rather than replacing it.","body":"Appending to an option this scope has not set simply sets it, which is what tmux does and\nwhat a caller building a value up piece by piece wants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.append","product":"core","slug":"io-github-libtmux-options-options-append"},{"id":"io.github.libtmux.Options.Options.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself.","body":"{@code setExpanded(\"status-left\", \"in #{session_name}\")} stores {@code in base}. The\nexpansion happens once, when this is called; the option does not stay live.\n\nBecause tmux expands the format when this is called, a {@code #(...)} in it runs a command\nat that moment. Pass any interpolated value through {@link TmuxFormats#literal} unless you mean\nit to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setExpanded","product":"core","slug":"io-github-libtmux-options-options-setexpanded"},{"id":"io.github.libtmux.Options.Options.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.unset","product":"core","slug":"io-github-libtmux-options-options-unset"},{"id":"io.github.libtmux.Pane.Pane","name":"Pane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux pane, as one capture saw it.","body":"Identity is the server and the pane id. An index is state: panes renumber as neighbours come\nand go.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.Pane","name":"Pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane(Server server, ServerSnapshot snapshot, PaneState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"PaneState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneState info()","params":[],"returns":"PaneState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later title change is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.info","product":"core","slug":"io-github-libtmux-pane-pane-info"},{"id":"io.github.libtmux.Pane.Pane.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneId id()","params":[],"returns":"PaneId","typeScopeBoundary":false}],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.id","product":"core","slug":"io-github-libtmux-pane-pane-id"},{"id":"io.github.libtmux.Pane.Pane.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int index()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.index","product":"core","slug":"io-github-libtmux-pane-pane-index"},{"id":"io.github.libtmux.Pane.Pane.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.active","product":"core","slug":"io-github-libtmux-pane-pane-active"},{"id":"io.github.libtmux.Pane.Pane.currentCommand","name":"currentCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentCommand()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentCommand","product":"core","slug":"io-github-libtmux-pane-pane-currentcommand"},{"id":"io.github.libtmux.Pane.Pane.floating","name":"floating","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional floating()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say.","body":"Empty is not \"no\". tmux before 3.7 expands the format to nothing, and answering {@code false}\nthere would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.floating","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.floating","product":"core","slug":"io-github-libtmux-pane-pane-floating"},{"id":"io.github.libtmux.Pane.Pane.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.size","product":"core","slug":"io-github-libtmux-pane-pane-size"},{"id":"io.github.libtmux.Pane.Pane.position","name":"position","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PanePosition position()","params":[],"returns":"PanePosition","typeScopeBoundary":false}],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.position","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.position","product":"core","slug":"io-github-libtmux-pane-pane-position"},{"id":"io.github.libtmux.Pane.Pane.title","name":"title","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String title()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.title","product":"core","slug":"io-github-libtmux-pane-pane-title"},{"id":"io.github.libtmux.Pane.Pane.currentPath","name":"currentPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Path currentPath()","params":[],"returns":"Path","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this JVM's encoding cannot represent the name, which a UTF-8 locale fixes"}]}],"doc":{"summary":"The working directory tmux reported for the pane.","body":"Converted on request rather than when the pane was captured, because a directory name is\nbytes to tmux and this JVM cannot always represent one: converting at capture time would lose\nevery pane on the server over a single pane's directory. {@link #currentPathText()} is the\nvalue tmux actually reported, and never throws."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPath","product":"core","slug":"io-github-libtmux-pane-pane-currentpath"},{"id":"io.github.libtmux.Pane.Pane.currentPathText","name":"currentPathText","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentPathText()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPathText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPathText","product":"core","slug":"io-github-libtmux-pane-pane-currentpathtext"},{"id":"io.github.libtmux.Pane.Pane.pid","name":"pid","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public OptionalLong pid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from.","body":"Empty means tmux reported no process — never a literal {@code 0}, which would be\nindistinguishable from a real pid. That covers two different situations this capture cannot\ntell apart: a pane that never ran one ({@link SplitSpec.Builder#empty()}) and, from tmux 3.8, a\npane that ran one and it has since died. Before 3.8 a dead pane still reports its stale pid.\n{@link #dead()} is the live read that tells a caller which."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pid","product":"core","slug":"io-github-libtmux-pane-pane-pid"},{"id":"io.github.libtmux.Pane.Pane.dead","name":"dead","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean dead()","params":[],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"}]}],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture.","body":"Dying is something that happens between reads, so a cached answer would report a pane that\ndied after this handle was captured as alive forever — the trap a snapshot-backed {@code\nisDead()} would set, which is why there is no such accessor on the capture itself. This asks\ntmux directly instead, every time.\n\nA dead pane is not necessarily a gone one: {@code remain-on-exit} keeps it around, still\nlisted, to be read. A pane with no {@code remain-on-exit} is simply removed once its process\nexits — {@link #refresh()} on this handle then throws {@link TargetGoneException}, and\nthis method throws too. Unlike every other command {@code Pane} sends, {@code display-message\n-t} does not error on a target it cannot resolve — it exits 0 with nothing on stdout — so a\ngone pane looks like a live one that answered nothing rather than like a failure. That empty\nread, and not a \"can't find pane\" from tmux, is what this method throws on: a real pane always\nanswers {@code 0} or {@code 1} for this format, never nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.dead","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.dead","product":"core","slug":"io-github-libtmux-pane-pane-dead"},{"id":"io.github.libtmux.Pane.Pane.resize","name":"resize","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resize(Direction direction, int cells)","params":[{"name":"direction","type":"Direction","doc":"which way to grow, named rather than flagged"},{"name":"cells","type":"int","doc":"how many terminal cells to grow by"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resize","product":"core","slug":"io-github-libtmux-pane-pane-resize"},{"id":"io.github.libtmux.Pane.Pane.edges","name":"edges","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneEdges edges()","params":[],"returns":"PaneEdges","typeScopeBoundary":false}],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.edges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.edges","product":"core","slug":"io-github-libtmux-pane-pane-edges"},{"id":"io.github.libtmux.Pane.Pane.copyMode","name":"copyMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void copyMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.copyMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.copyMode","product":"core","slug":"io-github-libtmux-pane-pane-copymode"},{"id":"io.github.libtmux.Pane.Pane.mode","name":"mode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional mode()","params":[],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the mode, or empty when the pane is showing its program","raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode outside the supported range"}]}],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none.","body":"Read live rather than from the capture, because entering a mode is something this library\ndoes and a caller wants to see the result of."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":239,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.mode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.mode","product":"core","slug":"io-github-libtmux-pane-pane-mode"},{"id":"io.github.libtmux.Pane.Pane.exitMode","name":"exitMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void exitMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Leaves whichever mode this pane is in.","body":"tmux spells this {@code copy-mode -q}, which quits any mode and not only copy mode — a clock\nand a chooser go the same way. The name is tmux's history rather than its behaviour, so it is\nnot the one exposed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":252,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.exitMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.exitMode","product":"core","slug":"io-github-libtmux-pane-pane-exitmode"},{"id":"io.github.libtmux.Pane.Pane.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.select","product":"core","slug":"io-github-libtmux-pane-pane-select"},{"id":"io.github.libtmux.Pane.Pane.retitle","name":"retitle","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Pane retitle(String title)","params":[{"name":"title","type":"String"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"Retitles this pane and returns its replacement capture.","body":"Retain the result to read the changed title. This handle keeps its original captured state.\n\nA program running in the pane can set its own title through an escape sequence, and tmux\nreports that one instead. This says what the title is now, not what it will stay."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":271,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.retitle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.retitle","product":"core","slug":"io-github-libtmux-pane-pane-retitle"},{"id":"io.github.libtmux.Pane.Pane.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resizeTo","product":"core","slug":"io-github-libtmux-pane-pane-resizeto"},{"id":"io.github.libtmux.Pane.Pane.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":295,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.server","product":"core","slug":"io-github-libtmux-pane-pane-server"},{"id":"io.github.libtmux.Pane.Pane.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.batch","product":"core","slug":"io-github-libtmux-pane-pane-batch"},{"id":"io.github.libtmux.Pane.Pane.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.snapshot","product":"core","slug":"io-github-libtmux-pane-pane-snapshot"},{"id":"io.github.libtmux.Pane.Pane.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Window window()","params":[],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.window","product":"core","slug":"io-github-libtmux-pane-pane-window"},{"id":"io.github.libtmux.Pane.Pane.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hooks","product":"core","slug":"io-github-libtmux-pane-pane-hooks"},{"id":"io.github.libtmux.Pane.Pane.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":326,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.options","product":"core","slug":"io-github-libtmux-pane-pane-options"},{"id":"io.github.libtmux.Pane.Pane.capture","name":"capture","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture()","params":[],"returns":"List","typeScopeBoundary":false},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder that reads the visible area and nothing else"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(CaptureSpec spec)","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":332,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.capture","product":"core","slug":"io-github-libtmux-pane-pane-capture"},{"id":"io.github.libtmux.Pane.Pane.noteTyped","name":"noteTyped","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void noteTyped(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}.","body":"Use this for input delivered outside this handle. Input sent through {@link #sendKeys}\nor {@link #sendLiteral} already records synchronized recipients. Include a trailing line break\nwhen the external write submitted its line; otherwise the text remains pending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.noteTyped","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.noteTyped","product":"core","slug":"io-github-libtmux-pane-pane-notetyped"},{"id":"io.github.libtmux.Pane.Pane.awaitText","name":"awaitText","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout) throws InterruptedException","params":[{"name":"text","type":"String","doc":"the text to wait for, matched anywhere in a captured line"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"TextOutcome","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which tells text that appeared from text that was already there","raises":[{"type":"LibTmuxException","doc":"if a read fails while the server is still answering — most often because this pane was killed, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]},{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"TextOutcome","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until this pane's text contains something, and says why the wait ended.","body":"**Reach for this last.** It reads the screen on a timer, which is a heuristic\nabout a program's output rather than a fact about it, and the cheaper waits are exact:\n\n - If you wrote the command, append {@code ; tmux wait-for -S name} to it and block on\n {@link Server#channel}. tmux blocks server-side and returns on the signal itself, so\n nothing is inferred from the screen and one tmux process covers the whole wait. That is\n the only deterministic wait here, and it is the right one whenever the command is yours.\n - If you did not write the command — a daemon printing that it is ready, a build somebody\n else started — this is the case polling is for.\n\nThe timeout bounds the whole wait, reads included. Each read is given only what is left of\nit, so a slow tmux cannot stretch a short wait out to the server's default deadline, and text\nthat first appears after the deadline is not reported. The first read alone is allowed at least\na quarter of a second, so a timeout shorter than one read can still answer\n{@link TextOutcome#PRESENT_AT_ENTRY}.\n\nWaiting longer is also less reliable, not more: tmux frees the oldest scrollback once\n{@code history-limit} is reached, so a long wait on a productive pane can end up reading past\nthe lines it was watching for.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.awaitText","product":"core","slug":"io-github-libtmux-pane-pane-awaittext"},{"id":"io.github.libtmux.Pane.Pane.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public PaneRun run(String command, Duration timeout) throws InterruptedException","params":[{"name":"command","type":"String","doc":"a line of shell, run as {@code eval} would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"}],"returns":"PaneRun","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if the pane is not running a POSIX shell"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"**Reach for this first** whenever the command is yours. Nothing is inferred from\nthe screen: the command runs in a subshell of the pane's own shell, whose trap reports {@code $?}\nand signals a private {@code wait-for} channel, so the wait is tmux's and the status is the\nshell's. The trap covers interrupt and terminate as well as exit, so a command someone stops at\nthe pane ends this call with the status it was stopped with rather than leaving it waiting. The output is what the command printed and nothing else — not the typed line,\nnot the prompt — cut out between two markers the plumbing prints around it.\n\nIt runs in the shell a person set up — its directory, its environment, a virtualenv someone\nactivated — which is the reason to type it there rather than start a process of your own. The\npane has to be running a POSIX shell for the typed line to mean what it says.\n\nA command still running at the deadline keeps running; the answer carries what it had printed\nby then, and {@link PaneRun#exact()} is false.","examples":[{"lang":"java","code":"PaneRun built = pane.run(\"make test\", Duration.ofMinutes(5));\nif (!built.succeeded()) {\n System.err.println(String.join(\"\\n\", built.output()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":435,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.run","product":"core","slug":"io-github-libtmux-pane-pane-run"},{"id":"io.github.libtmux.Pane.Pane.await","name":"await","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout) throws InterruptedException","params":[{"name":"settled","type":"Predicate","doc":"receives this pane as it is now"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended","raises":[{"type":"TargetGoneException","doc":"if this pane is killed while its server stays up, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until a condition holds for this pane as tmux reports it, and says why the wait ended.","body":"The pane is captured again before each test, so the condition reads fresh state rather than\nthe capture this handle was built from. What the condition receives is an ordinary handle on\nthis pane's server and can be kept. The ordering {@link #awaitText} describes applies here too —\na signal on a {@link Server#channel} is exact, and this is for when nothing signals — and so do\nits deadline rules.","examples":[{"lang":"java","code":"pane.await(fresh -> !fresh.currentCommand().equals(\"zsh\"), Duration.ofSeconds(5));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":484,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.await","product":"core","slug":"io-github-libtmux-pane-pane-await"},{"id":"io.github.libtmux.Pane.Pane.through","name":"through","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane through(Server via)","params":[{"name":"via","type":"Server"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"This pane's captured state, addressed through another view of the same server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":502,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.through","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.through","product":"core","slug":"io-github-libtmux-pane-pane-through"},{"id":"io.github.libtmux.Pane.Pane.send","name":"send","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void send(String keys)","params":[{"name":"keys","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends keys to this pane without pressing Enter.","body":"Separate from {@link #sendLine} rather than a boolean, so a call site says which it means.\n\nRecorded as an echo before dispatch, through the same key model {@link #sendKeys} uses,\nbecause tmux types anything here that is not one of its key names and a terminal echoes what\nis typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":546,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.send","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.send","product":"core","slug":"io-github-libtmux-pane-pane-send"},{"id":"io.github.libtmux.Pane.Pane.sendKeys","name":"sendKeys","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","body":"Each entry is resolved through tmux's key table; an unknown name is typed as text.\nRecorded input includes effective synchronized recipients. Known dispatch failures undo the\nrecord; uncertain delivery retains it. {@link #sendLiteral} types every entry literally.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendKeys","product":"core","slug":"io-github-libtmux-pane-pane-sendkeys"},{"id":"io.github.libtmux.Pane.Pane.sendLiteral","name":"sendLiteral","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell.","body":"Nothing is resolved as a key name, so {@code C-c} types those three characters. Recorded\nbefore dispatch, with a line break in the joined text treated as tmux treats it: a submit the\ninstant it reaches the pane, whether or not the caller also presses Enter afterward."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":599,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLiteral","product":"core","slug":"io-github-libtmux-pane-pane-sendliteral"},{"id":"io.github.libtmux.Pane.Pane.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLine","product":"core","slug":"io-github-libtmux-pane-pane-sendline"},{"id":"io.github.libtmux.Pane.Pane.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server incarnation this pane belongs to: its echo record and its input hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":692,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.identity","product":"core","slug":"io-github-libtmux-pane-pane-identity"},{"id":"io.github.libtmux.Pane.Pane.breakOut","name":"breakOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut()","params":[],"returns":"Window","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it.","body":"On tmux 3.7 the name is supplied rather than left to tmux, because letting tmux choose it\nthere ends the server and every session on it. The name supplied is the one tmux would have\nchosen, so the result is the same window either way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":703,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.breakOut","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.breakOut","product":"core","slug":"io-github-libtmux-pane-pane-breakout"},{"id":"io.github.libtmux.Pane.Pane.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to.","body":"The way out of this library. Snapshots carry the fields worth carrying; a format reaches\neverything else tmux knows, including fields added by a release this code has never heard of.","examples":[{"lang":"java","code":"String title = pane.expand(\"#{pane_title}\");\nString where = pane.expand(\"#{session_name}:#{window_index}.#{pane_index}\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":732,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.expand","product":"core","slug":"io-github-libtmux-pane-pane-expand"},{"id":"io.github.libtmux.Pane.Pane.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":742,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.variables","product":"core","slug":"io-github-libtmux-pane-pane-variables"},{"id":"io.github.libtmux.Pane.Pane.respawn","name":"respawn","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void respawn(String... command)","params":[{"name":"command","type":"String","variadic":"positional","doc":"the command and its arguments"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again.","body":"tmux refuses to respawn a pane that is still running something, on every supported release,\nso what is asked for is always the killing form. Restarting a live process is the whole point\nof the call."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":755,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawn","product":"core","slug":"io-github-libtmux-pane-pane-respawn"},{"id":"io.github.libtmux.Pane.Pane.respawnIn","name":"respawnIn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawnIn(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnIn","product":"core","slug":"io-github-libtmux-pane-pane-respawnin"},{"id":"io.github.libtmux.Pane.Pane.respawnArgv","name":"respawnArgv","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static List respawnArgv(PaneId pane, Path directory)","params":[{"name":"pane","type":"PaneId"},{"name":"directory","type":"Path"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":770,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnArgv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnArgv","product":"core","slug":"io-github-libtmux-pane-pane-respawnargv"},{"id":"io.github.libtmux.Pane.Pane.pipeTo","name":"pipeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pipeTo(String shellCommand)","params":[{"name":"shellCommand","type":"String","doc":"run by the user's shell, so it may redirect and pipe"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}.","body":"A second call replaces the first: tmux keeps one pipe per pane, not a list.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":807,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pipeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pipeTo","product":"core","slug":"io-github-libtmux-pane-pane-pipeto"},{"id":"io.github.libtmux.Pane.Pane.stopPiping","name":"stopPiping","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopPiping()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops sending this pane's output anywhere. Doing so twice is not an error."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":814,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.stopPiping","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.stopPiping","product":"core","slug":"io-github-libtmux-pane-pane-stoppiping"},{"id":"io.github.libtmux.Pane.Pane.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]}],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":855,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.split","product":"core","slug":"io-github-libtmux-pane-pane-split"},{"id":"io.github.libtmux.Pane.Pane.created","name":"created","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static Pane created(Server server, ServerSnapshot previous, List argv)","params":[{"name":"server","type":"Server"},{"name":"previous","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"Pane","typeScopeBoundary":true}],"doc":{"summary":"Runs a command that reports one new pane, and hands back a handle on it.","body":"The creating command names the pane it made, so the result is exact rather than whichever\npane a fresh listing happens to put last — two splits racing would otherwise be\nindistinguishable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":903,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.created","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.created","product":"core","slug":"io-github-libtmux-pane-pane-created"},{"id":"io.github.libtmux.Pane.Pane.createdFormat","name":"createdFormat","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static String createdFormat()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The format a creating command reports its new pane through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":918,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.createdFormat","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.createdFormat","product":"core","slug":"io-github-libtmux-pane-pane-createdformat"},{"id":"io.github.libtmux.Pane.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pasteBuffer(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":923,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pasteBuffer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pasteBuffer","product":"core","slug":"io-github-libtmux-pane-pane-pastebuffer"},{"id":"io.github.libtmux.Pane.Pane.paste","name":"paste","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the text contains NUL, which a terminal cannot receive and {@link #send} refuses too"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, where deleting the buffer left by a failed paste can remove one this did not create"}]},{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text, Runnable beforePaste)","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable","doc":"runs after staging and immediately before the paste dispatch"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server.","body":"Nothing in the text is looked up as a key name, so a line containing {@code Enter} or a\nbracket arrives as those characters. That is what an editor, a REPL, or anything reading a\nhere-document needs, and it is the difference from {@link #send}.\n\ntmux needs a buffer to paste from, and this one travels in the same invocation as the paste\nthat consumes it. A caller that stops in between therefore cannot leave the text in the paste\nhistory every session on the server can read.\n\nThe text goes to tmux on standard input rather than as an argument, so it is not bounded by\nthe size of a tmux command and never reaches tmux's parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":953,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.paste","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.paste","product":"core","slug":"io-github-libtmux-pane-pane-paste"},{"id":"io.github.libtmux.Pane.Pane.clearHistory","name":"clearHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clearHistory()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1050,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.clearHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.clearHistory","product":"core","slug":"io-github-libtmux-pane-pane-clearhistory"},{"id":"io.github.libtmux.Pane.Pane.swapWith","name":"swapWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void swapWith(Pane other)","params":[{"name":"other","type":"Pane"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1056,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.swapWith","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.swapWith","product":"core","slug":"io-github-libtmux-pane-pane-swapwith"},{"id":"io.github.libtmux.Pane.Pane.joinTo","name":"joinTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void joinTo(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1066,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.joinTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.joinTo","product":"core","slug":"io-github-libtmux-pane-pane-jointo"},{"id":"io.github.libtmux.Pane.Pane.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1076,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.kill","product":"core","slug":"io-github-libtmux-pane-pane-kill"},{"id":"io.github.libtmux.Pane.Pane.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Pane refresh()","params":[],"returns":"Pane","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this pane as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1090,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.refresh","product":"core","slug":"io-github-libtmux-pane-pane-refresh"},{"id":"io.github.libtmux.Pane.Pane.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.equals","product":"core","slug":"io-github-libtmux-pane-pane-equals"},{"id":"io.github.libtmux.Pane.Pane.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hashCode","product":"core","slug":"io-github-libtmux-pane-pane-hashcode"},{"id":"io.github.libtmux.Pane.Pane.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.toString","product":"core","slug":"io-github-libtmux-pane-pane-tostring"},{"id":"io.github.libtmux.PaneCommand.PaneCommand","name":"PaneCommand","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The line typed at a pane's shell to run one command to its end, and how its output is read back.","body":"Completion is not inferred from the screen. The command runs in a subshell whose trap prints an\nend marker carrying {@code $?} and then signals a private {@code wait-for} channel through the\nsame tmux binary and socket, so the wait is tmux's own and the status is the shell's. The trap\ncovers interrupt and terminate as well as exit, so a command someone stops with {@code C-c} ends\nthe run and reports the status it was stopped with — commonly 130 — rather than leaving a wait\nwith nothing to end it.\n\nThe output is cut out by framing: a start marker is printed before the command and the end\nmarker after it, and only lines strictly between them are returned. The shell echoes the whole\ntyped line, which contains both markers — but only inside quotes, never as a line of its own that\nequals a marker, so matching complete marker lines tells plumbing from output even when the echo\nwraps.\n\n{@link Pane#run} is built on this, and it is public for a caller that needs the same framing\naround orchestration of its own — the MCP server holds a pane for other clients while a run is\nuncertain, which the library has no reason to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand","product":"core","slug":"io-github-libtmux-panecommand-panecommand"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.fresh","name":"fresh","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public static PaneCommand fresh()","params":[],"returns":"PaneCommand","typeScopeBoundary":true}],"doc":{"summary":"A run with markers and a channel no other run shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.fresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.fresh","product":"core","slug":"io-github-libtmux-panecommand-panecommand-fresh"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String channel()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The {@code wait-for} channel the typed line signals once the command has ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.channel","product":"core","slug":"io-github-libtmux-panecommand-panecommand-channel"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.typed","name":"typed","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String typed(List tmux, String command)","params":[{"name":"tmux","type":"List","doc":"the client the pane's shell calls: an absolute binary and its {@code -S} socket"},{"name":"command","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The line to type.","body":"Typed at the pane's own interactive shell rather than a fresh one, so the command sees the\nenvironment a person set up there — a virtualenv, a loaded module, a directory someone changed\ninto. The leading space asks bash ({@code HISTCONTROL=ignorespace}) and zsh ({@code\nHIST_IGNORE_SPACE}) to keep the plumbing out of the history; a shell set to neither records it.\nBuiltins are called as {@code \\\\trap}, {@code \\\\eval} and {@code \\\\exit} so an alias of the same\nname cannot take them over.\n\nThe line begins with that space; strip it to have the shell record the line like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.typed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.typed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-typed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.frame","name":"frame","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public Framed frame(List lines)","params":[{"name":"lines","type":"List"}],"returns":"Framed","typeScopeBoundary":false}],"doc":{"summary":"What lies between the two markers, and the status the end marker carried.","body":"The start marker is matched as a whole row after trimming, the end marker as the end of\none — never by containment, because the echo of the typed line holds both as substrings and\nmust not be mistaken for either. The asymmetry is the shell's: nothing can precede the start\nmarker on its row, since it prints before the command runs, while the command's own last line\nprecedes the end marker whenever it carried no closing newline. That line is output, and is\nreturned as such."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.frame","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.frame","product":"core","slug":"io-github-libtmux-panecommand-panecommand-frame"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.status","name":"status","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public OptionalInt status(String line)","params":[{"name":"line","type":"String"}],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The exit status a row carries at its end, or empty when the row does not end in one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed","name":"Framed","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public record Framed(@ReadOnly List lines, boolean exact, OptionalInt status)","params":[{"name":"lines","type":"List","doc":"the command's output"},{"name":"exact","type":"boolean","doc":"whether both markers were found, so the lines are only the command's output"},{"name":"status","type":"OptionalInt","doc":"the exit status, when the end marker was read"}]}],"typeScopeBoundary":true,"doc":{"summary":"A run's output as read back from the screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","name":"lines","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-lines"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether both markers were found, so the lines are only the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-exact"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","name":"status","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the exit status, when the end marker was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","name":"requirePosixShell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static void requirePosixShell(String current)","params":[{"name":"current","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Refuses a pane whose shell would not read the typed line as written."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.requirePosixShell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","product":"core","slug":"io-github-libtmux-panecommand-panecommand-requireposixshell"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.quote","name":"quote","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static String quote(String word)","params":[{"name":"word","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One word, quoted so a POSIX shell reads it as exactly the text given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.quote","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.quote","product":"core","slug":"io-github-libtmux-panecommand-panecommand-quote"},{"id":"io.github.libtmux.PaneEcho.PaneEcho","name":"PaneEcho","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Tracks pending and recently submitted input under each server incarnation and pane id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live","name":"Live","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"record Live(@ReadOnly List pending, @ReadOnly List recent)","params":[{"name":"pending","type":"List"},{"name":"recent","type":"List"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","name":"NONE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","signatures":[],"typeScopeBoundary":true,"type":"Live","value":"new Live(List.of(), List.of())","source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.NONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-none"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","name":"pending","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.pending","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-pending"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","name":"recent","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.recent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-recent"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","name":"PaneEcho","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"PaneEcho()","params":[],"typeScopeBoundary":false},{"raw":"PaneEcho(LongSupplier nanoTime)","params":[{"name":"nanoTime","type":"LongSupplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","name":"Recorded","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[],"typeScopeBoundary":false,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":254,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","name":"confirm","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void confirm()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.confirm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-confirm"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","name":"rollback","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void rollback()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.rollback","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-rollback"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","name":"recordLiteral","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordLiteral(ServerIdentity identity, PaneId pane, String text)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordliteral"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","name":"recordKeys","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordKeys(ServerIdentity identity, PaneId pane, List keys)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"keys","type":"List"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordkeys"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"int size()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.size","product":"core","slug":"io-github-libtmux-paneecho-paneecho-size"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.forget","name":"forget","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"void forget(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.forget","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.forget","product":"core","slug":"io-github-libtmux-paneecho-paneecho-forget"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","name":"liveFor","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Live liveFor(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"Live","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":382,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.liveFor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","product":"core","slug":"io-github-libtmux-paneecho-paneecho-livefor"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","name":"withoutEcho","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"static List withoutEcho(List lines, List echoes)","params":[{"name":"lines","type":"List"},{"name":"echoes","type":"List"}],"returns":"List","typeScopeBoundary":true},{"raw":"static List withoutEcho(List lines, String echo)","params":[{"name":"lines","type":"List"},{"name":"echo","type":"String"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":396,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-withoutecho"},{"id":"io.github.libtmux.PaneEdges.PaneEdges","name":"PaneEdges","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneEdges(boolean top, boolean bottom, boolean left, boolean right)","params":[{"name":"top","type":"boolean","doc":"whether the pane touches the top of its window"},{"name":"bottom","type":"boolean","doc":"whether it touches the bottom"},{"name":"left","type":"boolean","doc":"whether it touches the left"},{"name":"right","type":"boolean","doc":"whether it touches the right"}]}],"typeScopeBoundary":false,"doc":{"summary":"Which sides of its window a pane touches.","body":"Grouped rather than four loose flags, because they are read together to answer one question —\nwhere in the window this pane sits — and four booleans in a row is an invitation to transpose two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges","product":"core","slug":"io-github-libtmux-paneedges-paneedges"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","name":"fillsWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEdges.PaneEdges","signatures":[{"raw":"public boolean fillsWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane fills its window, touching every side."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.fillsWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","product":"core","slug":"io-github-libtmux-paneedges-paneedges-fillswindow"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.top","name":"top","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the pane touches the top of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.top","product":"core","slug":"io-github-libtmux-paneedges-paneedges-top"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.bottom","name":"bottom","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the bottom"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.bottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.bottom","product":"core","slug":"io-github-libtmux-paneedges-paneedges-bottom"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.left","name":"left","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the left"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.left","product":"core","slug":"io-github-libtmux-paneedges-paneedges-left"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.right","name":"right","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the right"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.right","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.right","product":"core","slug":"io-github-libtmux-paneedges-paneedges-right"},{"id":"io.github.libtmux.PaneId.PaneId","name":"PaneId","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code %} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux pane id, such as {@code %2}.","body":"Stable for the life of the pane, unlike a pane index, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId","product":"core","slug":"io-github-libtmux-paneid-paneid"},{"id":"io.github.libtmux.PaneId.PaneId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneId.PaneId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.toString","product":"core","slug":"io-github-libtmux-paneid-paneid-tostring"},{"id":"io.github.libtmux.PaneId.PaneId.value","name":"value","kind":"method","parent":"io.github.libtmux.PaneId.PaneId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code %} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.value","product":"core","slug":"io-github-libtmux-paneid-paneid-value"},{"id":"io.github.libtmux.PaneInput.PaneInput","name":"PaneInput","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One writer at a time for a pane's keyboard, paste, and shell run.","body":"Those three share one screen. {@link #hold} throws if another thread already has the pane.\nThe same thread may hold it again; the pane is free when the outer hold closes. {@link\nPane#sendKeys}, {@link Pane#sendLiteral}, {@link Pane#paste}, {@link Pane#pasteBuffer}, and {@link\nPane#run} take a hold for the call and release it when they return. A command still running after\n{@code run} returns is not held unless the caller kept {@link #hold} or {@link #holdInterruptible}\naround that call. Raw commands and {@link CommandChain} steps do not take it.\n\n{@link #holdInterruptible} is that longer hold. Another thread may {@link #enterInterrupt} it\nto send a stop, and that entry does not take the pane. Closing the run's lease still releases\nit, including from the thread that notices the command has finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput","product":"core","slug":"io-github-libtmux-paneinput-paneinput"},{"id":"io.github.libtmux.PaneInput.PaneInput.hold","name":"hold","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease hold(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Excludes other threads from this pane until the lease closes. The pane is the one its capture named: the same id on a server started since is another pane, and is not held."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.hold","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.hold","product":"core","slug":"io-github-libtmux-paneinput-paneinput-hold"},{"id":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","name":"holdInterruptible","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease holdInterruptible(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Holds the pane for a command that another thread may have to stop.","body":"The stop uses {@link #enterInterrupt}. Any other attempt to {@link #hold} still fails."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.holdInterruptible","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","product":"core","slug":"io-github-libtmux-paneinput-paneinput-holdinterruptible"},{"id":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","name":"enterInterrupt","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease enterInterrupt(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Enters a pane {@link #holdInterruptible} is holding, without taking it.","body":"Closing this lease leaves the run's hold in place. A pane that is free, or held by\n{@link #hold}, refuses the entry."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.enterInterrupt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","product":"core","slug":"io-github-libtmux-paneinput-paneinput-enterinterrupt"},{"id":"io.github.libtmux.PaneInput.PaneInput.heldSince","name":"heldSince","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Optional heldSince(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"empty when the pane is not held"}],"doc":{"summary":"Reports when the current hold on this pane was acquired, so a lease nothing ever closes can be found from outside the thread holding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.heldSince","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.heldSince","product":"core","slug":"io-github-libtmux-paneinput-paneinput-heldsince"},{"id":"io.github.libtmux.PaneInput.PaneInput.held","name":"held","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"@ReadOnly\n public static List held()","params":[],"returns":"List","typeScopeBoundary":true,"returnsDoc":"an immutable snapshot, one entry per held pane regardless of how many times its owning thread has re-entered it"}],"doc":{"summary":"Every pane held right now, for diagnosing a lease nothing ever closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-16tz"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held","name":"Held","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public record Held(ServerIdentity server, PaneId pane, Instant since, String holdingThread)","params":[{"name":"server","type":"ServerIdentity","doc":"which server's pane this is"},{"name":"pane","type":"PaneId","doc":"the held pane"},{"name":"since","type":"Instant","doc":"when the hold was acquired"},{"name":"holdingThread","type":"String","doc":"the name of the thread that holds it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One pane's outstanding hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-6kxu"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.server","name":"server","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"ServerIdentity"}],"doc":{"summary":"which server's pane this is"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.server","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-server"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.pane","name":"pane","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the held pane"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.pane","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-pane"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.since","name":"since","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"Instant"}],"doc":{"summary":"when the hold was acquired"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.since","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-since"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","name":"holdingThread","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the name of the thread that holds it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.holdingThread","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-holdingthread"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease","name":"Lease","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Releases one matching hold. Closing twice releases once. Any thread may close it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput.Lease","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease.close","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease-close"},{"id":"io.github.libtmux.PaneMode.PaneMode","name":"PaneMode","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A mode a pane can be in, as tmux names them.","body":"A pane in a mode shows something other than its program: its own scrollback, a clock, or one of\nthe choosers. Every mode below exists on each supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.COPY","name":"COPY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback, navigable and selectable. Entered by {@link Pane#copyMode()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.COPY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.COPY","product":"core","slug":"io-github-libtmux-panemode-panemode-copy"},{"id":"io.github.libtmux.PaneMode.PaneMode.VIEW","name":"VIEW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback without the selection commands.","body":"tmux enters this itself, for the output of a command it was asked to display; no command\nhere puts a pane into it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.VIEW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.VIEW","product":"core","slug":"io-github-libtmux-panemode-panemode-view"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLOCK","name":"CLOCK","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A clock, entered by tmux's {@code clock-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLOCK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLOCK","product":"core","slug":"io-github-libtmux-panemode-panemode-clock"},{"id":"io.github.libtmux.PaneMode.PaneMode.TREE","name":"TREE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The session and window browser, which the window finder also opens."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.TREE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.TREE","product":"core","slug":"io-github-libtmux-panemode-panemode-tree"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLIENT","name":"CLIENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The attached-client browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLIENT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLIENT","product":"core","slug":"io-github-libtmux-panemode-panemode-client"},{"id":"io.github.libtmux.PaneMode.PaneMode.BUFFER","name":"BUFFER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The paste-buffer browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.BUFFER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.BUFFER","product":"core","slug":"io-github-libtmux-panemode-panemode-buffer"},{"id":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","name":"OPTIONS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The option browser, entered by tmux's {@code customize-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.OPTIONS","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","product":"core","slug":"io-github-libtmux-panemode-panemode-options"},{"id":"io.github.libtmux.PaneMode.PaneMode.PaneMode","name":"PaneMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"PaneMode(String reported)","params":[{"name":"reported","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.reported","name":"reported","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"public String reported()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What tmux calls it, which is what {@code #{pane_mode}} expands to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.reported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.reported","product":"core","slug":"io-github-libtmux-panemode-panemode-reported"},{"id":"io.github.libtmux.PaneMode.PaneMode.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"static PaneMode of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"PaneMode","typeScopeBoundary":true,"raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode this release range does not have"}]}],"doc":{"summary":"Reads what tmux reported."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.of","product":"core","slug":"io-github-libtmux-panemode-panemode-of"},{"id":"io.github.libtmux.PanePosition.PanePosition","name":"PanePosition","kind":"class","modifiers":[],"signatures":[{"raw":"public record PanePosition(int left, int top)","params":[{"name":"left","type":"int","doc":"columns from the window's left edge"},{"name":"top","type":"int","doc":"rows from the window's top edge"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a pane's top-left corner sits in its window, in terminal cells.","body":"A pair rather than two loose numbers, for the reason {@link Dimensions} gives: read together,\nand a call site that took them separately could transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition","product":"core","slug":"io-github-libtmux-paneposition-paneposition"},{"id":"io.github.libtmux.PanePosition.PanePosition.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PanePosition.PanePosition","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.toString","product":"core","slug":"io-github-libtmux-paneposition-paneposition-tostring"},{"id":"io.github.libtmux.PanePosition.PanePosition.left","name":"left","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns from the window's left edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.left","product":"core","slug":"io-github-libtmux-paneposition-paneposition-left"},{"id":"io.github.libtmux.PanePosition.PanePosition.top","name":"top","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows from the window's top edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.top","product":"core","slug":"io-github-libtmux-paneposition-paneposition-top"},{"id":"io.github.libtmux.PaneRun.PaneRun","name":"PaneRun","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneRun(\n Outcome outcome, OptionalInt exitStatus, @ReadOnly List output, boolean exact)","params":[{"name":"outcome","type":"Outcome","doc":"why the wait ended"},{"name":"exitStatus","type":"OptionalInt","doc":"the command's exit status, present once it finished and its end was read"},{"name":"output","type":"List","doc":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},{"name":"exact","type":"boolean","doc":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"}]}],"typeScopeBoundary":false,"doc":{"summary":"How a command run in a pane with {@link Pane#run} ended, and what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun","product":"core","slug":"io-github-libtmux-panerun-panerun"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome","name":"Outcome","kind":"enum","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Why a run's wait ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","name":"FINISHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The command ended; its status is in {@link #exitStatus()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.FINISHED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-finished"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the command still running. The output is what it had printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-timed_out"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the command, so nothing about it can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-server_gone"},{"id":"io.github.libtmux.PaneRun.PaneRun.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the command finished with status zero."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.succeeded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.succeeded","product":"core","slug":"io-github-libtmux-panerun-panerun-succeeded"},{"id":"io.github.libtmux.PaneRun.PaneRun.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"Outcome"}],"doc":{"summary":"why the wait ended"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-3ji4"},{"id":"io.github.libtmux.PaneRun.PaneRun.exitStatus","name":"exitStatus","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the command's exit status, present once it finished and its end was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exitStatus","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exitStatus","product":"core","slug":"io-github-libtmux-panerun-panerun-exitstatus"},{"id":"io.github.libtmux.PaneRun.PaneRun.output","name":"output","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.output","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.output","product":"core","slug":"io-github-libtmux-panerun-panerun-output"},{"id":"io.github.libtmux.PaneRun.PaneRun.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exact","product":"core","slug":"io-github-libtmux-panerun-panerun-exact"},{"id":"io.github.libtmux.PaneSize.PaneSize","name":"PaneSize","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How big a new pane should be.","body":"One value with two spellings, not a size and a percentage. tmux takes both through {@code -l},\nso there is no pair of fields to hold consistent and no \"both were given\" error to raise — the\nPython sibling's {@code size}/{@code percentage} pair and the {@code ValueError} guarding it both\ndisappear.\n\ntmux's own {@code -p} flag is never emitted. It is broken in 3.4, which reads the {@code -l}\nargument while handling {@code -p} and fails with {@code size missing}; {@code -l 25%} produces the\nsame pane on every supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize","product":"core","slug":"io-github-libtmux-panesize-panesize"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells","name":"Cells","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Cells(int count) implements PaneSize","params":[{"name":"count","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-csva"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells.count","name":"count","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Cells","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells.count","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells.count","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-count"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent","name":"Percent","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Percent(int share) implements PaneSize","params":[{"name":"share","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-30sw"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent.share","name":"share","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Percent","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent.share","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent.share","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-share"},{"id":"io.github.libtmux.PaneSize.PaneSize.cells","name":"cells","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize cells(int count)","params":[{"name":"count","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-11uj"},{"id":"io.github.libtmux.PaneSize.PaneSize.percent","name":"percent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize percent(int share)","params":[{"name":"share","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A share of what is being split, between 1 and 100."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-1ojv"},{"id":"io.github.libtmux.PaneSize.PaneSize.flagValue","name":"flagValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"default String flagValue()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What follows {@code -l}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.flagValue","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.flagValue","product":"core","slug":"io-github-libtmux-panesize-panesize-flagvalue"},{"id":"io.github.libtmux.PaneStart.PaneStart","name":"PaneStart","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What runs in a new pane.","body":"One choice rather than a command field beside an emptiness flag. tmux refuses the pair —\n{@code command cannot be given for empty pane} — and refuses it before spawning anything, so the\ncombination is not a state the server will ever be in. Sealing it means no value can carry both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart","product":"core","slug":"io-github-libtmux-panestart-panestart"},{"id":"io.github.libtmux.PaneStart.PaneStart.Shell","name":"Shell","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Shell() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Whatever the session's {@code default-command} or shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-x755"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command","name":"Command","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Command(@ReadOnly List argv) implements PaneStart","params":[{"name":"argv","type":"List","doc":"the command and its arguments"}]}],"typeScopeBoundary":true,"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-o9ni"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command.argv","name":"argv","kind":"method","parent":"io.github.libtmux.PaneStart.PaneStart.Command","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command and its arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command.argv","product":"core","slug":"io-github-libtmux-panestart-panestart-command-argv"},{"id":"io.github.libtmux.PaneStart.PaneStart.Empty","name":"Empty","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Empty() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1qmp"},{"id":"io.github.libtmux.PaneStart.PaneStart.shell","name":"shell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart shell()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"Whatever the session's shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-kfg3"},{"id":"io.github.libtmux.PaneStart.PaneStart.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart command(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-vfqq"},{"id":"io.github.libtmux.PaneStart.PaneStart.empty","name":"empty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart empty()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1dv0"},{"id":"io.github.libtmux.PaneWait.PaneWait","name":"PaneWait","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Polls a pane on a timer for {@link Pane#awaitText} and {@link Pane#await}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait","product":"core","slug":"io-github-libtmux-panewait-panewait"},{"id":"io.github.libtmux.PaneWait.PaneWait.POLL","name":"POLL","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[],"typeScopeBoundary":true,"type":"Duration","value":"Duration.ofMillis(50)","doc":{"summary":"How often a wait looks again.","body":"Short enough that a wait reports promptly, long enough that a wait held open for minutes\nis not thousands of tmux invocations. A caller who needs an exact moment wants a signal on a\n{@link Channel}, not a shorter interval here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.POLL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.POLL","product":"core","slug":"io-github-libtmux-panewait-panewait-poll"},{"id":"io.github.libtmux.PaneWait.PaneWait.awaitText","name":"awaitText","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static TextOutcome awaitText(Pane pane, String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"TextOutcome","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#awaitText(String, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.awaitText","product":"core","slug":"io-github-libtmux-panewait-panewait-awaittext"},{"id":"io.github.libtmux.PaneWait.PaneWait.await","name":"await","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static WakeReason await(Pane pane, Predicate settled, Duration timeout, Duration every)\n throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#await(Predicate, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.await","product":"core","slug":"io-github-libtmux-panewait-panewait-await"},{"id":"io.github.libtmux.PrintedText.PrintedText","name":"PrintedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Decodes tmux's printed output against the version the server actually reports, framed with process-local markers so a reply is read back exactly whatever quirks that version's own printing has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText","product":"core","slug":"io-github-libtmux-printedtext-printedtext"},{"id":"io.github.libtmux.PrintedText.PrintedText.END_MARK","name":"END_MARK","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[],"typeScopeBoundary":true,"type":"String","value":"Tokens.perProcess() + \"-end\"","doc":{"summary":"Printed after what a command printed. tmux ends its output with a line break and the transport drops trailing blank lines, so text that itself ends in line breaks would lose them; with this after it, nothing trailing is blank."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.END_MARK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.END_MARK","product":"core","slug":"io-github-libtmux-printedtext-printedtext-end_mark"},{"id":"io.github.libtmux.PrintedText.PrintedText.expansion","name":"expansion","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String expansion(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A format for {@code display-message -p} that {@link #printed(List)} reads back exactly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.expansion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.expansion","product":"core","slug":"io-github-libtmux-printedtext-printedtext-expansion"},{"id":"io.github.libtmux.PrintedText.PrintedText.versioned","name":"versioned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String versioned(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"This format with the server's version expanded ahead of it, so the reply can be decoded without another tmux process. See {@link TmuxFormats#printed(String, TmuxVersion)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.versioned","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.versioned","product":"core","slug":"io-github-libtmux-printedtext-printedtext-versioned"},{"id":"io.github.libtmux.PrintedText.PrintedText.printed","name":"printed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String printed(List reported)","params":[{"name":"reported","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The expansion of a {@link #versioned} format, as tmux held the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printed"},{"id":"io.github.libtmux.PrintedText.PrintedText.printedRows","name":"printedRows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List printedRows(List rows)","params":[{"name":"rows","type":"List"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"As {@link #printed(List)}, for a listing whose every row began with {@link #versioned}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printedRows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printedRows","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printedrows"},{"id":"io.github.libtmux.PrintedText.PrintedText.framed","name":"framed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List> framed(List argv)","params":[{"name":"argv","type":"List"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"The three commands {@link Server#printed(io.github.libtmux.snapshot.ServerSnapshot, List)} sends as one group."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.framed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-framed"},{"id":"io.github.libtmux.PrintedText.PrintedText.unwrap","name":"unwrap","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static CommandResult unwrap(CommandResult result)","params":[{"name":"result","type":"CommandResult"}],"returns":"CommandResult","typeScopeBoundary":true}],"doc":{"summary":"Strips the version line and end mark {@link #framed} added, decoding what is left."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.unwrap","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.unwrap","product":"core","slug":"io-github-libtmux-printedtext-printedtext-unwrap"},{"id":"io.github.libtmux.Prompt.Prompt","name":"Prompt","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's command-prompt history.","body":"Whether the commands exist is asked of the daemon, not inferred from a version string."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.Prompt","name":"Prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"Prompt(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.history","name":"history","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List history()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.history","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.history","product":"core","slug":"io-github-libtmux-prompt-prompt-history"},{"id":"io.github.libtmux.Prompt.Prompt.clear","name":"clear","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clear()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.clear","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.clear","product":"core","slug":"io-github-libtmux-prompt-prompt-clear"},{"id":"io.github.libtmux.query.FieldKind.FieldKind","name":"FieldKind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The value kind a field reads.","body":"Carried explicitly because exactness must not rest on the operand's runtime class. A number\nfield's operand happens to box to {@code Integer}, and reading the kind off that accident would\nsilently pick tmux's lexical comparison where the caller meant arithmetic."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","name":"TEXT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.TEXT","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-text"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","name":"NUMBER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.NUMBER","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-number"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","name":"FLAG","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.FLAG","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-flag"},{"id":"io.github.libtmux.query.FieldRef.FieldRef","name":"FieldRef","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"A named, kinded accessor.","body":"The name makes a built expression printable; the kind makes consumers independent of the\noperand's runtime class. A serializer or compiler must bind the exact handle against its own\nmodel before trusting the name to describe what the accessor reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","name":"FieldRef","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"FieldRef(String id, FieldKind kind, Function accessor)","params":[{"name":"id","type":"String"},{"name":"kind","type":"FieldKind"},{"name":"accessor","type":"Function"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.requireId","name":"requireId","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"static String requireId(String id)","params":[{"name":"id","type":"String"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.requireId","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.requireId","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-requireid"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.id","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-id"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.kind","name":"kind","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public FieldKind kind()","params":[],"returns":"FieldKind","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.kind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.kind","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-kind"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.accessor","name":"accessor","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public Function accessor()","params":[],"returns":"Function","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.accessor","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.accessor","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-accessor"},{"id":"io.github.libtmux.query.Fields.Fields","name":"Fields","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed field handles.","body":"A caller supplies each accessor, so no backend may trust the name without matching this exact\nhandle against a model it owns.\n\nEach kind exposes only the operators its type supports, so {@code Pane_.index().startsWith(..)}\nis a compile error rather than a runtime class cast. This is the half of the metamodel that has to\nexist by hand or by generator; the generator only writes the accessors, never the semantics."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields","product":"core","slug":"io-github-libtmux-query-fields-fields"},{"id":"io.github.libtmux.query.Fields.Fields.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static TextField text(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"TextField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.text","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.text","product":"core","slug":"io-github-libtmux-query-fields-fields-text"},{"id":"io.github.libtmux.query.Fields.Fields.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static NumberField number(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"NumberField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.number","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.number","product":"core","slug":"io-github-libtmux-query-fields-fields-number"},{"id":"io.github.libtmux.query.Fields.Fields.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static FlagField flag(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"FlagField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.flag","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.flag","product":"core","slug":"io-github-libtmux-query-fields-fields-flag"},{"id":"io.github.libtmux.query.Fields.Fields.toMany","name":"toMany","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToManyRef toMany(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToManyRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toMany","product":"core","slug":"io-github-libtmux-query-fields-fields-tomany"},{"id":"io.github.libtmux.query.Fields.Fields.toOne","name":"toOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToOneRef toOne(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToOneRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toOne","product":"core","slug":"io-github-libtmux-query-fields-fields-toone"},{"id":"io.github.libtmux.query.Fields.Fields.TextField","name":"TextField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record TextField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"String-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr is(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr isNot(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.contains","name":"contains","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr contains(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.contains","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.contains","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-contains"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","name":"startsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr startsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.startsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-startswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","name":"endsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr endsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.endsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-endswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr matches(Pattern value)","params":[{"name":"value","type":"Pattern"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.matches","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-matches"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr in(Collection values)","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.in","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.in","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-in"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.TextField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField","name":"NumberField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record NumberField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Integer-valued field. No text operators reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr is(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr isNot(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","name":"lessThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr lessThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.lessThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-lessthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","name":"atMost","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atMost(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atMost","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atmost"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr greaterThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.greaterThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atLeast(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atLeast","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atleast"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.NumberField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField","name":"FlagField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record FlagField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Boolean-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr is(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isNot(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","name":"isTrue","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isTrue()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isTrue","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-istrue"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","name":"isFalse","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isFalse()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isFalse","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isfalse"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.FlagField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef","name":"ToManyRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-many relation. Quantifiers are the only way in, so an unquantified relation cannot compile."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","name":"any","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany any(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.any","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-any"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany all(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.all","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-all"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","name":"none","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany none(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.none","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-none"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef","name":"ToOneRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-one relation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public FilterExpr.ToOne is(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToOne","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-is"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr","name":"FilterExpr","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"A filter that is both runnable and readable.","body":"It extends {@link Predicate}, so {@code stream().filter(expr)} works with no adapter, and it is\na sealed tree of records, so the same value can be printed, serialized, or later compiled into a\ntmux {@code -f} filter. A lambda can do the first of those and none of the rest, which is why\nnamed expressions are built from these nodes instead.\n\nEvaluation is a total function over the tree: every consumer switches exhaustively, so adding a\nnode breaks compilation at each site that has to learn about it rather than at runtime."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"String describe();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Renders the expression as inspectable text. Deliberately not {@code toString} on records."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.and","name":"and","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr and(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr and(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.and","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.and","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-12cg"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.or","name":"or","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr or(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr or(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-6b3f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","name":"negate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"@Override\n default FilterExpr negate()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"doc":{"summary":"Negation, narrowed to an expression.","body":"{@code and} and {@code or} below are deliberately *overloads* of the inherited\n{@link Predicate} methods rather than overrides: their parameter is a {@code FilterExpr}, so\ncombining two expressions stays an expression, while passing a bare lambda selects the\ninherited method and yields a plain predicate. That is the intended boundary — a lambda cannot\nbe printed or serialized, so an expression built from one must not claim to be inspectable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.negate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-negate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And","name":"And","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record And(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Conjunction. An empty conjunction is true, which is what makes it a safe identity."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-b05l"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","name":"Or","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Or(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Disjunction. An empty disjunction is false."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-9f1f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","name":"Not","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Not(FilterExpr operand) implements FilterExpr","params":[{"name":"operand","type":"FilterExpr"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","name":"Compare","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Compare(FieldRef field, Operator operator, Object operand) implements FilterExpr","params":[{"name":"field","type":"FieldRef"},{"name":"operator","type":"Operator"},{"name":"operand","type":"Object"}],"typeParamNames":["T","V"],"typeParams":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}]}],"typeScopeBoundary":true,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"One scalar field compared to one operand."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.equals","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-equals"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.hashCode","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-hashcode"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","name":"field","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.field","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-field"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","name":"operator","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Operator"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operator"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Object"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","name":"ToMany","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToMany(Fields.ToManyRef relation, Quantifier quantifier, FilterExpr predicate)\n implements FilterExpr","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"quantifier","type":"Quantifier"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A quantified filter over a to-many relation.","body":"{@code ALL} over an empty relation is true. That is the standard vacuous reading and it is\nthe one tmux users expect: a session with no windows does not fail \"all windows are zoomed\"."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToManyRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","name":"quantifier","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Quantifier"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","name":"ToOne","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToOne(Fields.ToOneRef relation, FilterExpr predicate) implements FilterExpr","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A to-one relation. An absent target does not satisfy the filter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToOneRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","name":"Quantifier","kind":"enum","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","name":"ANY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ANY","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-any"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","name":"ALL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ALL","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-all"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","name":"NONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.NONE","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-none"},{"id":"io.github.libtmux.query.Operator.Operator","name":"Operator","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The scalar comparisons an expression can hold. Evaluation stays a total switch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.EQUALS","name":"EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-equals"},{"id":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","name":"NOT_EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.NOT_EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-not_equals"},{"id":"io.github.libtmux.query.Operator.Operator.CONTAINS","name":"CONTAINS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.CONTAINS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.CONTAINS","product":"core","slug":"io-github-libtmux-query-operator-operator-contains"},{"id":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","name":"STARTS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.STARTS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-starts_with"},{"id":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","name":"ENDS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.ENDS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-ends_with"},{"id":"io.github.libtmux.query.Operator.Operator.MATCHES","name":"MATCHES","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.MATCHES","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.MATCHES","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-1lrg"},{"id":"io.github.libtmux.query.Operator.Operator.LESS_THAN","name":"LESS_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.LESS_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.LESS_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-less_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_MOST","name":"AT_MOST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_MOST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_MOST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_most"},{"id":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","name":"GREATER_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.GREATER_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-greater_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_LEAST","name":"AT_LEAST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_LEAST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_LEAST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_least"},{"id":"io.github.libtmux.query.Operator.Operator.IN","name":"IN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.IN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.IN","product":"core","slug":"io-github-libtmux-query-operator-operator-in"},{"id":"io.github.libtmux.query.Operator.Operator.Operator","name":"Operator","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"Operator(String symbol)","params":[{"name":"symbol","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.symbol","name":"symbol","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"public String symbol()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.symbol","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.symbol","product":"core","slug":"io-github-libtmux-query-operator-operator-symbol"},{"id":"io.github.libtmux.query.Operator.Operator.requireOperand","name":"requireOperand","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"void requireOperand(FieldKind kind, Object operand)","params":[{"name":"kind","type":"FieldKind"},{"name":"operand","type":"Object"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.requireOperand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.requireOperand","product":"core","slug":"io-github-libtmux-query-operator-operator-requireoperand"},{"id":"io.github.libtmux.query.Operator.Operator.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"@SuppressWarnings(\"unchecked\")\n boolean matches(Object actual, Object operand)","params":[{"name":"actual","type":"Object"},{"name":"operand","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.matches","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-80y7"},{"id":"io.github.libtmux.query.Selections.Selections","name":"Selections","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Cardinality with the ambiguity removed.","body":"\"No session matched\" and \"several sessions matched\" are different bugs in a caller's code, so\nthey get different exceptions. {@code findFirst} stays on {@link java.util.stream.Stream} where it\nalready belongs; only the strict shapes need helpers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections","product":"core","slug":"io-github-libtmux-query-selections-selections"},{"id":"io.github.libtmux.query.Selections.Selections.exactlyOne","name":"exactlyOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static T exactlyOne(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one did; the scan stops at the second match, so its count is two"}]}],"doc":{"summary":"The single match, or a failure naming which way the count was wrong."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.exactlyOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.exactlyOne","product":"core","slug":"io-github-libtmux-query-selections-selections-exactlyone"},{"id":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","name":"oneOrEmpty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static Optional oneOrEmpty(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one matched"}]}],"doc":{"summary":"The single match if there is one, empty if there is none — but still a failure for several.","body":"Returning the first of many would make a caller's ambiguous query look answered."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.oneOrEmpty","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","product":"core","slug":"io-github-libtmux-query-selections-selections-oneorempty"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters","name":"TmuxFilters","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Lowers a {@link FilterExpr} to a tmux {@code -f} format when every node is one tmux can apply.","body":"Relations, a Java regular expression, and any operand containing {@code ,}, `#`,\n`{`, `}`, {@code :}, or a backslash, are refused. Those stay a local filter over a capture. tmux\ncompiles {@code #{m/r:}} with its own dialect, so a pattern Java would match can select nothing.\nA compiled format is a hint to tmux, not a promise that the local reading would differ: callers\nstill apply the expression to the rows that come back."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","name":"format","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static Optional format(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"A tmux format for {@code -f}, or empty when this expression is not a safe subset."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.format","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-format"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static boolean literal(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this text can sit inside a tmux format argument without changing its shape. A backslash escapes the next character in a format, so a trailing one swallows the closing brace."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.literal","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-literal"},{"id":"io.github.libtmux.Server.Server","name":"Server","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use {@link #open} with a {@link ServerConfig} to select a server by socket name or path.\nFrom this object, create sessions or query the server's existing sessions, windows, and panes.\nEach {@link Session} contains windows, and each {@link Window} contains panes.\n\nOwnership is decided at construction and never inferred. {@link #open} creates a transport this\nserver closes exactly once; {@link #using} borrows one the caller keeps, so several servers can\nshare a transport and closing one leaves the others working.\n\nClosing this object releases its owned transport. The tmux server and its sessions keep\nrunning. Call {@link #killServer()} to stop the tmux server.\n\nClose it anyway. A server that owns its transport holds the threads that drain tmux's output,\nand those are not daemons, so that a reply being read when a program ends is finished rather than\ntruncated. They do let go once they have been idle, so forgetting to close delays a JVM's exit by\nseconds instead of preventing it — but only closing releases them at once.\n\n**Threads.** Share one freely. A server holds nothing a call changes, its transport\nis thread-safe by contract, and the record of what was typed into each pane is concurrent; calls\nfrom several threads run side by side, bounded by the transport's own admission. The same goes\nfor every {@link Session}, {@link Window} and {@link Pane} it hands out: each is an immutable view\nof one capture, and a method that changes tmux changes tmux rather than the handle. Close it once,\nafter the last call on any thread.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server","product":"core","slug":"io-github-libtmux-server-server"},{"id":"io.github.libtmux.Server.Server.echo","name":"echo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"PaneEcho echo()","params":[],"returns":"PaneEcho","typeScopeBoundary":false}],"doc":{"summary":"What this library last typed into each of this server's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.echo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.echo","product":"core","slug":"io-github-libtmux-server-server-echo"},{"id":"io.github.libtmux.Server.Server.capture","name":"capture","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"SnapshotCapture capture()","params":[],"returns":"SnapshotCapture","typeScopeBoundary":false}],"doc":{"summary":"How this server's own hierarchy is read back, for helpers that need one listing directly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.capture","product":"core","slug":"io-github-libtmux-server-server-capture"},{"id":"io.github.libtmux.Server.Server.newSession","name":"newSession","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(SessionSpec spec)","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Creates a detached session and returns that exact session.","body":"tmux reports which session it made, so the result is exact even when another session\nalready carries the same name.\n\nKeep {@code :} and {@code .} out of the name. tmux decides what to do with them and changes\nits mind across the supported range: 3.2a through 3.6 rewrite each one to {@code _}, 3.7\nrefuses the name, and 3.7a onwards keeps it — where a bare {@code -t} target still misreads the\ndelimiter, so {@link #hasSession} and {@link #killSession} resolve the id by comparing names\ninstead of building one. {@link Session#name()} reports what tmux settled on.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewSession.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewSession.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport java.nio.file.Path;\n\n/** Create a session running cat. */\npublic final class NewSession {\n private NewSession() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + session.name());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.newSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.newSession","product":"core","slug":"io-github-libtmux-server-server-newsession"},{"id":"io.github.libtmux.Server.Server.hasSession","name":"hasSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean hasSession(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hasSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hasSession","product":"core","slug":"io-github-libtmux-server-server-hassession"},{"id":"io.github.libtmux.Server.Server.killSession","name":"killSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killSession(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if no session carries the name"}]}],"doc":{"summary":"Ends the session with this name, and everything in it.","body":"The name is matched exactly. tmux would otherwise take a prefix, so asking to kill\n{@code build} could end {@code build-cache} instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killSession","product":"core","slug":"io-github-libtmux-server-server-killsession"},{"id":"io.github.libtmux.Server.Server.isAlive","name":"isAlive","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false},{"raw":"@Operation(Kind.READ)\n public boolean isAlive(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to wait for an answer before treating the server as unreachable"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the server is running and answering.","body":"Returns false when tmux refuses the probe. Transport failures still throw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.isAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.isAlive","product":"core","slug":"io-github-libtmux-server-server-isalive"},{"id":"io.github.libtmux.Server.Server.requireAlive","name":"requireAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public void requireAlive()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is there to answer"},{"type":"LibTmuxException","doc":"if one is, and could not be reached — a socket this user cannot open, or a binary that is not tmux, which starting a server would not fix"}]}],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireAlive","product":"core","slug":"io-github-libtmux-server-server-requirealive"},{"id":"io.github.libtmux.Server.Server.failed","name":"failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"LibTmuxException failed(String command, CommandResult result)","params":[{"name":"command","type":"String"},{"name":"result","type":"CommandResult"}],"returns":"LibTmuxException","typeScopeBoundary":false},{"raw":"LibTmuxException failed(String command, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"status","type":"String"},{"name":"stderr","type":"List"}],"returns":"LibTmuxException","typeScopeBoundary":false}],"doc":{"summary":"One sentence for a tmux command that did not succeed.","body":"Built in one place because a message that omits the exit status, or says nothing at all\nwhen tmux printed nothing, is how a misconfigured binary reads as a tmux that simply refused:\npointing a server at {@code /bin/false} used to raise \"tmux display-message failed: \" and\nstop there."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failed","product":"core","slug":"io-github-libtmux-server-server-failed"},{"id":"io.github.libtmux.Server.Server.failure","name":"failure","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static String failure(String command, String binary, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"binary","type":"String"},{"name":"status","type":"String","doc":"how the command ended, as an exit code or, inside a group, tmux's own outcome for it — a batch reports which of its commands never ran, which no single exit code says"},{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failure","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failure","product":"core","slug":"io-github-libtmux-server-server-failure"},{"id":"io.github.libtmux.Server.Server.serverAbsent","name":"serverAbsent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static boolean serverAbsent(String message)","params":[{"name":"message","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether a failed command's stderr says the daemon itself is gone, rather than refusing the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.serverAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.serverAbsent","product":"core","slug":"io-github-libtmux-server-server-serverabsent"},{"id":"io.github.libtmux.Server.Server.killServer","name":"killServer","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killServer()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void killServer(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to allow for each of the two commands"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the tmux server and every session on it.","body":"Deliberately explicit and deliberately not what {@link #close()} does: closing a client is\nnot a reason to end everyone else's sessions.\n\nKilling a server that has already gone is not a failure. Which is harder to detect than it\nsounds: tmux answers a doomed request with {@code no server running} most of the time, but\nwith {@code server exited unexpectedly} when it reaches a socket whose server is still\nexiting — on every release from 3.3a onwards, and on one in five attempts on 3.7. So the\npostcondition is checked rather than the wording, which has changed before and says nothing\na second look cannot answer better."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killServer","product":"core","slug":"io-github-libtmux-server-server-killserver"},{"id":"io.github.libtmux.Server.Server.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects several commands to run in one tmux invocation.","body":"Each operation gets its own outcome. tmux discards a group after the first failure, so a\nsingle exit status cannot say which command failed or which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.batch","product":"core","slug":"io-github-libtmux-server-server-batch"},{"id":"io.github.libtmux.Server.Server.chain","name":"chain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain chain()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs, so a chain needs no round trip to learn\nthe id of a window or pane it just created."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.chain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.chain","product":"core","slug":"io-github-libtmux-server-server-chain"},{"id":"io.github.libtmux.Server.Server.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to.","body":"The server-wide counterpart to {@link Pane#expand}: fields such as {@code #{pid}} and\n{@code #{version}} that belong to no session in particular."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":412,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.expand","product":"core","slug":"io-github-libtmux-server-server-expand"},{"id":"io.github.libtmux.Server.Server.printed","name":"printed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult printed(@Nullable ServerSnapshot snapshot, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one read with the server's version printed first in the same invocation, and answers with its output as tmux held the text, and without that version line. Line breaks at the end of the output are kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":424,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.printed","product":"core","slug":"io-github-libtmux-server-server-printed"},{"id":"io.github.libtmux.Server.Server.shell","name":"shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Shell shell()","params":[],"returns":"Shell","typeScopeBoundary":false}],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":433,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.shell","product":"core","slug":"io-github-libtmux-server-server-shell"},{"id":"io.github.libtmux.Server.Server.commands","name":"commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Commands commands()","params":[],"returns":"Commands","typeScopeBoundary":false}],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.commands","product":"core","slug":"io-github-libtmux-server-server-commands"},{"id":"io.github.libtmux.Server.Server.lock","name":"lock","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lock()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":445,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.lock","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.lock","product":"core","slug":"io-github-libtmux-server-server-lock"},{"id":"io.github.libtmux.Server.Server.messageLog","name":"messageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public MessageLog messageLog()","params":[],"returns":"MessageLog","typeScopeBoundary":false}],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":451,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.messageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.messageLog","product":"core","slug":"io-github-libtmux-server-server-messagelog"},{"id":"io.github.libtmux.Server.Server.prompt","name":"prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Prompt prompt()","params":[],"returns":"Prompt","typeScopeBoundary":false}],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.prompt","product":"core","slug":"io-github-libtmux-server-server-prompt"},{"id":"io.github.libtmux.Server.Server.withoutStartingServer","name":"withoutStartingServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult withoutStartingServer(List command)","params":[{"name":"command","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a read that tmux would otherwise answer by starting a daemon.","body":"{@code list-keys} and {@code list-commands} are answered from the binary's own tables, and\ntmux starts a server to do it rather than reporting that there is none — so reading the key\nbindings of an endpoint nothing serves left a daemon behind, which is the opposite of a read.\n{@code -N} says not to, on every supported release, and tmux then reports the absent server\nthe way every other read does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.withoutStartingServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.withoutStartingServer","product":"core","slug":"io-github-libtmux-server-server-withoutstartingserver"},{"id":"io.github.libtmux.Server.Server.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Channel channel(String name)","params":[{"name":"name","type":"String"}],"returns":"Channel","typeScopeBoundary":false}],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":483,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.channel","product":"core","slug":"io-github-libtmux-server-server-channel"},{"id":"io.github.libtmux.Server.Server.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.variables","product":"core","slug":"io-github-libtmux-server-server-variables"},{"id":"io.github.libtmux.Server.Server.paneFields","name":"paneFields","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> paneFields(List names)","params":[{"name":"names","type":"List","doc":"tmux format variable names, at most 32"}],"returns":"Map>","typeScopeBoundary":false,"returnsDoc":"each pane's values keyed by the names asked for, in tmux's pane order","raises":[{"type":"IllegalArgumentException","doc":"if a name is not a tmux variable name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the listing otherwise fails"}]}],"doc":{"summary":"Chosen fields for every pane on the server, from one listing.","body":"For what a capture does not carry — {@code pane_tty}, {@code pane_dead_status}, {@code\npane_start_command}, any of tmux's pane formats. Asking each pane is a tmux process per pane\nand a view no single moment held; this is one {@code list-panes}, so every value is from the\nsame instant.","examples":[{"lang":"java","code":"Map> ttys = server.paneFields(List.of(\"pane_tty\", \"pane_dead\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":530,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.paneFields","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.paneFields","product":"core","slug":"io-github-libtmux-server-server-panefields"},{"id":"io.github.libtmux.Server.Server.awaitChannel","name":"awaitChannel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"WakeReason awaitChannel(String channel, Duration timeout, boolean reserveSignalCapacity)\n throws InterruptedException","params":[{"name":"channel","type":"String"},{"name":"timeout","type":"Duration"},{"name":"reserveSignalCapacity","type":"boolean"}],"returns":"WakeReason","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.awaitChannel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.awaitChannel","product":"core","slug":"io-github-libtmux-server-server-awaitchannel"},{"id":"io.github.libtmux.Server.Server.keys","name":"keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys keys()","params":[],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":608,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.keys","product":"core","slug":"io-github-libtmux-server-server-keys"},{"id":"io.github.libtmux.Server.Server.buffers","name":"buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Buffers buffers()","params":[],"returns":"Buffers","typeScopeBoundary":false}],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":614,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.buffers","product":"core","slug":"io-github-libtmux-server-server-buffers"},{"id":"io.github.libtmux.Server.Server.sourceFile","name":"sourceFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sourceFile(Path file)","params":[{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux could not read or run it"}]}],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":624,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sourceFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sourceFile","product":"core","slug":"io-github-libtmux-server-server-sourcefile"},{"id":"io.github.libtmux.Server.Server.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.options","product":"core","slug":"io-github-libtmux-server-server-options"},{"id":"io.github.libtmux.Server.Server.globalOptions","name":"globalOptions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options globalOptions()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":636,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.globalOptions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.globalOptions","product":"core","slug":"io-github-libtmux-server-server-globaloptions"},{"id":"io.github.libtmux.Server.Server.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"The server's environment, which every session inherits and every new process is given.","body":"Set here to change what a pane opened later sees — a refreshed {@code SSH_AUTH_SOCK} after\nreconnecting, say. A pane already running has its own copy and is not affected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":647,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.environment","product":"core","slug":"io-github-libtmux-server-server-environment"},{"id":"io.github.libtmux.Server.Server.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hooks","product":"core","slug":"io-github-libtmux-server-server-hooks"},{"id":"io.github.libtmux.Server.Server.version","name":"version","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public TmuxVersion version()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Which tmux this server is running.","body":"Asked of the running server rather than of the binary, because the server may have been\nstarted by a different build than the one this client is invoking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":666,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.version","product":"core","slug":"io-github-libtmux-server-server-version"},{"id":"io.github.libtmux.Server.Server.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":678,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.identity","product":"core","slug":"io-github-libtmux-server-server-identity"},{"id":"io.github.libtmux.Server.Server.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":683,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameServer","product":"core","slug":"io-github-libtmux-server-server-requiresameserver"},{"id":"io.github.libtmux.Server.Server.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":687,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameIncarnation","product":"core","slug":"io-github-libtmux-server-server-requiresameincarnation"},{"id":"io.github.libtmux.Server.Server.open","name":"open","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server open(ServerConfig config)","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.open","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.open","product":"core","slug":"io-github-libtmux-server-server-open"},{"id":"io.github.libtmux.Server.Server.using","name":"using","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server using(ServerConfig config, TmuxTransport transport)","params":[{"name":"config","type":"ServerConfig"},{"name":"transport","type":"TmuxTransport"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport the caller owns. Closing this server never closes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.using","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.using","product":"core","slug":"io-github-libtmux-server-server-using"},{"id":"io.github.libtmux.Server.Server.within","name":"within","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public Server within(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Server","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the timeout is not positive"}]}],"doc":{"summary":"This server, with every command bounded by a deadline of the caller's choosing.","body":"The per-call deadline. Every read and change made through the result, and through every\nhandle taken from it, gives tmux this long rather than the server's default:\n\nShares this server's transport, so it has the same identity and its handles compare equal\nto this server's; closing it releases nothing. {@link #toBuilder} is not how to spell this: a\nserver that owns its transport hands a derived server a transport of its own, which a caller\nbounding many calls would multiply.","examples":[{"lang":"java","code":"List screen = server.within(Duration.ofMillis(500)).panes().get(0).capture();"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.within","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.within","product":"core","slug":"io-github-libtmux-server-server-within"},{"id":"io.github.libtmux.Server.Server.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":747,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.builder","product":"core","slug":"io-github-libtmux-server-server-builder-3ftd"},{"id":"io.github.libtmux.Server.Server.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":753,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.config","product":"core","slug":"io-github-libtmux-server-server-config"},{"id":"io.github.libtmux.Server.Server.cmd","name":"cmd","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional","doc":"the tmux command and its arguments, each already a separate element"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the result, in which a nonzero exit is data rather than a failure"},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv, Duration timeout)","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.cmd","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.cmd","product":"core","slug":"io-github-libtmux-server-server-cmd"},{"id":"io.github.libtmux.Server.Server.control","name":"control","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session)","params":[{"name":"session","type":"Session","doc":"a session captured from this server"}],"returns":"ControlClient","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if that process is no longer the one on this socket"},{"type":"IllegalArgumentException","doc":"if the session belongs to another server"},{"type":"IllegalStateException","doc":"if this server is closed, or its transport starts no control client"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session, Duration timeout)","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":false}],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named.","body":"The client is started by this server's transport. A transport that cannot start processes\nfails here rather than attaching on the local machine. The process id is checked before the\nclient starts and again on the client itself; a server that has taken over the socket is\ndetached before this client changes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":815,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.control","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.control","product":"core","slug":"io-github-libtmux-server-server-control"},{"id":"io.github.libtmux.Server.Server.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a listing otherwise fails or the listings cannot form one valid snapshot"}]}],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nA failed read throws, including when no daemon is running. An empty graph means a live\nserver successfully reported no sessions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":875,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.snapshot","product":"core","slug":"io-github-libtmux-server-server-snapshot"},{"id":"io.github.libtmux.Server.Server.sessions","name":"sessions","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The sessions this expression matches, captured now.","body":"A safe expression is sent as {@code list-sessions -f}. The sessions that come back are still\ntested with the expression. A relation, or an expression tmux cannot apply, reads the whole server and\nfilters that capture; a filtered read that finds nothing is the answer.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListSessions.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListSessions.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List the sessions returned by a server read. */\npublic final class ListSessions {\n private ListSessions() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"sessions=\"\n + server.sessions().stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Query.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Query.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.Session_;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Select sessions with a typed name filter. */\npublic final class Query {\n private Query() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var matches = server.sessions(Session_.name().is(\"work-one\"));\n System.out.println(\"matches=\"\n + matches.stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":901,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sessions","product":"core","slug":"io-github-libtmux-server-server-sessions"},{"id":"io.github.libtmux.Server.Server.windows","name":"windows","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(WindowId id)","params":[{"name":"id","type":"WindowId"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order, empty if the window was not found","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":936,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.windows","product":"core","slug":"io-github-libtmux-server-server-windows"},{"id":"io.github.libtmux.Server.Server.panes","name":"panes","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":974,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.panes","product":"core","slug":"io-github-libtmux-server-server-panes"},{"id":"io.github.libtmux.Server.Server.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional session(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matches; its count is exact, since the whole capture is in hand"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does.","body":"Reads as {@link #sessions(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1014,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.session","product":"core","slug":"io-github-libtmux-server-server-session"},{"id":"io.github.libtmux.Server.Server.window","name":"window","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional window(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does.","body":"Reads as {@link #windows(FilterExpr)} does. A window linked into two sessions is two links,\nso an expression naming it matches twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1028,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.window","product":"core","slug":"io-github-libtmux-server-server-window"},{"id":"io.github.libtmux.Server.Server.pane","name":"pane","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional pane(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional pane(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does.","body":"Reads as {@link #panes(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1041,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.pane","product":"core","slug":"io-github-libtmux-server-server-pane"},{"id":"io.github.libtmux.Server.Server.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1064,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.admissionBound","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.admissionBound","product":"core","slug":"io-github-libtmux-server-server-admissionbound"},{"id":"io.github.libtmux.Server.Server.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.clients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.clients","product":"core","slug":"io-github-libtmux-server-server-clients"},{"id":"io.github.libtmux.Server.Server.attachedSessions","name":"attachedSessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List attachedSessions()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.attachedSessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.attachedSessions","product":"core","slug":"io-github-libtmux-server-server-attachedsessions"},{"id":"io.github.libtmux.Server.Server.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult run(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux reported a nonzero exit"}]}],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not.","body":"The counterpart to {@link #cmd}: use this when a nonzero exit means the thing you asked for\ndid not happen, and {@code cmd} when a nonzero exit is an answer you want to inspect. tmux\nreports an ordinary miss and a real problem the same way, so only the caller knows which it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.run","product":"core","slug":"io-github-libtmux-server-server-run"},{"id":"io.github.libtmux.Server.Server.runTogether","name":"runTogether","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult runTogether(ServerSnapshot snapshot, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult runTogether(ServerSnapshot snapshot, String input, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"input","type":"String"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs several commands in one invocation, so nothing of this caller's happens between them.","body":"tmux carries a group to its server as one message and runs it there, so a caller that stops\npartway cannot leave the group half applied. That is what an operation whose second command\ncleans up after its first needs."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.runTogether","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.runTogether","product":"core","slug":"io-github-libtmux-server-server-runtogether"},{"id":"io.github.libtmux.Server.Server.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"ServerSnapshot refresh(ServerSnapshot previous)","params":[{"name":"previous","type":"ServerSnapshot"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.refresh","product":"core","slug":"io-github-libtmux-server-server-refresh"},{"id":"io.github.libtmux.Server.Server.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.toBuilder","product":"core","slug":"io-github-libtmux-server-server-tobuilder"},{"id":"io.github.libtmux.Server.Server.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1300,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.close","product":"core","slug":"io-github-libtmux-server-server-close"},{"id":"io.github.libtmux.Server.Server.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.Server.Server","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects configuration and the ownership choice, then builds a server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1312,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder","product":"core","slug":"io-github-libtmux-server-server-builder-dv7l"},{"id":"io.github.libtmux.Server.Server.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1323,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.binary","product":"core","slug":"io-github-libtmux-server-server-builder-binary"},{"id":"io.github.libtmux.Server.Server.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.endpoint","product":"core","slug":"io-github-libtmux-server-server-builder-endpoint"},{"id":"io.github.libtmux.Server.Server.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1335,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.configFile","product":"core","slug":"io-github-libtmux-server-server-builder-configfile"},{"id":"io.github.libtmux.Server.Server.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-server-server-builder-defaulttimeout"},{"id":"io.github.libtmux.Server.Server.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support; false preserves terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.force256Colors","product":"core","slug":"io-github-libtmux-server-server-builder-force256colors"},{"id":"io.github.libtmux.Server.Server.Builder.transport","name":"transport","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder transport(TmuxTransport transport)","params":[{"name":"transport","type":"TmuxTransport"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Borrows a caller-owned transport, which the built server will never close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.transport","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.transport","product":"core","slug":"io-github-libtmux-server-server-builder-transport"},{"id":"io.github.libtmux.Server.Server.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Server build()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"Builds the server, owning a new transport unless one was borrowed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.build","product":"core","slug":"io-github-libtmux-server-server-builder-build"},{"id":"io.github.libtmux.ServerConfig.ServerConfig","name":"ServerConfig","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a server needs to know before it runs anything: which tmux, which server, which config.","body":"Deliberately a builder-built class rather than a record. tmux keeps growing flags, and a\nrecord's canonical constructor is public API: every field added later would break both source and\nbinary compatibility for anyone who had constructed one.\n\nNothing here contacts tmux. A config can be built, stored and compared on a machine that has\nno tmux installed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-yotf"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binary()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux executable, resolved on {@code PATH} unless it is an absolute path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","name":"binaryPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binaryPath()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The binary as a path, resolved the way this process resolves it.","body":"What to write into a command a pane will run. A pane resolves a bare name against the\nuser's {@code PATH} rather than this process's, and a tmux client built from a different\nrelease than the server it reaches is dropped rather than served. Falls back to the name when\nnothing on {@code PATH} matches, which leaves the caller no worse off."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binaryPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binarypath"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public ServerEndpoint endpoint()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":false}],"doc":{"summary":"Which tmux server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Optional configFile()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The config file tmux should read, if the caller pinned one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Duration defaultTimeout()","params":[],"returns":"Duration","typeScopeBoundary":false}],"doc":{"summary":"How long a request waits when the caller does not say."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public boolean force256Colors()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux clients advertise 256-color support regardless of terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public OperationObserver observer()","params":[],"returns":"OperationObserver","typeScopeBoundary":false}],"doc":{"summary":"Where each command's report goes. {@link OperationObserver#NONE} until a caller sets one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","name":"endpointCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"@ReadOnly\n public List endpointCommand()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The argv prefix every command on this server begins with: the binary, {@code -u}, optional color flag, the server selection, and the config file if one was pinned.","body":"{@code -u} says this client reads UTF-8. Without it tmux decides from {@code LC_ALL},\n{@code LC_CTYPE} and {@code LANG}, and a client it judges not to be UTF-8 has every non-ASCII\ncharacter in every reply replaced with {@code _} before it is sent — so a session named\n{@code café} reads back as {@code caf_}, and a pane's directory becomes a path that does not\nexist. The flag is in tmux's option string on every supported release.\n\nDeliberately the flag rather than {@code LC_ALL} in the child's environment, which would\nreach the same conclusion and then be inherited by every pane the server spawns from this\nclient."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpointCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpointcommand"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public int maxConcurrentCommands()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many tmux commands {@link Server#open} lets run at once; more wait their turn.","body":"A coroutine dispatcher or effect pool that runs blocking calls for this server gains nothing\nfrom more threads than this: the rest would only wait for admission."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every choice this config made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-tobuilder"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices; {@link #build()} checks them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-ly8z"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads, which is how a test isolates itself from a user's own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":195,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support with tmux's {@code -2}; false uses terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder observer(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command. The report names verbs, not arguments."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder maxConcurrentCommands(int maxConcurrentCommands)","params":[{"name":"maxConcurrentCommands","type":"int"}],"returns":"Builder","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code maxConcurrentCommands} is not positive"}]}],"doc":{"summary":"Sets how many tmux commands {@link Server#open} lets run at once, four unless set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public ServerConfig build()","params":[],"returns":"ServerConfig","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if a choice would only fail later"}]}],"doc":{"summary":"Builds an immutable config, rejecting choices that could only fail later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-build"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint","name":"ServerEndpoint","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server to talk to.","body":"A value, decided and comparable before any process runs. Two endpoints are equal when they name\nthe same server lexically; nothing here resolves symlinks, contacts the filesystem, or opens a\nsocket. That matters because an endpoint is routinely built, logged and compared while the socket\nit names does not exist yet.\n\nValidation that needs tmux — above all whether a socket path fits the platform's\n{@code sun_path} — happens at dispatch, where the error can carry the command that hit it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"@ReadOnly\n List flags();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The flags that select this server, in argv order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","name":"defaultSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint defaultSocket()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"tmux's own default server, wherever tmux decides that is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.defaultSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-defaultsocket"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","name":"namedSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint namedSocket(String name)","params":[{"name":"name","type":"String"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server named with {@code -L}, resolved by tmux under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.namedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-uymy"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","name":"socketPath","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint socketPath(Path path)","params":[{"name":"path","type":"Path"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server at an exact socket path, selected with {@code -S}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.socketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-l4dk"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","name":"Default","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record Default() implements ServerEndpoint","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Adds no flags, so tmux applies its own default socket resolution."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","name":"NamedSocket","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record NamedSocket(String name) implements ServerEndpoint","params":[{"name":"name","type":"String","doc":"a bare name, with no path separator"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server tmux locates by name under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-1lu0"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","name":"name","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"a bare name, with no path separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-name"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","name":"SocketPath","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record SocketPath(Path path) implements ServerEndpoint","params":[{"name":"path","type":"Path","doc":"the socket path, anchored and lexically normalized so equal sockets compare equal"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server at an exact socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-1obc"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the socket path, anchored and lexically normalized so equal sockets compare equal"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-path"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity","name":"ServerIdentity","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server a handle belongs to.","body":"Two entities with the same id are the same entity only if they came from the same server. The\nrealm exists because socket text alone is not enough: two unrelated execution realms — a local\nprocess and a container, say — can both hold a server at {@code /tmp/s}, and entities from them\nmust not compare equal.\n\nThe server is identified by a digest of its endpoint rather than by the endpoint itself, so an\nidentity can be logged, compared and embedded in a message without carrying a socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"static ServerIdentity of(String realm, ServerEndpoint endpoint)","params":[{"name":"realm","type":"String"},{"name":"endpoint","type":"ServerEndpoint"}],"returns":"ServerIdentity","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.of","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-of"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.at","name":"at","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"ServerIdentity at(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"This server as one process: a pid alone can be reused, so its start time is part of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.at","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.at","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-at"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String realm()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The execution realm the transport reaches tmux through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.realm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-realm"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String server()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"A stable opaque key for the server, carrying no socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.server","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-server"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","name":"processId","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public OptionalLong processId()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The live tmux process, present on an identity bound to a captured handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.processId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-processid"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-equals"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-hashcode"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-tostring"},{"id":"io.github.libtmux.Session.Session","name":"Session","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux session, as one capture saw it.","body":"Identity is the server and the session id. A name is state: a user can rename a session at any\ntime, and a handle whose equality included the name would stop matching itself the moment they\ndid.\n\n{@link #windows()} reads the capture this handle came from and issues no command. To see newer\nstate, take a new capture.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session","product":"core","slug":"io-github-libtmux-session-session"},{"id":"io.github.libtmux.Session.Session.Session","name":"Session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"Session(Server server, ServerSnapshot snapshot, SessionState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"SessionState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.Session","product":"core","slug":"io-github-libtmux-session-session-session"},{"id":"io.github.libtmux.Session.Session.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionState info()","params":[],"returns":"SessionState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.info","product":"core","slug":"io-github-libtmux-session-session-info"},{"id":"io.github.libtmux.Session.Session.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionId id()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.id","product":"core","slug":"io-github-libtmux-session-session-id"},{"id":"io.github.libtmux.Session.Session.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.name","product":"core","slug":"io-github-libtmux-session-session-name"},{"id":"io.github.libtmux.Session.Session.attached","name":"attached","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean attached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.attached","product":"core","slug":"io-github-libtmux-session-session-attached"},{"id":"io.github.libtmux.Session.Session.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.server","product":"core","slug":"io-github-libtmux-session-session-server"},{"id":"io.github.libtmux.Session.Session.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.snapshot","product":"core","slug":"io-github-libtmux-session-session-snapshot"},{"id":"io.github.libtmux.Session.Session.activeWindow","name":"activeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activeWindow()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activeWindow","product":"core","slug":"io-github-libtmux-session-session-activewindow"},{"id":"io.github.libtmux.Session.Session.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activePane","product":"core","slug":"io-github-libtmux-session-session-activepane"},{"id":"io.github.libtmux.Session.Session.selectWindow","name":"selectWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectWindow(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.selectWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.selectWindow","product":"core","slug":"io-github-libtmux-session-session-selectwindow"},{"id":"io.github.libtmux.Session.Session.nextWindow","name":"nextWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.nextWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.nextWindow","product":"core","slug":"io-github-libtmux-session-session-nextwindow"},{"id":"io.github.libtmux.Session.Session.previousWindow","name":"previousWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.previousWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.previousWindow","product":"core","slug":"io-github-libtmux-session-session-previouswindow"},{"id":"io.github.libtmux.Session.Session.lastWindow","name":"lastWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lastWindow()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if nothing else has been active yet, which tmux reports rather than silently staying put"}]}],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.lastWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.lastWindow","product":"core","slug":"io-github-libtmux-session-session-lastwindow"},{"id":"io.github.libtmux.Session.Session.detachClients","name":"detachClients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachClients()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.detachClients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.detachClients","product":"core","slug":"io-github-libtmux-session-session-detachclients"},{"id":"io.github.libtmux.Session.Session.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.options","product":"core","slug":"io-github-libtmux-session-session-options"},{"id":"io.github.libtmux.Session.Session.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.environment","product":"core","slug":"io-github-libtmux-session-session-environment"},{"id":"io.github.libtmux.Session.Session.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hooks","product":"core","slug":"io-github-libtmux-session-session-hooks"},{"id":"io.github.libtmux.Session.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setHistoryLimit(int lines)","params":[{"name":"lines","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.setHistoryLimit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.setHistoryLimit","product":"core","slug":"io-github-libtmux-session-session-sethistorylimit"},{"id":"io.github.libtmux.Session.Session.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.windows","product":"core","slug":"io-github-libtmux-session-session-windows"},{"id":"io.github.libtmux.Session.Session.newWindow","name":"newWindow","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(String name)","params":[{"name":"name","type":"String","doc":"the window name"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(WindowSpec spec)","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"}],"doc":{"summary":"Creates a window in this session and returns that exact window.","body":"The creating command reports which window it made, rather than the name being looked up\nafterwards: two windows may share a name, and then a lookup cannot say which one is new.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewWindow.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewWindow.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.WindowSpec;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Create a window and read the updated session. */\npublic final class NewWindow {\n private NewWindow() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.newWindow(WindowSpec.builder()\n .named(\"api-window\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + window.name());\n var refreshed = server.session(\"work-one\").orElseThrow();\n System.out.println(\"windows=\"\n + refreshed.windows().stream()\n .map(item -> item.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":186,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.newWindow","product":"core","slug":"io-github-libtmux-session-session-newwindow"},{"id":"io.github.libtmux.Session.Session.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.expand","product":"core","slug":"io-github-libtmux-session-session-expand"},{"id":"io.github.libtmux.Session.Session.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Session rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"Renames this session and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.rename","product":"core","slug":"io-github-libtmux-session-session-rename"},{"id":"io.github.libtmux.Session.Session.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this session. Every window in it goes with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.kill","product":"core","slug":"io-github-libtmux-session-session-kill"},{"id":"io.github.libtmux.Session.Session.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Session refresh()","params":[],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the session is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this session as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.refresh","product":"core","slug":"io-github-libtmux-session-session-refresh"},{"id":"io.github.libtmux.Session.Session.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":291,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.equals","product":"core","slug":"io-github-libtmux-session-session-equals"},{"id":"io.github.libtmux.Session.Session.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hashCode","product":"core","slug":"io-github-libtmux-session-session-hashcode"},{"id":"io.github.libtmux.Session.Session.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.toString","product":"core","slug":"io-github-libtmux-session-session-tostring"},{"id":"io.github.libtmux.SessionCreation.SessionCreation","name":"SessionCreation","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Assembles the pieces {@link Server#newSession(SessionSpec)} needs before tmux has a session yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","name":"failureMessage","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static String failureMessage(ServerConfig config, CommandResult result)","params":[{"name":"config","type":"ServerConfig"},{"name":"result","type":"CommandResult"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux exits 0 even when nothing was created: an explicit {@code -S} under a directory that does not exist prints its own {@code error creating ...} and still returns success, and a binary that is not tmux at all can exit 0 with nothing on stdout the same way {@code run} cannot tell apart from a real session id. Reads tmux's own words when it spoke and names the configured binary when it did not, rather than letting an empty list reach {@code SessionId} and throw an unchecked collection exception with neither in it.","body":"tmux 3.2a says nothing at all when it cannot create its socket: the server queues the\nerror and tells the client to exit at once, and the client leaves before the error reaches\nit. So a silent exit checks the one cause this client can see for itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.failureMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-failuremessage"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","name":"versionForCreation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static TmuxVersion versionForCreation(Server server)","params":[{"name":"server","type":"Server"}],"returns":"TmuxVersion","typeScopeBoundary":true}],"doc":{"summary":"The version to gate a session-creation spec against.","body":"{@code new-session} may be the first command said to a fresh socket, where {@link\nServer#version()} fails for want of a daemon. So this asks a running daemon when one answers,\nsince it may be a different build than the configured binary, and otherwise asks the binary\nthrough {@link #binaryVersion}.\n\nReads {@link SnapshotCapture#processForCreation()} rather than {@link Server#version()}: a\ndaemon too old to talk to fails the identity probe as one never started does (\"server exited\nunexpectedly\"), and {@link ServerUnavailableException} does not keep that distinction.\nFalling back to {@code binaryVersion} for such a daemon would report the binary's version as\nthe daemon's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.versionForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-versionforcreation"},{"id":"io.github.libtmux.SessionId.SessionId","name":"SessionId","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code $} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux session id, such as {@code $0}.","body":"Stable for the life of the session, unlike a session name, which a user can change at any\ntime. A separate type from {@link WindowId} and {@link PaneId} because tmux accepts any of them\nas {@code -t} syntax: passing the wrong one is not an error tmux reports, it simply addresses\nnothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId","product":"core","slug":"io-github-libtmux-sessionid-sessionid"},{"id":"io.github.libtmux.SessionId.SessionId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionId.SessionId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.toString","product":"core","slug":"io-github-libtmux-sessionid-sessionid-tostring"},{"id":"io.github.libtmux.SessionId.SessionId.value","name":"value","kind":"method","parent":"io.github.libtmux.SessionId.SessionId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code $} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.value","product":"core","slug":"io-github-libtmux-sessionid-sessionid-value"},{"id":"io.github.libtmux.SessionLookup.SessionLookup","name":"SessionLookup","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Resolves a caller-given session name to the id tmux keeps it under."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup"},{"id":"io.github.libtmux.SessionLookup.SessionLookup.named","name":"named","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionLookup.SessionLookup","signatures":[{"raw":"static Optional named(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The id of the session tmux keeps under this name, read from one listing.","body":"Not a {@code -t =name} target: tmux reads {@code .} and {@code :} in a target as window and\npane separators, and it may have stored the name differently from how it was given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup.named","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec","name":"SessionSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a session should be made.","body":"The shape {@link SplitSpec} and {@link WindowSpec} use. tmux's {@code -A}, which attaches when\nthe name is taken, is deliberately absent: attaching needs a terminal, and it fails with\n{@code open terminal failed} on every supported release when there is none. Asking\n{@link Server#hasSession} first does the same job from a process that has no tty, which is where a\nlibrary usually runs.","examples":[{"lang":"java","code":"Session build = server.newSession(s -> s.named(\"build\").sized(new Dimensions(120, 40)));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached session tmux names itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-1p4q"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session name, or empty to let tmux number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.name","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-name"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the session's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.directory","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-directory"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new session, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Always true, and not a choice.","body":"{@code new-session} attaches unless told not to, and attaching needs a terminal — from a\nprocess without one it fails with {@code open terminal failed}. A library is usually called\nfrom something that has no tty, so the session is always created detached. {@link WindowSpec}\nand {@link SplitSpec} default the other way, because their commands need no terminal."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detached","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detached"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.windowName","name":"windowName","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional windowName()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name of the session's first window, or empty for tmux's choice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.windowName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.windowName","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-windowname"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the session is, or empty for tmux's default. Requires tmux 3.3."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.size","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-size"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean withoutSize()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux is told not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detachOthers()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether other clients on this session are detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List clientFlags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Client flags, which tmux takes as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the session's first pane runs, empty for the default shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.command","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-command"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"List argv(String format, Supplier running)","params":[{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"Supplier","doc":"what the server about to run this is, asked only if it matters"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that makes this session, reporting it through {@code format}.","body":"The version arrives as a supplier because this is the one creating call that may run when\nthere is no server yet, and asking a socket with nothing behind it for its version fails.\nNothing asks unless the spec depends on the answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.argv","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-argv"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":192,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.toString","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-tostring"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-3lof"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session, where tmux would otherwise number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":213,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","name":"firstWindowNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder firstWindowNamed(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session's first window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.firstWindowNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-firstwindownamed"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the default shell. tmux reports the session before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-running"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the session in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-in"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new session's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-env"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new session's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","name":"sized","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder sized(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the session a size, which a detached session has no client to take one from."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.sized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-sized"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder withoutSize()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder detachOthers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Detaches any other client already on this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":268,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder clientFlags(String... flags)","params":[{"name":"flags","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the client flags tmux applies, which it reads as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public SessionSpec build()","params":[],"returns":"SessionSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-build"},{"id":"io.github.libtmux.Shell.Shell","name":"Shell","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"tmux expands {@code #(...)} in these strings before a shell sees them. Pass an interpolated\nvalue through {@link TmuxFormats#literal} unless that expansion is what you want."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.Shell","name":"Shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"Shell(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs a shell command for its effect. Nothing is claimed about what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.run","product":"core","slug":"io-github-libtmux-shell-shell-run"},{"id":"io.github.libtmux.Shell.Shell.capturing","name":"capturing","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.MUTATION)\n public List capturing(String command)","params":[{"name":"command","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"on tmux 3.3a and 3.4, which run the command and report nothing"}]}],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.capturing","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.capturing","product":"core","slug":"io-github-libtmux-shell-shell-capturing"},{"id":"io.github.libtmux.Shell.Shell.choose","name":"choose","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue)","params":[{"name":"condition","type":"String","doc":"a shell command, judged by its exit status"},{"name":"whenTrue","type":"String","doc":"the tmux command to run when the condition succeeds"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue, String whenFalse)","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String","doc":"the tmux command to run when the condition does not succeed"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.choose","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.choose","product":"core","slug":"io-github-libtmux-shell-shell-choose"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState","name":"ClientState","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientState(String name, Optional session)","params":[{"name":"name","type":"String","doc":"the client's terminal name, which is how tmux addresses it"},{"name":"session","type":"Optional","doc":"the session it was attached to, if any"}]}],"typeScopeBoundary":false,"doc":{"summary":"A client as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the client's terminal name, which is how tmux addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.name","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-name"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it was attached to, if any"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.session","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-session"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState","name":"PaneState","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneState(\n WindowContext context,\n PaneId id,\n int index,\n boolean active,\n String currentCommand,\n Dimensions size,\n PanePosition position,\n String title,\n String currentPath,\n OptionalLong pid,\n PaneEdges edges,\n Optional floating)","params":[{"name":"context","type":"WindowContext","doc":"the winlink the pane was reached through"},{"name":"id","type":"PaneId","doc":"the pane's stable id"},{"name":"index","type":"int","doc":"the pane's position, which shifts as neighbours come and go"},{"name":"active","type":"boolean","doc":"whether it was the active pane of its window"},{"name":"currentCommand","type":"String","doc":"the command tmux reported running in it"},{"name":"size","type":"Dimensions","doc":"how large the pane was, in terminal cells"},{"name":"position","type":"PanePosition","doc":"where the pane's top-left corner sat in its window, in terminal cells"},{"name":"title","type":"String","doc":"the pane title, which a program inside it can change"},{"name":"currentPath","type":"String","doc":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},{"name":"pid","type":"OptionalLong","doc":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},{"name":"edges","type":"PaneEdges","doc":"which sides of its window the pane touches"},{"name":"floating","type":"Optional","doc":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."}]}],"typeScopeBoundary":false,"doc":{"summary":"A pane as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"the winlink the pane was reached through"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.context","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-context"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.id","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-id"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the pane's position, which shifts as neighbours come and go"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.index","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-index"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active pane of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.active","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-active"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the command tmux reported running in it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentCommand","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentcommand"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the pane was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.size","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-size"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.position","name":"position","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PanePosition"}],"doc":{"summary":"where the pane's top-left corner sat in its window, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.position","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.position","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-position"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.title","name":"title","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the pane title, which a program inside it can change"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.title","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.title","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-title"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentPath","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentpath"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.pid","name":"pid","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"OptionalLong"}],"doc":{"summary":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.pid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.pid","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-pid"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.edges","name":"edges","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneEdges"}],"doc":{"summary":"which sides of its window the pane touches"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.edges","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.edges","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-edges"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.floating","name":"floating","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.floating","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.floating","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-floating"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","name":"ServerMirror","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A live copy of one tmux server's sessions, windows, panes and clients, rebuilt whenever tmux announces a change.","body":"A control client attached through an anchor session hears what tmux announces. Any\nannouncement, or a {@link Delivery.Gap} in them, starts a fresh {@link Server#snapshot()} — never\na patch of the last one, since an announcement says that something changed, not everything that\ndid. Announcements that arrive while a snapshot is being taken collapse into one more rebuild, and\na rebuild that finds nothing different publishes nothing. Each published {@link View} carries an\nepoch one above the last, counted by this mirror; it is not a number tmux keeps.\n\ntmux keeps no history of what it announced. When the control client ends, the mirror finds\nthe anchor session again by its id and attaches through it with a fresh snapshot; if the session\nhas gone, the mirror ends with {@link TargetGoneException}, and if the server has, with the\nfailure that said so. A change tmux does not announce to this client, such as a pane retitled in\nanother session, is seen at the next rebuild, or within {@code refreshEvery} when one is given.\n\nThread-safe. One virtual thread per mirror listens and rebuilds; {@link #close()} ends it and\nthe control client with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","name":"View","kind":"class","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"public record View(long epoch, ServerSnapshot snapshot)","params":[{"name":"epoch","type":"long","doc":"how many views this mirror published before this one"},{"name":"snapshot","type":"ServerSnapshot","doc":"the server as the rebuild captured it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One published state of the server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","name":"epoch","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"how many views this mirror published before this one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.epoch","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-epoch"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"ServerSnapshot"}],"doc":{"summary":"the server as the rebuild captured it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.snapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-snapshot"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","name":"open","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor)","params":[{"name":"anchor","type":"Session"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"TargetGoneException","doc":"if the anchor session or its server has gone"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor, Duration refreshEvery)","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration","doc":"how long a quiet mirror waits before rebuilding anyway; zero never does"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if {@code refreshEvery} is negative"}]}],"doc":{"summary":"Mirrors the server {@code anchor} belongs to, listening through a control client attached to {@code anchor}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.open","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-open"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","name":"current","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public View current()","params":[],"returns":"View","typeScopeBoundary":false}],"doc":{"summary":"The latest published view."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.current","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-current"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","name":"awaitNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional awaitNewer(long epoch, Duration timeout) throws InterruptedException","params":[{"name":"epoch","type":"long"},{"name":"timeout","type":"Duration"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the newer view, or empty when {@code timeout} passed first or the mirror ended; {@link #isEnded()} and {@link #cause()} tell those apart","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits for a view newer than {@code epoch}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.awaitNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-awaitnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","name":"onNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onNewer(long epoch, Runnable callback)","params":[{"name":"epoch","type":"long"},{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed"}]}],"doc":{"summary":"Arms a one-shot wakeup for when a view newer than {@code epoch} is published or the mirror ends.","body":"Runs {@code callback} at once, on this thread, when such a view already exists or the mirror\nhas ended; otherwise once, on the mirror's own thread. The callback must not block."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.onNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-onnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","name":"clearNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearNewer()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the callback {@link #onNewer} armed, if one is armed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.clearNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-clearnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","name":"isEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isEnded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.isEnded","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-isended"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this mirror ended, when something other than {@link #close()} ended it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.cause","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-cause"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Override\n @Operation(Kind.LIFECYCLE)\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops listening and detaches the control client. The last view stays readable. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.close","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-close"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","name":"ServerSnapshot","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux hierarchy, as it was at one moment.","body":"Every question below is answered from what was captured, so traversing a snapshot issues no\ncommands and cannot observe a half-changed server. It claims a moment rather than current truth:\ntmux offers no transaction across separate listings, and pretending otherwise would be a promise\nthis cannot keep."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true},{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n long serverStartTime,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true}],"doc":{"summary":"Assembles a capture tied to the live tmux process and version that produced it, with no start time: a handle made from it is fenced by the process id alone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.of","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-of"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","name":"capturedAt","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Instant capturedAt()","params":[],"returns":"Instant","typeScopeBoundary":false}],"doc":{"summary":"When this capture was taken."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":235,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.capturedAt","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-capturedat"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverPid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The tmux process that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverPid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverpid"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","name":"serverStartTime","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverStartTime()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"When the tmux process that produced this capture started, in seconds since the epoch, as {@code #{start_time}} reports it. Absent when the capture was assembled without it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverStartTime","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverstarttime"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","name":"serverVersion","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional serverVersion()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The tmux version that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverVersion","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverversion"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every session, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.sessions","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-sessions"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every winlink, in tmux's order, including a window linked into more than one session twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":264,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windows"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every pane, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panes"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":276,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.clients","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-clients"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false},{"raw":"public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session with this id, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-session"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The winlink at this exact position, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-window"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","name":"windowsOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windowsOf(SessionId session)","params":[{"name":"session","type":"SessionId"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The winlinks in one session, in order. Empty when the capture never saw that session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windowsOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windowsof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","name":"panesOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panesOf(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes under one winlink, in order. Empty when the capture never saw that winlink."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panesOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panesof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":308,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.toString","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-tostring"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState","name":"SessionState","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionState(SessionId id, String name, boolean attached, int windows)","params":[{"name":"id","type":"SessionId","doc":"the session's stable id"},{"name":"name","type":"String","doc":"the session name, which a user may change at any time"},{"name":"attached","type":"boolean","doc":"whether a client was attached to it"},{"name":"windows","type":"int","doc":"how many windows it contained"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.id","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-id"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session name, which a user may change at any time"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.name","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-name"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.attached","name":"attached","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether a client was attached to it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.attached","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.attached","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-attached"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.windows","name":"windows","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many windows it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.windows","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-windows"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext","name":"WindowContext","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowContext(SessionId session, WindowIndex index, WindowId window)","params":[{"name":"session","type":"SessionId","doc":"the session this link belongs to"},{"name":"index","type":"WindowIndex","doc":"where the window sits in that session"},{"name":"window","type":"WindowId","doc":"the underlying window, shared across links"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux winlink: a window as it appears in one session, at one index.","body":"The unit relations are keyed on. A window linked into two sessions has one {@link WindowId}\nand two contexts, and tmux treats those two positions as distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session this link belongs to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-session"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowIndex"}],"doc":{"summary":"where the window sits in that session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-index"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","name":"window","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"doc":{"summary":"the underlying window, shared across links"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-window"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState","name":"WindowState","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowState(\n WindowContext context,\n String name,\n boolean active,\n int panes,\n boolean linked,\n Dimensions size,\n String layout)","params":[{"name":"context","type":"WindowContext","doc":"which session and index this link occupies"},{"name":"name","type":"String","doc":"the window name"},{"name":"active","type":"boolean","doc":"whether it was the active window of its session"},{"name":"panes","type":"int","doc":"how many panes it contained"},{"name":"linked","type":"boolean","doc":"whether the window is linked into more than one session"},{"name":"size","type":"Dimensions","doc":"how large the window was, in terminal cells"},{"name":"layout","type":"String","doc":"tmux's own serialized layout, which can be handed back to select-layout"}]}],"typeScopeBoundary":false,"doc":{"summary":"A window as one capture saw it, at one of its positions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"which session and index this link occupies"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.context","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-context"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.name","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-name"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active window of its session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.active","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-active"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.panes","name":"panes","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many panes it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.panes","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-panes"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.linked","name":"linked","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the window is linked into more than one session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.linked","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.linked","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-linked"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the window was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.size","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-size"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.layout","name":"layout","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"tmux's own serialized layout, which can be handed back to select-layout"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.layout","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.layout","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-layout"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a whole tmux server into one snapshot.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nTwo commands: who the server is, then the listings as one group fenced against both halves of\nthat answer, its pid and its version. tmux runs a group in the server, so rows cannot come from\ntwo of them, and a server that is not the one probed is refused before a listing runs rather than\ndetected afterwards. Retrying is {@link Server#snapshot()}'s decision, not this one's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"SnapshotCapture(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","name":"attempt","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional attempt()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One attempt, empty when the server was replaced under it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.attempt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-attempt"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","name":"process","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional process()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Reads process identity and version together so neither can come from a different server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.process","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-process"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","name":"processForCreation","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional processForCreation()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"As {@link #process}, except a live daemon this client cannot actually talk to is never folded into \"no daemon\" - used only by {@link SessionCreation#versionForCreation}, the one caller for which that distinction matters.","body":"tmux reports both the same way from a client's side: \"no server running\"/\"(No such file or\ndirectory)\" for a socket nothing is listening on, and \"server exited unexpectedly\" for a\ndaemon that refused this client's handshake - confirmed against the matrix, a 3.2a client\nagainst a 3.7c daemon on the same socket fails the second way, rc 1. {@link #process} still\nfolds both into \"no daemon\" for every other caller, which asks \"is there a server I can read\nfrom\" and for which a daemon this client cannot use is no more usable than none at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.processForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-processforcreation"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","name":"oneSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional oneSession(String target, String field)","params":[{"name":"target","type":"String","doc":"the session name or id passed to {@code -t}"},{"name":"field","type":"String","doc":"{@code session_name} or {@code session_id}"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One session, its windows, and its panes. Empty when that session is absent. Other sessions are not read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.oneSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-onesession"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","name":"sessionsNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsNamed(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions stored under any name tmux may keep for this one, read in one fenced call, and an empty capture when there are none. Empty when a candidate cannot sit inside a format, and the caller reads the whole server instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsnamed"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","name":"sessionsWhere","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"ServerSnapshot sessionsWhere(String format, String... command)","params":[{"name":"format","type":"String"},{"name":"command","type":"String","variadic":"positional","doc":"{@code list-sessions}, {@code list-windows -a}, or {@code list-panes -a}"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding a row that {@code format} selects in this listing, read in full in one fenced call, and a capture holding nothing when none does.","body":"Nothing is a real answer: every operator {@link io.github.libtmux.query.TmuxFilters} writes\nexists from the oldest supported tmux, so a format it lowers is never one tmux cannot evaluate.\nA window or pane format is lifted to its session by looping that session's windows and panes,\nso the one call that reads the sessions also decides which ones to read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsWhere","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionswhere"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","name":"sessionsHolding","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsHolding(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding this pane, with their windows and panes, in one fenced call. Empty when no session holds it.","body":"The filter loops each listed row's own session, so every listing keeps whole sessions, and a\nwindow linked into two sessions brings both. tmux evaluates this loop inside {@code -f} the same\nway on every release from 3.2a; see {@code docs/decisions/0005-pushdown-lowering-is-exact-or-refused.md}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":339,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsHolding","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsholding"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","name":"ServerProcess","kind":"class","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"record ServerProcess(long pid, TmuxVersion version, long startTime)","params":[{"name":"pid","type":"long"},{"name":"version","type":"TmuxVersion"},{"name":"startTime","type":"long"}]}],"typeScopeBoundary":true,"doc":{"summary":"The server a capture reads, named by its process and when that process started."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":455,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","name":"pid","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-pid"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","name":"version","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"TmuxVersion"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-version"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","name":"startTime","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.startTime","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-starttime"},{"id":"io.github.libtmux.SplitDirection.SplitDirection","name":"SplitDirection","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new pane goes relative to the one being split.","body":"Separate from {@link Direction}, which moves and grows existing panes with {@code -U -D -L -R}.\nSplitting speaks a different dialect: an axis, and whether the new pane comes first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","name":"BELOW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Below the target, which is what tmux does when asked for nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.BELOW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-below"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","name":"ABOVE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.ABOVE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-above"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-right"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-left"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","name":"SplitDirection","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"SplitDirection(String axis, boolean first)","params":[{"name":"axis","type":"String"},{"name":"first","type":"boolean"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The tmux flags that place a pane this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.flags","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-flags"},{"id":"io.github.libtmux.SplitSpec.SplitSpec","name":"SplitSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a pane should be split.","body":"A description rather than an action: it can be built once, named, and applied to as many panes\nas it suits. Nothing here contacts tmux, so a spec can be assembled on a machine that has none,\nand the version rules it depends on are checked when it is applied rather than when it is written\n— the same spec is legal against one server and not another.\n\nA builder-built class rather than a record for the reason {@link ServerConfig} gives: a\nrecord's canonical constructor is public API, and tmux keeps adding flags to {@code split-window}\n— six of them in 3.7 alone.","examples":[{"lang":"java","code":"Pane side = pane.split(s -> s.toRight().percent(30));\n\nSplitSpec sidebar = SplitSpec.builder().toRight().percent(25).build();\nleft.split(sidebar);\nright.split(sidebar);"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec","product":"core","slug":"io-github-libtmux-splitspec-splitspec"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: below the target, half its size, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zmnf"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.direction","name":"direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public SplitDirection direction()","params":[],"returns":"SplitDirection","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane goes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.direction","product":"core","slug":"io-github-libtmux-splitspec-splitspec-direction"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the new pane should be, or empty to let tmux halve the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.size","product":"core","slug":"io-github-libtmux-splitspec-splitspec-size"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public PaneStart start()","params":[],"returns":"PaneStart","typeScopeBoundary":false}],"doc":{"summary":"What runs in the new pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.directory","product":"core","slug":"io-github-libtmux-splitspec-splitspec-directory"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new pane, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is left unfocused.","body":"False by default, which is what {@code split-window} itself does. A session created through\n{@link SessionSpec} is the opposite, because tmux cannot make one without attaching unless it\nis told to detach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean fullWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the split spans the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean zoomed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is zoomed on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","name":"keepOnExit","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean keepOnExit()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane stays after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","name":"exitMessage","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional exitMessage()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What a kept pane shows once its command has exited. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.exitMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","product":"core","slug":"io-github-libtmux-splitspec-splitspec-exitmessage"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional style()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional activeBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional inactiveBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"List argv(String target, String format, TmuxVersion running)","params":[{"name":"target","type":"String","doc":"what to split, as a tmux target"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"TmuxVersion","doc":"the version of the server about to run this"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that performs this split, reporting the new pane through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.argv","product":"core","slug":"io-github-libtmux-splitspec-splitspec-argv"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.toString","product":"core","slug":"io-github-libtmux-splitspec-splitspec-tostring"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-kfol"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","name":"below","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder below()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane below the target, which is what tmux does by default."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.below","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-below"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","name":"above","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder above()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane above the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":304,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.above","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-above"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","name":"toRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toRight()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the right of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":310,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toright"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","name":"toLeft","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toLeft()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the left of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toleft"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","name":"cells","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder cells(int count)","params":[{"name":"count","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this many terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-cells"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","name":"percent","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder percent(int share)","params":[{"name":"share","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":328,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-percent"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command, which closes the pane when it exits unless {@link #keepOnExit} is set.","body":"A command that exits fast enough races {@link Pane#split}'s own read-back: tmux can\ndestroy the pane before the second listing that confirms it runs, and the split then\nthrows {@code TargetGoneException} even though tmux made the pane and ran the\ncommand in it. {@link #keepOnExit} removes the race by keeping the pane there to be read.\n\ntmux also reports the pane before its process has become this command, so a read at once\ncan still see the process about to exec it: wait for the command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":344,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-running"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","name":"empty","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder empty()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates a pane with no process in it. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-empty"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder start(PaneStart start)","params":[{"name":"start","type":"PaneStart"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets what runs, for a caller holding a {@link PaneStart} already."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the new pane in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-in"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new pane's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-env"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new pane's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the target pane focused, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder fullWindow()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Splits the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder zoomed()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Zooms the new pane on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":392,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","name":"keepOnExit","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder keepOnExit()","params":[],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder keepOnExit(String message)","params":[{"name":"message","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the pane after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":398,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder style(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder activeBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":417,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder inactiveBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":423,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public SplitSpec build()","params":[],"returns":"SplitSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":429,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-build"},{"id":"io.github.libtmux.TargetIds.TargetIds","name":"TargetIds","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Shared validation for the sigil-prefixed ids tmux hands out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds","product":"core","slug":"io-github-libtmux-targetids-targetids"},{"id":"io.github.libtmux.TargetIds.TargetIds.require","name":"require","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TargetIds.TargetIds","signatures":[{"raw":"static void require(String value, char sigil, String kind)","params":[{"name":"value","type":"String"},{"name":"sigil","type":"char"},{"name":"kind","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Rejects anything tmux would not read as an id of this kind.","body":"A bare {@code 0} is the case worth catching: tmux would accept it as a target and resolve\nit as a name or an index, silently addressing something else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds.require","product":"core","slug":"io-github-libtmux-targetids-targetids-require"},{"id":"io.github.libtmux.TextOutcome.TextOutcome","name":"TextOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait for text on a pane ended.","body":"Separate from {@link WakeReason}, which answers for a tmux channel, because this wait reads a\nscreen rather than blocking on a signal and so can end a way a channel never does: with the text\nalready there. A pane that has said {@code ready} since an hour ago must not answer a wait for\n{@code ready} the way output that just arrived does, and it must not be reported as a timeout\neither — a caller told only \"not found\" would go looking for text that is in plain sight.\n\n{@link Pane#await(java.util.function.Predicate, Duration)} keeps {@link WakeReason}: a caller\nwrote that condition and can test it before waiting, so the library is not the only thing that can\nsee it was already true."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","name":"APPEARED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The text appeared while the wait was running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.APPEARED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-appeared"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","name":"PRESENT_AT_ENTRY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The first look already showed the text, so this wait did not see it arrive.","body":"Exactly that, and no more. It may be output from a command the caller started a moment ago\nand that finished before the first read, or it may have been on the pane for an hour — a\nscreen cannot tell those apart, and reporting them as the same thing would be the claim this\noutcome exists to avoid. A caller that needs the difference should not be reading a screen:\nappend {@code ; tmux wait-for -S name} to its own command and block on {@link Server#channel},\nwhich is exact.\n\nAn echo of what this library typed is never what is found here; that is the caller's own\nquestion coming back, and it is discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.PRESENT_AT_ENTRY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-present_at_entry"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the text absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-timed_out"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the wait, so nothing it was guarding can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-server_gone"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","name":"TmuxEnvironment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux tells a program running inside one of its panes.","body":"tmux exports {@code TMUX} as {@code ,,} and {@code TMUX_PANE} as\nthe pane's id. That is how a process discovers the server it is already inside, without being told\nwhere to look.\n\nReading is separated from the environment itself, so the parsing is testable without a process\never having to be started inside tmux: {@link #of} takes the variables, {@link #current} is the\none-line wrapper that fetches them.\n\nA class rather than a record for the reason {@link ServerConfig} gives — and because the pane\nis genuinely absent sometimes, which an {@link Optional} accessor says better than a nullable\nrecord component.","examples":[{"lang":"java","code":"TmuxEnvironment here = TmuxEnvironment.current().orElseThrow();\n\ntry (Server server = Server.open(here.config())) {\n Session mine = server.sessions().stream()\n .filter(session -> session.id().equals(here.session()))\n .findFirst()\n .orElseThrow();\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","name":"current","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional current()","params":[],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when this is not running inside tmux"}],"doc":{"summary":"Reads this process's own environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.current","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-current"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional of(Map environment)","params":[{"name":"environment","type":"Map","doc":"the variables to read, typically {@code System.getenv()}"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when {@code TMUX} is absent or unreadable"}],"doc":{"summary":"Reads a set of environment variables."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-of"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"The socket the server is listening on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.socket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-socket"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public long serverPid()","params":[],"returns":"long","typeScopeBoundary":false}],"doc":{"summary":"The process id of the tmux server, which is not the pane's process."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.serverPid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-serverpid"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public SessionId session()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session this process is running in."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-session"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","name":"pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Optional pane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane this process is running in, absent when {@code TMUX_PANE} was not set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-pane"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"A config addressing this server, ready for {@link Server#open}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-config"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-tostring"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats","name":"TmuxFormats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Values handed to a tmux argument position that expands formats.","body":"tmux expands {@code #{...}} and {@code #(...)} in many argument positions, and {@code #(...)}\nruns a shell command. For the arguments this library composes itself — a window name, a pane\ntitle, a working directory — it applies {@link #literal} at the construction boundary, so a\ncaller's {@code #} stays a {@code #}.\n\nIt cannot do that for an argument the caller composes: {@link Pane#pipeTo},\n{@link Window#displayPopup}, {@link Shell#run}, {@link Shell#capturing} and {@link Shell#choose}\nall take a whole shell command, where format expansion is a documented\ntmux feature a caller may want — {@code #{pane_id}} in a filename, for instance. A caller\ninterpolating an untrusted value into one of those needs {@link #literal} on that value, which is\nwhy this is public.\n\nShell quoting does not substitute for it. tmux expands the format *before* the shell\nsees the string, so a {@code #(...)} inside single quotes still runs. Measured on tmux 3.7d, with\nthe interpolated value quoted as a careful caller would quote it: {@code run-shell} executed it,\nand {@code pipe-pane -O} executed it as soon as the pane produced output."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"public static String literal(String value)","params":[{"name":"value","type":"String","doc":"a value to be read as text rather than expanded"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"the value with every {@code #} doubled"}],"doc":{"summary":"Makes one caller value literal at one construction boundary.","body":"Doubling {@code #} is tmux's own escape for it, so the value arrives as itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.literal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-literal"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","name":"printed","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static String printed(String line, TmuxVersion version)","params":[{"name":"line","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true},{"raw":"static java.util.List printed(java.util.List lines, TmuxVersion version)","params":[{"name":"lines","type":"java.util.List"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"Text as tmux held it, from a line it printed.","body":"tmux 3.4 alone puts a backslash before every {@code $} that an ASCII letter, {@code _}, or\n`{` follows, in everything it prints: formats, listings, and {@code show-options\n-v}. 3.5 stopped ({@code 692ce59b}). Each escape is exactly one backslash in that position, so\nremoving it restores the text on 3.4 and changes nothing elsewhere.\n\n3.4 through 3.5a also print a control character as a C escape or three octal digits,\n{@code \\033} for ESC, and leave a backslash as it is. That is not undone: {@code \\033} could as well be those\nfour characters, which a {@code terminal-overrides} entry often holds, so the text is left as\ntmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-printed"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","name":"storedNames","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static java.util.List storedNames(String name, TmuxVersion version)","params":[{"name":"name","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"The names to look for when a caller names a session: the one this release stores for it, then the name exactly as given, which is what {@link Session#name} already reports.","body":"tmux doubles each backslash; 3.2a through 3.4 put a backslash before a {@code $} that a\nletter, {@code _}, or `{` follows; 3.2a through 3.6 store {@code .} and {@code :}\nas {@code _} and a control character as a C escape or three octal digits. 3.7 and later refuse\ncontrol characters. The stored form is an escaping, so it names at most one session; only a\nname that is itself some other name's stored form is ambiguous, and the stored form wins."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.storedNames","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-storednames"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxVersion(int major, int minor, String patch, boolean development, String preRelease)\n implements Comparable","params":[{"name":"major","type":"int","doc":"the major number"},{"name":"minor","type":"int","doc":"the minor number"},{"name":"patch","type":"String","doc":"the patch letter, or empty for an unlettered release"},{"name":"development","type":"boolean","doc":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},{"name":"preRelease","type":"String","doc":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"}]}],"typeScopeBoundary":false,"doc":{"summary":"A released tmux version, ordered the way tmux releases are.","body":"tmux numbers a patch release with a letter rather than a third number: 3.7a follows 3.7, and\n3.2a follows 3.2. Comparing the text alone gets that wrong in both directions, and a feature gate\nthat gets it wrong reads a format the running tmux does not have.\n\nBetween releases, tmux reports itself as {@code next-M.m}: a development build tracking toward\nthe release named, not that release itself. It has everything the previous release shipped and\nnothing later's patches guarantee, so it sorts strictly between the two — above every patch of the\nrelease before it, below the release it names and every patch of that.\n\nA release candidate, {@code 3.8-rc}, compares equal to the release it names. tmux freezes\nfeatures at the candidate, so it has everything the release will and differs only in fixes —\nmeasured, not assumed: a 3.8 candidate writes JSON layouts and empties a dead pane's pid exactly\nas 3.8 does, and a feature gated on 3.8 works on it. It is not {@code equals} to the release, and\nit is written back exactly as tmux wrote it, which matters beyond display: every capture is\nfenced on the version tmux reports, and a candidate printed as {@code 3.8} failed that fence on\nevery read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public TmuxVersion(int major, int minor, String patch, boolean development)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"},{"name":"development","type":"boolean"}],"typeScopeBoundary":false},{"raw":"public TmuxVersion(int major, int minor, String patch)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A release or a development build, without a release candidate."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public static TmuxVersion parse(String reported)","params":[{"name":"reported","type":"String"}],"returns":"TmuxVersion","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the text does not begin with a release number, optionally preceded by {@code next-}; a build that reports something else is one this cannot make version decisions about"}]}],"doc":{"summary":"Reads what tmux reports for {@code #{version}}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.parse","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-parse"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public boolean atLeast(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this version has everything the given one has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.atLeast","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-atleast"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","name":"compareTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public int compareTo(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.compareTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-compareto"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tostring"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.major","name":"major","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the major number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.major","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.major","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-major"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","name":"minor","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the minor number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.minor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-minor"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","name":"patch","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the patch letter, or empty for an unlettered release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.patch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-patch"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.development","name":"development","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.development","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.development","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-development"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","name":"preRelease","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.preRelease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-prerelease"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest","name":"CommandRequest","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandRequest(\n @ReadOnly List endpoint, @ReadOnly List> commands, Duration timeout, String input)","params":[{"name":"endpoint","type":"List","doc":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},{"name":"commands","type":"List>","doc":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},{"name":"timeout","type":"Duration","doc":"how long the caller will wait for the whole invocation"},{"name":"input","type":"String","doc":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux invocation: how to reach the server, then the commands to run there.","body":"Commands are held literally. tmux ends a command at an argument whose last byte is {@code ;},\nso a value ending in one would otherwise be truncated with no error; a transport encodes for the\nparser it feeds, and {@link #commands()} answers with what the caller meant.\n\nThe timeout rides on the request instead of the transport because the same server serves both\na listing that should answer immediately and an attach that never returns."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandRequest","typeScopeBoundary":true},{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout, String input)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"},{"name":"input","type":"String"}],"returns":"CommandRequest","typeScopeBoundary":true}],"doc":{"summary":"A request for one command, which is every request but a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-of"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether sending this request twice leaves tmux as sending it once does: {@link Idempotence#IDEMPOTENT} only when every command in it reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-idempotence"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","name":"commandLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@ReadOnly\n public List commandLine()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The full argv to hand a process builder, encoded for tmux's own argv parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commandLine","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commandline"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only. Commands carry pane content and socket paths, and this value reaches log lines and failed assertions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-tostring"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","name":"endpoint","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.endpoint","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-endpoint"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","name":"commands","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"doc":{"summary":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commands","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commands"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","name":"timeout","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the caller will wait for the whole invocation"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.timeout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-timeout"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","name":"input","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.input","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-input"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult","name":"CommandResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandResult(\n int exitCode,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"exitCode","type":"int","doc":"the process exit status"},{"name":"stdout","type":"List","doc":"stdout split at LF, preserving carriage returns and interior blanks"},{"name":"stderr","type":"List","doc":"stderr split into lines, with blanks dropped"}]}],"typeScopeBoundary":false,"doc":{"summary":"One completed invocation.","body":"A nonzero exit is data, not a failure. tmux reports an ordinary \"no such pane\" the same way it\nreports a real problem, so only a higher-level method knows which one should raise."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux reported success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.succeeded","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-succeeded"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only, because both channels carry captured terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.toString","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-tostring"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the process exit status"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-exitcode"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stdout split at LF, preserving carriage returns and interior blanks"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stdout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stdout"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stderr split into lines, with blanks dropped"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stderr","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stderr"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","name":"ControlCarrier","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Starts a long-lived tmux process in a transport's realm.","body":"A control client stays attached, so it cannot borrow a command permit. It still has to be\nstarted by the same carrier as the commands, or a custom transport's realm is silently ignored\nand the client attaches to whatever the local machine calls tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List","doc":"the tmux invocation, arguments already separate"}],"returns":"Process","typeScopeBoundary":false,"returnsDoc":"the running process","raises":[{"type":"IOException","doc":"if the process cannot be started"}]}],"doc":{"summary":"Starts the process. The caller owns it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier-start"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","name":"DispatchOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How certain the transport is that tmux applied a request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","name":"NOT_DISPATCHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process never started, so tmux cannot have applied anything."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.NOT_DISPATCHED","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-not_dispatched"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process ran to completion and both channels were drained."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.COMPLETE","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-complete"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux may already have applied the command; the result is not knowable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.UNKNOWN","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-unknown"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","name":"canRetryVerbatim","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[{"raw":"public boolean canRetryVerbatim(Idempotence idempotence)","params":[{"name":"idempotence","type":"Idempotence","doc":"whether every command in the request only reads"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the exact same request may be sent again after this outcome.","body":"A request that never reached tmux may always be resent. One that may have reached it may be\nresent only when it changes nothing. One that completed is not a dispatch question at all:\nwhether to act on tmux's answer is the caller's decision, so this answers {@code false}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.canRetryVerbatim","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-canretryverbatim"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence","name":"Idempotence","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Whether running a request twice leaves tmux as running it once does.","body":"Decided from the commands themselves: a request is idempotent only when every command in it\nreads and changes nothing. Anything this library cannot tell is a read counts as a change, so a\nfailure never reports a mutation as safe to resend."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","name":"IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Every command only reads; sending it again cannot change tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","name":"NOT_IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"At least one command may change tmux, so a second send may apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.NOT_IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-not_idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[{"raw":"public static Idempotence of(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"Idempotence","typeScopeBoundary":true}],"doc":{"summary":"The idempotence of a request made of {@code commands}, each an argv."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.of","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-of"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver","name":"OperationObserver","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Receives one {@link OperationReport} after each command.","body":"The transport still throws on failure. This does not retry. A report whose {@link\nOperationReport#certainty() certainty} is {@link DispatchOutcome#NOT_DISPATCHED} was never\napplied. {@link DispatchOutcome#UNKNOWN} must not be sent again blindly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","name":"accept","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationObserver.OperationObserver","signatures":[{"raw":"void accept(OperationReport report);","params":[{"name":"report","type":"OperationReport"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called once, after the command ends, on the thread that ran it.","body":"An exception thrown here does not change the command's result, since the command has\nalready run: failing it would invite a retry of something tmux may have done. The exception is\nlogged at {@code WARNING}, with its stack trace, by the logger of the transport or control\nclient that ran the command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver.accept","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver-accept"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport","name":"OperationReport","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationReport(\n long id,\n @ReadOnly List verbs,\n DispatchOutcome certainty,\n OptionalInt exitCode,\n int stdoutLines,\n int stderrLines,\n String boundedError,\n Duration queued,\n Duration elapsed)","params":[{"name":"id","type":"long","doc":"a counter for this transport, so one call can be told from the next"},{"name":"verbs","type":"List","doc":"the commands, without their arguments"},{"name":"certainty","type":"DispatchOutcome","doc":"whether tmux never started, finished, or might have applied the command"},{"name":"exitCode","type":"OptionalInt","doc":"the process exit status, empty when the process did not finish"},{"name":"stdoutLines","type":"int","doc":"how many stdout lines came back"},{"name":"stderrLines","type":"int","doc":"how many stderr lines came back"},{"name":"boundedError","type":"String","doc":"stderr text, at most {@link #ERROR_LIMIT} characters"},{"name":"queued","type":"Duration","doc":"how long the call waited for a free process or writer slot"},{"name":"elapsed","type":"Duration","doc":"how long the command itself ran after that wait"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command a transport finished or failed to finish.","body":"The verbs are the first word of each command. Arguments, standard input, and stdout are not\nhere: they carry session names, socket paths, and whatever a caller typed. {@link #boundedError()}\nis stderr, cut off, and {@link #toString()} leaves it out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","name":"ERROR_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[],"typeScopeBoundary":true,"type":"int","value":"240","doc":{"summary":"How much stderr text a report keeps."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.ERROR_LIMIT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-error_limit"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.bound","name":"bound","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"public static String bound(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Joins stderr lines and cuts them at {@link #ERROR_LIMIT}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.bound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.bound","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-bound"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts and timings only. The error text stays on {@link #boundedError()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.toString","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-tostring"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.id","name":"id","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"a counter for this transport, so one call can be told from the next"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.id","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.id","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-id"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","name":"verbs","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands, without their arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.verbs","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-verbs"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","name":"certainty","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"DispatchOutcome"}],"doc":{"summary":"whether tmux never started, finished, or might have applied the command"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.certainty","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-certainty"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the process exit status, empty when the process did not finish"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-exitcode"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","name":"stdoutLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stdout lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stdoutlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","name":"stderrLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stderr lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stderrlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","name":"boundedError","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"stderr text, at most {@link #ERROR_LIMIT} characters"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.boundedError","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-boundederror"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.queued","name":"queued","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the call waited for a free process or writer slot"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.queued","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.queued","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-queued"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","name":"elapsed","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the command itself ran after that wait"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.elapsed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-elapsed"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","name":"OutputDecoder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Turns a drained pipe into lines while preserving tmux values.","body":"tmux emits pane content, so the bytes are not guaranteed to be UTF-8. A malformed byte is\nescaped as {@code \\xNN} rather than replaced with U+FFFD, which keeps the original byte\nrecoverable and matches what CPython's {@code backslashreplace} produces.\n\ntmux frames stdout with LF; CR is value data, including before LF. Stdout keeps interior blank\nlines and drops trailing ones. Diagnostic stderr normalizes CRLF and CR to LF and drops all blanks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","name":"stdoutLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stdoutLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stdoutlines"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","name":"stderrLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stderrLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stderrlines"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The default transport: one child process per call, drained by a bounded pool of platform threads.","body":"A caller takes one admission permit before launching, and the pool holds exactly three workers\nper permit, so holding a permit means both drains and the input pump are already free. Without\nthat coupling a caller can start a child whose pipes nobody is reading, or block forever writing\nto one that stopped reading.\n\nA request declared as waiting also takes one of all but one admission permits. The remaining\nprocess stays available for the ordinary request that observes or releases those waits, without\nincreasing the total process or pump bound. An additional waiter is refused before dispatch, so\nits caller knows it was never registered.\n\nThe caller itself may be a virtual thread: {@code Process.waitFor} releases its carrier. The\ndrains stay platform threads, although on JDK 25 neither a monitor nor a pipe read pins a virtual\nthread any more. A virtual thread is always a daemon, and a drain has to finish the reply it is\nreading rather than be dropped at exit; and a library does not own the scheduler, where a\ncaller's CPU-bound task that never blocks keeps its carrier and a drain waiting behind it lets\nthe pipe fill.\n\nLaunching and closing are ordered by an explicit gate rather than a flag, because checking a\nflag and then acting on it lets a caller start a child after {@code close()} has already decided\nthere was nothing left to destroy."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"public ProcessTransport()","params":[],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once ({@code executeWaiting} requires at least two)"}],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses, int maxOutputBytes)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once"},{"name":"maxOutputBytes","type":"int","doc":"maximum bytes accepted from each output channel of one process"}],"typeScopeBoundary":false}],"doc":{"summary":"A transport allowing four concurrent tmux processes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-controlcarrier"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-admissionbound"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-observe"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-execute"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-executewaiting"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":331,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-close"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","name":"ProcessStarter","kind":"interface","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":733,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List"}],"returns":"Process","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":735,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter-start"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A worker could not be recovered. Distinct from {@link IllegalStateException}, which this transport reserves for use after close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":801,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","signatures":[{"raw":"ResourceNotReclaimed(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","name":"TmuxTransport","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs one tmux command and blocks until it has an answer.","body":"Implementations are thread-safe and {@link #close()} is idempotent. A call begun before close\neither completes under the documented contract or fails with its dispatch certainty intact; a\ncall begun after close fails with {@link io.github.libtmux.exception.ServerClosedException}, an\n{@link IllegalStateException}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"CommandResult execute(CommandRequest request);","params":[{"name":"request","type":"CommandRequest","doc":"what to run, what it reads, and how long to wait"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the exit status and both channels; a nonzero exit is a result, not a failure","raises":[{"type":"DispatchException","doc":"if the command could not be run to completion, carrying how certain it is that tmux applied it"},{"type":"IllegalStateException","doc":"if this transport is closed"}]}],"doc":{"summary":"Runs the request to completion.","body":"An implementation writes {@link CommandRequest#input()} to tmux's standard input and\ncloses it. A command that reads standard input and is given none reads end of file, which\ntmux reports as success over an empty result rather than as a failure."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-execute"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a request expected to remain blocked until another request through this transport releases it.","body":"The default shares ordinary admission. A transport with bounded concurrency may override\nthis to keep release and observation requests from queuing behind every waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-executewaiting"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default String realm()","params":[],"returns":"String","typeScopeBoundary":false,"returnsDoc":"a stable realm name; the default is the local process's own view of the filesystem"}],"doc":{"summary":"Names the execution realm this transport reaches tmux through.","body":"Entity identity is scoped by it. Two unrelated realms can both hold a server at the same\nsocket path, and entities from them must not compare equal, so a transport that reaches a\ndifferent machine, container or user should return something stable and distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.realm","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-realm"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How this transport starts a process that stays attached.","body":"Empty when the transport cannot. A command-only fake is in that set, and so is any realm\nthat has not said how its processes are born. Callers that need a control client then fail\ninstead of starting one on the local machine."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-controlcarrier"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command this transport runs.","body":"The default ignores it. A transport that cannot see its own commands leaves the observer\nunset rather than inventing timings."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-observe"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many requests this transport runs at once; the rest wait for a turn."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-admissionbound"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"@Override\n void close();","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases every resource and destroys every child still running. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-close"},{"id":"io.github.libtmux.TypedText.TypedText","name":"TypedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Discounts input recorded by this library when reading a pane's output.","body":"Create one instance per wait. Each read refreshes pending input and retains submitted echoes\nalready observed, even after the shared record expires. This mutable view is not thread-safe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText","product":"core","slug":"io-github-libtmux-typedtext-typedtext"},{"id":"io.github.libtmux.TypedText.TypedText.in","name":"in","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public static TypedText in(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"TypedText","typeScopeBoundary":true}],"doc":{"summary":"What this library has typed into the pane recently enough to still be on its screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.in","product":"core","slug":"io-github-libtmux-typedtext-typedtext-in"},{"id":"io.github.libtmux.TypedText.TypedText.withoutEcho","name":"withoutEcho","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@ReadOnly\n public List withoutEcho(List lines)","params":[{"name":"lines","type":"List"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The lines with each recorded echo taken out, wherever it stands as an echo does.","body":"An occurrence is taken out only where it is not part of a longer word on either side. That is\nwhat keeps the answer when the answer merely contains the question — {@code id} comes off\n{@code $ id} and stays inside {@code uid=1000} — while still taking out every copy of an echo a\nshell drew more than once, and one a shell drew something straight after. A row the echo shared\nwith real output keeps that output.\n\nWhat no rule can do is tell an echo from output that repeats the whole typed line as a line\nof its own. Wait for something the command prints rather than something it says.\n\nThe lines are scanned as one string, so an echo the terminal broke across rows is still\nfound. Pass lines with wrapping already rejoined when the text being watched for can itself be\nbroken across rows. A shell redraw or truncated capture that retains only part of an echo\ncannot be recognized reliably."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.withoutEcho","product":"core","slug":"io-github-libtmux-typedtext-typedtext-withoutecho"},{"id":"io.github.libtmux.TypedText.TypedText.isEmpty","name":"isEmpty","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public boolean isEmpty()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether anything typed into the pane is live enough, right now, to still be discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.isEmpty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.isEmpty","product":"core","slug":"io-github-libtmux-typedtext-typedtext-isempty"},{"id":"io.github.libtmux.TypedText.TypedText.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.toString","product":"core","slug":"io-github-libtmux-typedtext-typedtext-tostring"},{"id":"io.github.libtmux.WakeReason.WakeReason","name":"WakeReason","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait on a tmux channel ended.","body":"An enum rather than a boolean, and rather than nothing at all, because tmux's own\n{@code wait-for} cannot distinguish these: it exits successfully both when the channel is\nsignalled and when the server dies underneath the waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason","product":"core","slug":"io-github-libtmux-wakereason-wakereason"},{"id":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","name":"SIGNALLED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The channel was signalled."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SIGNALLED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","product":"core","slug":"io-github-libtmux-wakereason-wakereason-signalled"},{"id":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing signalled the channel before the caller's deadline."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","product":"core","slug":"io-github-libtmux-wakereason-wakereason-timed_out"},{"id":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server is gone. tmux reports this as a successful wake, so it is checked for rather than believed; a caller cannot rely on anything the wait was guarding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","product":"core","slug":"io-github-libtmux-wakereason-wakereason-server_gone"},{"id":"io.github.libtmux.Window.Window","name":"Window","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux window at one of its positions, as one capture saw it.","body":"Identity is the winlink: the server, the session, the index and the window. A window linked\ninto two sessions is one window and two handles, because tmux orders and addresses those\npositions separately. {@link #id()} stays available for asking whether two links are the same\nunderlying window.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window","product":"core","slug":"io-github-libtmux-window-window"},{"id":"io.github.libtmux.Window.Window.Window","name":"Window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"Window(Server server, ServerSnapshot snapshot, WindowState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"WindowState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.Window","product":"core","slug":"io-github-libtmux-window-window-window"},{"id":"io.github.libtmux.Window.Window.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowState info()","params":[],"returns":"WindowState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.info","product":"core","slug":"io-github-libtmux-window-window-info"},{"id":"io.github.libtmux.Window.Window.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowId id()","params":[],"returns":"WindowId","typeScopeBoundary":false}],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.id","product":"core","slug":"io-github-libtmux-window-window-id"},{"id":"io.github.libtmux.Window.Window.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowIndex index()","params":[],"returns":"WindowIndex","typeScopeBoundary":false}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.index","product":"core","slug":"io-github-libtmux-window-window-index"},{"id":"io.github.libtmux.Window.Window.context","name":"context","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowContext context()","params":[],"returns":"WindowContext","typeScopeBoundary":false}],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.context","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.context","product":"core","slug":"io-github-libtmux-window-window-context"},{"id":"io.github.libtmux.Window.Window.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.name","product":"core","slug":"io-github-libtmux-window-window-name"},{"id":"io.github.libtmux.Window.Window.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.active","product":"core","slug":"io-github-libtmux-window-window-active"},{"id":"io.github.libtmux.Window.Window.linked","name":"linked","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean linked()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linked","product":"core","slug":"io-github-libtmux-window-window-linked"},{"id":"io.github.libtmux.Window.Window.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.size","product":"core","slug":"io-github-libtmux-window-window-size"},{"id":"io.github.libtmux.Window.Window.layout","name":"layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowLayout layout()","params":[],"returns":"WindowLayout","typeScopeBoundary":false}],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it.","body":"Classic before tmux 3.8 and JSON from it, and the type says which. Hand it back with {@link\n#applyLayout(WindowLayout)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.layout","product":"core","slug":"io-github-libtmux-window-window-layout"},{"id":"io.github.libtmux.Window.Window.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane tmux had active here. A pure read of the capture.","body":"Empty only when the capture holds no pane marked active for this window, which a complete\ncapture of a live window does not."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.activePane","product":"core","slug":"io-github-libtmux-window-window-activepane"},{"id":"io.github.libtmux.Window.Window.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.select","product":"core","slug":"io-github-libtmux-window-window-select"},{"id":"io.github.libtmux.Window.Window.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.server","product":"core","slug":"io-github-libtmux-window-window-server"},{"id":"io.github.libtmux.Window.Window.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.snapshot","product":"core","slug":"io-github-libtmux-window-window-snapshot"},{"id":"io.github.libtmux.Window.Window.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Session session()","params":[],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.session","product":"core","slug":"io-github-libtmux-window-window-session"},{"id":"io.github.libtmux.Window.Window.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hooks","product":"core","slug":"io-github-libtmux-window-window-hooks"},{"id":"io.github.libtmux.Window.Window.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.options","product":"core","slug":"io-github-libtmux-window-window-options"},{"id":"io.github.libtmux.Window.Window.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.panes","product":"core","slug":"io-github-libtmux-window-window-panes"},{"id":"io.github.libtmux.Window.Window.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.split","product":"core","slug":"io-github-libtmux-window-window-split"},{"id":"io.github.libtmux.Window.Window.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.expand","product":"core","slug":"io-github-libtmux-window-window-expand"},{"id":"io.github.libtmux.Window.Window.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Window rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Renames this window and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state.\n\nA {@code :} or {@code .} is kept as written on every supported release but 3.7, which\nrefuses the name. A kept delimiter cannot then address the window, since a target splits on\nboth. Unlike a session name, a window name is never rewritten."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rename","product":"core","slug":"io-github-libtmux-window-window-rename"},{"id":"io.github.libtmux.Window.Window.linkTo","name":"linkTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void linkTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linkTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linkTo","product":"core","slug":"io-github-libtmux-window-window-linkto"},{"id":"io.github.libtmux.Window.Window.unlink","name":"unlink","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unlink()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this is the window's only link, which tmux refuses to remove"}]}],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.unlink","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.unlink","product":"core","slug":"io-github-libtmux-window-window-unlink"},{"id":"io.github.libtmux.Window.Window.moveTo","name":"moveTo","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session, int index)","params":[{"name":"session","type":"Session"},{"name":"index","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.moveTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.moveTo","product":"core","slug":"io-github-libtmux-window-window-moveto"},{"id":"io.github.libtmux.Window.Window.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":275,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.resizeTo","product":"core","slug":"io-github-libtmux-window-window-resizeto"},{"id":"io.github.libtmux.Window.Window.synchronizePanes","name":"synchronizePanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void synchronizePanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}.","body":"A verb pair rather than a boolean parameter, so a call site says which it means — as\n{@link Pane#pipeTo} and {@link Pane#stopPiping} already do for the other state a window\ncarries."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.synchronizePanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.synchronizePanes","product":"core","slug":"io-github-libtmux-window-window-synchronizepanes"},{"id":"io.github.libtmux.Window.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopSynchronizingPanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.stopSynchronizingPanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.stopSynchronizingPanes","product":"core","slug":"io-github-libtmux-window-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.Window.Window.rotate","name":"rotate","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void rotate()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rotate","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rotate","product":"core","slug":"io-github-libtmux-window-window-rotate"},{"id":"io.github.libtmux.Window.Window.selectLayout","name":"selectLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectLayout(Layout layout)","params":[{"name":"layout","type":"Layout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the layout arrived after the release this server runs"}]}],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":319,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.selectLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.selectLayout","product":"core","slug":"io-github-libtmux-window-window-selectlayout"},{"id":"io.github.libtmux.Window.Window.nextLayout","name":"nextLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":327,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.nextLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.nextLayout","product":"core","slug":"io-github-libtmux-window-window-nextlayout"},{"id":"io.github.libtmux.Window.Window.previousLayout","name":"previousLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.previousLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.previousLayout","product":"core","slug":"io-github-libtmux-window-window-previouslayout"},{"id":"io.github.libtmux.Window.Window.applyLayout","name":"applyLayout","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(WindowLayout layout)","params":[{"name":"layout","type":"WindowLayout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]},{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(String layout)","params":[{"name":"layout","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]}],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}.","body":"The string is checked here rather than by tmux, because tmux 3.3a does not survive being\nhanded one it cannot parse: it ends the server and every session on the socket. Every other\nsupported release answers {@code invalid layout}. The classic form carries tmux's own\nchecksum, so a wrong one is detectable without asking; since 3.8 tmux may instead hand back\nJSON, which carries no checksum, so that shape is only trusted from a server new enough to\nhave written it.\n\n\"Exact\" holds in full only for a JSON layout, since that is the one form carrying each\npane's id. A classic string — every release before 3.8, or an older reader against a newer\nserver — restores the geometry but names no pane, so which process lands in which cell can\ndiffer from where it started; whether it does depends on whether the pane list still happens\nto match the order the layout was saved in. Confirmed by hand on 3.2a and 3.7c."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":358,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.applyLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.applyLayout","product":"core","slug":"io-github-libtmux-window-window-applylayout"},{"id":"io.github.libtmux.Window.Window.respawn","name":"respawn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.respawn","product":"core","slug":"io-github-libtmux-window-window-respawn"},{"id":"io.github.libtmux.Window.Window.displayPopup","name":"displayPopup","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void displayPopup(String shellCommand)","params":[{"name":"shellCommand","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Shows a popup over this window, running a command in it.","body":"tmux draws a popup for a client, so this needs one attached; on a detached session tmux\nreports that it has no current client.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.displayPopup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.displayPopup","product":"core","slug":"io-github-libtmux-window-window-displaypopup"},{"id":"io.github.libtmux.Window.Window.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.kill","product":"core","slug":"io-github-libtmux-window-window-kill"},{"id":"io.github.libtmux.Window.Window.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Window refresh()","params":[],"returns":"Window","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this window is no longer linked here, from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":413,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.refresh","product":"core","slug":"io-github-libtmux-window-window-refresh"},{"id":"io.github.libtmux.Window.Window.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":432,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.equals","product":"core","slug":"io-github-libtmux-window-window-equals"},{"id":"io.github.libtmux.Window.Window.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hashCode","product":"core","slug":"io-github-libtmux-window-window-hashcode"},{"id":"io.github.libtmux.Window.Window.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":444,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.toString","product":"core","slug":"io-github-libtmux-window-window-tostring"},{"id":"io.github.libtmux.WindowId.WindowId","name":"WindowId","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code @} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux window id, such as {@code @1}.","body":"Identifies the window itself, not where it sits. A window linked into two sessions has one id\nand two positions, so this is what to compare when asking whether two links are the same window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId","product":"core","slug":"io-github-libtmux-windowid-windowid"},{"id":"io.github.libtmux.WindowId.WindowId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowId.WindowId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.toString","product":"core","slug":"io-github-libtmux-windowid-windowid-tostring"},{"id":"io.github.libtmux.WindowId.WindowId.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowId.WindowId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code @} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.value","product":"core","slug":"io-github-libtmux-windowid-windowid-value"},{"id":"io.github.libtmux.WindowIndex.WindowIndex","name":"WindowIndex","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowIndex(int value)","params":[{"name":"value","type":"int","doc":"the index, as tmux reports it"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a window sits in one session.","body":"A position, not an identity: tmux renumbering moves a window to a different index, and the\nsame window linked into two sessions can hold a different index in each."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex","product":"core","slug":"io-github-libtmux-windowindex-windowindex"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowIndex.WindowIndex","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.toString","product":"core","slug":"io-github-libtmux-windowindex-windowindex-tostring"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowIndex.WindowIndex","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the index, as tmux reports it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.value","product":"core","slug":"io-github-libtmux-windowindex-windowindex-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout","name":"WindowLayout","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A window's layout as tmux reported it, in whichever of its two forms it used.","body":"tmux writes a layout in its classic checksummed form — {@code c3a4,80x24,0,0,1} — on every\nrelease before 3.8, and as JSON from 3.8, which also names the pane in each cell. The same window\ntherefore reports a differently shaped string depending on the server, and a caller that parses it\nneeds to know which it has. This says, so the compiler can carry what used to be a comment:\n\nEither form is an opaque token to hand back to tmux, which {@link Window#applyLayout(WindowLayout)}\ndoes; parsing one is tmux's job, and {@link #value()} is the text for a caller who wants to anyway.","examples":[{"lang":"java","code":"switch (window.layout()) {\n case WindowLayout.Json json -> restorePanes(json.value());\n case WindowLayout.Classic classic -> restoreGeometry(classic.value());\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"String value();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The layout exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic","name":"Classic","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Classic(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The checksummed form every release writes before 3.8. It carries geometry and no pane ids."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Classic","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json","name":"Json","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Json(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The JSON form tmux writes from 3.8, which names the pane in each cell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Json","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"static WindowLayout of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"WindowLayout","typeScopeBoundary":true}],"doc":{"summary":"Which form a reported layout is in.","body":"Decided as tmux decides it, on whether the first non-blank character opens a JSON object —\n{@code layout_construct} in {@code layout-custom.c} dispatches on nothing more."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.of","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-of"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new window is inserted relative to the current one.","body":"Absent rather than a third constant when the caller does not care: tmux picking the next free\nindex is a different thing from being asked for a particular side, and a {@code DEFAULT} member\nwould have no flag to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","name":"AFTER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.AFTER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-after"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","name":"BEFORE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.BEFORE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-before"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"WindowPlacement(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that places a window this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-flag"},{"id":"io.github.libtmux.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a window should be made.","body":"The shape {@link SplitSpec} uses, for the same reasons: a description that contacts nothing, so\nit can be named, reused, and applied wherever it fits.","examples":[{"lang":"java","code":"Window logs = session.newWindow(w -> w.named(\"logs\").running(\"journalctl\", \"-f\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec","product":"core","slug":"io-github-libtmux-windowspec-windowspec"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached window at the end, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1sop"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name the window is created with, or empty to let tmux choose."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.name","product":"core","slug":"io-github-libtmux-windowspec-windowspec-name"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.directory","product":"core","slug":"io-github-libtmux-windowspec-windowspec-directory"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new window, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the window is left unselected.","body":"False by default, which is what {@code new-window} itself does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.placement","name":"placement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional placement()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window is inserted, or empty for tmux's own choice of index."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.placement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.placement","product":"core","slug":"io-github-libtmux-windowspec-windowspec-placement"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional index()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The index the window is created at, or empty for the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.index","product":"core","slug":"io-github-libtmux-windowspec-windowspec-index"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean replaceExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window already at the target index is destroyed to make room.","body":"Only means anything alongside {@link Builder#atIndex}: tmux has nothing to replace when it\nis choosing the index itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean reuseExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window that already carries this name is selected instead of a second being made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the window's first pane runs, empty for the session's shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.command","product":"core","slug":"io-github-libtmux-windowspec-windowspec-command"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"List argv(String target, String format)","params":[{"name":"target","type":"String","doc":"the session, or the index, to create in"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The command that makes this window, reporting it through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.argv","product":"core","slug":"io-github-libtmux-windowspec-windowspec-argv"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.toString","product":"core","slug":"io-github-libtmux-windowspec-windowspec-tostring"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1f6n"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the window, where tmux would otherwise name it after what runs in it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-named"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","name":"after","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder after()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately after the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.after","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-after"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","name":"before","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder before()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately before the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.before","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-before"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the session's shell. tmux reports the window before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-running"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the window in this directory. A relative one resolves against this process's working directory, on every release: tmux 3.2a would resolve it against the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-in"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new window's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":218,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-env"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new window's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the current window selected, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","name":"atIndex","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder atIndex(int index)","params":[{"name":"index","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates the window at a chosen index rather than the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.atIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-atindex"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder replaceExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Destroys whatever window already sits at the index chosen by {@link #atIndex}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder reuseExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Selects a window that already carries this name rather than making a second.","body":"tmux reports nothing when it reuses one, so the answer comes from a lookup. Every other\ncreating call in this library is told what it made; this is the exception."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public WindowSpec build()","params":[],"returns":"WindowSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-build"},{"id":"io.github.libtmux.Client_.Client_","name":"Client_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Client}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_","product":"core","slug":"io-github-libtmux-client_-client_"},{"id":"io.github.libtmux.Client_.Client_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.name","product":"core","slug":"io-github-libtmux-client_-client_-name"},{"id":"io.github.libtmux.Client_.Client_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.session","product":"core","slug":"io-github-libtmux-client_-client_-session"},{"id":"io.github.libtmux.Pane_.Pane_","name":"Pane_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Pane}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_","product":"core","slug":"io-github-libtmux-pane_-pane_"},{"id":"io.github.libtmux.Pane_.Pane_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane id."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.id","product":"core","slug":"io-github-libtmux-pane_-pane_-id"},{"id":"io.github.libtmux.Pane_.Pane_.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField command()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.command","product":"core","slug":"io-github-libtmux-pane_-pane_-command"},{"id":"io.github.libtmux.Pane_.Pane_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.index","product":"core","slug":"io-github-libtmux-pane_-pane_-index"},{"id":"io.github.libtmux.Pane_.Pane_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.active","product":"core","slug":"io-github-libtmux-pane_-pane_-active"},{"id":"io.github.libtmux.Pane_.Pane_.title","name":"title","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField title()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.title","product":"core","slug":"io-github-libtmux-pane_-pane_-title"},{"id":"io.github.libtmux.Pane_.Pane_.path","name":"path","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField path()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.path","product":"core","slug":"io-github-libtmux-pane_-pane_-path"},{"id":"io.github.libtmux.Pane_.Pane_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.width","product":"core","slug":"io-github-libtmux-pane_-pane_-width"},{"id":"io.github.libtmux.Pane_.Pane_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.height","product":"core","slug":"io-github-libtmux-pane_-pane_-height"},{"id":"io.github.libtmux.Pane_.Pane_.left","name":"left","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField left()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.left","product":"core","slug":"io-github-libtmux-pane_-pane_-left"},{"id":"io.github.libtmux.Pane_.Pane_.top","name":"top","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField top()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.top","product":"core","slug":"io-github-libtmux-pane_-pane_-top"},{"id":"io.github.libtmux.Pane_.Pane_.atTop","name":"atTop","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atTop()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atTop","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atTop","product":"core","slug":"io-github-libtmux-pane_-pane_-attop"},{"id":"io.github.libtmux.Pane_.Pane_.atBottom","name":"atBottom","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atBottom()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atBottom","product":"core","slug":"io-github-libtmux-pane_-pane_-atbottom"},{"id":"io.github.libtmux.Pane_.Pane_.atLeft","name":"atLeft","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atLeft()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atLeft","product":"core","slug":"io-github-libtmux-pane_-pane_-atleft"},{"id":"io.github.libtmux.Pane_.Pane_.atRight","name":"atRight","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atRight()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atRight","product":"core","slug":"io-github-libtmux-pane_-pane_-atright"},{"id":"io.github.libtmux.Session_.Session_","name":"Session_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Session}, for building an expression that can be read as well as run.","body":"Each field exposes only the operators its type supports, so asking a flag to start with a\nstring does not compile. Every field names a tmux format, so a backend model can bind the handle\nbefore translating the expression into tmux's own {@code -f} filter."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_","product":"core","slug":"io-github-libtmux-session_-session_"},{"id":"io.github.libtmux.Session_.Session_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.id","product":"core","slug":"io-github-libtmux-session_-session_-id"},{"id":"io.github.libtmux.Session_.Session_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.name","product":"core","slug":"io-github-libtmux-session_-session_-name"},{"id":"io.github.libtmux.Session_.Session_.attached","name":"attached","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.FlagField attached()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.attached","product":"core","slug":"io-github-libtmux-session_-session_-attached"},{"id":"io.github.libtmux.Session_.Session_.windowCount","name":"windowCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.NumberField windowCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windowCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windowCount","product":"core","slug":"io-github-libtmux-session_-session_-windowcount"},{"id":"io.github.libtmux.Session_.Session_.windows","name":"windows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.ToManyRef windows()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windows","product":"core","slug":"io-github-libtmux-session_-session_-windows"},{"id":"io.github.libtmux.Window_.Window_","name":"Window_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Window}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_","product":"core","slug":"io-github-libtmux-window_-window_"},{"id":"io.github.libtmux.Window_.Window_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.id","product":"core","slug":"io-github-libtmux-window_-window_-id"},{"id":"io.github.libtmux.Window_.Window_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.name","product":"core","slug":"io-github-libtmux-window_-window_-name"},{"id":"io.github.libtmux.Window_.Window_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.index","product":"core","slug":"io-github-libtmux-window_-window_-index"},{"id":"io.github.libtmux.Window_.Window_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.active","product":"core","slug":"io-github-libtmux-window_-window_-active"},{"id":"io.github.libtmux.Window_.Window_.linked","name":"linked","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField linked()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.linked","product":"core","slug":"io-github-libtmux-window_-window_-linked"},{"id":"io.github.libtmux.Window_.Window_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.width","product":"core","slug":"io-github-libtmux-window_-window_-width"},{"id":"io.github.libtmux.Window_.Window_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.height","product":"core","slug":"io-github-libtmux-window_-window_-height"},{"id":"io.github.libtmux.Window_.Window_.paneCount","name":"paneCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField paneCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.paneCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.paneCount","product":"core","slug":"io-github-libtmux-window_-window_-panecount"},{"id":"io.github.libtmux.Window_.Window_.panes","name":"panes","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToManyRef panes()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.panes","product":"core","slug":"io-github-libtmux-window_-window_-panes"},{"id":"io.github.libtmux.Window_.Window_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.session","product":"core","slug":"io-github-libtmux-window_-window_-session"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec","name":"PaneSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneSpec(List commands)","params":[{"name":"commands","type":"List","doc":"the commands to send, in order; a pane with none is left at its shell"}]}],"typeScopeBoundary":false,"doc":{"summary":"One pane and what to run in it."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","name":"commands","kind":"method","parent":"io.github.libtmux.workspace.PaneSpec.PaneSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands to send, in order; a pane with none is left at its shell"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec.commands","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec-commands"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowSpec(String name, Optional layout, List panes)","params":[{"name":"name","type":"String","doc":"the window name"},{"name":"layout","type":"Optional","doc":"the tmux layout to apply once the panes exist, if the file asked for one"},{"name":"panes","type":"List","doc":"the panes to create, in order; a window always has at least one"}]}],"typeScopeBoundary":false,"doc":{"summary":"One window, its panes, and how they are arranged."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","name":"name","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.name","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-name"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","name":"layout","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the tmux layout to apply once the panes exist, if the file asked for one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.layout","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-layout"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","name":"panes","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the panes to create, in order; a window always has at least one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.panes","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-panes"},{"id":"io.github.libtmux.workspace.Workspace.Workspace","name":"Workspace","kind":"class","modifiers":[],"signatures":[{"raw":"public record Workspace(String sessionName, List windows)","params":[{"name":"sessionName","type":"String","doc":"the session to create"},{"name":"windows","type":"List","doc":"the windows to create, in order"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session described in a file, before anything has been built."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","name":"sessionName","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session to create"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.sessionName","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-sessionname"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.windows","name":"windows","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the windows to create, in order"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.windows","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.windows","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-windows"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","name":"WorkspaceApplier","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Applies a validated workspace as one session and attempts to remove it after a failure."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","signatures":[{"raw":"static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier-build"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","name":"WorkspaceBuilder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Builds a tmux session from a written description.","body":"Reads the shape of a tmuxp workspace file. Full runtime compatibility with tmuxp is not the\naim; starting from a file somebody already has is.\n\nReading and building are separate. A file that describes something tmux would refuse is\nrejected while it is still text, before any session exists to leave half-built.\n\nThe {@code tmux-workspace} command is a separate implementation with a wider document\nlanguage and its own behaviour around building; see this package's documentation for what\ndiffers. Code against this class for what this class does."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace read(Path file)","params":[{"name":"file","type":"Path"}],"returns":"Workspace","typeScopeBoundary":true}],"doc":{"summary":"Reads a workspace from a file."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.read","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-read"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the description is one tmux could not build, including a layout name tmux would not recognise"}]}],"doc":{"summary":"Reads a workspace from YAML text."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-parse"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true,"returnsDoc":"the session, from a capture taken once everything exists"}],"doc":{"summary":"Creates the described session on a server."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-build"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","name":"WorkspaceParser","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Converts the supported YAML shape into immutable workspace values."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","signatures":[{"raw":"static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser-parse"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson","name":"FilterJson","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The versioned wire form of a filter expression.","body":"Writing and reading both require a model. Expressions hold executable accessors and navigators,\nwhile documents carry only their ids; the model is the authority that binds one to the other.\nRegex operands retain {@link java.util.regex.Pattern} syntax and flag bits.\n\nEverything unrecognised fails. An expression read wrongly does not announce itself — it\nsilently matches the wrong things, and a caller who wanted a filter gets one, just not theirs."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","name":"SCHEMA","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[],"typeScopeBoundary":true,"type":"String","value":"\"libtmux.filter/1\"","doc":{"summary":"The schema this version reads and writes. Immutable once published."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.SCHEMA","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-schema"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.write","name":"write","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static ObjectNode write(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"ObjectNode","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if any field or relation is not the exact handle declared by the model"}]}],"doc":{"summary":"Writes an expression as a document for the model that declared all of its fields and relations."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.write","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.write","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-write"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","name":"writeString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static String writeString(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"String","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Writes an expression as compact JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.writeString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-writestring"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr read(JsonNode document, FilterModel model)","params":[{"name":"document","type":"JsonNode"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if the schema version, the model, a field, a relation, an operator or a node shape is not one this version knows"}]}],"doc":{"summary":"Reads a document back as an expression over the given model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.read","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.read","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-read"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","name":"readString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr readString(String json, FilterModel model)","params":[{"name":"json","type":"String"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Reads a document from JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.readString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-readstring"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel","name":"FilterModel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the entity this model describes"}],"doc":{"summary":"What a document's field and relation ids mean.","body":"Expressions carry executable field and relation handles, while documents carry only their ids.\nThis model binds those forms and gives each nested relation its target model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.named","name":"named","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public static Builder named(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"public static Builder named(String id, Class entityType)","params":[{"name":"id","type":"String"},{"name":"entityType","type":"Class"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Starts a caller-owned model. Its id must identify the caller's namespace."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.named","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.named","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-named"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"static Builder builtIn(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.builtIn","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builtin"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The id documents name this model by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.id","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.id","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-id"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","name":"fieldNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set fieldNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every field a document may compare on, in declaration order."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.fieldNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-fieldnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","name":"relationNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set relationNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every relation a document may navigate."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.relationNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relationnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.field","name":"field","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"FieldRef field(String fieldId)","params":[{"name":"fieldId","type":"String"}],"returns":"FieldRef","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","name":"toMany","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toMany(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","name":"toOne","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toOne(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","name":"Relation","kind":"class","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"record Relation(\n Fields.@Nullable ToManyRef toMany,\n Fields.@Nullable ToOneRef toOne,\n Supplier> targetModel)","params":[{"name":"toMany","type":"Fields.@Nullable ToManyRef"},{"name":"toOne","type":"Fields.@Nullable ToOneRef"},{"name":"targetModel","type":"Supplier>"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A relation handle paired with the model its far side is described by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","name":"target","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","signatures":[{"raw":"FilterModel target()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.target","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-target"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","name":"toMany","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToManyRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","name":"toOne","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToOneRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","name":"targetModel","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Supplier>"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.targetModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-targetmodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Collects the exact handles and unique ids a document may name."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","name":"field","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder field(Fields.TextField field)","params":[{"name":"field","type":"Fields.TextField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.NumberField field)","params":[{"name":"field","type":"Fields.NumberField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.FlagField field)","params":[{"name":"field","type":"Fields.FlagField"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Declares a text field by the handle a metamodel already mints."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","name":"toMany","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toMany(Fields.ToManyRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toMany(Fields.ToManyRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-many relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","name":"toOne","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toOne(Fields.ToOneRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toOne(Fields.ToOneRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-one relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public FilterModel build()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"doc":{"summary":"Builds the model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.build","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-build"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","name":"LibTmuxModels","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The wire ids for this library's own entities.","body":"The ids are tmux's format names, which is what makes a document readable by something that is\nnot this library: another implementation already knows what {@code pane_current_command} means."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel pane()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code pane}."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.pane","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-pane"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel window()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code window}, reaching panes."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.window","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-window"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel session()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code session}, reaching windows."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.session","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-session"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","name":"client","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel client()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code client}, reaching its session."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.client","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-client"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException","name":"SchemaException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A document could not be read as the expression it claims to be.","body":"Every failure here is a refusal rather than a best effort. An expression read wrongly does not\nannounce itself: it silently matches the wrong things, which is worse than not loading at all. An\n{@link IllegalArgumentException}, since the fault is in the document, not in talking to tmux."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","name":"SchemaException","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.SchemaException.SchemaException","signatures":[{"raw":"public SchemaException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception-schemaexception"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A {@code tmux -C} client of a {@link FakeTmux}, as the process a control client talks to.","body":"It reads one command line at a time, has the fake answer it, and writes the reply block tmux\nwould: {@code %begin}, the output, then {@code %end} or {@code %error}. Pushed output and\nnotifications are written between replies, never inside one, as tmux writes them. It ends, with\n{@code %exit}, when the fake restarts or the client closes its input."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"FakeControlClient(Function>, CommandResult> answer)","params":[{"name":"answer","type":"Function>, CommandResult>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","name":"push","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void push(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes an unprompted line, such as {@code %output}, between replies."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.push","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-push"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void end()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.end","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-end"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"static List> parse(String line)","params":[{"name":"line","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"A command line as tmux's parser reads the ones this library writes: each argument single quoted, a quote as {@code '\\''}, a newline or return as {@code \"\\n\"} or {@code \"\\r\"}, and an unquoted {@code ;} between commands."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-parse"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","name":"getOutputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public OutputStream getOutputStream()","params":[],"returns":"OutputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getOutputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getoutputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","name":"getInputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getInputStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getInputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getinputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","name":"getErrorStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getErrorStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getErrorStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-geterrorstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","name":"waitFor","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int waitFor() throws InterruptedException","params":[],"returns":"int","typeScopeBoundary":false},{"raw":"@Override\n public boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException","params":[{"name":"timeout","type":"long"},{"name":"unit","type":"TimeUnit"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.waitFor","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-waitfor"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","name":"exitValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int exitValue()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.exitValue","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-exitvalue"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.isAlive","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-isalive"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","name":"destroy","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public void destroy()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.destroy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-destroy"},{"id":"io.github.libtmux.junit5.FakePane.FakePane","name":"FakePane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One pane in a {@link FakeWindow}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":5,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.id","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-id"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.index","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-index"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.command","name":"command","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.command","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.command","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-command"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.directory","name":"directory","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.directory","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.directory","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-directory"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.pid","name":"pid","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"long","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.pid","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.pid","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-pid"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.title","name":"title","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","value":"\"\"","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.title","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.title","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-title"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","name":"FakePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[{"raw":"FakePane(String id, int index, String command, String directory, long pid)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"command","type":"String"},{"name":"directory","type":"String"},{"name":"pid","type":"long"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession","name":"FakeSession","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One session in a {@link FakeTmux}, holding its windows in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.id","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-id"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.name","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-name"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","name":"windows","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-windows"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","name":"FakeSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[{"raw":"FakeSession(String id, String name)","params":[{"name":"id","type":"String"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux","name":"FakeTmux","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux server that is not there, for testing code that uses this library without starting one.","body":"It answers the way tmux answers, not the way a stub would: a listing is rendered from the\ntemplate the library sends, so a snapshot of a fake server is a real snapshot and every handle\nworks; a handle command is fenced on the server's identity and refused once the fake is replaced,\nas tmux refuses it; a group stops at its first failure. What it models is the hierarchy —\nsessions, windows, panes and their names and titles — and what each pane shows. What it does not\nmodel is a shell: keys sent to a pane are recorded, not run, and a pane shows what the test says.\n\nFor behaviour that depends on tmux itself — what a release does with a flag, how a real shell\nechoes — test against real tmux with {@link TmuxExtension} instead. This is for code whose\ninterest in tmux ends at the calls it makes.","examples":[{"lang":"java","code":"FakeTmux tmux = new FakeTmux();\nPaneId editor = tmux.addSession(\"work\");\ntmux.show(editor, \"$ make\", \"make: Nothing to be done for 'all'.\");\n\ntry (Server server = tmux.server()) {\n Pane pane = server.pane(editor).orElseThrow();\n pane.capture(); // → [$ make, make: Nothing to be done for 'all'.]\n pane.sendLine(\"make test\");\n}\n\ntmux.sent(); // every command, as the library sent it"}]},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","name":"FakeTmux","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public FakeTmux()","params":[],"typeScopeBoundary":false}],"doc":{"summary":"A fake server with no sessions, as tmux is before anything has been created."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"A server this transport answers for.","body":"Borrowed rather than owned, so closing it leaves this fake as it is and a test can inspect\nit afterwards."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-server"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","name":"addSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized PaneId addSession(String name)","params":[{"name":"name","type":"String"}],"returns":"PaneId","typeScopeBoundary":false,"returnsDoc":"the pane, so a test can say what it shows"}],"doc":{"summary":"Adds a session with one window and one pane running {@code sh}, as {@code new-session} makes."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.addSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-addsession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","name":"restart","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void restart()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Replaces the server, as a restart does: a new process, and nothing in it.","body":"Handles made before this are refused from now on, which is what a test of code that has to\nsurvive a server restarting under it needs to see."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.restart","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-restart"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void show(PaneId pane, String... lines)","params":[{"name":"pane","type":"PaneId"},{"name":"lines","type":"String","variadic":"positional"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"What the pane shows, one element per line, which is what capturing it answers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.show","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-show"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","name":"sent","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List> sent()","params":[],"returns":"List>","typeScopeBoundary":false}],"doc":{"summary":"Every command the library sent, in order, each as the words tmux would have read.","body":"Unwrapped: a command the library fenced on the server's identity or sent in a group is here\nas itself, and the plumbing that carried it is not."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sent","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sent"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The sessions the fake holds now, by id."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sessions","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sessions"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public synchronized CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.execute","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-execute"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Control clients of this fake: {@code server.control(session)} attaches one, its commands are answered as this fake answers any other, and it hears what {@link #output} and {@link #notify} push. A restart ends every client attached, as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.controlCarrier","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-controlcarrier"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","name":"output","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void output(PaneId pane, String text)","params":[{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes what a pane wrote to every attached control client, as tmux's {@code %output}: a control byte or a backslash as three octal digits, and the rest as it is."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":267,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.output","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-output"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","name":"notify","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void notify(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes a notification line, such as {@code %window-renamed @1 logs}, to every attached client."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.notify","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-notify"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":294,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-close"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow","name":"FakeWindow","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One window in a {@link FakeSession}, holding its panes in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-id"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-index"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-name"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","name":"active","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakePane active()","params":[],"returns":"FakePane","typeScopeBoundary":false}],"typeScopeBoundary":false,"type":"boolean","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-active"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","name":"panes","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-panes"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","name":"FakeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakeWindow(String id, int index, String name)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.Flags.Flags","name":"Flags","kind":"class","modifiers":[],"signatures":[{"raw":"record Flags(Map values, Set switches, List positional)","params":[{"name":"values","type":"Map"},{"name":"switches","type":"Set"},{"name":"positional","type":"List"}]}],"typeScopeBoundary":false,"doc":{"summary":"A command's flags and the words after them, read as tmux's argument parser reads them."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags","product":"core","slug":"io-github-libtmux-junit5-flags-flags"},{"id":"io.github.libtmux.junit5.Flags.Flags.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"static Flags parse(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Flags","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.parse","product":"core","slug":"io-github-libtmux-junit5-flags-flags-parse"},{"id":"io.github.libtmux.junit5.Flags.Flags.has","name":"has","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"boolean has(String flag)","params":[{"name":"flag","type":"String"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.has","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.has","product":"core","slug":"io-github-libtmux-junit5-flags-flags-has"},{"id":"io.github.libtmux.junit5.Flags.Flags.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"@Nullable\n String value(String flag)","params":[{"name":"flag","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.value","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.value","product":"core","slug":"io-github-libtmux-junit5-flags-flags-value"},{"id":"io.github.libtmux.junit5.Flags.Flags.values","name":"values","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Map"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.values","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.values","product":"core","slug":"io-github-libtmux-junit5-flags-flags-values"},{"id":"io.github.libtmux.junit5.Flags.Flags.switches","name":"switches","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Set"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.switches","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.switches","product":"core","slug":"io-github-libtmux-junit5-flags-flags-switches"},{"id":"io.github.libtmux.junit5.Flags.Flags.positional","name":"positional","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.positional","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.positional","product":"core","slug":"io-github-libtmux-junit5-flags-flags-positional"},{"id":"io.github.libtmux.junit5.Formats.Formats","name":"Formats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The part of tmux's format language the library sends: variables, comparisons, {@code &&} and {@code ||}, {@code ?} conditionals, and the {@code W:} and {@code P:} loops."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats","product":"core","slug":"io-github-libtmux-junit5-formats-formats"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope","name":"Scope","kind":"interface","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"What a format is expanded against: a row's variables, and the rows a loop visits."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"@Nullable\n String get(String variable);","params":[{"name":"variable","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.get","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.get","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-get"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List windows();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The windows of this row's session, each at its active pane."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-windows"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List panes();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes of this row's window."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-panes"},{"id":"io.github.libtmux.junit5.Formats.Formats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String literal(String value)","params":[{"name":"value","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Undoes {@code TmuxFormats.literal}: tmux reads {@code ##} in a format as one {@code #}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.literal","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.literal","product":"core","slug":"io-github-libtmux-junit5-formats-formats-literal"},{"id":"io.github.libtmux.junit5.Formats.Formats.expand","name":"expand","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String expand(String format, Function variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Function"}],"returns":"String","typeScopeBoundary":true},{"raw":"static String expand(String format, Scope variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Scope"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.expand","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.expand","product":"core","slug":"io-github-libtmux-junit5-formats-formats-expand"},{"id":"io.github.libtmux.junit5.Formats.Formats.truthy","name":"truthy","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static boolean truthy(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.truthy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.truthy","product":"core","slug":"io-github-libtmux-junit5-formats-formats-truthy"},{"id":"io.github.libtmux.junit5.Groups.Groups","name":"Groups","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a command group the way tmux's command parser reads it: words in single quotes, a quote spelled {@code '\\''}, a line break spelled {@code \"\\n\"}, commands separated by {@code ;}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups","product":"core","slug":"io-github-libtmux-junit5-groups-groups"},{"id":"io.github.libtmux.junit5.Groups.Groups.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Groups.Groups","signatures":[{"raw":"static List> parse(String text)","params":[{"name":"text","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups.parse","product":"core","slug":"io-github-libtmux-junit5-groups-groups-parse"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","name":"NamedServerFixture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the safe teardown of a tmux server addressed by socket name."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","name":"own","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public static NamedServerFixture own(Server server, String expectedName, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedName","type":"String","doc":"the exact socket name the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the {@code TMUX_TMPDIR} assigned to this test task"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]},{"raw":"public static NamedServerFixture own(Server server, Path expectedSocket, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedSocket","type":"Path","doc":"the exact socket path the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the owned root that must contain the socket"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]}],"doc":{"summary":"Authenticates a live named server and takes responsibility for ending it."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.own","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-own"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"Returns the exact socket path authenticated when ownership was taken."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-socket"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"@Override\n public synchronized void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-close"},{"id":"io.github.libtmux.junit5.Target.Target","name":"Target","kind":"class","modifiers":[],"signatures":[{"raw":"record Target(FakeSession session, FakeWindow window, FakePane pane)","params":[{"name":"session","type":"FakeSession"},{"name":"window","type":"FakeWindow"},{"name":"pane","type":"FakePane"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session, one of its windows, and one of that window's panes: what a command is scoped to."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target","product":"core","slug":"io-github-libtmux-junit5-target-target"},{"id":"io.github.libtmux.junit5.Target.Target.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional active(List sessions)","params":[{"name":"sessions","type":"List"}],"returns":"Optional","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.active","product":"core","slug":"io-github-libtmux-junit5-target-target-active"},{"id":"io.github.libtmux.junit5.Target.Target.resolve","name":"resolve","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional resolve(List sessions, @Nullable String spec)","params":[{"name":"sessions","type":"List"},{"name":"spec","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"Resolves {@code $id}, {@code @id}, {@code %id} and {@code =name}, with any trailing separator."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.resolve","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.resolve","product":"core","slug":"io-github-libtmux-junit5-target-target-resolve"},{"id":"io.github.libtmux.junit5.Target.Target.session","name":"session","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeSession"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.session","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.session","product":"core","slug":"io-github-libtmux-junit5-target-target-session"},{"id":"io.github.libtmux.junit5.Target.Target.window","name":"window","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeWindow"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.window","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.window","product":"core","slug":"io-github-libtmux-junit5-target-target-window"},{"id":"io.github.libtmux.junit5.Target.Target.pane","name":"pane","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakePane"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.pane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.pane","product":"core","slug":"io-github-libtmux-junit5-target-target-pane"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","name":"TmuxExtension","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Gives each test its own tmux server and guarantees it is gone afterwards.","body":"All state lives in the extension store, never in fields. JUnit reuses one declaratively\nregistered extension instance for every test in a class, so a field is shared state the moment\ntests run in parallel, and one test's teardown then reaches another test's server.\n\nThe server is started eagerly, before the test body, and the aggregate that owns it is\nregistered before any process exists. Registering afterwards leaves a window in which a failure\npartway through setup leaks a running tmux that nothing is left holding.\n\nTeardown is driven from a lifecycle callback and the aggregate is also {@link AutoCloseable}\nfor the framework's own store handling. Relying on store auto-close alone is a silent dependency\non a configuration property: with it disabled that design releases nothing and reports nothing.\nThe aggregate closes exactly once, so either path alone is sufficient."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","name":"fixtureRoot","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Path fixtureRoot()","params":[],"returns":"Path","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.fixtureRoot","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixtureroot"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","name":"reapAbandoned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static int reapAbandoned(Path root)","params":[{"name":"root","type":"Path"}],"returns":"int","typeScopeBoundary":true}],"doc":{"summary":"Ends every tmux server under {@code root} whose owning JVM is gone, and answers how many ended. Runs while other runs are using the same root, so it may only touch abandoned servers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.reapAbandoned","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-reapabandoned"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","name":"startOf","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Optional startOf(long pid)","params":[{"name":"pid","type":"long"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"When a process started, in a form every JVM on this machine reads the same way: the kernel's own ticks since boot on Linux, and the platform's start instant elsewhere."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.startOf","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-startof"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","name":"deleteTree","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static void deleteTree(Path root)","params":[{"name":"root","type":"Path"}],"returns":"void","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":255,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.deleteTree","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-deletetree"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","name":"beforeEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void beforeEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.beforeEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-beforeeach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","name":"supportsParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public boolean supportsParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.supportsParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-supportsparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","name":"resolveParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public Object resolveParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"Object","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.resolveParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-resolveparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","name":"afterEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void afterEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.afterEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-aftereach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","name":"Fixture","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"One test's server, socket and directory, released exactly once."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"synchronized void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.start","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-start"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-server"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-socket"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"@Override\n public synchronized void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-close"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","name":"awaitExit","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"static boolean awaitExit(Server server)","params":[{"name":"server","type":"Server"}],"returns":"boolean","typeScopeBoundary":true},{"raw":"static boolean awaitExit(Server server, long timeoutMillis)","params":[{"name":"server","type":"Server"},{"name":"timeoutMillis","type":"long"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Exit is proved by asking, not assumed from a kill that may have raced."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.awaitExit","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-awaitexit"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","name":"TmuxSocketPath","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxSocketPath(Path path)","params":[{"name":"path","type":"Path","doc":"the exact socket path this test's tmux was started with"}]}],"typeScopeBoundary":false,"doc":{"summary":"The socket a fixture server is listening on.","body":"A distinct type rather than a bare {@link Path} so the extension can resolve it without\nclaiming every {@code Path} parameter a test might want from some other extension."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the exact socket path this test's tmux was started with"},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath.path","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath-path"},{"id":"io.github.libtmux.mcp.Main.Main","name":"Main","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs the tmux MCP server over stdin and stdout.","body":"An MCP client launches this as a subprocess and speaks JSON-RPC over its standard streams, so\n**nothing may write to stdout but the protocol**. Diagnostics go to stderr, which the\nclient is free to log or discard.\n\nWhich tmux server to expose is chosen the same way the library chooses it: a socket path, a\nsocket name, or tmux's own default.\n\nThe unordered toolset and named-tool environment variables resolve one immutable surface\nbefore tmux is opened. A tool outside it is neither listed nor callable.","examples":[{"lang":"java","code":"libtmux-mcp --socket /run/user/1000/tmux/default\nlibtmux-mcp --socket-name work --tmux /usr/local/bin/tmux"}]},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.main","name":"main","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"public static void main(String[] args)","params":[{"name":"args","type":"String[]","doc":"{@code --socket PATH}, {@code --socket-name NAME}, {@code --tmux BINARY}"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout until the client closes them."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.configure","name":"configure","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"static ServerConfig configure(List args)","params":[{"name":"args","type":"List"}],"returns":"ServerConfig","typeScopeBoundary":true},{"raw":"static ServerConfig configure(List args, Map environment)","params":[{"name":"args","type":"List"},{"name":"environment","type":"Map"}],"returns":"ServerConfig","typeScopeBoundary":true}],"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.configure","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.configure","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-configure"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","name":"TmuxMcpServer","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Exposes a tmux server to a model over the Model Context Protocol.","body":"Thin by design. What the tools do lives in {@link Catalog} and the classes it names, which is\nwhat gets tested against real tmux; this class describes them to a client and turns their answers\ninto protocol.\n\nThe SDK dispatches synchronous handlers on its bounded worker scheduler, not the transport I/O\nthread. Core operations remain typed and synchronous; wait and channel operations retain their\nown cancellation and timeout contracts."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","name":"overStdio","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer overStdio(Server server)","params":[{"name":"server","type":"Server"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout, which is how an MCP client launches a tool."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.overStdio","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-overstdio"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","name":"serving","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer serving(Server server, McpServerTransportProvider transport)","params":[{"name":"server","type":"Server"},{"name":"transport","type":"McpServerTransportProvider"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over a caller-supplied transport.","body":"The returned server owns the transport. Ownership transfers on entry, so failed startup\ncloses it too."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.serving","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-serving"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"workspace","package":"libtmux-workspace","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"mcp","package":"libtmux-mcp","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Client}.\n */\npublic final class Client_ {\n private static final Fields.TextField NAME = Fields.text(\"client_name\", Client::name);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", Client::session);\n\n private Client_() {\n }\n\n /**\n * The client's terminal name, which is how tmux addresses it.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * The session this client was attached to, if any.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Pane}.\n */\npublic final class Pane_ {\n private static final Fields.TextField ID = Fields.text(\"pane_id\", pane -> pane.id().value());\n\n private static final Fields.TextField COMMAND = Fields.text(\"pane_current_command\", Pane::currentCommand);\n\n private static final Fields.NumberField INDEX = Fields.number(\"pane_index\", Pane::index);\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"pane_active\", Pane::active);\n\n private static final Fields.TextField TITLE = Fields.text(\"pane_title\", Pane::title);\n\n private static final Fields.TextField PATH = Fields.text(\"pane_current_path\", Pane::currentPathText);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"pane_width\", pane -> pane.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"pane_height\", pane -> pane.size().height());\n\n private static final Fields.NumberField LEFT = Fields.number(\"pane_left\", pane -> pane.position().left());\n\n private static final Fields.NumberField TOP = Fields.number(\"pane_top\", pane -> pane.position().top());\n\n private static final Fields.FlagField AT_TOP = Fields.flag(\"pane_at_top\", pane -> pane.edges().top());\n\n private static final Fields.FlagField AT_BOTTOM = Fields.flag(\"pane_at_bottom\", pane -> pane.edges().bottom());\n\n private static final Fields.FlagField AT_LEFT = Fields.flag(\"pane_at_left\", pane -> pane.edges().left());\n\n private static final Fields.FlagField AT_RIGHT = Fields.flag(\"pane_at_right\", pane -> pane.edges().right());\n\n private Pane_() {\n }\n\n /**\n * The pane id.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The command tmux reported running in the pane.\n */\n public static Fields.TextField command() {\n return COMMAND;\n }\n\n /**\n * The pane's position in its window.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its window's active pane.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * The pane's title, which a program running in it can set.\n */\n public static Fields.TextField title() {\n return TITLE;\n }\n\n /**\n * The pane's working directory, as the text tmux reported.\n */\n public static Fields.TextField path() {\n return PATH;\n }\n\n /**\n * The pane's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The pane's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * The column of the pane's left edge in its window.\n */\n public static Fields.NumberField left() {\n return LEFT;\n }\n\n /**\n * The row of the pane's top edge in its window.\n */\n public static Fields.NumberField top() {\n return TOP;\n }\n\n /**\n * Whether the pane touches the top of its window.\n */\n public static Fields.FlagField atTop() {\n return AT_TOP;\n }\n\n /**\n * Whether the pane touches the bottom of its window.\n */\n public static Fields.FlagField atBottom() {\n return AT_BOTTOM;\n }\n\n /**\n * Whether the pane touches the left of its window.\n */\n public static Fields.FlagField atLeft() {\n return AT_LEFT;\n }\n\n /**\n * Whether the pane touches the right of its window.\n */\n public static Fields.FlagField atRight() {\n return AT_RIGHT;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Session}, for building an expression that can be read as well as run.\n *\n *

Each field exposes only the operators its type supports, so asking a flag to start with a\n * string does not compile. Every field names a tmux format, so a backend model can bind the handle\n * before translating the expression into tmux's own {@code -f} filter.\n */\npublic final class Session_ {\n private static final Fields.TextField ID = Fields.text(\"session_id\", session -> session.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"session_name\", Session::name);\n\n private static final Fields.FlagField ATTACHED = Fields.flag(\"session_attached\", Session::attached);\n\n private static final Fields.NumberField WINDOW_COUNT = Fields.number(\"session_windows\", session -> session.windows().size());\n\n private static final Fields.ToManyRef WINDOWS = Fields.toMany(\"windows\", Session::windows);\n\n private Session_() {\n }\n\n /**\n * The session id, as text, so it can be compared and listed.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The session name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Whether a client was attached when this was captured.\n */\n public static Fields.FlagField attached() {\n return ATTACHED;\n }\n\n /**\n * How many windows this session holds.\n */\n public static Fields.NumberField windowCount() {\n return WINDOW_COUNT;\n }\n\n /**\n * This session's windows.\n */\n public static Fields.ToManyRef windows() {\n return WINDOWS;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Window}.\n */\npublic final class Window_ {\n private static final Fields.TextField ID = Fields.text(\"window_id\", window -> window.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"window_name\", Window::name);\n\n private static final Fields.NumberField INDEX = Fields.number(\"window_index\", window -> window.index().value());\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"window_active\", Window::active);\n\n private static final Fields.FlagField LINKED = Fields.flag(\"window_linked\", Window::linked);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"window_width\", window -> window.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"window_height\", window -> window.size().height());\n\n private static final Fields.NumberField PANE_COUNT = Fields.number(\"window_panes\", window -> window.panes().size());\n\n private static final Fields.ToManyRef PANES = Fields.toMany(\"panes\", Window::panes);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", window -> java.util.Optional.of(window.session()));\n\n private Window_() {\n }\n\n /**\n * The underlying window id, shared by every link to it.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The window name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Where this link sits in its session.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its session's active window.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * Whether the underlying window is linked into more than one session.\n */\n public static Fields.FlagField linked() {\n return LINKED;\n }\n\n /**\n * The window's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The window's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * How many panes this link holds.\n */\n public static Fields.NumberField paneCount() {\n return PANE_COUNT;\n }\n\n /**\n * This link's panes.\n */\n public static Fields.ToManyRef panes() {\n return PANES;\n }\n\n /**\n * The session this link belongs to.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n"},"repo":"libtmux/libtmux-java"} +{"port":"java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model@0.0.1","symbols":[{"id":"io.github.libtmux.batch.Batch.Batch","name":"Batch","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Several tmux commands in one invocation, each with an outcome of its own.","body":"tmux runs a group until a command fails and then discards the rest, so the number of replies\ncannot say which command failed: an error in the first position and an error in the last both\ncome back as one nonzero exit. Counting replies is wrong in every position but one.\n\nA marker is therefore interleaved after each operation. Markers are discarded along with\neverything else after a failure, so the last marker seen is exactly the last operation tmux ran,\nand the operations either side of that boundary are known rather than guessed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.Batch","name":"Batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"public Batch(Function>, CommandResult> dispatch)","params":[{"name":"dispatch","type":"Function>, CommandResult>","doc":"runs the assembled commands in one invocation and returns tmux's raw reply"}],"typeScopeBoundary":false}],"doc":{"summary":"Collects operations to run together."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.add","name":"add","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Batch","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Adds one tmux command, its arguments already separate elements."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.add","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.add","product":"core","slug":"io-github-libtmux-batch-batch-batch-add"},{"id":"io.github.libtmux.batch.Batch.Batch.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many operations have been collected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.size","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.size","product":"core","slug":"io-github-libtmux-batch-batch-batch-size"},{"id":"io.github.libtmux.batch.Batch.Batch.length","name":"length","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int length()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses.","body":"tmux packs a command into MAX_IMSGSIZE, 16384 bytes, and refuses a longer one with\n{@code command too long}; measured, it takes about 16300 of them. A batch taken from a handle\ntravels as this one string plus the guard that fences it, so it costs this and a little more.\nOne dispatched as separate arguments costs less, since nothing there is quoted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.length","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.length","product":"core","slug":"io-github-libtmux-batch-batch-batch-length"},{"id":"io.github.libtmux.batch.Batch.Batch.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false,"returnsDoc":"one result per operation, in submission order"}],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.run","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.run","product":"core","slug":"io-github-libtmux-batch-batch-batch-run"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult","name":"BatchResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record BatchResult(@ReadOnly List operations)","params":[{"name":"operations","type":"List","doc":"one result per submitted operation, in submission order"}]}],"typeScopeBoundary":false,"doc":{"summary":"What became of every operation in one batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran every operation and all of them succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-succeeded"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.failure","name":"failure","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public Optional failure()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The operation that failed, if one did. Everything after it was discarded by tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.failure","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.failure","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-failure"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.toString","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-tostring"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.operations","name":"operations","kind":"method","parent":"io.github.libtmux.batch.BatchResult.BatchResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"one result per submitted operation, in submission order"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.operations","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.operations","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-operations"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","name":"OperationOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What became of one operation in a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.COMPLETE","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-complete"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","name":"FAILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it failed. Everything after it was discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.FAILED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-failed"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","name":"SKIPPED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux never reached it, because an earlier operation failed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.SKIPPED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-skipped"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Whether tmux applied it cannot be determined."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.UNKNOWN","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-unknown"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult","name":"OperationResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationResult(\n @ReadOnly List argv,\n OperationOutcome outcome,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"argv","type":"List","doc":"the operation as it was submitted"},{"name":"outcome","type":"OperationOutcome","doc":"what became of it"},{"name":"stdout","type":"List","doc":"the lines this operation produced, separated from its neighbours'"},{"name":"stderr","type":"List","doc":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"}]}],"typeScopeBoundary":false,"doc":{"summary":"One operation's own result within a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran this operation and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-succeeded"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: argv and output carry pane content and socket paths."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.toString","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-tostring"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.argv","name":"argv","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the operation as it was submitted"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.argv","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.argv","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-argv"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what became of it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.outcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-outcome"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines this operation produced, separated from its neighbours'"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stdout","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stdout"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stderr","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stderr"},{"id":"io.github.libtmux.BufferInfo.BufferInfo","name":"BufferInfo","kind":"class","modifiers":[],"signatures":[{"raw":"public record BufferInfo(String name, int size)","params":[{"name":"name","type":"String","doc":"the buffer name, which is how every other buffer command addresses it"},{"name":"size","type":"int","doc":"how many bytes it holds"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux paste buffer, as a listing described it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.name","name":"name","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the buffer name, which is how every other buffer command addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.name","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-name"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.size","name":"size","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many bytes it holds"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.size","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-size"},{"id":"io.github.libtmux.Buffers.Buffers","name":"Buffers","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux server's paste buffers.","body":"Buffers are the server's, not a session's: anything copied in one session can be pasted into\nanother. They are addressed by name rather than by the stack position tmux also accepts, because\na position moves whenever anything else is copied."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","name":"EXACT_NAMED_DELETE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[],"typeScopeBoundary":true,"type":"TmuxVersion","value":"new TmuxVersion(3, 4, \"\")","doc":{"summary":"tmux's own history dates the fix to {@code 0f6227f4} (\"When deleting or renaming a buffer and a buffer name is specified, complain if the buffer doesn't exist instead of silently deleting or renaming the most recent buffer\", GitHub issue 3205); {@code git tag --contains} places it on {@code 3.4} and nothing earlier, so 3.3 and 3.3a both have the bug. Confirmed on the matrix: {@code set-buffer -b a x; set-buffer -b b y; delete-buffer -b nope} answers {@code unknown buffer: nope} on 3.4 and leaves both buffers, but on 3.3a it exits 0 and takes {@code b}, the one {@code delete-buffer} was never told to touch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.EXACT_NAMED_DELETE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","product":"core","slug":"io-github-libtmux-buffers-buffers-exact_named_delete"},{"id":"io.github.libtmux.Buffers.Buffers.Buffers","name":"Buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"Buffers(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list, empty if the live server holds no buffers","raises":[{"type":"LibTmuxException","doc":"if the listing fails, including when no daemon is running"}]}],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.list","product":"core","slug":"io-github-libtmux-buffers-buffers-list"},{"id":"io.github.libtmux.Buffers.Buffers.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String contents)","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there.","body":"The contents end the options, because they are the one argument here tmux would otherwise\nread as flags: {@code set(\"clip\", \"-nfoo\")} used to rename the buffer to {@code foo} and write\nnothing, and report success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.set","product":"core","slug":"io-github-libtmux-buffers-buffers-set"},{"id":"io.github.libtmux.Buffers.Buffers.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.READ)\n public String show(String name)","params":[{"name":"name","type":"String"}],"returns":"String","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"What a buffer holds, without any line breaks it ends with.","body":"tmux prints a buffer as it is, and the transport drops trailing blank lines, so {@code \"a\"}\nand {@code \"a\\n\"} read the same. A marker printed after it cannot keep them: tmux writes a\nbuffer through its file stream, which a second command in the same invocation interrupts.\n{@link #save} writes the exact bytes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.show","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.show","product":"core","slug":"io-github-libtmux-buffers-buffers-show"},{"id":"io.github.libtmux.Buffers.Buffers.delete","name":"delete","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void delete(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, whose named deletion silently removes the top buffer when the name is absent"}]}],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.delete","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.delete","product":"core","slug":"io-github-libtmux-buffers-buffers-delete"},{"id":"io.github.libtmux.Buffers.Buffers.save","name":"save","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void save(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.save","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.save","product":"core","slug":"io-github-libtmux-buffers-buffers-save"},{"id":"io.github.libtmux.Buffers.Buffers.load","name":"load","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void load(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.load","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.load","product":"core","slug":"io-github-libtmux-buffers-buffers-load"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec","name":"CaptureSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What part of a pane to read, and how.","body":"The shape {@link SplitSpec} uses. A plain {@link Pane#capture()} reads what is on screen; this\nis how to reach the scrollback above it, or to keep what tmux otherwise strips.\n\nLines are numbered from the top of the visible area, so {@code 0} is the first row on screen\nand negatives climb into the history. {@code fromStartOfHistory()} is the whole of what tmux\nkept.","examples":[{"lang":"java","code":"List everything = pane.capture(c -> c.fromStartOfHistory());\nList lastTen = pane.capture(c -> c.from(-10));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec","product":"core","slug":"io-github-libtmux-capturespec-capturespec"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder that reads what is on screen and nothing else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-17ql"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"List argv(String target, TmuxVersion running)","params":[{"name":"target","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that reads the pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","product":"core","slug":"io-github-libtmux-capturespec-capturespec-argv"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the flag it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-v00t"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","name":"from","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder from(int line)","params":[{"name":"line","type":"int","doc":"{@code 0} is the first row on screen; negatives climb into the scrollback"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at a line, counted from the top of the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.from","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-from"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","name":"fromStartOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromStartOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at the oldest line tmux still has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromStartOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromstartofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","name":"to","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder to(int line)","params":[{"name":"line","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at a line, counted the same way as {@link #from}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.to","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-to"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","name":"toEndOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder toEndOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at the newest line, including anything below the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.toEndOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-toendofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","name":"withEscapeSequences","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withEscapeSequences()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the escape sequences that colour and position the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withEscapeSequences","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withescapesequences"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","name":"escapingNonPrintable","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder escapingNonPrintable()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Writes anything unprintable as an octal escape rather than dropping it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.escapingNonPrintable","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-escapingnonprintable"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","name":"joiningWrappedLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder joiningWrappedLines()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Joins a line tmux wrapped back into the one line it was."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.joiningWrappedLines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-joiningwrappedlines"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","name":"preservingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder preservingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the spaces at the end of a line, which tmux otherwise drops."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.preservingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-preservingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","name":"trimmingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder trimmingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Drops trailing space and the empty lines below the content. Requires tmux 3.4."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.trimmingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-trimmingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","name":"fromAlternateScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromAlternateScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads the alternate screen, which is what a full-screen program draws on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromAlternateScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromalternatescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","name":"pendingOnly","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder pendingOnly()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads only output tmux has not drawn yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.pendingOnly","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-pendingonly"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","name":"fromModeScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromModeScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads what a mode is showing rather than the pane beneath it. Requires tmux 3.6."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":211,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromModeScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-frommodescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","name":"withHyperlinks","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withHyperlinks()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps hyperlink markers. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withHyperlinks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withhyperlinks"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","name":"withLineNumbers","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withLineNumbers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Prefixes each line with its number. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":223,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withLineNumbers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withlinenumbers"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public CaptureSpec build()","params":[],"returns":"CaptureSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-build"},{"id":"io.github.libtmux.catalog.Advanced.Advanced","name":"Advanced","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target({TYPE, METHOD})\npublic @interface Advanced","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Public for orchestration across processes or clients, such as the MCP server's pane reservations; not part of the surface a language facade mirrors."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Advanced.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Advanced","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Advanced.Advanced","product":"core","slug":"io-github-libtmux-catalog-advanced-advanced"},{"id":"io.github.libtmux.catalog.Kind.Kind","name":"Kind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What shape a facade needs to give one operation of the core API.","body":"A Kotlin or Scala wrapper, or a generated reference page, reads this off {@link Operation}\nrather than guessing from a method's name or return type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind","product":"core","slug":"io-github-libtmux-catalog-kind-kind"},{"id":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","name":"CAPTURED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"No tmux I/O: answers from the handle's own capture, or collects a command to send later. Field accessors, navigation within one capture, and building a batch or chain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.CAPTURED","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","product":"core","slug":"io-github-libtmux-catalog-kind-kind-captured"},{"id":"io.github.libtmux.catalog.Kind.Kind.READ","name":"READ","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Contacts tmux and changes nothing: listings, captures, {@code show-*}, expansion, liveness, lookups."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.READ","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.READ","product":"core","slug":"io-github-libtmux-catalog-kind-kind-read"},{"id":"io.github.libtmux.catalog.Kind.Kind.MUTATION","name":"MUTATION","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Changes tmux state: sending keys, renaming, killing, splitting, setting options, pasting, resizing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.MUTATION","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.MUTATION","product":"core","slug":"io-github-libtmux-catalog-kind-kind-mutation"},{"id":"io.github.libtmux.catalog.Kind.Kind.WAIT","name":"WAIT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Blocks until something else happens; the waiting itself changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.WAIT","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.WAIT","product":"core","slug":"io-github-libtmux-catalog-kind-kind-wait"},{"id":"io.github.libtmux.catalog.Kind.Kind.STREAM","name":"STREAM","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Returns a subscription, stream, or publisher of events."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.STREAM","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.STREAM","product":"core","slug":"io-github-libtmux-catalog-kind-kind-stream"},{"id":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","name":"LIFECYCLE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Opens, attaches, derives, or closes a resource."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.LIFECYCLE","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","product":"core","slug":"io-github-libtmux-catalog-kind-kind-lifecycle"},{"id":"io.github.libtmux.catalog.Operation.Operation","name":"Operation","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target(METHOD)\npublic @interface Operation","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Classifies one public method of the core API as a tmux operation of a given {@link Kind}.","body":"Every public method that performs or describes a tmux operation carries this, so a facade\nnever has to infer the shape of a call from its name or signature."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation","product":"core","slug":"io-github-libtmux-catalog-operation-operation"},{"id":"io.github.libtmux.catalog.Operation.Operation.value","name":"value","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"Kind value();","params":[],"returns":"Kind","typeScopeBoundary":false}],"doc":{"summary":"What shape this operation gives a facade."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.value","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.value","product":"core","slug":"io-github-libtmux-catalog-operation-operation-value"},{"id":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","name":"tmuxSince","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"String tmuxSince() default \"\";","params":[],"returns":"String","typeScopeBoundary":false}],"value":"\"\"","doc":{"summary":"The first tmux release that has this operation, when it is newer than the supported floor, 3.2a. Empty when the whole supported range has it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.tmuxSince","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","product":"core","slug":"io-github-libtmux-catalog-operation-operation-tmuxsince"},{"id":"io.github.libtmux.Channel.Channel","name":"Channel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's wait-for channels, named once.","body":"A channel is server-wide and shared by everything on it, including programs running in panes.\nNothing creates or destroys one: a name either has a signal remembered against it or does not.\n\ntmux's own {@code wait-for} has two traps, and this exists to close both. It exits successfully\nwhen the server dies under the waiter, which is indistinguishable from a real signal, so the\nserver is checked afterwards rather than believed. And a signal sent when nobody is waiting is\nremembered, satisfying the next wait whenever that happens — possibly in a later run of a\ndifferent program — so {@link #drain()} is how a caller starts from a known state on a channel\nwhose history is not its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.Channel","name":"Channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"Channel(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name this channel is known by on its server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.name","product":"core","slug":"io-github-libtmux-channel-channel-name"},{"id":"io.github.libtmux.Channel.Channel.signal","name":"signal","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void signal()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Signals the channel, waking one waiter, or being remembered until something waits.","body":"{@code -S} takes no argument of its own — it says which of wait-for's three modes this is —\nso the name that follows is a positional and needs the options ended before it, exactly as\nthe wait does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.signal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.signal","product":"core","slug":"io-github-libtmux-channel-channel-signal"},{"id":"io.github.libtmux.Channel.Channel.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which is never simply \"successfully\"","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits for something to signal the channel."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.await","product":"core","slug":"io-github-libtmux-channel-channel-await"},{"id":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason awaitReservingCapacity(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.DispatchException","doc":"if the wait could not be dispatched"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits while preserving process capacity for a call through this server that signals it.","body":"Use this when the waiter and its release share a bounded transport. A wait released outside\nthat transport should use {@link #await}; reserving capacity for it only rejects useful\nconcurrency."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.awaitReservingCapacity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","product":"core","slug":"io-github-libtmux-channel-channel-awaitreservingcapacity"},{"id":"io.github.libtmux.Channel.Channel.drain","name":"drain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public boolean drain() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether a signal was there to consume","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Consumes a signal already waiting, so a stale one cannot satisfy a later wait."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.drain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.drain","product":"core","slug":"io-github-libtmux-channel-channel-drain"},{"id":"io.github.libtmux.Channel.Channel.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.toString","product":"core","slug":"io-github-libtmux-channel-channel-tostring"},{"id":"io.github.libtmux.Client.Client","name":"Client","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One attached tmux client, as one capture saw it.","body":"Identity is the server and the client name, which is how tmux addresses it. What it is\nattached to is state: a client can switch sessions without becoming a different client.\n\n{@link #name()}, {@link #session()}, and {@link #attachment()} return what the capture holds\nand do no I/O; {@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client","product":"core","slug":"io-github-libtmux-client-client"},{"id":"io.github.libtmux.Client.Client.Client","name":"Client","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"Client(Server server, ServerSnapshot snapshot, ClientState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"ClientState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.Client","product":"core","slug":"io-github-libtmux-client-client-client"},{"id":"io.github.libtmux.Client.Client.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.name","product":"core","slug":"io-github-libtmux-client-client-name"},{"id":"io.github.libtmux.Client.Client.detach","name":"detach","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detach()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running.","body":"Detaching is not killing: the session outlives the client, which is the reason tmux exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detach","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detach","product":"core","slug":"io-github-libtmux-client-client-detach"},{"id":"io.github.libtmux.Client.Client.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachOthers()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detachOthers","product":"core","slug":"io-github-libtmux-client-client-detachothers"},{"id":"io.github.libtmux.Client.Client.switchTo","name":"switchTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void switchTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this client to another session.","body":"The client keeps its identity: switching is a change of what it is looking at, not a\ndetach and a fresh attach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.switchTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.switchTo","product":"core","slug":"io-github-libtmux-client-client-switchto"},{"id":"io.github.libtmux.Client.Client.redraw","name":"redraw","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void redraw()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to redraw this client.","body":"Not {@link #refresh()}, which takes a new capture of what tmux knows. This one is tmux's\n{@code refresh-client}, and it changes the terminal rather than this handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.redraw","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.redraw","product":"core","slug":"io-github-libtmux-client-client-redraw"},{"id":"io.github.libtmux.Client.Client.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.server","product":"core","slug":"io-github-libtmux-client-client-server"},{"id":"io.github.libtmux.Client.Client.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.snapshot","product":"core","slug":"io-github-libtmux-client-client-snapshot"},{"id":"io.github.libtmux.Client.Client.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional session()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.session","product":"core","slug":"io-github-libtmux-client-client-session"},{"id":"io.github.libtmux.Client.Client.attachment","name":"attachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional attachment()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command.","body":"Empty when the capture shows the client attached to nothing, or shows a session whose\nactive window or pane the capture did not include."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.attachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.attachment","product":"core","slug":"io-github-libtmux-client-client-attachment"},{"id":"io.github.libtmux.Client.Client.fetchAttachment","name":"fetchAttachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional fetchAttachment()","params":[],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached"}]}],"doc":{"summary":"Takes a new capture and returns what this client is looking at now.","body":"Named to say it dispatches, unlike {@link #attachment()}. Every call is one live capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.fetchAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.fetchAttachment","product":"core","slug":"io-github-libtmux-client-client-fetchattachment"},{"id":"io.github.libtmux.Client.Client.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Client refresh()","params":[],"returns":"Client","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached, or a different daemon answers on the endpoint"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this client as it is now.","body":"This handle remains unchanged, as every handle's does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.refresh","product":"core","slug":"io-github-libtmux-client-client-refresh"},{"id":"io.github.libtmux.Client.Client.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.equals","product":"core","slug":"io-github-libtmux-client-client-equals"},{"id":"io.github.libtmux.Client.Client.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.hashCode","product":"core","slug":"io-github-libtmux-client-client-hashcode"},{"id":"io.github.libtmux.Client.Client.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.toString","product":"core","slug":"io-github-libtmux-client-client-tostring"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment","name":"ClientAttachment","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientAttachment(Session session, Window activeWindow, Pane activePane)","params":[{"name":"session","type":"Session","doc":"the session the client is attached to"},{"name":"activeWindow","type":"Window","doc":"that session's active window"},{"name":"activePane","type":"Pane","doc":"that window's active pane, which is what the client's keystrokes reach"}]}],"typeScopeBoundary":false,"doc":{"summary":"What a client was looking at.","body":"All three are present together or not at all. A client attached to a session is looking at\nexactly one window of it and one pane of that window; an attachment holding only some of those\nwould describe a state tmux does not have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.session","name":"session","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Session"}],"doc":{"summary":"the session the client is attached to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.session","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-session"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Window"}],"doc":{"summary":"that session's active window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activewindow"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Pane"}],"doc":{"summary":"that window's active pane, which is what the client's keystrokes reach"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activepane"},{"id":"io.github.libtmux.CommandChain.CommandChain","name":"CommandChain","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs: a {@code new-window} makes the new window\ncurrent, a following {@code split-window} splits that window, and a following {@code send-keys}\ntypes into the pane that split produced. None of these steps names a target, and that is the\npoint — the alternative is a round trip per step to learn the id of the thing just created.\n\nThe whole chain is one tmux invocation, and every step is attributed individually, so a chain\nthat fails halfway says which step failed and which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.CommandChain","name":"CommandChain","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"CommandChain(Batch batch, Supplier running)","params":[{"name":"batch","type":"Batch"},{"name":"running","type":"Supplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.newWindow","name":"newWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain newWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Creates a window and makes it the one following steps act on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.newWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-newwindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.renameWindow","name":"renameWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain renameWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Renames the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.renameWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.renameWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-renamewindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitLeftRight()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a left and a right one.","body":"Named for what it produces rather than for tmux's {@code -h}, which reads as though it\ndescribed the divider."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitLeftRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splitleftright"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitTopBottom()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a top and a bottom one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitTopBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splittopbottom"},{"id":"io.github.libtmux.CommandChain.CommandChain.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Types a line into the current pane and presses Enter, which is how a command gets run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.sendLine","product":"core","slug":"io-github-libtmux-commandchain-commandchain-sendline"},{"id":"io.github.libtmux.CommandChain.CommandChain.arrange","name":"arrange","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandChain arrange(String layout)","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout, which on some versions ends the whole server rather than the command"},{"type":"UnsupportedFeatureException","doc":"if the layout name arrived after this release, which tmux cannot tell from any other name it does not know"}]}],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.arrange","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.arrange","product":"core","slug":"io-github-libtmux-commandchain-commandchain-arrange"},{"id":"io.github.libtmux.CommandChain.CommandChain.then","name":"then","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"CommandChain","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Adds any tmux command, for whatever this class does not name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.then","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.then","product":"core","slug":"io-github-libtmux-commandchain-commandchain-then"},{"id":"io.github.libtmux.CommandChain.CommandChain.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false}],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.run","product":"core","slug":"io-github-libtmux-commandchain-commandchain-run"},{"id":"io.github.libtmux.Commands.Commands","name":"Commands","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The commands this tmux knows, read without starting a server to answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.Commands","name":"Commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"Commands(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.list","product":"core","slug":"io-github-libtmux-commands-commands-list"},{"id":"io.github.libtmux.control.ControlClient.ControlClient","name":"ControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"This is what a semicolon group cannot be. tmux discards a group after its first failure, so a\nclient has to infer which command failed; here each request is independent, so a failure\ndiscards nothing behind it.\n\nReplies arrive in request order, so the writer sends one request at a time and matches its\nreply by position. A reply is the first block tmux writes for the request: an acknowledgement,\nwhich work the command deferred may outlive. What that command queued, as {@code if-shell}\nqueues its branch, and what a hook ran, arrive as blocks of their own, and none of them is taken\nfor the next request's reply. A deadline before the writer picks a request writes nothing; a\ndeadline after that point ends the client because the next reply could no longer be attributed\nsafely.\n\nThe reader and writer are platform threads. A library does not own the virtual-thread\nscheduler: a caller's CPU-bound task that never blocks keeps its carrier, and either thread\nunable to run stops the client from making progress. The reader only\nresolves replies and fills bounded subscription buffers; subscriber code runs on the thread that\npulls a value.\n\n**Threads.** {@link #send} may be called from several threads at once: requests\nqueue in the order they arrive and each caller gets its own reply. A subscription is read by one\nthread at a time.\n\n**Close it.** The client holds an attached tmux client, which is what makes tmux\npush output to it, and closing is what detaches that client and stops its threads. A client that\nis forgotten does not hold the JVM open — its threads are daemons — and the attached tmux client\nexits once the JVM does, because it reads its commands from a pipe that closes with it. Until then\nit is listed among the session's clients like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","name":"attachUnfenced","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session, Duration timeout)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches a control client to whatever server now answers this endpoint.","body":"Attaching is what makes tmux push {@code %output}: a control client that never attaches is\ntold about command replies and nothing else.\n\nThis does not check which tmux process answered. A socket can be taken over by a new\nserver that reuses the same session id. {@link io.github.libtmux.Server#control} attaches to\nthe process a capture already named; prefer it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attachUnfenced","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attachunfenced"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attach","name":"attach","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ServerConfig config, SessionId session, long serverPid, String serverVersion, Duration timeout)","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long","doc":"the tmux process a capture recorded"},{"name":"serverVersion","type":"String","doc":"the version text that process reported, compared as text"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ControlCarrier carrier,\n ServerConfig config,\n SessionId session,\n long serverPid,\n java.util.OptionalLong serverStartTime,\n String serverVersion,\n Duration timeout)","params":[{"name":"carrier","type":"ControlCarrier"},{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"java.util.OptionalLong","doc":"when the captured process started, as {@code #{start_time}} reported it; compared when present, since a restarted tmux can be given the same pid and version"},{"name":"serverVersion","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches, then leaves unless the live server is still the process that was captured.","body":"A pid can be reused, so the version tmux reports is part of the check. A mismatch detaches\nbefore this client changes the server: layout refresh runs only after the check passes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attach","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attach","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attach"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.send","name":"send","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv)","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv, Duration timeout)","params":[{"name":"argv","type":"List","doc":"the command, its arguments already separate elements"},{"name":"timeout","type":"Duration","doc":"how long to wait for tmux to answer"}],"returns":"ControlReply","typeScopeBoundary":false,"returnsDoc":"tmux's reply","raises":[{"type":"DispatchException","doc":"if the request cannot complete; its {@link DispatchException#outcome() outcome} is {@link DispatchOutcome#NOT_DISPATCHED} until the writer picks the request and {@link DispatchOutcome#UNKNOWN} afterwards"}]}],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.send","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.send","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-send"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the client is still running.","body":"A control client is a client of the server it talks to, so it ends when that server does.\nA carrier holding one needs to tell \"this command failed\" from \"there is no longer anything\nto send commands to\", which are the same exception until this is asked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":408,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.isAlive","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-isalive"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","name":"subscribeOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeOutput(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to terminal output tmux pushes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":421,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeoutput"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","name":"subscribeEvents","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeEvents(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to state changes tmux volunteers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":434,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeEvents","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeevents"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.watch","name":"watch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply watch(String name, String target, String format)","params":[{"name":"name","type":"String","doc":"what to call it; registering the same name again replaces the old one"},{"name":"target","type":"String","doc":"{@code %*} for every pane, {@code @*} for every window, a specific {@code %id} or {@code @id}, or the attached session (pass {@code \"\"} - see below)"},{"name":"format","type":"String","doc":"a tmux format, such as {@code #{pane_current_command}}"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to report a format whenever its value changes.","body":"tmux re-expands the format about once a second and writes a {@code subscription-changed}\nevent only when the result differs from last time, so the comparison happens in the server and\na client that subscribes does nothing at all between changes. This is what makes watching a\nserver cost nothing while it is idle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":452,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.watch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.watch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-watch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","name":"unwatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply unwatch(String name)","params":[{"name":"name","type":"String"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Stops a watch. tmux reads a name with no colon in it as one to remove."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unwatch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unwatch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.close","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-close"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux parses a control-mode request as one line, so an argument has to survive its lexer. Single quotes preserve everything except a single quote, which is closed, escaped and reopened."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":524,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.line","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-line"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes.","body":"Empty when the process wrote none. {@link #standardErrorTruncated()} says the stream\ncontinued past that bound. The text is whatever had been read when this is called."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":580,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardError","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderror"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether {@link #standardError()} stopped before the process finished writing it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":588,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardErrorTruncated","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unescape","name":"unescape","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static byte[] unescape(byte[] line, int from)","params":[{"name":"line","type":"byte[]"},{"name":"from","type":"int"}],"returns":"byte[]","typeScopeBoundary":true}],"doc":{"summary":"tmux writes a control byte or a backslash as a three-digit octal escape, and the rest raw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unescape","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unescape","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unescape"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent","name":"ControlEvent","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlEvent(\n String kind, @ReadOnly List fields, Optional value, Notification notification)","params":[{"name":"kind","type":"String","doc":"the notification name, such as {@code window-add} or {@code subscription-changed}"},{"name":"fields","type":"List","doc":"the words that followed it, before any {@code :} separator"},{"name":"value","type":"Optional","doc":"what followed a {@code :} separator, which only a subscription carries"},{"name":"notification","type":"Notification","doc":"the same notification, typed"}]}],"typeScopeBoundary":false,"doc":{"summary":"Something tmux volunteered, rather than an answer to a request.","body":"A control client is told about changes as they happen — a window appearing, a session being\nrenamed, a layout moving — without anything asking. That is the difference between watching a\nserver and polling one.\n\nTwo readings of one line. {@link #notification()} is typed, for matching on: a sealed set of\nwhat tmux sends, with a {@link Notification.Unknown} case so that a notification a newer tmux adds\nstill arrives rather than being dropped. {@link #kind()}, {@link #fields()} and {@link #value()}\nare what tmux wrote, word by word, for anything the typed reading does not cover."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","name":"ControlEvent","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public ControlEvent(String kind, List fields, Optional value)","params":[{"name":"kind","type":"String"},{"name":"fields","type":"List"},{"name":"value","type":"Optional"}],"typeScopeBoundary":false}],"doc":{"summary":"An event from its words, with the typed reading taken from them.","body":"A name is rejoined from the words with single spaces, so one tmux wrote with a run of them\nreads back with one. {@link #parse} reads the line tmux wrote and has no such loss."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"static Optional parse(String line)","params":[{"name":"line","type":"String","doc":"the line as tmux wrote it, leading {@code %} and all"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"the event, or empty when the line is not a notification"}],"doc":{"summary":"Reads one notification line."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.parse","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-parse"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","name":"subscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional subscription()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name a subscription was registered under, for an event that came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.subscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-subscription"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","name":"paneId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional paneId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a pane, which is how an event says which pane it is about."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.paneId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-paneid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","name":"windowId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional windowId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.windowId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-windowid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the notification name, such as {@code window-add} or {@code subscription-changed}"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-kind"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","name":"fields","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the words that followed it, before any {@code :} separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.fields","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-fields"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.value","name":"value","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"what followed a {@code :} separator, which only a subscription carries"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.value","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-value"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","name":"notification","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Notification"}],"doc":{"summary":"the same notification, typed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-notification"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads bounded physical lines from a control client's byte stream."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"ControlLineReader(InputStream source, int maxBytes)","params":[{"name":"source","type":"InputStream"},{"name":"maxBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","name":"Line","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@SuppressWarnings(\"ArrayRecordComponent\") // Internal: read once by the thread that made it.\n record Line(String text, int encodedBytes, byte[] bytes)","params":[{"name":"text","type":"String"},{"name":"encodedBytes","type":"int"},{"name":"bytes","type":"byte[]"}]}],"typeScopeBoundary":true,"doc":{"summary":"A line as text, its length on the wire, and its bytes without the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","name":"text","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-text"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","name":"encodedBytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.encodedBytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-encodedbytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","name":"bytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"byte[]"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-bytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","name":"readLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Nullable\n Line readLine() throws IOException","params":[],"returns":"Line","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.readLine","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-readline"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Override\n public void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-close"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Frames control-mode replies and encodes requests for tmux's command parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","name":"DEFAULT_MAX_REPLY_BYTES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"type":"int","value":"16 * 1024 * 1024","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-default_max_reply_bytes"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"ControlProtocol()","params":[],"typeScopeBoundary":false},{"raw":"ControlProtocol(int maxReplyBytes)","params":[{"name":"maxReplyBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","name":"Result","kind":"interface","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Result","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-result"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","name":"Awaiting","kind":"enum","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","name":"INSTANCE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting.INSTANCE","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting-instance"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","name":"Notification","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Notification(String line) implements Result","params":[{"name":"line","type":"String"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","name":"line","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","name":"Reply","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Reply(OperationOutcome outcome, @ReadOnly List lines, boolean requested) implements Result","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"One reply block. {@code requested} is tmux's guard flag: set for a command this client wrote, and for any that command queued, and clear for what a hook ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-outcome"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-lines"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","name":"requested","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.requested","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-requested"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","name":"accept","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"Result accept(String line)","params":[{"name":"line","type":"String"}],"returns":"Result","typeScopeBoundary":false},{"raw":"Result accept(String line, int encodedBytes)","params":[{"name":"line","type":"String"},{"name":"encodedBytes","type":"int"}],"returns":"Result","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.accept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-accept"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","name":"LimitExceeded","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","name":"LimitExceeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","signatures":[{"raw":"LimitExceeded(int limit)","params":[{"name":"limit","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded-limitexceeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply","name":"ControlReply","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlReply(\n OperationOutcome outcome, @ReadOnly List lines)","params":[{"name":"outcome","type":"OperationOutcome","doc":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},{"name":"lines","type":"List","doc":"the lines tmux produced between the reply's own begin and end markers"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command's reply in control mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran the command and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.succeeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-succeeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: reply lines carry pane content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.toString","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-tostring"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.outcome","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-outcome"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines tmux produced between the reply's own begin and end markers"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.lines","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-lines"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter","name":"ControlWriter","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the process-pipe write and the FIFO that attributes replies to requests.","body":"A request's reply is the first block tmux writes for it: an acknowledgement, which deferred\nwork may outlive. But tmux answers every command another one queues with a block of its own, as\n{@code if-shell} queues its branch and {@code run-shell} reports its job, numbered like any other.\nSo each request line is followed by a second, {@code display-message -p} of a marker unique to it:\ntmux runs that after everything the request queued, whether the request failed or not. Blocks\nbetween a reply and its marker belong to the request already answered, and are not handed to\nthe next one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","name":"DEFAULT_CAPACITY","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"type":"int","value":"64","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.DEFAULT_CAPACITY","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-default_capacity"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","name":"ControlWriter","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlWriter(BufferedWriter output, int capacity, Consumer failed)","params":[{"name":"output","type":"BufferedWriter"},{"name":"capacity","type":"int"},{"name":"failed","type":"Consumer"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","name":"expectInitial","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"Request expectInitial(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Request","typeScopeBoundary":false}],"doc":{"summary":"Records the attach request dispatched by the process invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.expectInitial","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-expectinitial"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.start","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.start","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-start"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","name":"exchange","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply exchange(String line, Duration timeout)","params":[{"name":"line","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.exchange","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-exchange"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","name":"takeTiming","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"long[] takeTiming(long elapsed)","params":[{"name":"elapsed","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, for the last exchange on this thread; {@code elapsed} as run time when this thread made none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.takeTiming","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-taketiming"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void complete(OperationOutcome outcome, List lines, boolean requested)","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean","doc":"tmux's guard flag: clear for a block a hook ran, which answers no request"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called by the reader for each reply block, in the order tmux wrote them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","name":"readerEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void readerEnded()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.readerEnded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-readerended"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.close","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-close"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.join","name":"join","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void join(long timeoutMillis) throws InterruptedException","params":[{"name":"timeoutMillis","type":"long"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.join","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.join","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-join"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply await(Request request)","params":[{"name":"request","type":"Request"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","name":"Request","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","name":"pick","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean pick()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.pick","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-pick"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","name":"timing","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long[] timing(long now)","params":[{"name":"now","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, up to now. A request never picked spent all of it queued."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.timing","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-timing"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","name":"cancel","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean cancel(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.cancel","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-cancel"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void complete(ControlReply reply)","params":[{"name":"reply","type":"ControlReply"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","name":"fail","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean fail(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.fail","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-fail"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","name":"claimFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean claimFailure()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.claimFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-claimfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","name":"publishFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void publishFailure(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.publishFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-publishfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","name":"isDone","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean isDone()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.isDone","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-isdone"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","name":"remainingNanos","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long remainingNanos()","params":[],"returns":"long","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":410,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.remainingNanos","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-remainingnanos"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean await() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","name":"answer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"ControlReply answer()","params":[],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.answer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-answer"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","name":"awaitTerminal","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void awaitTerminal()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.awaitTerminal","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-awaitterminal"},{"id":"io.github.libtmux.control.Delivery.Delivery","name":"Delivery","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"One step in a control subscription.","body":"A {@link Gap} sits in the sequence where events were discarded, ahead of the events that\nsurvived. It is not a side total: the next read is the gap, and the one after it is whatever\nremains."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery","product":"core","slug":"io-github-libtmux-control-delivery-delivery"},{"id":"io.github.libtmux.control.Delivery.Delivery.kept","name":"kept","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"static T kept(Delivery step)","params":[{"name":"step","type":"Delivery","doc":"the subscription's next step"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"returnsDoc":"the event","raises":[{"type":"IllegalStateException","doc":"if {@code step} is a gap"}]}],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.kept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.kept","product":"core","slug":"io-github-libtmux-control-delivery-delivery-kept"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event","name":"Event","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Event(T value) implements Delivery","params":[{"name":"value","type":"T","doc":"the event"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"An event the subscription kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Event","modifiers":[],"signatures":[{"params":[],"returns":"T"}],"doc":{"summary":"the event"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event.value","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event-value"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap","name":"Gap","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Gap(long missed) implements Delivery","params":[{"name":"missed","type":"long","doc":"the number discarded, at least one"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"How many events were discarded since the previous read because the buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","name":"missed","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Gap","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"the number discarded, at least one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap.missed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap-missed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription","name":"EventSubscription","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"Pulls events volunteered by one control client.","body":"Each subscription owns a fixed-capacity buffer. When that buffer is full, the next event\nreplaces its oldest event. The read that follows is a {@link Delivery.Gap} naming how many were\ndiscarded since the previous read, and only then the events that remain. {@link #droppedCount()}\nis the total across the subscription's life. Another subscription has its own buffer and its own\ngaps. The control protocol reader only offers values to these buffers, and never runs subscriber\ncode beyond a {@link #onReady readiness callback}.\n\nOne reader at a time. Public operations are thread-safe, and reads from different threads one\nafter another are fine — a coroutine or a fiber moves between threads — but a read that overlaps\nanother, or any read once {@link #stream()} or {@link #publisher()} has taken the subscription, is\nrefused with {@link IllegalStateException}: two readers would split one sequence and its gaps\nbetween them. For a second reader, subscribe again; each subscription gets every event.\n\n{@link #next()} blocks. {@link #poll()} never does, and {@link #onReady(Runnable)} arms a\none-shot wakeup for when there is something to poll, so an event loop or a coroutine can read\nwithout holding a thread while nothing arrives.\n\nA subscription does not reconnect. When it ends, {@link #next()} returns empty. {@link\n#cause()} is empty when the caller closed it, and set when the control client ended it. Attach\nagain from the captured session and read a snapshot; nothing already missed is replayed.\n\nEnding is terminal and wakes threads blocked in {@link #next()}. A caller's {@link #close()}\ndiscards buffered events: the caller has chosen not to read them, so they are not overflow and do\nnot increment the loss count. When the control client ends a subscription, what it had already\ndelivered stays readable, a pending gap first, and only then does a read return empty with\n{@link #cause()} set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","name":"EventSubscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"EventSubscription(int capacity, Consumer> onClose)","params":[{"name":"capacity","type":"int"},{"name":"onClose","type":"Consumer>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","name":"offer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void offer(T event)","params":[{"name":"event","type":"T"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.offer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-offer"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","name":"droppedCount","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public long droppedCount()","params":[],"returns":"long","typeScopeBoundary":false,"returnsDoc":"the monotonic loss count"}],"doc":{"summary":"Returns the exact number of events discarded because this subscription's buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.droppedCount","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-droppedcount"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this subscription ended, when the control client ended it.","body":"Empty when the subscription is still open, and empty when the caller closed it. A client\nthat died sets this before the read returns empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-cause"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.next","name":"next","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional> next() throws InterruptedException","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when the subscription has closed and no gap is waiting","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public Optional> next(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, zero to inspect the buffer without waiting"}],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none arrived before the deadline","raises":[{"type":"IllegalArgumentException","doc":"if {@code timeout} is negative"},{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits until the next step arrives or this subscription closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.next","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.next","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-next"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","name":"poll","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional> poll()","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none is buffered; after the subscription has ended, empty once what it held is read","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Returns the next step if one is waiting, without blocking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.poll","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-poll"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","name":"onReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onReady(Runnable callback)","params":[{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Arms a one-shot wakeup for when this subscription has something to read, or has ended.","body":"Runs {@code callback} at once, on this thread, when a step is already waiting or the\nsubscription has ended. Otherwise it runs once, on the control client's reader thread, when the\nfirst step arrives or the subscription ends, and is then disarmed: drain with {@link #poll()}\nuntil it is empty, then arm again. Checking and arming happen under the lock that delivery\ntakes, so a step cannot slip between them unannounced.\n\nThe callback runs on the thread delivering events, so it must not block: resume a waiting\ncoroutine, complete a promise, and return. One that throws is logged and ignored, and delivery\ncontinues."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.onReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-onready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","name":"clearReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearReady()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the readiness callback, if one is armed. For a reader that stopped waiting."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.clearReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-clearready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","name":"stream","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public java.util.stream.Stream> stream()","params":[],"returns":"java.util.stream.Stream>","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.LibTmuxException","doc":"from the stream if the reading thread is interrupted; its interrupt status is set again"}]}],"doc":{"summary":"The steps still to come, in order, each read by the thread consuming the stream.","body":"Pull-only: a step is read when the stream asks for one, and events that arrive meanwhile\nwait in this subscription's buffer, so its capacity alone decides what becomes a {@link\nDelivery.Gap}. The stream ends when this subscription closes. When the control client ended\nit, the stream fails with {@link #cause()}. Closing the stream closes this subscription, and\nclosing this subscription from another thread ends a stream that is waiting.","examples":[{"lang":"java","code":"try (Stream> steps = subscription.stream()) {\n steps.map(Delivery::kept).forEach(output -> System.out.print(output.data()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.stream","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-stream"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","name":"publisher","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher()","params":[],"returns":"Flow.Publisher>","typeScopeBoundary":false},{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher(Executor executor)","params":[{"name":"executor","type":"Executor","doc":"where each blocking read for the subscriber runs; one that runs a task on the calling thread makes {@link Flow.Subscription#request request} block on tmux, which the Reactive Streams rules forbid"}],"returns":"Flow.Publisher>","typeScopeBoundary":false}],"doc":{"summary":"A {@link Flow.Publisher} view of this subscription's steps, delivered as demand allows.","body":"Reads that wait for the next step run on a fresh virtual thread, started only while a\nsubscriber has outstanding demand, so a subscriber that never asks never blocks anything. Use\n{@link #publisher(Executor)} to read somewhere else instead.\n\n@see #publisher(Executor)"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.publisher","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-publisher"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","name":"isClosed","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isClosed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this subscription has reached its terminal state.","body":"This distinguishes a timed read that expired from one that returned empty because the\nsubscription ended. A pending gap can still be read after the subscription has closed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.isClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-isclosed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards buffered events, removes this subscriber, and wakes every waiting reader."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.close","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-close"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void end(@Nullable Throwable failure)","params":[{"name":"failure","type":"Throwable"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as the control client saw it end, recording why. Unlike {@link #close()}, events already delivered stay readable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.end","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.end","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-end"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","name":"finish","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void finish()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as a producer with nothing more to send: not a failure, and nothing is discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":711,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.finish","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-finish"},{"id":"io.github.libtmux.control.Notification.Notification","name":"Notification","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a control-mode notification says, typed, for matching on.","body":"Sealed, with {@link Unknown} as the case for everything else. tmux adds notifications between\nreleases, and a closed set with nowhere to put a new one would drop it; here a notification this\nlibrary does not model yet still arrives, as {@code Unknown}, and {@link ControlEvent#kind()} and\n{@link ControlEvent#fields()} still carry what tmux wrote.\n\nThe forms are tmux's own, from {@code control-notify.c}. A name — of a window, a session, a\nclient — is everything after the id, spaces included, as tmux writes it.","examples":[{"lang":"java","code":"switch (event.notification()) {\n case Notification.WindowRenamed(WindowId window, String name, boolean attached) -> relabel(window, name);\n case Notification.SessionsChanged changed -> refreshSessions();\n default -> {}\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification","product":"core","slug":"io-github-libtmux-control-notification-notification"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded","name":"WindowAdded","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowAdded(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-add}: a window was created; {@code attached} is false for {@code unlinked-window-add}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed","name":"WindowClosed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowClosed(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-close}: a window was destroyed; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed","name":"WindowRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowRenamed(WindowId window, String name, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"name","type":"String"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-renamed}: a window has a new name; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","name":"WindowPaneChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowPaneChanged(WindowId window, PaneId pane) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-pane-changed}: a window's active pane changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged","name":"LayoutChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record LayoutChanged(WindowId window, WindowLayout layout) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"layout","type":"WindowLayout"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %layout-change}: a window's layout changed, in whichever form tmux reports it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","name":"layout","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowLayout"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.layout","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-layout"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged","name":"SessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionChanged(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-changed}: the attached client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed","name":"SessionRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionRenamed(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-renamed}: a session has a new name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionsChanged","name":"SessionsChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionsChanged() implements Notification","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %sessions-changed}: a session was created or destroyed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionsChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionsChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionschanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","name":"SessionWindowChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionWindowChanged(SessionId session, WindowId window) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"window","type":"WindowId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-window-changed}: a session's current window changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","name":"ClientSessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientSessionChanged(String client, SessionId session, String name) implements Notification","params":[{"name":"client","type":"String"},{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-session-changed}: another client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-client"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached","name":"ClientDetached","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientDetached(String client) implements Notification","params":[{"name":"client","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-detached}: a client detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientDetached","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached-client"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","name":"PaneModeChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PaneModeChanged(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pane-mode-changed}: a pane entered or left a mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","name":"PasteBufferChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferChanged(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-changed}: a paste buffer was created or changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","name":"PasteBufferDeleted","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferDeleted(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-deleted}: a paste buffer was deleted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","name":"SubscriptionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SubscriptionChanged(\n String name, String value, Optional session, Optional window, Optional pane)\n implements Notification","params":[{"name":"name","type":"String","doc":"what the subscription was registered under"},{"name":"value","type":"String","doc":"what the format expanded to"},{"name":"session","type":"Optional","doc":"the session it is about, when tmux named one"},{"name":"window","type":"Optional","doc":"the window, when tmux named one"},{"name":"pane","type":"Optional","doc":"the pane, when tmux named one"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %subscription-changed}: a watched format has a new value."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the subscription was registered under"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the format expanded to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-value"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it is about, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the window, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the pane, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Pause","name":"Pause","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Pause(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pause}: tmux stopped sending a pane's output to this client, which turned flow control on with {@code refresh-client -f pause-after=N} and fell N seconds behind. {@code refresh-client -A '%1:continue'} resumes it. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause","product":"core","slug":"io-github-libtmux-control-notification-notification-pause"},{"id":"io.github.libtmux.control.Notification.Notification.Pause.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Pause","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-pause-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Continue","name":"Continue","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Continue(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %continue}: a paused pane's output flows to this client again. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue","product":"core","slug":"io-github-libtmux-control-notification-notification-continue"},{"id":"io.github.libtmux.control.Notification.Notification.Continue.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Continue","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-continue-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Message","name":"Message","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Message(String text) implements Notification","params":[{"name":"text","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %message}: text another client showed on this one with {@code display-message -c}. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message","product":"core","slug":"io-github-libtmux-control-notification-notification-message"},{"id":"io.github.libtmux.control.Notification.Notification.Message.text","name":"text","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Message","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message.text","product":"core","slug":"io-github-libtmux-control-notification-notification-message-text"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError","name":"ConfigError","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ConfigError(String cause) implements Notification","params":[{"name":"cause","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %config-error}: a configuration file tmux loaded for this client had an error. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","name":"cause","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ConfigError","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror-cause"},{"id":"io.github.libtmux.control.Notification.Notification.Exit","name":"Exit","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Exit(Optional reason) implements Notification","params":[{"name":"reason","type":"Optional"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %exit}: the client is exiting, with tmux's reason when it gave one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit","product":"core","slug":"io-github-libtmux-control-notification-notification-exit"},{"id":"io.github.libtmux.control.Notification.Notification.Exit.reason","name":"reason","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Exit","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit.reason","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit.reason","product":"core","slug":"io-github-libtmux-control-notification-notification-exit-reason"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown","name":"Unknown","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Unknown(String kind) implements Notification","params":[{"name":"kind","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"A notification this library does not model; {@link ControlEvent} still carries all of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Unknown","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown.kind","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown-kind"},{"id":"io.github.libtmux.control.Notification.Notification.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"static Notification read(String kind, String rest, Optional value)","params":[{"name":"kind","type":"String","doc":"the name without its {@code %}"},{"name":"rest","type":"String","doc":"what followed the name, as tmux wrote it, without any {@code \" : \"} value"},{"name":"value","type":"Optional","doc":"what followed {@code \" : \"}, which only a subscription carries"}],"returns":"Notification","typeScopeBoundary":true}],"doc":{"summary":"Reads one notification from its kind and the text after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.read","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.read","product":"core","slug":"io-github-libtmux-control-notification-notification-read"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput","name":"PaneOutput","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneOutput(PaneId pane, String data, ByteBuffer bytes)","params":[{"name":"pane","type":"PaneId","doc":"the pane that produced it"},{"name":"data","type":"String","doc":"this piece as text"},{"name":"bytes","type":"ByteBuffer","doc":"this piece exactly, read-only"}]}],"typeScopeBoundary":false,"doc":{"summary":"Terminal output tmux pushed without being asked.","body":"tmux cuts a pane's output into pieces by byte count, not by character. {@code bytes} is\nexactly what one piece carried, so a pane's pieces concatenate to what it wrote. {@code data} is\nthe same output as text, decoded per pane: a character cut between two pieces arrives whole with\nthe later one, and a byte that is not UTF-8 is written {@code \\xHH}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","name":"PaneOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"public PaneOutput(PaneId pane, String data)","params":[{"name":"pane","type":"PaneId"},{"name":"data","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"Output whose bytes are {@code data} in UTF-8."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","name":"bytes","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public ByteBuffer bytes()","params":[],"returns":"ByteBuffer","typeScopeBoundary":false}],"doc":{"summary":"This piece's bytes, read-only, positioned at the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-bytes"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Identifies the pane only: the data is terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-tostring"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane that produced it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-pane"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.data","name":"data","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"this piece as text"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.data","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.data","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-data"},{"id":"io.github.libtmux.Dimensions.Dimensions","name":"Dimensions","kind":"class","modifiers":[],"signatures":[{"raw":"public record Dimensions(int width, int height)","params":[{"name":"width","type":"int","doc":"columns"},{"name":"height","type":"int","doc":"rows"}]}],"typeScopeBoundary":false,"doc":{"summary":"How big something is, in terminal cells.","body":"A pair rather than two loose numbers, because width and height are only meaningful together and\na call site that takes them separately can transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions","product":"core","slug":"io-github-libtmux-dimensions-dimensions"},{"id":"io.github.libtmux.Dimensions.Dimensions.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Dimensions.Dimensions","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.toString","product":"core","slug":"io-github-libtmux-dimensions-dimensions-tostring"},{"id":"io.github.libtmux.Dimensions.Dimensions.width","name":"width","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.width","product":"core","slug":"io-github-libtmux-dimensions-dimensions-width"},{"id":"io.github.libtmux.Dimensions.Dimensions.height","name":"height","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.height","product":"core","slug":"io-github-libtmux-dimensions-dimensions-height"},{"id":"io.github.libtmux.Direction.Direction","name":"Direction","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which way to move or grow something.","body":"An enum rather than tmux's {@code -U -D -L -R} flags, so a call site says which way it means\nand a wrong direction cannot be spelled at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.UP","name":"UP","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.UP","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.UP","product":"core","slug":"io-github-libtmux-direction-direction-up"},{"id":"io.github.libtmux.Direction.Direction.DOWN","name":"DOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.DOWN","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.DOWN","product":"core","slug":"io-github-libtmux-direction-direction-down"},{"id":"io.github.libtmux.Direction.Direction.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.LEFT","product":"core","slug":"io-github-libtmux-direction-direction-left"},{"id":"io.github.libtmux.Direction.Direction.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.RIGHT","product":"core","slug":"io-github-libtmux-direction-direction-right"},{"id":"io.github.libtmux.Direction.Direction.Direction","name":"Direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"Direction(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that selects this direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.flag","product":"core","slug":"io-github-libtmux-direction-direction-flag"},{"id":"io.github.libtmux.Environment.Environment","name":"Environment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The environment tmux gives to processes it starts, at one scope.","body":"tmux keeps one environment per server and one per session, and hands the result to every\nprocess it spawns afterwards. That is what this is for: a pane opened later sees what is set here,\nso it is how a program refreshes a value that goes stale in a long-lived session — {@code\nSSH_AUTH_SOCK} after reconnecting, a token, a display.\n\nA scope is chosen when the view is obtained rather than passed to every call, as {@link\nOptions} does, so a caller cannot read one scope and write another. There are only the two scopes,\nbecause tmux has only those two.\n\nA name is in one of three states, and they are not the same question. It can be *set* to\na value, which {@link #get} answers. It can be *removed*, which is tmux's way of saying a\nnew process should not inherit it even though the server's own environment has it — {@link\n#isRemoved} answers that, and {@link #get} is empty for it. Or it can simply be absent, which is\nboth of those empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment","product":"core","slug":"io-github-libtmux-environment-environment"},{"id":"io.github.libtmux.Environment.Environment.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.global","product":"core","slug":"io-github-libtmux-environment-environment-global"},{"id":"io.github.libtmux.Environment.Environment.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.session","product":"core","slug":"io-github-libtmux-environment-environment-session"},{"id":"io.github.libtmux.Environment.Environment.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.get","product":"core","slug":"io-github-libtmux-environment-environment-get"},{"id":"io.github.libtmux.Environment.Environment.isRemoved","name":"isRemoved","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isRemoved(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.isRemoved","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.isRemoved","product":"core","slug":"io-github-libtmux-environment-environment-isremoved"},{"id":"io.github.libtmux.Environment.Environment.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every name set at this scope, in tmux's order. Removed names are not values, so not here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.all","product":"core","slug":"io-github-libtmux-environment-environment-all"},{"id":"io.github.libtmux.Environment.Environment.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a read otherwise fails"}]}],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together.","body":"{@link #all} answers for one scope, which is what a caller writing to it needs and not what\na pane opened later will see: tmux gives a new process the server's environment with the\nsession's laid over it, minus whatever the session marked as not to be inherited. At the\nserver scope the two are the same thing.\n\nThe counterpart to {@link Options#effective()}, and named after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.effective","product":"core","slug":"io-github-libtmux-environment-environment-effective"},{"id":"io.github.libtmux.Environment.Environment.removed","name":"removed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Set removed()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.removed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.removed","product":"core","slug":"io-github-libtmux-environment-environment-removed"},{"id":"io.github.libtmux.Environment.Environment.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to a literal value.","body":"The value is not expanded: a {@code #{...}} in it arrives as those characters. {@link\n#setExpanded} is how to ask for the other thing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.set","product":"core","slug":"io-github-libtmux-environment-environment-set"},{"id":"io.github.libtmux.Environment.Environment.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.setExpanded","product":"core","slug":"io-github-libtmux-environment-environment-setexpanded"},{"id":"io.github.libtmux.Environment.Environment.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.unset","product":"core","slug":"io-github-libtmux-environment-environment-unset"},{"id":"io.github.libtmux.Environment.Environment.remove","name":"remove","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void remove(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Tells processes started after this not to inherit the name.","body":"Different from {@link #unset}: the name is remembered, as removed, and tmux subtracts it\nfrom what a new process is given rather than simply not adding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.remove","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.remove","product":"core","slug":"io-github-libtmux-environment-environment-remove"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException","name":"CardinalityException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A lookup that required exactly one match, or at most one, did not get it.","body":"Loosen or tighten the filter, or handle the case explicitly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","name":"CardinalityException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[{"raw":"CardinalityException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","name":"NoMatch","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing matched where the caller required something."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","name":"NoMatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","signatures":[{"raw":"public NoMatch(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","name":"MultipleMatches","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"More than one thing matched where the caller required at most one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","name":"MultipleMatches","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public MultipleMatches(String message, int atLeast)","params":[{"name":"message","type":"String"},{"name":"atLeast","type":"int","doc":"how many matched, at least; never less than two"}],"typeScopeBoundary":false}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public int atLeast()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many matched, at least.","body":"Exact when the matches came from a capture this library holds, as a handle lookup's do.\n{@link io.github.libtmux.query.Selections} stops at the second match, since its source may be\nlazy or unbounded, so there it is two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.atLeast","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-atleast"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux ran a command to completion and refused it.","body":"The request reached a live server and tmux answered no: a duplicate session name, a target it\ncannot find, an option it does not know. Resending the same command gets the same answer, so read\n{@link #errorLines()} and change the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","signatures":[{"raw":"public CommandRejectedException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public CommandRejectedException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A refusal of {@code command}, with tmux's exit status and the lines it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The control client ended, and anything reading from it will not resume.","body":"Attach again with {@link io.github.libtmux.Server#control} and read a snapshot: the events this\nclient did not deliver are not replayed, because tmux keeps no history of them. {@link\n#standardError()} is what the tmux process wrote to its error stream, bounded, and empty when it\nwrote nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public ControlEndedException(String standardError, boolean standardErrorTruncated, @Nullable Throwable cause)","params":[{"name":"standardError","type":"String"},{"name":"standardErrorTruncated","type":"boolean"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured before the process ended, possibly truncated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardError","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderror"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the error stream continued past the captured bound."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardErrorTruncated","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderrortruncated"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException","name":"DispatchException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The request did not complete, with how certain it is that tmux applied it.","body":"\"tmux never started\" and \"tmux timed out halfway\" call for opposite recovery, so the certainty\ntravels with the failure. {@link #safeToRetry()} answers the question a caller usually has: whether\nsending the exact same request again can do harm."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","name":"DispatchException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"DispatchException(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"How certain the transport is that tmux applied the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-outcome"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether every command in the request only reads, so running it twice changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.idempotence","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-idempotence"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","name":"safeToRetry","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public boolean safeToRetry()","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"{@link DispatchOutcome#canRetryVerbatim} for this failure's outcome and idempotence"}],"doc":{"summary":"Whether sending the exact same request again cannot apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.safeToRetry","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-safetoretry"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","name":"Failed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The transport failed for a reason other than a deadline: tmux could not start, or the channel broke."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","name":"Failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","signatures":[{"raw":"public Failed(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public Failed(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","name":"TimedOut","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed before the request finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","name":"TimedOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","signatures":[{"raw":"public TimedOut(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public TimedOut(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout-timedout"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The root of every operational failure this library raises.","body":"Unchecked, because a tmux failure can arise from any call and forcing every caller to declare\nit would say nothing. Sealed, with every branch abstract, so matching on the permitted subtypes is\nexhaustive in Java, Kotlin and Scala alike.\n\nA failure that came from a tmux command carries that command, its exit status when it has one,\nand the error lines tmux printed. Those lines, and the message that quotes them, name what tmux\nnamed — sessions, windows, panes and buffers included."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"LibTmuxException(String message, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"LibTmuxException(\n String message,\n @Nullable Throwable cause,\n @Nullable String command,\n int exitCode,\n List errorLines)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public Optional command()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The command that failed, when this failure came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.command","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-command"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","name":"exitCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public OptionalInt exitCode()","params":[],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The process exit status, when the failure has one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.exitCode","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-exitcode"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","name":"errorLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"@ReadOnly\n public List errorLines()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The error lines tmux printed, in full. Empty when this failure has none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.errorLines","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-errorlines"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux answered, and the answer did not have the shape this library asked for.","body":"A listing row with the wrong number of fields, a number that did not parse, an identity that\nwas not one row: this library's own template disagreed with what tmux sent. Check the tmux release\nis inside the supported range, and report it if it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","signatures":[{"raw":"public MalformedResponseException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public MalformedResponseException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A handle was used after the {@link io.github.libtmux.Server} it belongs to was closed.","body":"Programmer error, so deliberately outside {@link LibTmuxException}'s sealed tree: an exhaustive\nmatch over operational failures should not have to decide about a lifecycle bug. {@link\n#outcome()} says whether tmux may have run the call that raced the close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public ServerClosedException(String message, DispatchOutcome outcome)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"{@link DispatchOutcome#NOT_DISPATCHED} when the server was closed before the call reached tmux, {@link DispatchOutcome#UNKNOWN} when a concurrent close ended a tmux already running it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-outcome"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"No tmux daemon answered on this endpoint.","body":"Nothing was there to answer, rather than an answer that could not be trusted. Start a server on\ndemand, or treat the endpoint as down."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","signatures":[{"raw":"public ServerUnavailableException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public ServerUnavailableException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A daemon found absent by the command that tried to reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server answered, and the session, window, pane, buffer or server incarnation a handle addresses is gone.","body":"Re-resolve the handle — run again the lookup or filter that produced it — or stop. An\nunreachable server is a {@link ServerUnavailableException} instead, which calls for something else\nentirely."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","signatures":[{"raw":"public TargetGoneException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Text this JVM cannot hand to tmux intact, with no route left to send it by.","body":"A child process receives its arguments as bytes, and the JVM encodes them with the platform's\nnative encoding — which is the locale's, decided before {@code main} runs. In a locale that is\nnot UTF-8 that encoding cannot carry most of Unicode, so tmux would receive {@code ?} where a\ncaller wrote {@code é}. The process transport therefore sends such a command over tmux's standard\ninput instead, which this library encodes itself, and this is raised only when that route is\nalready taken — a command that reads standard input — or when the text is in the endpoint, the\nbinary or socket path, which nothing but an argument can carry.\n\nOnly the environment removes the limit: start the JVM with {@code LC_ALL} or {@code LANG}\nnaming a UTF-8 locale. {@code -Dsun.jnu.encoding} and {@code -Dfile.encoding} do not, because the\nnative encoding is read before either is applied.\n\nASCII text is unaffected on every locale, and so is everything tmux sends back: a reply is\ndecoded as the UTF-8 tmux wrote rather than through the platform's encoding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","signatures":[{"raw":"public UnencodableTextException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public UnencodableTextException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"doc":{"summary":"Text refused because of {@code cause}, such as a path the platform cannot represent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The running tmux does not have something the call asked for.","body":"Raised instead of dropping the option. The Python sibling warns and carries on, which returns a\npane that differs from the one described in a way nothing downstream can detect; a caller who\nasked for an empty pane and got a shell has no way to notice before something runs in it. Skip the\nfeature, or require a newer tmux.\n\nThe feature and the versions are in the message and not in accessors: a throwable is\nserializable, so exposing a {@link TmuxVersion} here would mean making that serializable too."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","signatures":[{"raw":"public UnsupportedFeatureException(String feature, TmuxVersion required, TmuxVersion running)","params":[{"name":"feature","type":"String"},{"name":"required","type":"TmuxVersion"},{"name":"running","type":"TmuxVersion"}],"typeScopeBoundary":false},{"raw":"public UnsupportedFeatureException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A feature that needs {@code required} or newer, on a server running {@code running}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.format.RowFormat.RowFormat","name":"RowFormat","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A listing template and the reader for the rows it produces.","body":"tmux returns a listing as plain lines, so what separates one field from the next is whatever\nstring the client put between them — and tmux gives no character a special meaning there. Any\nfixed choice is therefore something a user can put in a window name. A window named with the\nseparator turns an n-field template into n+1 fields and shifts everything after it, so a pane id\narrives where a name belongs, and nothing downstream can tell.\n\nThe separator is generated once per process instead. Colliding with it means naming a window\nwith the exact token this process happened to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public static RowFormat of(String... fields)","params":[{"name":"fields","type":"String","variadic":"positional","doc":"tmux format names, without the surrounding {@code #{}}"}],"returns":"RowFormat","typeScopeBoundary":true}],"doc":{"summary":"A format over the given tmux format names, in the order rows will report them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.of","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.of","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-of"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.template","name":"template","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String template()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The argument to pass to tmux's {@code -F}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.template","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.template","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-template"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.separator","name":"separator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String separator()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The token this process separates fields with."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.separator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.separator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-separator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.terminator","name":"terminator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"String terminator()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.terminator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.terminator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-terminator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many fields a row must have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.size","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.size","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-size"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row","name":"Row","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One row's values, addressed by the field name that asked for them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","name":"text","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public String text(String field)","params":[{"name":"field","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The field's value as tmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.text","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-text"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","name":"number","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public int number(String field)","params":[{"name":"field","type":"String"}],"returns":"int","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.number","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-number"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","name":"count","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public long count(String field)","params":[{"name":"field","type":"String"}],"returns":"long","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole count."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.count","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-count"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public boolean flag(String field)","params":[{"name":"field","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux printed anything else"}]}],"doc":{"summary":"The field as one of tmux's flags, which it prints as 0 or 1."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.flag","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-flag"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.rows","name":"rows","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List rows(List lines)","params":[{"name":"lines","type":"List","doc":"the listing as tmux printed it"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the listing ends mid-row, or a row does not have exactly the expected number of fields"}]}],"doc":{"summary":"Reads a whole listing back into rows.","body":"tmux ends a row with a newline and frames it no other way, so a listing's lines are not its\nrows: a value carrying a newline arrives as several. A working directory may contain one, and\nanything running in a pane may change into it, so this is caller-reachable rather than\ntheoretical. A row is closed by carrying every separator, not by the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.rows","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.rows","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-rows"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.split","name":"split","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List split(String row)","params":[{"name":"row","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the row does not have exactly the expected number of fields, which is the only chance to notice that something shifted"}]}],"doc":{"summary":"Reads one row back into its fields."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.split","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.split","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-split"},{"id":"io.github.libtmux.format.Tokens.Tokens","name":"Tokens","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The token this process marks its own text with.","body":"tmux gives no character a special meaning in a name or in output, so any fixed marker is\nsomething a user can produce. One random token per process makes a collision mean naming a window\nwith the exact value this run generated.\n\nHexadecimal, because the token is spliced into tmux format templates and into regular\nexpressions and must be inert in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens","product":"core","slug":"io-github-libtmux-format-tokens-tokens"},{"id":"io.github.libtmux.format.Tokens.Tokens.perProcess","name":"perProcess","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"public static String perProcess()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A token generated once per process, shared by everything that needs to mark its own text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.perProcess","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.perProcess","product":"core","slug":"io-github-libtmux-format-tokens-tokens-perprocess"},{"id":"io.github.libtmux.format.Tokens.Tokens.generate","name":"generate","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"static String generate()","params":[],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.generate","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.generate","product":"core","slug":"io-github-libtmux-format-tokens-tokens-generate"},{"id":"io.github.libtmux.Hooks.Hooks","name":"Hooks","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux hooks at one scope.","body":"A hook binds a tmux command to an event, so tmux runs it without a client asking.\n\nEvery hook is an array: several commands can hang off one event, and tmux runs them in order.\nThat is why a listing answers with a list per event rather than a value — a hook set once is a\nlist of one, not a special case.\n\nEach hook lives at a particular scope, and not every hook lives at every one.\n{@code pane-focus-in} is a window hook, {@code alert-bell} a session hook. Setting one at a scope\nit does not belong to is accepted and then silently discarded, on every supported release — so a\nhook that never fires is worth checking against {@link #all()} before it is worth debugging."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks","product":"core","slug":"io-github-libtmux-hooks-hooks"},{"id":"io.github.libtmux.Hooks.Hooks.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.global","product":"core","slug":"io-github-libtmux-hooks-hooks-global"},{"id":"io.github.libtmux.Hooks.Hooks.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.session","product":"core","slug":"io-github-libtmux-hooks-hooks-session"},{"id":"io.github.libtmux.Hooks.Hooks.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.window","product":"core","slug":"io-github-libtmux-hooks-hooks-window"},{"id":"io.github.libtmux.Hooks.Hooks.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.pane","product":"core","slug":"io-github-libtmux-hooks-hooks-pane"},{"id":"io.github.libtmux.Hooks.Hooks.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it.","body":"Replacing, not adding: tmux discards the whole array. {@link #append} is how a second\ncommand joins the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.set","product":"core","slug":"io-github-libtmux-hooks-hooks-set"},{"id":"io.github.libtmux.Hooks.Hooks.append","name":"append","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.append","product":"core","slug":"io-github-libtmux-hooks-hooks-append"},{"id":"io.github.libtmux.Hooks.Hooks.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.unset","product":"core","slug":"io-github-libtmux-hooks-hooks-unset"},{"id":"io.github.libtmux.Hooks.Hooks.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event.","body":"tmux spells this {@code set-hook -R}, which reads as setting something. It runs the hook\nand binds nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.run","product":"core","slug":"io-github-libtmux-hooks-hooks-run"},{"id":"io.github.libtmux.Hooks.Hooks.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> all()","params":[],"returns":"Map>","typeScopeBoundary":false}],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.","body":"tmux prints one line per entry, subscripted — {@code after-new-window[0]}. The subscript is\na position in the list rather than part of the name, so it becomes the ordering here and the\nkey stays the event a caller would look up."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.all","product":"core","slug":"io-github-libtmux-hooks-hooks-all"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server incarnation a handle or batch may act on: the pid tmux reports, and its start time when known, since a pid alone is reusable — a tmux started on the pid of one just probed, as a container's first processes often are, would otherwise answer as if it were that server.","body":"Every guarded command is sent as tmux's own {@code if-shell -F} test of this condition, so a\nserver that has been replaced under a stale handle is refused before anything runs, rather than\nacting on the wrong incarnation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"IncarnationFence(Server server, ServerIdentity identity)","params":[{"name":"server","type":"Server"},{"name":"identity","type":"ServerIdentity"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","name":"identity","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false},{"raw":"ServerIdentity identity(ServerSnapshot snapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-identity"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameserver"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameincarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","name":"incarnation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"static String incarnation(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A condition true only on the server a capture named: its pid, and its start time when known."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.incarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","name":"guarded","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command, String input)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(long pid, String condition, String command, String input)","params":[{"name":"pid","type":"long"},{"name":"condition","type":"String"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Refuses to reach a tmux server that is not the one this handle was made against."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.guarded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-guarded"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult run(ServerSnapshot snapshot, WindowContext expected, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"expected","type":"WindowContext"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"As {@link #guarded(ServerSnapshot, String, String)}, refused as well once the window has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.run","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-run"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings","name":"CommandStrings","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Encodes a tmux command for each of the two parsers tmux reads commands with.","body":"Every argv this takes is literal: what a caller meant, with nothing escaped for either parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","name":"arguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static List arguments(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the flat argv tmux's own argv parser reads.","body":"tmux ends a command at an argument whose last byte is {@code ;}, and keeps the semicolon\ninstead when a backslash precedes it, so an argument ending in one is escaped here and a bare\n{@code ;} separates commands."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.arguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-arguments"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","name":"stringify","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String stringify(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One command as the string tmux's command parser reads, which is what {@code if-shell} takes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.stringify","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-stringify"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","name":"group","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String group(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the one string tmux's parser reads as a group.","body":"Each argument is quoted, so a semicolon inside one stays part of it and only the separators\nbetween commands end a command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.group","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-group"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText","name":"ErrorText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux printed on its error stream, as it appears in a failure's message."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText","product":"core","slug":"io-github-libtmux-internal-errortext-errortext"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","name":"suffix","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.ErrorText.ErrorText","signatures":[{"raw":"public static String suffix(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"{@code \": \"} and the non-blank lines joined by {@code \"; \"}, or nothing when tmux printed none.","body":"Capped at {@link OperationReport#ERROR_LIMIT} characters: a message lands in every log line\nthat prints the failure, and the failure's own {@code errorLines()} keeps the text whole."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText.suffix","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","product":"core","slug":"io-github-libtmux-internal-errortext-errortext-suffix"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree","name":"ProcessTree","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns bounded, idempotent termination of one process and its observable descendants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","name":"ProcessTree","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public ProcessTree(Process root)","params":[{"name":"root","type":"Process"}],"typeScopeBoundary":false}],"doc":{"summary":"Takes ownership of terminating {@code root} and descendants visible from it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","name":"captureDescendants","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized void captureDescendants()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Retains descendants before another cleanup step can make the root disappear."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.captureDescendants","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-capturedescendants"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","name":"terminate","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized boolean terminate()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Terminates the known process tree, closes the root's streams, and reports reclamation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.terminate","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-terminate"},{"id":"io.github.libtmux.internal.Utf8.Utf8","name":"Utf8","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The UTF-8 boundary shared by process and control transports, in both directions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","name":"requireEncodableArguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static void requireEncodableArguments(List argv)","params":[{"name":"argv","type":"List"}],"returns":"void","typeScopeBoundary":true,"raises":[{"type":"UnencodableTextException","doc":"if an argument holds non-ASCII text and this JVM's native encoding is not UTF-8"}]}],"doc":{"summary":"Refuses argument text this JVM would corrupt on the way to tmux.","body":"Checked here rather than at each call site because every process this library starts is\nbuilt from one of these lists, and a value that reaches tmux mangled is indistinguishable\nthere from one the caller meant."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.requireEncodableArguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-requireencodablearguments"},{"id":"io.github.libtmux.internal.Utf8.Utf8.encodable","name":"encodable","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static boolean encodable(List argv)","params":[{"name":"argv","type":"List"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this JVM can hand every one of these to a child process intact."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.encodable","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.encodable","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-encodable"},{"id":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","name":"argumentsAreUtf8","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"static boolean argumentsAreUtf8(String encoding)","params":[{"name":"encoding","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.argumentsAreUtf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-argumentsareutf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","name":"backslashReplace","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static String backslashReplace(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Decodes valid UTF-8 and writes each malformed byte as a recoverable {@code \\xNN} escape."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.backslashReplace","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-backslashreplace"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream","name":"Stream","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Decodes one byte stream that arrives in pieces cut anywhere, as {@link #backslashReplace} decodes a whole one. A character cut between two pieces is held back and returned whole with the later piece. One per stream, on one thread."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","name":"decode","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.Utf8.Utf8.Stream","signatures":[{"raw":"public String decode(byte[] piece)","params":[{"name":"piece","type":"byte[]"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The text this piece completes, leaving a character it only starts for the next."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream.decode","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream-decode"},{"id":"io.github.libtmux.JsonLayout.JsonLayout","name":"JsonLayout","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux's restricted JSON grammar and layout cells, for pre-mutation workspace validation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout"},{"id":"io.github.libtmux.JsonLayout.JsonLayout.leaves","name":"leaves","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.JsonLayout.JsonLayout","signatures":[{"raw":"static int leaves(String text)","params":[{"name":"text","type":"String"}],"returns":"int","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout.leaves","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout.leaves","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout-leaves"},{"id":"io.github.libtmux.Keys.Keys","name":"Keys","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"tmux keeps bindings in named tables: {@code prefix}, pressed after the prefix key, is where a\nbinding goes unless another table is named; {@code root} is pressed without it; the copy-mode\ntables belong to copy mode. {@link Server#keys()} answers for {@code prefix} when binding and for\nevery table when listing; {@link #in} names one.","examples":[{"lang":"java","code":"server.keys().bind(\"F12\", List.of(\"display-message\", \"hello\"));\nserver.keys().in(\"root\").bind(\"F11\", List.of(\"next-window\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.Keys","name":"Keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"Keys(Server server, @Nullable String table)","params":[{"name":"server","type":"Server"},{"name":"table","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys in(String table)","params":[{"name":"table","type":"String"}],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.in","product":"core","slug":"io-github-libtmux-keys-keys-in"},{"id":"io.github.libtmux.Keys.Keys.bind","name":"bind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void bind(String key, List command)","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a key to a tmux command, given as its words.","body":"Each word reaches tmux as itself: the command is passed as arguments, never as a line for\ntmux to split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.bind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.bind","product":"core","slug":"io-github-libtmux-keys-keys-bind"},{"id":"io.github.libtmux.Keys.Keys.unbind","name":"unbind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unbind(String key)","params":[{"name":"key","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.unbind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.unbind","product":"core","slug":"io-github-libtmux-keys-keys-unbind"},{"id":"io.github.libtmux.Keys.Keys.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"The bindings as tmux lists them, one per line.","body":"Every table unless one was named. Read without starting a daemon to answer, which tmux\nwould otherwise do for {@code list-keys}: its tables are compiled in, so it can answer an\nendpoint nothing serves by serving it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.list","product":"core","slug":"io-github-libtmux-keys-keys-list"},{"id":"io.github.libtmux.Layout.Layout","name":"Layout","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's built-in pane arrangements.","body":"An enum rather than a string, and not for tidiness: {@code select-layout} with a name tmux does\nnot recognise *ends the server* on 3.3a, taking every session on that socket with it —\nincluding sessions this program never created. Every other supported release answers\n{@code invalid layout} and carries on.\n\nA name that cannot be misspelled cannot trigger that. {@link Window#applyLayout} covers the\nother way in, a serialized layout string, by checking it before tmux sees it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","name":"EVEN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-even_horizontal"},{"id":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","name":"EVEN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-even_vertical"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","name":"MAIN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","name":"MAIN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical"},{"id":"io.github.libtmux.Layout.Layout.TILED","name":"TILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.TILED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.TILED","product":"core","slug":"io-github-libtmux-layout-layout-tiled"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","name":"MAIN_HORIZONTAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal_mirrored"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","name":"MAIN_VERTICAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical_mirrored"},{"id":"io.github.libtmux.Layout.Layout.Layout","name":"Layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"Layout(String name)","params":[{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.tmuxName","name":"tmuxName","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public String tmuxName()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name tmux knows this by."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.tmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.tmuxName","product":"core","slug":"io-github-libtmux-layout-layout-tmuxname"},{"id":"io.github.libtmux.Layout.Layout.byTmuxName","name":"byTmuxName","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public static Optional byTmuxName(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The layout with this exact tmux name, or empty if none matches.","body":"One map built once, so a caller that already has a canonical name does not repeat the scan\nover {@link #values()} that resolving an abbreviation already did."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.byTmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.byTmuxName","product":"core","slug":"io-github-libtmux-layout-layout-bytmuxname"},{"id":"io.github.libtmux.Layout.Layout.since","name":"since","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"TmuxVersion since()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false}],"doc":{"summary":"The first supported release that has this layout.","body":"A switch rather than a field, so that adding a layout cannot compile until someone says\nwhich release brought it — and so the enum holds nothing but its name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.since","product":"core","slug":"io-github-libtmux-layout-layout-since"},{"id":"io.github.libtmux.Layout.Layout.requireSupported","name":"requireSupported","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public void requireSupported(TmuxVersion running)","params":[{"name":"running","type":"TmuxVersion"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Refuses this layout when the running tmux predates it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.requireSupported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.requireSupported","product":"core","slug":"io-github-libtmux-layout-layout-requiresupported"},{"id":"io.github.libtmux.Layout.Layout.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.toString","product":"core","slug":"io-github-libtmux-layout-layout-tostring"},{"id":"io.github.libtmux.Layouts.Layouts","name":"Layouts","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which layout names are safe to hand to tmux.","body":"Public because every path that can reach select-layout needs it, not only the one that reads\na workspace file. This check exists because an unrecognised layout name does not produce an error on every tmux:\non 3.3a it crashes the server, taking down every session on that socket, including ones this\nprogram never created. A workspace file is user-supplied text, so the name has to be checked\nbefore it is dispatched rather than after tmux has had it.\n\ntmux accepts either one of its named layouts or a serialized layout tmux itself produced. Since\n3.8 that serialized form is either the classic checksummed grammar or JSON, and {@code\nselect-layout} takes either back - but only JSON round-trips exactly. The classic grammar\ncarries no pane identity, only shape, so which process lands in which cell can differ from\nwhere it started; see {@link Window#applyLayout}. The classic checksum is verified here; a\nfour-hex-digit prefix alone does not make the rest safe for tmux to parse. JSON carries no such\nsignature, so a JSON-shaped string is only trusted once the running tmux is new enough to have\nwritten it - see {@link #requireSerialized}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts","product":"core","slug":"io-github-libtmux-layouts-layouts"},{"id":"io.github.libtmux.Layouts.Layouts.require","name":"require","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static String require(String layout)","params":[{"name":"layout","type":"String"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the name, which on some versions is not a recoverable error"}]},{"raw":"public static String require(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout"},{"type":"UnsupportedFeatureException","doc":"if the name or the JSON format arrived after this release"}]},{"raw":"public static String require(String layout, Server server, int paneCount)","params":[{"name":"layout","type":"String","doc":"a built-in name, unique abbreviation or serialized tree"},{"name":"server","type":"Server","doc":"the endpoint which will apply the layout"},{"name":"paneCount","type":"int","doc":"the number of panes which the layout must accommodate"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"a full built-in name or the unchanged serialized layout","raises":[{"type":"IllegalArgumentException","doc":"if the layout is invalid or has too few pane cells"},{"type":"UnsupportedFeatureException","doc":"if an exact built-in name requires a newer daemon"},{"type":"LibTmuxException","doc":"if the daemon or client version cannot be read"}]}],"doc":{"summary":"Returns the layout unchanged, having checked tmux will recognise it.","body":"Accepts the classic checksummed form, a JSON layout (by shape only — a running version is\nneeded to say whether this server could have written it, which {@link #require(String,\nTmuxVersion)} does), a built-in name, or an unambiguous prefix of exactly one built-in name\n({@code layout_set_lookup} is a prefix match, so {@code tile} and {@code even-h} apply on\nevery tmux release). Ambiguity is judged against every name this library knows, not only the\nones the eventual server will have — the version to narrow that with is not available here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.require","product":"core","slug":"io-github-libtmux-layouts-layouts-require"},{"id":"io.github.libtmux.Layouts.Layouts.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static Optional builtIn(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The built-in layout a name or an unambiguous prefix of one denotes, resolved against what {@code running} actually supports — the same resolution {@link #require(String, TmuxVersion)} applies, exposed so a caller that must choose between the enum path and a raw string (a workspace file's own dispatch) makes the same choice the guard just validated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.builtIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.builtIn","product":"core","slug":"io-github-libtmux-layouts-layouts-builtin"},{"id":"io.github.libtmux.Layouts.Layouts.requireSerialized","name":"requireSerialized","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"static String requireSerialized(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but {@code running} predates the format, so it cannot be one this server wrote"}]}],"doc":{"summary":"Requires an exact layout string rather than a built-in layout name.","body":"The classic form answers \"did tmux write this?\" by its own checksum, without needing to\nknow what tmux is running. JSON carries nothing equivalent, so the only question left to ask\nis \"could this tmux have written it?\" - which is a version, not a parse. Recognising the shape\nis as far as this goes: a JSON body that passes the shape check but is not real is tmux's own\nproblem to refuse, and it does, safely, on every release that understands the format at all\n(confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash)."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.requireSerialized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.requireSerialized","product":"core","slug":"io-github-libtmux-layouts-layouts-requireserialized"},{"id":"io.github.libtmux.MessageLog.MessageLog","name":"MessageLog","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's own message log, newest last.","body":"tmux before 3.6 answers {@code no current client} when nothing is attached. A gate would\nrefuse the case that works: with a client attached the log is readable on every supported\nrelease. The failure tmux reports is left to reach the caller."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.MessageLog","name":"MessageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"MessageLog(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.lines","name":"lines","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List lines()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"before 3.6 when no client is attached"}]}],"doc":{"summary":"The log lines."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.lines","product":"core","slug":"io-github-libtmux-messagelog-messagelog-lines"},{"id":"io.github.libtmux.OptionKey.OptionKey","name":"OptionKey","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"what the value reads as"}],"doc":{"summary":"A tmux option and the Java type its value reads as.","body":"Declared by the caller rather than catalogued here. tmux has hundreds of options, adds them\nbetween releases and changes a few of their types, so a closed catalogue would be wrong somewhere\non every release it did not track. A key says how to read one option; the name-and-string methods\non {@link Options} remain for anything else.\n\nThe constants are the ones whose type is the same on every supported release, checked against\ntmux's own option table from 3.2a to 3.7c. {@code status} is not among the flags for that reason:\ntmux reads it as a choice of {@code off}, {@code on} and a line count.","examples":[{"lang":"java","code":"session.options().set(OptionKey.HISTORY_LIMIT, 50_000);\nint kept = session.options().get(OptionKey.HISTORY_LIMIT).orElseThrow(); // → 50000\n\nOptionKey bell = OptionKey.flag(\"visual-bell\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey","product":"core","slug":"io-github-libtmux-optionkey-optionkey"},{"id":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","name":"HISTORY_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"history-limit\")","doc":{"summary":"Lines of scrollback a pane keeps. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.HISTORY_LIMIT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","product":"core","slug":"io-github-libtmux-optionkey-optionkey-history_limit"},{"id":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","name":"BASE_INDEX","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"base-index\")","doc":{"summary":"The index a session's first window gets. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.BASE_INDEX","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","product":"core","slug":"io-github-libtmux-optionkey-optionkey-base_index"},{"id":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","name":"ESCAPE_TIME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"escape-time\")","doc":{"summary":"How long tmux waits after an escape to see whether a key sequence follows. A server option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.ESCAPE_TIME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-escape_time"},{"id":"io.github.libtmux.OptionKey.OptionKey.MOUSE","name":"MOUSE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"mouse\")","doc":{"summary":"Whether the mouse is captured. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.MOUSE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.MOUSE","product":"core","slug":"io-github-libtmux-optionkey-optionkey-mouse"},{"id":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","name":"AUTOMATIC_RENAME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"automatic-rename\")","doc":{"summary":"Whether a window renames itself after what its pane runs. A window option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.AUTOMATIC_RENAME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-automatic_rename"},{"id":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","name":"SYNCHRONIZE_PANES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"synchronize-panes\")","doc":{"summary":"Whether keys typed into one pane go to every pane in the window. A window or pane option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.SYNCHRONIZE_PANES","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","product":"core","slug":"io-github-libtmux-optionkey-optionkey-synchronize_panes"},{"id":"io.github.libtmux.OptionKey.OptionKey.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey text(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option read as the text tmux reports, which suits a string, a choice, a style or a colour."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.text","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.text","product":"core","slug":"io-github-libtmux-optionkey-optionkey-text"},{"id":"io.github.libtmux.OptionKey.OptionKey.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey number(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.number","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.number","product":"core","slug":"io-github-libtmux-optionkey-optionkey-number"},{"id":"io.github.libtmux.OptionKey.OptionKey.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey flag(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a flag, which it reports as {@code on} or {@code off}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.flag","product":"core","slug":"io-github-libtmux-optionkey-optionkey-flag"},{"id":"io.github.libtmux.OptionKey.OptionKey.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The option's name, as tmux spells it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.name","product":"core","slug":"io-github-libtmux-optionkey-optionkey-name"},{"id":"io.github.libtmux.OptionKey.OptionKey.read","name":"read","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"T read(String reported)","params":[{"name":"reported","type":"String"}],"returns":"T","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.read","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.read","product":"core","slug":"io-github-libtmux-optionkey-optionkey-read"},{"id":"io.github.libtmux.OptionKey.OptionKey.write","name":"write","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"String write(T value)","params":[{"name":"value","type":"T"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.write","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.write","product":"core","slug":"io-github-libtmux-optionkey-optionkey-write"},{"id":"io.github.libtmux.OptionKey.OptionKey.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.toString","product":"core","slug":"io-github-libtmux-optionkey-optionkey-tostring"},{"id":"io.github.libtmux.Options.Options","name":"Options","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux options at one scope.","body":"tmux keeps options on the server, on a session, on a window and on a pane, and the same option\nname can exist at more than one of them. A scope is therefore chosen when the view is obtained,\nnot passed to every call, so a caller cannot read one scope and write another.\n\nArray options keep the subscript tmux prints — {@code command-alias[0]} — because that is what\naddresses the individual entry when setting it back.\n\nEvery read asks the daemon its version in the same tmux invocation as the values, since how a\nvalue is printed depends on that version: tmux 3.4 and 3.5 print a carriage return and a literal\n{@code \\r} alike under {@code -v}, so on those two the escaped listing is decoded instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options","product":"core","slug":"io-github-libtmux-options-options"},{"id":"io.github.libtmux.Options.Options.server","name":"server","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options server(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.server","product":"core","slug":"io-github-libtmux-options-options-server"},{"id":"io.github.libtmux.Options.Options.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.global","product":"core","slug":"io-github-libtmux-options-options-global"},{"id":"io.github.libtmux.Options.Options.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.session","product":"core","slug":"io-github-libtmux-options-options-session"},{"id":"io.github.libtmux.Options.Options.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.window","product":"core","slug":"io-github-libtmux-options-options-window"},{"id":"io.github.libtmux.Options.Options.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.pane","product":"core","slug":"io-github-libtmux-options-options-pane"},{"id":"io.github.libtmux.Options.Options.get","name":"get","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when tmux does not know the option, which it reports as an error; an option genuinely set to the empty string comes back as an empty value, not as absent. A value spanning several lines comes back whole","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails, including a name tmux finds ambiguous — option names may be abbreviated, and a prefix matching several is a question tmux declined to answer rather than an option it does not have"}]},{"raw":"@Operation(Kind.READ)\n public Optional get(OptionKey key)","params":[{"name":"key","type":"OptionKey"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"LibTmuxException","doc":"if tmux reports a value the key's type cannot hold, which means the key was declared with the wrong type"}]}],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it.","body":"This is what tmux itself will act on. To ask the narrower question — whether this scope\nsets the option at all — look for the name in {@link #all()}, which lists only what is set\nhere."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.get","product":"core","slug":"io-github-libtmux-options-options-get"},{"id":"io.github.libtmux.Options.Options.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(OptionKey key, T value)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"returns":"void","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #set(String, String)}, written the way tmux reads the key's type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.set","product":"core","slug":"io-github-libtmux-options-options-set"},{"id":"io.github.libtmux.Options.Options.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option set at this scope, in tmux's order. Inherited values are not listed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.all","product":"core","slug":"io-github-libtmux-options-options-all"},{"id":"io.github.libtmux.Options.Options.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values.","body":"Inherited user-option names are not listed by tmux. {@link #get(String)} still reads their\neffective values by name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.effective","product":"core","slug":"io-github-libtmux-options-options-effective"},{"id":"io.github.libtmux.Options.Options.setIfAbsent","name":"setIfAbsent","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public boolean setIfAbsent(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether the value was taken, false when this scope already set the option"}],"doc":{"summary":"Sets one option only if this scope does not already set it.","body":"tmux reports the already-set case as an error, which it is not: declining to overwrite is\nthe whole point of asking. The answer comes back as a value instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":336,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setIfAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setIfAbsent","product":"core","slug":"io-github-libtmux-options-options-setifabsent"},{"id":"io.github.libtmux.Options.Options.append","name":"append","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String name, String suffix)","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Adds to the end of a string option, rather than replacing it.","body":"Appending to an option this scope has not set simply sets it, which is what tmux does and\nwhat a caller building a value up piece by piece wants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.append","product":"core","slug":"io-github-libtmux-options-options-append"},{"id":"io.github.libtmux.Options.Options.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself.","body":"{@code setExpanded(\"status-left\", \"in #{session_name}\")} stores {@code in base}. The\nexpansion happens once, when this is called; the option does not stay live.\n\nBecause tmux expands the format when this is called, a {@code #(...)} in it runs a command\nat that moment. Pass any interpolated value through {@link TmuxFormats#literal} unless you mean\nit to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setExpanded","product":"core","slug":"io-github-libtmux-options-options-setexpanded"},{"id":"io.github.libtmux.Options.Options.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.unset","product":"core","slug":"io-github-libtmux-options-options-unset"},{"id":"io.github.libtmux.Pane.Pane","name":"Pane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux pane, as one capture saw it.","body":"Identity is the server and the pane id. An index is state: panes renumber as neighbours come\nand go.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.Pane","name":"Pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane(Server server, ServerSnapshot snapshot, PaneState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"PaneState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneState info()","params":[],"returns":"PaneState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later title change is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.info","product":"core","slug":"io-github-libtmux-pane-pane-info"},{"id":"io.github.libtmux.Pane.Pane.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneId id()","params":[],"returns":"PaneId","typeScopeBoundary":false}],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.id","product":"core","slug":"io-github-libtmux-pane-pane-id"},{"id":"io.github.libtmux.Pane.Pane.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int index()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.index","product":"core","slug":"io-github-libtmux-pane-pane-index"},{"id":"io.github.libtmux.Pane.Pane.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.active","product":"core","slug":"io-github-libtmux-pane-pane-active"},{"id":"io.github.libtmux.Pane.Pane.currentCommand","name":"currentCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentCommand()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentCommand","product":"core","slug":"io-github-libtmux-pane-pane-currentcommand"},{"id":"io.github.libtmux.Pane.Pane.floating","name":"floating","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional floating()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say.","body":"Empty is not \"no\". tmux before 3.7 expands the format to nothing, and answering {@code false}\nthere would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.floating","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.floating","product":"core","slug":"io-github-libtmux-pane-pane-floating"},{"id":"io.github.libtmux.Pane.Pane.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.size","product":"core","slug":"io-github-libtmux-pane-pane-size"},{"id":"io.github.libtmux.Pane.Pane.position","name":"position","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PanePosition position()","params":[],"returns":"PanePosition","typeScopeBoundary":false}],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.position","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.position","product":"core","slug":"io-github-libtmux-pane-pane-position"},{"id":"io.github.libtmux.Pane.Pane.title","name":"title","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String title()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.title","product":"core","slug":"io-github-libtmux-pane-pane-title"},{"id":"io.github.libtmux.Pane.Pane.currentPath","name":"currentPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Path currentPath()","params":[],"returns":"Path","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this JVM's encoding cannot represent the name, which a UTF-8 locale fixes"}]}],"doc":{"summary":"The working directory tmux reported for the pane.","body":"Converted on request rather than when the pane was captured, because a directory name is\nbytes to tmux and this JVM cannot always represent one: converting at capture time would lose\nevery pane on the server over a single pane's directory. {@link #currentPathText()} is the\nvalue tmux actually reported, and never throws."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPath","product":"core","slug":"io-github-libtmux-pane-pane-currentpath"},{"id":"io.github.libtmux.Pane.Pane.currentPathText","name":"currentPathText","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentPathText()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPathText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPathText","product":"core","slug":"io-github-libtmux-pane-pane-currentpathtext"},{"id":"io.github.libtmux.Pane.Pane.pid","name":"pid","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public OptionalLong pid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from.","body":"Empty means tmux reported no process — never a literal {@code 0}, which would be\nindistinguishable from a real pid. That covers two different situations this capture cannot\ntell apart: a pane that never ran one ({@link SplitSpec.Builder#empty()}) and, from tmux 3.8, a\npane that ran one and it has since died. Before 3.8 a dead pane still reports its stale pid.\n{@link #dead()} is the live read that tells a caller which."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pid","product":"core","slug":"io-github-libtmux-pane-pane-pid"},{"id":"io.github.libtmux.Pane.Pane.dead","name":"dead","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean dead()","params":[],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"}]}],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture.","body":"Dying is something that happens between reads, so a cached answer would report a pane that\ndied after this handle was captured as alive forever — the trap a snapshot-backed {@code\nisDead()} would set, which is why there is no such accessor on the capture itself. This asks\ntmux directly instead, every time.\n\nA dead pane is not necessarily a gone one: {@code remain-on-exit} keeps it around, still\nlisted, to be read. A pane with no {@code remain-on-exit} is simply removed once its process\nexits — {@link #refresh()} on this handle then throws {@link TargetGoneException}, and\nthis method throws too. Unlike every other command {@code Pane} sends, {@code display-message\n-t} does not error on a target it cannot resolve — it exits 0 with nothing on stdout — so a\ngone pane looks like a live one that answered nothing rather than like a failure. That empty\nread, and not a \"can't find pane\" from tmux, is what this method throws on: a real pane always\nanswers {@code 0} or {@code 1} for this format, never nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.dead","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.dead","product":"core","slug":"io-github-libtmux-pane-pane-dead"},{"id":"io.github.libtmux.Pane.Pane.resize","name":"resize","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resize(Direction direction, int cells)","params":[{"name":"direction","type":"Direction","doc":"which way to grow, named rather than flagged"},{"name":"cells","type":"int","doc":"how many terminal cells to grow by"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resize","product":"core","slug":"io-github-libtmux-pane-pane-resize"},{"id":"io.github.libtmux.Pane.Pane.edges","name":"edges","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneEdges edges()","params":[],"returns":"PaneEdges","typeScopeBoundary":false}],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.edges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.edges","product":"core","slug":"io-github-libtmux-pane-pane-edges"},{"id":"io.github.libtmux.Pane.Pane.copyMode","name":"copyMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void copyMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.copyMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.copyMode","product":"core","slug":"io-github-libtmux-pane-pane-copymode"},{"id":"io.github.libtmux.Pane.Pane.mode","name":"mode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional mode()","params":[],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the mode, or empty when the pane is showing its program","raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode outside the supported range"}]}],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none.","body":"Read live rather than from the capture, because entering a mode is something this library\ndoes and a caller wants to see the result of."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":239,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.mode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.mode","product":"core","slug":"io-github-libtmux-pane-pane-mode"},{"id":"io.github.libtmux.Pane.Pane.exitMode","name":"exitMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void exitMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Leaves whichever mode this pane is in.","body":"tmux spells this {@code copy-mode -q}, which quits any mode and not only copy mode — a clock\nand a chooser go the same way. The name is tmux's history rather than its behaviour, so it is\nnot the one exposed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":252,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.exitMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.exitMode","product":"core","slug":"io-github-libtmux-pane-pane-exitmode"},{"id":"io.github.libtmux.Pane.Pane.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.select","product":"core","slug":"io-github-libtmux-pane-pane-select"},{"id":"io.github.libtmux.Pane.Pane.retitle","name":"retitle","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Pane retitle(String title)","params":[{"name":"title","type":"String"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"Retitles this pane and returns its replacement capture.","body":"Retain the result to read the changed title. This handle keeps its original captured state.\n\nA program running in the pane can set its own title through an escape sequence, and tmux\nreports that one instead. This says what the title is now, not what it will stay."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":271,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.retitle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.retitle","product":"core","slug":"io-github-libtmux-pane-pane-retitle"},{"id":"io.github.libtmux.Pane.Pane.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resizeTo","product":"core","slug":"io-github-libtmux-pane-pane-resizeto"},{"id":"io.github.libtmux.Pane.Pane.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":295,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.server","product":"core","slug":"io-github-libtmux-pane-pane-server"},{"id":"io.github.libtmux.Pane.Pane.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.batch","product":"core","slug":"io-github-libtmux-pane-pane-batch"},{"id":"io.github.libtmux.Pane.Pane.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.snapshot","product":"core","slug":"io-github-libtmux-pane-pane-snapshot"},{"id":"io.github.libtmux.Pane.Pane.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Window window()","params":[],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.window","product":"core","slug":"io-github-libtmux-pane-pane-window"},{"id":"io.github.libtmux.Pane.Pane.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hooks","product":"core","slug":"io-github-libtmux-pane-pane-hooks"},{"id":"io.github.libtmux.Pane.Pane.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":326,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.options","product":"core","slug":"io-github-libtmux-pane-pane-options"},{"id":"io.github.libtmux.Pane.Pane.capture","name":"capture","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture()","params":[],"returns":"List","typeScopeBoundary":false},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder that reads the visible area and nothing else"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(CaptureSpec spec)","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":332,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.capture","product":"core","slug":"io-github-libtmux-pane-pane-capture"},{"id":"io.github.libtmux.Pane.Pane.noteTyped","name":"noteTyped","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void noteTyped(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}.","body":"Use this for input delivered outside this handle. Input sent through {@link #sendKeys}\nor {@link #sendLiteral} already records synchronized recipients. Include a trailing line break\nwhen the external write submitted its line; otherwise the text remains pending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.noteTyped","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.noteTyped","product":"core","slug":"io-github-libtmux-pane-pane-notetyped"},{"id":"io.github.libtmux.Pane.Pane.awaitText","name":"awaitText","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout) throws InterruptedException","params":[{"name":"text","type":"String","doc":"the text to wait for, matched anywhere in a captured line"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"TextOutcome","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which tells text that appeared from text that was already there","raises":[{"type":"LibTmuxException","doc":"if a read fails while the server is still answering — most often because this pane was killed, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]},{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"TextOutcome","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until this pane's text contains something, and says why the wait ended.","body":"**Reach for this last.** It reads the screen on a timer, which is a heuristic\nabout a program's output rather than a fact about it, and the cheaper waits are exact:\n\n - If you wrote the command, append {@code ; tmux wait-for -S name} to it and block on\n {@link Server#channel}. tmux blocks server-side and returns on the signal itself, so\n nothing is inferred from the screen and one tmux process covers the whole wait. That is\n the only deterministic wait here, and it is the right one whenever the command is yours.\n - If you did not write the command — a daemon printing that it is ready, a build somebody\n else started — this is the case polling is for.\n\nThe timeout bounds the whole wait, reads included. Each read is given only what is left of\nit, so a slow tmux cannot stretch a short wait out to the server's default deadline, and text\nthat first appears after the deadline is not reported. The first read alone is allowed at least\na quarter of a second, so a timeout shorter than one read can still answer\n{@link TextOutcome#PRESENT_AT_ENTRY}.\n\nWaiting longer is also less reliable, not more: tmux frees the oldest scrollback once\n{@code history-limit} is reached, so a long wait on a productive pane can end up reading past\nthe lines it was watching for.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.awaitText","product":"core","slug":"io-github-libtmux-pane-pane-awaittext"},{"id":"io.github.libtmux.Pane.Pane.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public PaneRun run(String command, Duration timeout) throws InterruptedException","params":[{"name":"command","type":"String","doc":"a line of shell, run as {@code eval} would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"}],"returns":"PaneRun","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if the pane is not running a POSIX shell"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"**Reach for this first** whenever the command is yours. Nothing is inferred from\nthe screen: the command runs in a subshell of the pane's own shell, whose trap reports {@code $?}\nand signals a private {@code wait-for} channel, so the wait is tmux's and the status is the\nshell's. The trap covers interrupt and terminate as well as exit, so a command someone stops at\nthe pane ends this call with the status it was stopped with rather than leaving it waiting. The output is what the command printed and nothing else — not the typed line,\nnot the prompt — cut out between two markers the plumbing prints around it.\n\nIt runs in the shell a person set up — its directory, its environment, a virtualenv someone\nactivated — which is the reason to type it there rather than start a process of your own. The\npane has to be running a POSIX shell for the typed line to mean what it says.\n\nA command still running at the deadline keeps running; the answer carries what it had printed\nby then, and {@link PaneRun#exact()} is false.","examples":[{"lang":"java","code":"PaneRun built = pane.run(\"make test\", Duration.ofMinutes(5));\nif (!built.succeeded()) {\n System.err.println(String.join(\"\\n\", built.output()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":435,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.run","product":"core","slug":"io-github-libtmux-pane-pane-run"},{"id":"io.github.libtmux.Pane.Pane.await","name":"await","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout) throws InterruptedException","params":[{"name":"settled","type":"Predicate","doc":"receives this pane as it is now"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended","raises":[{"type":"TargetGoneException","doc":"if this pane is killed while its server stays up, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until a condition holds for this pane as tmux reports it, and says why the wait ended.","body":"The pane is captured again before each test, so the condition reads fresh state rather than\nthe capture this handle was built from. What the condition receives is an ordinary handle on\nthis pane's server and can be kept. The ordering {@link #awaitText} describes applies here too —\na signal on a {@link Server#channel} is exact, and this is for when nothing signals — and so do\nits deadline rules.","examples":[{"lang":"java","code":"pane.await(fresh -> !fresh.currentCommand().equals(\"zsh\"), Duration.ofSeconds(5));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":484,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.await","product":"core","slug":"io-github-libtmux-pane-pane-await"},{"id":"io.github.libtmux.Pane.Pane.through","name":"through","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane through(Server via)","params":[{"name":"via","type":"Server"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"This pane's captured state, addressed through another view of the same server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":502,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.through","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.through","product":"core","slug":"io-github-libtmux-pane-pane-through"},{"id":"io.github.libtmux.Pane.Pane.send","name":"send","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void send(String keys)","params":[{"name":"keys","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends keys to this pane without pressing Enter.","body":"Separate from {@link #sendLine} rather than a boolean, so a call site says which it means.\n\nRecorded as an echo before dispatch, through the same key model {@link #sendKeys} uses,\nbecause tmux types anything here that is not one of its key names and a terminal echoes what\nis typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":546,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.send","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.send","product":"core","slug":"io-github-libtmux-pane-pane-send"},{"id":"io.github.libtmux.Pane.Pane.sendKeys","name":"sendKeys","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","body":"Each entry is resolved through tmux's key table; an unknown name is typed as text.\nRecorded input includes effective synchronized recipients. Known dispatch failures undo the\nrecord; uncertain delivery retains it. {@link #sendLiteral} types every entry literally.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendKeys","product":"core","slug":"io-github-libtmux-pane-pane-sendkeys"},{"id":"io.github.libtmux.Pane.Pane.sendLiteral","name":"sendLiteral","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell.","body":"Nothing is resolved as a key name, so {@code C-c} types those three characters. Recorded\nbefore dispatch, with a line break in the joined text treated as tmux treats it: a submit the\ninstant it reaches the pane, whether or not the caller also presses Enter afterward."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":599,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLiteral","product":"core","slug":"io-github-libtmux-pane-pane-sendliteral"},{"id":"io.github.libtmux.Pane.Pane.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLine","product":"core","slug":"io-github-libtmux-pane-pane-sendline"},{"id":"io.github.libtmux.Pane.Pane.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server incarnation this pane belongs to: its echo record and its input hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":692,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.identity","product":"core","slug":"io-github-libtmux-pane-pane-identity"},{"id":"io.github.libtmux.Pane.Pane.breakOut","name":"breakOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut()","params":[],"returns":"Window","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it.","body":"On tmux 3.7 the name is supplied rather than left to tmux, because letting tmux choose it\nthere ends the server and every session on it. The name supplied is the one tmux would have\nchosen, so the result is the same window either way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":703,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.breakOut","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.breakOut","product":"core","slug":"io-github-libtmux-pane-pane-breakout"},{"id":"io.github.libtmux.Pane.Pane.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to.","body":"The way out of this library. Snapshots carry the fields worth carrying; a format reaches\neverything else tmux knows, including fields added by a release this code has never heard of.","examples":[{"lang":"java","code":"String title = pane.expand(\"#{pane_title}\");\nString where = pane.expand(\"#{session_name}:#{window_index}.#{pane_index}\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":732,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.expand","product":"core","slug":"io-github-libtmux-pane-pane-expand"},{"id":"io.github.libtmux.Pane.Pane.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":742,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.variables","product":"core","slug":"io-github-libtmux-pane-pane-variables"},{"id":"io.github.libtmux.Pane.Pane.respawn","name":"respawn","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void respawn(String... command)","params":[{"name":"command","type":"String","variadic":"positional","doc":"the command and its arguments"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again.","body":"tmux refuses to respawn a pane that is still running something, on every supported release,\nso what is asked for is always the killing form. Restarting a live process is the whole point\nof the call."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":755,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawn","product":"core","slug":"io-github-libtmux-pane-pane-respawn"},{"id":"io.github.libtmux.Pane.Pane.respawnIn","name":"respawnIn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawnIn(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnIn","product":"core","slug":"io-github-libtmux-pane-pane-respawnin"},{"id":"io.github.libtmux.Pane.Pane.respawnArgv","name":"respawnArgv","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static List respawnArgv(PaneId pane, Path directory)","params":[{"name":"pane","type":"PaneId"},{"name":"directory","type":"Path"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":770,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnArgv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnArgv","product":"core","slug":"io-github-libtmux-pane-pane-respawnargv"},{"id":"io.github.libtmux.Pane.Pane.pipeTo","name":"pipeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pipeTo(String shellCommand)","params":[{"name":"shellCommand","type":"String","doc":"run by the user's shell, so it may redirect and pipe"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}.","body":"A second call replaces the first: tmux keeps one pipe per pane, not a list.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":807,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pipeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pipeTo","product":"core","slug":"io-github-libtmux-pane-pane-pipeto"},{"id":"io.github.libtmux.Pane.Pane.stopPiping","name":"stopPiping","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopPiping()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops sending this pane's output anywhere. Doing so twice is not an error."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":814,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.stopPiping","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.stopPiping","product":"core","slug":"io-github-libtmux-pane-pane-stoppiping"},{"id":"io.github.libtmux.Pane.Pane.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]}],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":855,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.split","product":"core","slug":"io-github-libtmux-pane-pane-split"},{"id":"io.github.libtmux.Pane.Pane.created","name":"created","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static Pane created(Server server, ServerSnapshot previous, List argv)","params":[{"name":"server","type":"Server"},{"name":"previous","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"Pane","typeScopeBoundary":true}],"doc":{"summary":"Runs a command that reports one new pane, and hands back a handle on it.","body":"The creating command names the pane it made, so the result is exact rather than whichever\npane a fresh listing happens to put last — two splits racing would otherwise be\nindistinguishable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":903,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.created","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.created","product":"core","slug":"io-github-libtmux-pane-pane-created"},{"id":"io.github.libtmux.Pane.Pane.createdFormat","name":"createdFormat","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static String createdFormat()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The format a creating command reports its new pane through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":918,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.createdFormat","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.createdFormat","product":"core","slug":"io-github-libtmux-pane-pane-createdformat"},{"id":"io.github.libtmux.Pane.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pasteBuffer(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":923,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pasteBuffer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pasteBuffer","product":"core","slug":"io-github-libtmux-pane-pane-pastebuffer"},{"id":"io.github.libtmux.Pane.Pane.paste","name":"paste","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the text contains NUL, which a terminal cannot receive and {@link #send} refuses too"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, where deleting the buffer left by a failed paste can remove one this did not create"}]},{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text, Runnable beforePaste)","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable","doc":"runs after staging and immediately before the paste dispatch"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server.","body":"Nothing in the text is looked up as a key name, so a line containing {@code Enter} or a\nbracket arrives as those characters. That is what an editor, a REPL, or anything reading a\nhere-document needs, and it is the difference from {@link #send}.\n\ntmux needs a buffer to paste from, and this one travels in the same invocation as the paste\nthat consumes it. A caller that stops in between therefore cannot leave the text in the paste\nhistory every session on the server can read.\n\nThe text goes to tmux on standard input rather than as an argument, so it is not bounded by\nthe size of a tmux command and never reaches tmux's parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":953,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.paste","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.paste","product":"core","slug":"io-github-libtmux-pane-pane-paste"},{"id":"io.github.libtmux.Pane.Pane.clearHistory","name":"clearHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clearHistory()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1050,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.clearHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.clearHistory","product":"core","slug":"io-github-libtmux-pane-pane-clearhistory"},{"id":"io.github.libtmux.Pane.Pane.swapWith","name":"swapWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void swapWith(Pane other)","params":[{"name":"other","type":"Pane"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1056,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.swapWith","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.swapWith","product":"core","slug":"io-github-libtmux-pane-pane-swapwith"},{"id":"io.github.libtmux.Pane.Pane.joinTo","name":"joinTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void joinTo(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1066,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.joinTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.joinTo","product":"core","slug":"io-github-libtmux-pane-pane-jointo"},{"id":"io.github.libtmux.Pane.Pane.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1076,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.kill","product":"core","slug":"io-github-libtmux-pane-pane-kill"},{"id":"io.github.libtmux.Pane.Pane.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Pane refresh()","params":[],"returns":"Pane","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this pane as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1090,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.refresh","product":"core","slug":"io-github-libtmux-pane-pane-refresh"},{"id":"io.github.libtmux.Pane.Pane.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.equals","product":"core","slug":"io-github-libtmux-pane-pane-equals"},{"id":"io.github.libtmux.Pane.Pane.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hashCode","product":"core","slug":"io-github-libtmux-pane-pane-hashcode"},{"id":"io.github.libtmux.Pane.Pane.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.toString","product":"core","slug":"io-github-libtmux-pane-pane-tostring"},{"id":"io.github.libtmux.PaneCommand.PaneCommand","name":"PaneCommand","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The line typed at a pane's shell to run one command to its end, and how its output is read back.","body":"Completion is not inferred from the screen. The command runs in a subshell whose trap prints an\nend marker carrying {@code $?} and then signals a private {@code wait-for} channel through the\nsame tmux binary and socket, so the wait is tmux's own and the status is the shell's. The trap\ncovers interrupt and terminate as well as exit, so a command someone stops with {@code C-c} ends\nthe run and reports the status it was stopped with — commonly 130 — rather than leaving a wait\nwith nothing to end it.\n\nThe output is cut out by framing: a start marker is printed before the command and the end\nmarker after it, and only lines strictly between them are returned. The shell echoes the whole\ntyped line, which contains both markers — but only inside quotes, never as a line of its own that\nequals a marker, so matching complete marker lines tells plumbing from output even when the echo\nwraps.\n\n{@link Pane#run} is built on this, and it is public for a caller that needs the same framing\naround orchestration of its own — the MCP server holds a pane for other clients while a run is\nuncertain, which the library has no reason to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand","product":"core","slug":"io-github-libtmux-panecommand-panecommand"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.fresh","name":"fresh","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public static PaneCommand fresh()","params":[],"returns":"PaneCommand","typeScopeBoundary":true}],"doc":{"summary":"A run with markers and a channel no other run shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.fresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.fresh","product":"core","slug":"io-github-libtmux-panecommand-panecommand-fresh"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String channel()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The {@code wait-for} channel the typed line signals once the command has ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.channel","product":"core","slug":"io-github-libtmux-panecommand-panecommand-channel"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.typed","name":"typed","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String typed(List tmux, String command)","params":[{"name":"tmux","type":"List","doc":"the client the pane's shell calls: an absolute binary and its {@code -S} socket"},{"name":"command","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The line to type.","body":"Typed at the pane's own interactive shell rather than a fresh one, so the command sees the\nenvironment a person set up there — a virtualenv, a loaded module, a directory someone changed\ninto. The leading space asks bash ({@code HISTCONTROL=ignorespace}) and zsh ({@code\nHIST_IGNORE_SPACE}) to keep the plumbing out of the history; a shell set to neither records it.\nBuiltins are called as {@code \\\\trap}, {@code \\\\eval} and {@code \\\\exit} so an alias of the same\nname cannot take them over.\n\nThe line begins with that space; strip it to have the shell record the line like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.typed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.typed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-typed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.frame","name":"frame","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public Framed frame(List lines)","params":[{"name":"lines","type":"List"}],"returns":"Framed","typeScopeBoundary":false}],"doc":{"summary":"What lies between the two markers, and the status the end marker carried.","body":"The start marker is matched as a whole row after trimming, the end marker as the end of\none — never by containment, because the echo of the typed line holds both as substrings and\nmust not be mistaken for either. The asymmetry is the shell's: nothing can precede the start\nmarker on its row, since it prints before the command runs, while the command's own last line\nprecedes the end marker whenever it carried no closing newline. That line is output, and is\nreturned as such."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.frame","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.frame","product":"core","slug":"io-github-libtmux-panecommand-panecommand-frame"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.status","name":"status","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public OptionalInt status(String line)","params":[{"name":"line","type":"String"}],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The exit status a row carries at its end, or empty when the row does not end in one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed","name":"Framed","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public record Framed(@ReadOnly List lines, boolean exact, OptionalInt status)","params":[{"name":"lines","type":"List","doc":"the command's output"},{"name":"exact","type":"boolean","doc":"whether both markers were found, so the lines are only the command's output"},{"name":"status","type":"OptionalInt","doc":"the exit status, when the end marker was read"}]}],"typeScopeBoundary":true,"doc":{"summary":"A run's output as read back from the screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","name":"lines","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-lines"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether both markers were found, so the lines are only the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-exact"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","name":"status","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the exit status, when the end marker was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","name":"requirePosixShell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static void requirePosixShell(String current)","params":[{"name":"current","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Refuses a pane whose shell would not read the typed line as written."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.requirePosixShell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","product":"core","slug":"io-github-libtmux-panecommand-panecommand-requireposixshell"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.quote","name":"quote","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static String quote(String word)","params":[{"name":"word","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One word, quoted so a POSIX shell reads it as exactly the text given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.quote","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.quote","product":"core","slug":"io-github-libtmux-panecommand-panecommand-quote"},{"id":"io.github.libtmux.PaneEcho.PaneEcho","name":"PaneEcho","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Tracks pending and recently submitted input under each server incarnation and pane id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live","name":"Live","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"record Live(@ReadOnly List pending, @ReadOnly List recent)","params":[{"name":"pending","type":"List"},{"name":"recent","type":"List"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","name":"NONE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","signatures":[],"typeScopeBoundary":true,"type":"Live","value":"new Live(List.of(), List.of())","source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.NONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-none"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","name":"pending","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.pending","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-pending"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","name":"recent","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.recent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-recent"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","name":"PaneEcho","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"PaneEcho()","params":[],"typeScopeBoundary":false},{"raw":"PaneEcho(LongSupplier nanoTime)","params":[{"name":"nanoTime","type":"LongSupplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","name":"Recorded","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[],"typeScopeBoundary":false,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":254,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","name":"confirm","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void confirm()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.confirm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-confirm"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","name":"rollback","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void rollback()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.rollback","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-rollback"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","name":"recordLiteral","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordLiteral(ServerIdentity identity, PaneId pane, String text)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordliteral"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","name":"recordKeys","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordKeys(ServerIdentity identity, PaneId pane, List keys)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"keys","type":"List"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordkeys"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"int size()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.size","product":"core","slug":"io-github-libtmux-paneecho-paneecho-size"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.forget","name":"forget","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"void forget(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.forget","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.forget","product":"core","slug":"io-github-libtmux-paneecho-paneecho-forget"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","name":"liveFor","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Live liveFor(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"Live","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":382,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.liveFor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","product":"core","slug":"io-github-libtmux-paneecho-paneecho-livefor"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","name":"withoutEcho","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"static List withoutEcho(List lines, List echoes)","params":[{"name":"lines","type":"List"},{"name":"echoes","type":"List"}],"returns":"List","typeScopeBoundary":true},{"raw":"static List withoutEcho(List lines, String echo)","params":[{"name":"lines","type":"List"},{"name":"echo","type":"String"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":396,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-withoutecho"},{"id":"io.github.libtmux.PaneEdges.PaneEdges","name":"PaneEdges","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneEdges(boolean top, boolean bottom, boolean left, boolean right)","params":[{"name":"top","type":"boolean","doc":"whether the pane touches the top of its window"},{"name":"bottom","type":"boolean","doc":"whether it touches the bottom"},{"name":"left","type":"boolean","doc":"whether it touches the left"},{"name":"right","type":"boolean","doc":"whether it touches the right"}]}],"typeScopeBoundary":false,"doc":{"summary":"Which sides of its window a pane touches.","body":"Grouped rather than four loose flags, because they are read together to answer one question —\nwhere in the window this pane sits — and four booleans in a row is an invitation to transpose two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges","product":"core","slug":"io-github-libtmux-paneedges-paneedges"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","name":"fillsWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEdges.PaneEdges","signatures":[{"raw":"public boolean fillsWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane fills its window, touching every side."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.fillsWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","product":"core","slug":"io-github-libtmux-paneedges-paneedges-fillswindow"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.top","name":"top","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the pane touches the top of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.top","product":"core","slug":"io-github-libtmux-paneedges-paneedges-top"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.bottom","name":"bottom","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the bottom"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.bottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.bottom","product":"core","slug":"io-github-libtmux-paneedges-paneedges-bottom"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.left","name":"left","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the left"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.left","product":"core","slug":"io-github-libtmux-paneedges-paneedges-left"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.right","name":"right","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the right"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.right","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.right","product":"core","slug":"io-github-libtmux-paneedges-paneedges-right"},{"id":"io.github.libtmux.PaneId.PaneId","name":"PaneId","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code %} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux pane id, such as {@code %2}.","body":"Stable for the life of the pane, unlike a pane index, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId","product":"core","slug":"io-github-libtmux-paneid-paneid"},{"id":"io.github.libtmux.PaneId.PaneId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneId.PaneId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.toString","product":"core","slug":"io-github-libtmux-paneid-paneid-tostring"},{"id":"io.github.libtmux.PaneId.PaneId.value","name":"value","kind":"method","parent":"io.github.libtmux.PaneId.PaneId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code %} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.value","product":"core","slug":"io-github-libtmux-paneid-paneid-value"},{"id":"io.github.libtmux.PaneInput.PaneInput","name":"PaneInput","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One writer at a time for a pane's keyboard, paste, and shell run.","body":"Those three share one screen. {@link #hold} throws if another thread already has the pane.\nThe same thread may hold it again; the pane is free when the outer hold closes. {@link\nPane#sendKeys}, {@link Pane#sendLiteral}, {@link Pane#paste}, {@link Pane#pasteBuffer}, and {@link\nPane#run} take a hold for the call and release it when they return. A command still running after\n{@code run} returns is not held unless the caller kept {@link #hold} or {@link #holdInterruptible}\naround that call. Raw commands and {@link CommandChain} steps do not take it.\n\n{@link #holdInterruptible} is that longer hold. Another thread may {@link #enterInterrupt} it\nto send a stop, and that entry does not take the pane. Closing the run's lease still releases\nit, including from the thread that notices the command has finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput","product":"core","slug":"io-github-libtmux-paneinput-paneinput"},{"id":"io.github.libtmux.PaneInput.PaneInput.hold","name":"hold","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease hold(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Excludes other threads from this pane until the lease closes. The pane is the one its capture named: the same id on a server started since is another pane, and is not held."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.hold","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.hold","product":"core","slug":"io-github-libtmux-paneinput-paneinput-hold"},{"id":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","name":"holdInterruptible","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease holdInterruptible(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Holds the pane for a command that another thread may have to stop.","body":"The stop uses {@link #enterInterrupt}. Any other attempt to {@link #hold} still fails."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.holdInterruptible","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","product":"core","slug":"io-github-libtmux-paneinput-paneinput-holdinterruptible"},{"id":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","name":"enterInterrupt","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease enterInterrupt(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Enters a pane {@link #holdInterruptible} is holding, without taking it.","body":"Closing this lease leaves the run's hold in place. A pane that is free, or held by\n{@link #hold}, refuses the entry."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.enterInterrupt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","product":"core","slug":"io-github-libtmux-paneinput-paneinput-enterinterrupt"},{"id":"io.github.libtmux.PaneInput.PaneInput.heldSince","name":"heldSince","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Optional heldSince(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"empty when the pane is not held"}],"doc":{"summary":"Reports when the current hold on this pane was acquired, so a lease nothing ever closes can be found from outside the thread holding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.heldSince","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.heldSince","product":"core","slug":"io-github-libtmux-paneinput-paneinput-heldsince"},{"id":"io.github.libtmux.PaneInput.PaneInput.held","name":"held","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"@ReadOnly\n public static List held()","params":[],"returns":"List","typeScopeBoundary":true,"returnsDoc":"an immutable snapshot, one entry per held pane regardless of how many times its owning thread has re-entered it"}],"doc":{"summary":"Every pane held right now, for diagnosing a lease nothing ever closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-16tz"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held","name":"Held","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public record Held(ServerIdentity server, PaneId pane, Instant since, String holdingThread)","params":[{"name":"server","type":"ServerIdentity","doc":"which server's pane this is"},{"name":"pane","type":"PaneId","doc":"the held pane"},{"name":"since","type":"Instant","doc":"when the hold was acquired"},{"name":"holdingThread","type":"String","doc":"the name of the thread that holds it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One pane's outstanding hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-6kxu"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.server","name":"server","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"ServerIdentity"}],"doc":{"summary":"which server's pane this is"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.server","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-server"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.pane","name":"pane","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the held pane"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.pane","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-pane"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.since","name":"since","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"Instant"}],"doc":{"summary":"when the hold was acquired"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.since","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-since"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","name":"holdingThread","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the name of the thread that holds it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.holdingThread","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-holdingthread"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease","name":"Lease","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Releases one matching hold. Closing twice releases once. Any thread may close it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput.Lease","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease.close","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease-close"},{"id":"io.github.libtmux.PaneMode.PaneMode","name":"PaneMode","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A mode a pane can be in, as tmux names them.","body":"A pane in a mode shows something other than its program: its own scrollback, a clock, or one of\nthe choosers. Every mode below exists on each supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.COPY","name":"COPY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback, navigable and selectable. Entered by {@link Pane#copyMode()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.COPY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.COPY","product":"core","slug":"io-github-libtmux-panemode-panemode-copy"},{"id":"io.github.libtmux.PaneMode.PaneMode.VIEW","name":"VIEW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback without the selection commands.","body":"tmux enters this itself, for the output of a command it was asked to display; no command\nhere puts a pane into it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.VIEW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.VIEW","product":"core","slug":"io-github-libtmux-panemode-panemode-view"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLOCK","name":"CLOCK","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A clock, entered by tmux's {@code clock-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLOCK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLOCK","product":"core","slug":"io-github-libtmux-panemode-panemode-clock"},{"id":"io.github.libtmux.PaneMode.PaneMode.TREE","name":"TREE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The session and window browser, which the window finder also opens."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.TREE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.TREE","product":"core","slug":"io-github-libtmux-panemode-panemode-tree"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLIENT","name":"CLIENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The attached-client browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLIENT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLIENT","product":"core","slug":"io-github-libtmux-panemode-panemode-client"},{"id":"io.github.libtmux.PaneMode.PaneMode.BUFFER","name":"BUFFER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The paste-buffer browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.BUFFER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.BUFFER","product":"core","slug":"io-github-libtmux-panemode-panemode-buffer"},{"id":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","name":"OPTIONS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The option browser, entered by tmux's {@code customize-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.OPTIONS","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","product":"core","slug":"io-github-libtmux-panemode-panemode-options"},{"id":"io.github.libtmux.PaneMode.PaneMode.PaneMode","name":"PaneMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"PaneMode(String reported)","params":[{"name":"reported","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.reported","name":"reported","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"public String reported()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What tmux calls it, which is what {@code #{pane_mode}} expands to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.reported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.reported","product":"core","slug":"io-github-libtmux-panemode-panemode-reported"},{"id":"io.github.libtmux.PaneMode.PaneMode.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"static PaneMode of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"PaneMode","typeScopeBoundary":true,"raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode this release range does not have"}]}],"doc":{"summary":"Reads what tmux reported."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.of","product":"core","slug":"io-github-libtmux-panemode-panemode-of"},{"id":"io.github.libtmux.PanePosition.PanePosition","name":"PanePosition","kind":"class","modifiers":[],"signatures":[{"raw":"public record PanePosition(int left, int top)","params":[{"name":"left","type":"int","doc":"columns from the window's left edge"},{"name":"top","type":"int","doc":"rows from the window's top edge"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a pane's top-left corner sits in its window, in terminal cells.","body":"A pair rather than two loose numbers, for the reason {@link Dimensions} gives: read together,\nand a call site that took them separately could transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition","product":"core","slug":"io-github-libtmux-paneposition-paneposition"},{"id":"io.github.libtmux.PanePosition.PanePosition.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PanePosition.PanePosition","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.toString","product":"core","slug":"io-github-libtmux-paneposition-paneposition-tostring"},{"id":"io.github.libtmux.PanePosition.PanePosition.left","name":"left","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns from the window's left edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.left","product":"core","slug":"io-github-libtmux-paneposition-paneposition-left"},{"id":"io.github.libtmux.PanePosition.PanePosition.top","name":"top","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows from the window's top edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.top","product":"core","slug":"io-github-libtmux-paneposition-paneposition-top"},{"id":"io.github.libtmux.PaneRun.PaneRun","name":"PaneRun","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneRun(\n Outcome outcome, OptionalInt exitStatus, @ReadOnly List output, boolean exact)","params":[{"name":"outcome","type":"Outcome","doc":"why the wait ended"},{"name":"exitStatus","type":"OptionalInt","doc":"the command's exit status, present once it finished and its end was read"},{"name":"output","type":"List","doc":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},{"name":"exact","type":"boolean","doc":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"}]}],"typeScopeBoundary":false,"doc":{"summary":"How a command run in a pane with {@link Pane#run} ended, and what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun","product":"core","slug":"io-github-libtmux-panerun-panerun"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome","name":"Outcome","kind":"enum","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Why a run's wait ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","name":"FINISHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The command ended; its status is in {@link #exitStatus()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.FINISHED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-finished"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the command still running. The output is what it had printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-timed_out"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the command, so nothing about it can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-server_gone"},{"id":"io.github.libtmux.PaneRun.PaneRun.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the command finished with status zero."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.succeeded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.succeeded","product":"core","slug":"io-github-libtmux-panerun-panerun-succeeded"},{"id":"io.github.libtmux.PaneRun.PaneRun.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"Outcome"}],"doc":{"summary":"why the wait ended"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-3ji4"},{"id":"io.github.libtmux.PaneRun.PaneRun.exitStatus","name":"exitStatus","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the command's exit status, present once it finished and its end was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exitStatus","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exitStatus","product":"core","slug":"io-github-libtmux-panerun-panerun-exitstatus"},{"id":"io.github.libtmux.PaneRun.PaneRun.output","name":"output","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.output","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.output","product":"core","slug":"io-github-libtmux-panerun-panerun-output"},{"id":"io.github.libtmux.PaneRun.PaneRun.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exact","product":"core","slug":"io-github-libtmux-panerun-panerun-exact"},{"id":"io.github.libtmux.PaneSize.PaneSize","name":"PaneSize","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How big a new pane should be.","body":"One value with two spellings, not a size and a percentage. tmux takes both through {@code -l},\nso there is no pair of fields to hold consistent and no \"both were given\" error to raise — the\nPython sibling's {@code size}/{@code percentage} pair and the {@code ValueError} guarding it both\ndisappear.\n\ntmux's own {@code -p} flag is never emitted. It is broken in 3.4, which reads the {@code -l}\nargument while handling {@code -p} and fails with {@code size missing}; {@code -l 25%} produces the\nsame pane on every supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize","product":"core","slug":"io-github-libtmux-panesize-panesize"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells","name":"Cells","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Cells(int count) implements PaneSize","params":[{"name":"count","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-csva"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells.count","name":"count","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Cells","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells.count","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells.count","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-count"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent","name":"Percent","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Percent(int share) implements PaneSize","params":[{"name":"share","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-30sw"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent.share","name":"share","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Percent","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent.share","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent.share","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-share"},{"id":"io.github.libtmux.PaneSize.PaneSize.cells","name":"cells","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize cells(int count)","params":[{"name":"count","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-11uj"},{"id":"io.github.libtmux.PaneSize.PaneSize.percent","name":"percent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize percent(int share)","params":[{"name":"share","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A share of what is being split, between 1 and 100."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-1ojv"},{"id":"io.github.libtmux.PaneSize.PaneSize.flagValue","name":"flagValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"default String flagValue()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What follows {@code -l}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.flagValue","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.flagValue","product":"core","slug":"io-github-libtmux-panesize-panesize-flagvalue"},{"id":"io.github.libtmux.PaneStart.PaneStart","name":"PaneStart","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What runs in a new pane.","body":"One choice rather than a command field beside an emptiness flag. tmux refuses the pair —\n{@code command cannot be given for empty pane} — and refuses it before spawning anything, so the\ncombination is not a state the server will ever be in. Sealing it means no value can carry both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart","product":"core","slug":"io-github-libtmux-panestart-panestart"},{"id":"io.github.libtmux.PaneStart.PaneStart.Shell","name":"Shell","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Shell() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Whatever the session's {@code default-command} or shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-x755"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command","name":"Command","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Command(@ReadOnly List argv) implements PaneStart","params":[{"name":"argv","type":"List","doc":"the command and its arguments"}]}],"typeScopeBoundary":true,"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-o9ni"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command.argv","name":"argv","kind":"method","parent":"io.github.libtmux.PaneStart.PaneStart.Command","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command and its arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command.argv","product":"core","slug":"io-github-libtmux-panestart-panestart-command-argv"},{"id":"io.github.libtmux.PaneStart.PaneStart.Empty","name":"Empty","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Empty() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1qmp"},{"id":"io.github.libtmux.PaneStart.PaneStart.shell","name":"shell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart shell()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"Whatever the session's shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-kfg3"},{"id":"io.github.libtmux.PaneStart.PaneStart.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart command(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-vfqq"},{"id":"io.github.libtmux.PaneStart.PaneStart.empty","name":"empty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart empty()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1dv0"},{"id":"io.github.libtmux.PaneWait.PaneWait","name":"PaneWait","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Polls a pane on a timer for {@link Pane#awaitText} and {@link Pane#await}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait","product":"core","slug":"io-github-libtmux-panewait-panewait"},{"id":"io.github.libtmux.PaneWait.PaneWait.POLL","name":"POLL","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[],"typeScopeBoundary":true,"type":"Duration","value":"Duration.ofMillis(50)","doc":{"summary":"How often a wait looks again.","body":"Short enough that a wait reports promptly, long enough that a wait held open for minutes\nis not thousands of tmux invocations. A caller who needs an exact moment wants a signal on a\n{@link Channel}, not a shorter interval here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.POLL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.POLL","product":"core","slug":"io-github-libtmux-panewait-panewait-poll"},{"id":"io.github.libtmux.PaneWait.PaneWait.awaitText","name":"awaitText","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static TextOutcome awaitText(Pane pane, String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"TextOutcome","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#awaitText(String, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.awaitText","product":"core","slug":"io-github-libtmux-panewait-panewait-awaittext"},{"id":"io.github.libtmux.PaneWait.PaneWait.await","name":"await","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static WakeReason await(Pane pane, Predicate settled, Duration timeout, Duration every)\n throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#await(Predicate, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.await","product":"core","slug":"io-github-libtmux-panewait-panewait-await"},{"id":"io.github.libtmux.PrintedText.PrintedText","name":"PrintedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Decodes tmux's printed output against the version the server actually reports, framed with process-local markers so a reply is read back exactly whatever quirks that version's own printing has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText","product":"core","slug":"io-github-libtmux-printedtext-printedtext"},{"id":"io.github.libtmux.PrintedText.PrintedText.END_MARK","name":"END_MARK","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[],"typeScopeBoundary":true,"type":"String","value":"Tokens.perProcess() + \"-end\"","doc":{"summary":"Printed after what a command printed. tmux ends its output with a line break and the transport drops trailing blank lines, so text that itself ends in line breaks would lose them; with this after it, nothing trailing is blank."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.END_MARK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.END_MARK","product":"core","slug":"io-github-libtmux-printedtext-printedtext-end_mark"},{"id":"io.github.libtmux.PrintedText.PrintedText.expansion","name":"expansion","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String expansion(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A format for {@code display-message -p} that {@link #printed(List)} reads back exactly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.expansion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.expansion","product":"core","slug":"io-github-libtmux-printedtext-printedtext-expansion"},{"id":"io.github.libtmux.PrintedText.PrintedText.versioned","name":"versioned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String versioned(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"This format with the server's version expanded ahead of it, so the reply can be decoded without another tmux process. See {@link TmuxFormats#printed(String, TmuxVersion)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.versioned","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.versioned","product":"core","slug":"io-github-libtmux-printedtext-printedtext-versioned"},{"id":"io.github.libtmux.PrintedText.PrintedText.printed","name":"printed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String printed(List reported)","params":[{"name":"reported","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The expansion of a {@link #versioned} format, as tmux held the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printed"},{"id":"io.github.libtmux.PrintedText.PrintedText.printedRows","name":"printedRows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List printedRows(List rows)","params":[{"name":"rows","type":"List"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"As {@link #printed(List)}, for a listing whose every row began with {@link #versioned}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printedRows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printedRows","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printedrows"},{"id":"io.github.libtmux.PrintedText.PrintedText.framed","name":"framed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List> framed(List argv)","params":[{"name":"argv","type":"List"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"The three commands {@link Server#printed(io.github.libtmux.snapshot.ServerSnapshot, List)} sends as one group."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.framed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-framed"},{"id":"io.github.libtmux.PrintedText.PrintedText.unwrap","name":"unwrap","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static CommandResult unwrap(CommandResult result)","params":[{"name":"result","type":"CommandResult"}],"returns":"CommandResult","typeScopeBoundary":true}],"doc":{"summary":"Strips the version line and end mark {@link #framed} added, decoding what is left."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.unwrap","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.unwrap","product":"core","slug":"io-github-libtmux-printedtext-printedtext-unwrap"},{"id":"io.github.libtmux.Prompt.Prompt","name":"Prompt","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's command-prompt history.","body":"Whether the commands exist is asked of the daemon, not inferred from a version string."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.Prompt","name":"Prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"Prompt(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.history","name":"history","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List history()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.history","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.history","product":"core","slug":"io-github-libtmux-prompt-prompt-history"},{"id":"io.github.libtmux.Prompt.Prompt.clear","name":"clear","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clear()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.clear","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.clear","product":"core","slug":"io-github-libtmux-prompt-prompt-clear"},{"id":"io.github.libtmux.query.FieldKind.FieldKind","name":"FieldKind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The value kind a field reads.","body":"Carried explicitly because exactness must not rest on the operand's runtime class. A number\nfield's operand happens to box to {@code Integer}, and reading the kind off that accident would\nsilently pick tmux's lexical comparison where the caller meant arithmetic."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","name":"TEXT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.TEXT","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-text"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","name":"NUMBER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.NUMBER","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-number"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","name":"FLAG","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.FLAG","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-flag"},{"id":"io.github.libtmux.query.FieldRef.FieldRef","name":"FieldRef","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"A named, kinded accessor.","body":"The name makes a built expression printable; the kind makes consumers independent of the\noperand's runtime class. A serializer or compiler must bind the exact handle against its own\nmodel before trusting the name to describe what the accessor reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","name":"FieldRef","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"FieldRef(String id, FieldKind kind, Function accessor)","params":[{"name":"id","type":"String"},{"name":"kind","type":"FieldKind"},{"name":"accessor","type":"Function"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.requireId","name":"requireId","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"static String requireId(String id)","params":[{"name":"id","type":"String"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.requireId","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.requireId","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-requireid"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.id","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-id"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.kind","name":"kind","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public FieldKind kind()","params":[],"returns":"FieldKind","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.kind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.kind","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-kind"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.accessor","name":"accessor","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public Function accessor()","params":[],"returns":"Function","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.accessor","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.accessor","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-accessor"},{"id":"io.github.libtmux.query.Fields.Fields","name":"Fields","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed field handles.","body":"A caller supplies each accessor, so no backend may trust the name without matching this exact\nhandle against a model it owns.\n\nEach kind exposes only the operators its type supports, so {@code Pane_.index().startsWith(..)}\nis a compile error rather than a runtime class cast. This is the half of the metamodel that has to\nexist by hand or by generator; the generator only writes the accessors, never the semantics."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields","product":"core","slug":"io-github-libtmux-query-fields-fields"},{"id":"io.github.libtmux.query.Fields.Fields.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static TextField text(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"TextField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.text","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.text","product":"core","slug":"io-github-libtmux-query-fields-fields-text"},{"id":"io.github.libtmux.query.Fields.Fields.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static NumberField number(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"NumberField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.number","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.number","product":"core","slug":"io-github-libtmux-query-fields-fields-number"},{"id":"io.github.libtmux.query.Fields.Fields.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static FlagField flag(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"FlagField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.flag","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.flag","product":"core","slug":"io-github-libtmux-query-fields-fields-flag"},{"id":"io.github.libtmux.query.Fields.Fields.toMany","name":"toMany","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToManyRef toMany(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToManyRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toMany","product":"core","slug":"io-github-libtmux-query-fields-fields-tomany"},{"id":"io.github.libtmux.query.Fields.Fields.toOne","name":"toOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToOneRef toOne(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToOneRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toOne","product":"core","slug":"io-github-libtmux-query-fields-fields-toone"},{"id":"io.github.libtmux.query.Fields.Fields.TextField","name":"TextField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record TextField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"String-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr is(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr isNot(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.contains","name":"contains","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr contains(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.contains","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.contains","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-contains"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","name":"startsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr startsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.startsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-startswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","name":"endsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr endsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.endsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-endswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr matches(Pattern value)","params":[{"name":"value","type":"Pattern"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.matches","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-matches"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr in(Collection values)","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.in","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.in","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-in"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.TextField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField","name":"NumberField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record NumberField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Integer-valued field. No text operators reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr is(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr isNot(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","name":"lessThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr lessThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.lessThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-lessthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","name":"atMost","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atMost(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atMost","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atmost"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr greaterThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.greaterThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atLeast(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atLeast","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atleast"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.NumberField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField","name":"FlagField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record FlagField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Boolean-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr is(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isNot(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","name":"isTrue","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isTrue()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isTrue","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-istrue"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","name":"isFalse","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isFalse()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isFalse","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isfalse"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.FlagField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef","name":"ToManyRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-many relation. Quantifiers are the only way in, so an unquantified relation cannot compile."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","name":"any","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany any(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.any","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-any"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany all(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.all","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-all"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","name":"none","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany none(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.none","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-none"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef","name":"ToOneRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-one relation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public FilterExpr.ToOne is(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToOne","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-is"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr","name":"FilterExpr","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"A filter that is both runnable and readable.","body":"It extends {@link Predicate}, so {@code stream().filter(expr)} works with no adapter, and it is\na sealed tree of records, so the same value can be printed, serialized, or later compiled into a\ntmux {@code -f} filter. A lambda can do the first of those and none of the rest, which is why\nnamed expressions are built from these nodes instead.\n\nEvaluation is a total function over the tree: every consumer switches exhaustively, so adding a\nnode breaks compilation at each site that has to learn about it rather than at runtime."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"String describe();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Renders the expression as inspectable text. Deliberately not {@code toString} on records."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.and","name":"and","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr and(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr and(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.and","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.and","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-12cg"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.or","name":"or","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr or(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr or(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-6b3f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","name":"negate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"@Override\n default FilterExpr negate()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"doc":{"summary":"Negation, narrowed to an expression.","body":"{@code and} and {@code or} below are deliberately *overloads* of the inherited\n{@link Predicate} methods rather than overrides: their parameter is a {@code FilterExpr}, so\ncombining two expressions stays an expression, while passing a bare lambda selects the\ninherited method and yields a plain predicate. That is the intended boundary — a lambda cannot\nbe printed or serialized, so an expression built from one must not claim to be inspectable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.negate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-negate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And","name":"And","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record And(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Conjunction. An empty conjunction is true, which is what makes it a safe identity."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-b05l"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","name":"Or","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Or(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Disjunction. An empty disjunction is false."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-9f1f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","name":"Not","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Not(FilterExpr operand) implements FilterExpr","params":[{"name":"operand","type":"FilterExpr"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","name":"Compare","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Compare(FieldRef field, Operator operator, Object operand) implements FilterExpr","params":[{"name":"field","type":"FieldRef"},{"name":"operator","type":"Operator"},{"name":"operand","type":"Object"}],"typeParamNames":["T","V"],"typeParams":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}]}],"typeScopeBoundary":true,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"One scalar field compared to one operand."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.equals","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-equals"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.hashCode","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-hashcode"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","name":"field","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.field","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-field"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","name":"operator","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Operator"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operator"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Object"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","name":"ToMany","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToMany(Fields.ToManyRef relation, Quantifier quantifier, FilterExpr predicate)\n implements FilterExpr","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"quantifier","type":"Quantifier"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A quantified filter over a to-many relation.","body":"{@code ALL} over an empty relation is true. That is the standard vacuous reading and it is\nthe one tmux users expect: a session with no windows does not fail \"all windows are zoomed\"."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToManyRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","name":"quantifier","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Quantifier"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","name":"ToOne","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToOne(Fields.ToOneRef relation, FilterExpr predicate) implements FilterExpr","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A to-one relation. An absent target does not satisfy the filter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToOneRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","name":"Quantifier","kind":"enum","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","name":"ANY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ANY","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-any"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","name":"ALL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ALL","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-all"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","name":"NONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.NONE","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-none"},{"id":"io.github.libtmux.query.Operator.Operator","name":"Operator","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The scalar comparisons an expression can hold. Evaluation stays a total switch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.EQUALS","name":"EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-equals"},{"id":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","name":"NOT_EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.NOT_EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-not_equals"},{"id":"io.github.libtmux.query.Operator.Operator.CONTAINS","name":"CONTAINS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.CONTAINS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.CONTAINS","product":"core","slug":"io-github-libtmux-query-operator-operator-contains"},{"id":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","name":"STARTS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.STARTS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-starts_with"},{"id":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","name":"ENDS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.ENDS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-ends_with"},{"id":"io.github.libtmux.query.Operator.Operator.MATCHES","name":"MATCHES","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.MATCHES","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.MATCHES","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-1lrg"},{"id":"io.github.libtmux.query.Operator.Operator.LESS_THAN","name":"LESS_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.LESS_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.LESS_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-less_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_MOST","name":"AT_MOST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_MOST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_MOST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_most"},{"id":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","name":"GREATER_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.GREATER_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-greater_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_LEAST","name":"AT_LEAST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_LEAST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_LEAST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_least"},{"id":"io.github.libtmux.query.Operator.Operator.IN","name":"IN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.IN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.IN","product":"core","slug":"io-github-libtmux-query-operator-operator-in"},{"id":"io.github.libtmux.query.Operator.Operator.Operator","name":"Operator","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"Operator(String symbol)","params":[{"name":"symbol","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.symbol","name":"symbol","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"public String symbol()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.symbol","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.symbol","product":"core","slug":"io-github-libtmux-query-operator-operator-symbol"},{"id":"io.github.libtmux.query.Operator.Operator.requireOperand","name":"requireOperand","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"void requireOperand(FieldKind kind, Object operand)","params":[{"name":"kind","type":"FieldKind"},{"name":"operand","type":"Object"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.requireOperand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.requireOperand","product":"core","slug":"io-github-libtmux-query-operator-operator-requireoperand"},{"id":"io.github.libtmux.query.Operator.Operator.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"@SuppressWarnings(\"unchecked\")\n boolean matches(Object actual, Object operand)","params":[{"name":"actual","type":"Object"},{"name":"operand","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.matches","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-80y7"},{"id":"io.github.libtmux.query.Selections.Selections","name":"Selections","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Cardinality with the ambiguity removed.","body":"\"No session matched\" and \"several sessions matched\" are different bugs in a caller's code, so\nthey get different exceptions. {@code findFirst} stays on {@link java.util.stream.Stream} where it\nalready belongs; only the strict shapes need helpers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections","product":"core","slug":"io-github-libtmux-query-selections-selections"},{"id":"io.github.libtmux.query.Selections.Selections.exactlyOne","name":"exactlyOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static T exactlyOne(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one did; the scan stops at the second match, so its count is two"}]}],"doc":{"summary":"The single match, or a failure naming which way the count was wrong."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.exactlyOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.exactlyOne","product":"core","slug":"io-github-libtmux-query-selections-selections-exactlyone"},{"id":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","name":"oneOrEmpty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static Optional oneOrEmpty(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one matched"}]}],"doc":{"summary":"The single match if there is one, empty if there is none — but still a failure for several.","body":"Returning the first of many would make a caller's ambiguous query look answered."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.oneOrEmpty","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","product":"core","slug":"io-github-libtmux-query-selections-selections-oneorempty"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters","name":"TmuxFilters","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Lowers a {@link FilterExpr} to a tmux {@code -f} format when every node is one tmux can apply.","body":"Relations, a Java regular expression, and any operand containing {@code ,}, `#`,\n`{`, `}`, {@code :}, or a backslash, are refused. Those stay a local filter over a capture. tmux\ncompiles {@code #{m/r:}} with its own dialect, so a pattern Java would match can select nothing.\nA compiled format is a hint to tmux, not a promise that the local reading would differ: callers\nstill apply the expression to the rows that come back."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","name":"format","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static Optional format(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"A tmux format for {@code -f}, or empty when this expression is not a safe subset."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.format","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-format"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static boolean literal(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this text can sit inside a tmux format argument without changing its shape. A backslash escapes the next character in a format, so a trailing one swallows the closing brace."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.literal","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-literal"},{"id":"io.github.libtmux.Server.Server","name":"Server","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use {@link #open} with a {@link ServerConfig} to select a server by socket name or path.\nFrom this object, create sessions or query the server's existing sessions, windows, and panes.\nEach {@link Session} contains windows, and each {@link Window} contains panes.\n\nOwnership is decided at construction and never inferred. {@link #open} creates a transport this\nserver closes exactly once; {@link #using} borrows one the caller keeps, so several servers can\nshare a transport and closing one leaves the others working.\n\nClosing this object releases its owned transport. The tmux server and its sessions keep\nrunning. Call {@link #killServer()} to stop the tmux server.\n\nClose it anyway. A server that owns its transport holds the threads that drain tmux's output,\nand those are not daemons, so that a reply being read when a program ends is finished rather than\ntruncated. They do let go once they have been idle, so forgetting to close delays a JVM's exit by\nseconds instead of preventing it — but only closing releases them at once.\n\n**Threads.** Share one freely. A server holds nothing a call changes, its transport\nis thread-safe by contract, and the record of what was typed into each pane is concurrent; calls\nfrom several threads run side by side, bounded by the transport's own admission. The same goes\nfor every {@link Session}, {@link Window} and {@link Pane} it hands out: each is an immutable view\nof one capture, and a method that changes tmux changes tmux rather than the handle. Close it once,\nafter the last call on any thread.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server","product":"core","slug":"io-github-libtmux-server-server"},{"id":"io.github.libtmux.Server.Server.echo","name":"echo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"PaneEcho echo()","params":[],"returns":"PaneEcho","typeScopeBoundary":false}],"doc":{"summary":"What this library last typed into each of this server's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.echo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.echo","product":"core","slug":"io-github-libtmux-server-server-echo"},{"id":"io.github.libtmux.Server.Server.capture","name":"capture","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"SnapshotCapture capture()","params":[],"returns":"SnapshotCapture","typeScopeBoundary":false}],"doc":{"summary":"How this server's own hierarchy is read back, for helpers that need one listing directly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.capture","product":"core","slug":"io-github-libtmux-server-server-capture"},{"id":"io.github.libtmux.Server.Server.newSession","name":"newSession","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(SessionSpec spec)","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Creates a detached session and returns that exact session.","body":"tmux reports which session it made, so the result is exact even when another session\nalready carries the same name.\n\nKeep {@code :} and {@code .} out of the name. tmux decides what to do with them and changes\nits mind across the supported range: 3.2a through 3.6 rewrite each one to {@code _}, 3.7\nrefuses the name, and 3.7a onwards keeps it — where a bare {@code -t} target still misreads the\ndelimiter, so {@link #hasSession} and {@link #killSession} resolve the id by comparing names\ninstead of building one. {@link Session#name()} reports what tmux settled on.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewSession.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewSession.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport java.nio.file.Path;\n\n/** Create a session running cat. */\npublic final class NewSession {\n private NewSession() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + session.name());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.newSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.newSession","product":"core","slug":"io-github-libtmux-server-server-newsession"},{"id":"io.github.libtmux.Server.Server.hasSession","name":"hasSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean hasSession(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hasSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hasSession","product":"core","slug":"io-github-libtmux-server-server-hassession"},{"id":"io.github.libtmux.Server.Server.killSession","name":"killSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killSession(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if no session carries the name"}]}],"doc":{"summary":"Ends the session with this name, and everything in it.","body":"The name is matched exactly. tmux would otherwise take a prefix, so asking to kill\n{@code build} could end {@code build-cache} instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killSession","product":"core","slug":"io-github-libtmux-server-server-killsession"},{"id":"io.github.libtmux.Server.Server.isAlive","name":"isAlive","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false},{"raw":"@Operation(Kind.READ)\n public boolean isAlive(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to wait for an answer before treating the server as unreachable"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the server is running and answering.","body":"Returns false when tmux refuses the probe. Transport failures still throw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.isAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.isAlive","product":"core","slug":"io-github-libtmux-server-server-isalive"},{"id":"io.github.libtmux.Server.Server.requireAlive","name":"requireAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public void requireAlive()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is there to answer"},{"type":"LibTmuxException","doc":"if one is, and could not be reached — a socket this user cannot open, or a binary that is not tmux, which starting a server would not fix"}]}],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireAlive","product":"core","slug":"io-github-libtmux-server-server-requirealive"},{"id":"io.github.libtmux.Server.Server.failed","name":"failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"LibTmuxException failed(String command, CommandResult result)","params":[{"name":"command","type":"String"},{"name":"result","type":"CommandResult"}],"returns":"LibTmuxException","typeScopeBoundary":false},{"raw":"LibTmuxException failed(String command, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"status","type":"String"},{"name":"stderr","type":"List"}],"returns":"LibTmuxException","typeScopeBoundary":false}],"doc":{"summary":"One sentence for a tmux command that did not succeed.","body":"Built in one place because a message that omits the exit status, or says nothing at all\nwhen tmux printed nothing, is how a misconfigured binary reads as a tmux that simply refused:\npointing a server at {@code /bin/false} used to raise \"tmux display-message failed: \" and\nstop there."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failed","product":"core","slug":"io-github-libtmux-server-server-failed"},{"id":"io.github.libtmux.Server.Server.failure","name":"failure","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static String failure(String command, String binary, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"binary","type":"String"},{"name":"status","type":"String","doc":"how the command ended, as an exit code or, inside a group, tmux's own outcome for it — a batch reports which of its commands never ran, which no single exit code says"},{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failure","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failure","product":"core","slug":"io-github-libtmux-server-server-failure"},{"id":"io.github.libtmux.Server.Server.serverAbsent","name":"serverAbsent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static boolean serverAbsent(String message)","params":[{"name":"message","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether a failed command's stderr says the daemon itself is gone, rather than refusing the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.serverAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.serverAbsent","product":"core","slug":"io-github-libtmux-server-server-serverabsent"},{"id":"io.github.libtmux.Server.Server.killServer","name":"killServer","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killServer()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void killServer(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to allow for each of the two commands"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the tmux server and every session on it.","body":"Deliberately explicit and deliberately not what {@link #close()} does: closing a client is\nnot a reason to end everyone else's sessions.\n\nKilling a server that has already gone is not a failure. Which is harder to detect than it\nsounds: tmux answers a doomed request with {@code no server running} most of the time, but\nwith {@code server exited unexpectedly} when it reaches a socket whose server is still\nexiting — on every release from 3.3a onwards, and on one in five attempts on 3.7. So the\npostcondition is checked rather than the wording, which has changed before and says nothing\na second look cannot answer better."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killServer","product":"core","slug":"io-github-libtmux-server-server-killserver"},{"id":"io.github.libtmux.Server.Server.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects several commands to run in one tmux invocation.","body":"Each operation gets its own outcome. tmux discards a group after the first failure, so a\nsingle exit status cannot say which command failed or which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.batch","product":"core","slug":"io-github-libtmux-server-server-batch"},{"id":"io.github.libtmux.Server.Server.chain","name":"chain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain chain()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs, so a chain needs no round trip to learn\nthe id of a window or pane it just created."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.chain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.chain","product":"core","slug":"io-github-libtmux-server-server-chain"},{"id":"io.github.libtmux.Server.Server.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to.","body":"The server-wide counterpart to {@link Pane#expand}: fields such as {@code #{pid}} and\n{@code #{version}} that belong to no session in particular."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":412,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.expand","product":"core","slug":"io-github-libtmux-server-server-expand"},{"id":"io.github.libtmux.Server.Server.printed","name":"printed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult printed(@Nullable ServerSnapshot snapshot, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one read with the server's version printed first in the same invocation, and answers with its output as tmux held the text, and without that version line. Line breaks at the end of the output are kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":424,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.printed","product":"core","slug":"io-github-libtmux-server-server-printed"},{"id":"io.github.libtmux.Server.Server.shell","name":"shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Shell shell()","params":[],"returns":"Shell","typeScopeBoundary":false}],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":433,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.shell","product":"core","slug":"io-github-libtmux-server-server-shell"},{"id":"io.github.libtmux.Server.Server.commands","name":"commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Commands commands()","params":[],"returns":"Commands","typeScopeBoundary":false}],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.commands","product":"core","slug":"io-github-libtmux-server-server-commands"},{"id":"io.github.libtmux.Server.Server.lock","name":"lock","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lock()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":445,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.lock","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.lock","product":"core","slug":"io-github-libtmux-server-server-lock"},{"id":"io.github.libtmux.Server.Server.messageLog","name":"messageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public MessageLog messageLog()","params":[],"returns":"MessageLog","typeScopeBoundary":false}],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":451,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.messageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.messageLog","product":"core","slug":"io-github-libtmux-server-server-messagelog"},{"id":"io.github.libtmux.Server.Server.prompt","name":"prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Prompt prompt()","params":[],"returns":"Prompt","typeScopeBoundary":false}],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.prompt","product":"core","slug":"io-github-libtmux-server-server-prompt"},{"id":"io.github.libtmux.Server.Server.withoutStartingServer","name":"withoutStartingServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult withoutStartingServer(List command)","params":[{"name":"command","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a read that tmux would otherwise answer by starting a daemon.","body":"{@code list-keys} and {@code list-commands} are answered from the binary's own tables, and\ntmux starts a server to do it rather than reporting that there is none — so reading the key\nbindings of an endpoint nothing serves left a daemon behind, which is the opposite of a read.\n{@code -N} says not to, on every supported release, and tmux then reports the absent server\nthe way every other read does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.withoutStartingServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.withoutStartingServer","product":"core","slug":"io-github-libtmux-server-server-withoutstartingserver"},{"id":"io.github.libtmux.Server.Server.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Channel channel(String name)","params":[{"name":"name","type":"String"}],"returns":"Channel","typeScopeBoundary":false}],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":483,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.channel","product":"core","slug":"io-github-libtmux-server-server-channel"},{"id":"io.github.libtmux.Server.Server.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.variables","product":"core","slug":"io-github-libtmux-server-server-variables"},{"id":"io.github.libtmux.Server.Server.paneFields","name":"paneFields","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> paneFields(List names)","params":[{"name":"names","type":"List","doc":"tmux format variable names, at most 32"}],"returns":"Map>","typeScopeBoundary":false,"returnsDoc":"each pane's values keyed by the names asked for, in tmux's pane order","raises":[{"type":"IllegalArgumentException","doc":"if a name is not a tmux variable name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the listing otherwise fails"}]}],"doc":{"summary":"Chosen fields for every pane on the server, from one listing.","body":"For what a capture does not carry — {@code pane_tty}, {@code pane_dead_status}, {@code\npane_start_command}, any of tmux's pane formats. Asking each pane is a tmux process per pane\nand a view no single moment held; this is one {@code list-panes}, so every value is from the\nsame instant.","examples":[{"lang":"java","code":"Map> ttys = server.paneFields(List.of(\"pane_tty\", \"pane_dead\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":530,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.paneFields","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.paneFields","product":"core","slug":"io-github-libtmux-server-server-panefields"},{"id":"io.github.libtmux.Server.Server.awaitChannel","name":"awaitChannel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"WakeReason awaitChannel(String channel, Duration timeout, boolean reserveSignalCapacity)\n throws InterruptedException","params":[{"name":"channel","type":"String"},{"name":"timeout","type":"Duration"},{"name":"reserveSignalCapacity","type":"boolean"}],"returns":"WakeReason","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.awaitChannel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.awaitChannel","product":"core","slug":"io-github-libtmux-server-server-awaitchannel"},{"id":"io.github.libtmux.Server.Server.keys","name":"keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys keys()","params":[],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":608,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.keys","product":"core","slug":"io-github-libtmux-server-server-keys"},{"id":"io.github.libtmux.Server.Server.buffers","name":"buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Buffers buffers()","params":[],"returns":"Buffers","typeScopeBoundary":false}],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":614,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.buffers","product":"core","slug":"io-github-libtmux-server-server-buffers"},{"id":"io.github.libtmux.Server.Server.sourceFile","name":"sourceFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sourceFile(Path file)","params":[{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux could not read or run it"}]}],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":624,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sourceFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sourceFile","product":"core","slug":"io-github-libtmux-server-server-sourcefile"},{"id":"io.github.libtmux.Server.Server.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.options","product":"core","slug":"io-github-libtmux-server-server-options"},{"id":"io.github.libtmux.Server.Server.globalOptions","name":"globalOptions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options globalOptions()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":636,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.globalOptions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.globalOptions","product":"core","slug":"io-github-libtmux-server-server-globaloptions"},{"id":"io.github.libtmux.Server.Server.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"The server's environment, which every session inherits and every new process is given.","body":"Set here to change what a pane opened later sees — a refreshed {@code SSH_AUTH_SOCK} after\nreconnecting, say. A pane already running has its own copy and is not affected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":647,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.environment","product":"core","slug":"io-github-libtmux-server-server-environment"},{"id":"io.github.libtmux.Server.Server.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hooks","product":"core","slug":"io-github-libtmux-server-server-hooks"},{"id":"io.github.libtmux.Server.Server.version","name":"version","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public TmuxVersion version()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Which tmux this server is running.","body":"Asked of the running server rather than of the binary, because the server may have been\nstarted by a different build than the one this client is invoking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":666,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.version","product":"core","slug":"io-github-libtmux-server-server-version"},{"id":"io.github.libtmux.Server.Server.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":678,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.identity","product":"core","slug":"io-github-libtmux-server-server-identity"},{"id":"io.github.libtmux.Server.Server.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":683,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameServer","product":"core","slug":"io-github-libtmux-server-server-requiresameserver"},{"id":"io.github.libtmux.Server.Server.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":687,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameIncarnation","product":"core","slug":"io-github-libtmux-server-server-requiresameincarnation"},{"id":"io.github.libtmux.Server.Server.open","name":"open","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server open(ServerConfig config)","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.open","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.open","product":"core","slug":"io-github-libtmux-server-server-open"},{"id":"io.github.libtmux.Server.Server.using","name":"using","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server using(ServerConfig config, TmuxTransport transport)","params":[{"name":"config","type":"ServerConfig"},{"name":"transport","type":"TmuxTransport"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport the caller owns. Closing this server never closes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.using","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.using","product":"core","slug":"io-github-libtmux-server-server-using"},{"id":"io.github.libtmux.Server.Server.within","name":"within","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public Server within(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Server","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the timeout is not positive"}]}],"doc":{"summary":"This server, with every command bounded by a deadline of the caller's choosing.","body":"The per-call deadline. Every read and change made through the result, and through every\nhandle taken from it, gives tmux this long rather than the server's default:\n\nShares this server's transport, so it has the same identity and its handles compare equal\nto this server's; closing it releases nothing. {@link #toBuilder} is not how to spell this: a\nserver that owns its transport hands a derived server a transport of its own, which a caller\nbounding many calls would multiply.","examples":[{"lang":"java","code":"List screen = server.within(Duration.ofMillis(500)).panes().get(0).capture();"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.within","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.within","product":"core","slug":"io-github-libtmux-server-server-within"},{"id":"io.github.libtmux.Server.Server.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":747,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.builder","product":"core","slug":"io-github-libtmux-server-server-builder-3ftd"},{"id":"io.github.libtmux.Server.Server.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":753,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.config","product":"core","slug":"io-github-libtmux-server-server-config"},{"id":"io.github.libtmux.Server.Server.cmd","name":"cmd","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional","doc":"the tmux command and its arguments, each already a separate element"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the result, in which a nonzero exit is data rather than a failure"},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv, Duration timeout)","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.cmd","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.cmd","product":"core","slug":"io-github-libtmux-server-server-cmd"},{"id":"io.github.libtmux.Server.Server.control","name":"control","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session)","params":[{"name":"session","type":"Session","doc":"a session captured from this server"}],"returns":"ControlClient","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if that process is no longer the one on this socket"},{"type":"IllegalArgumentException","doc":"if the session belongs to another server"},{"type":"IllegalStateException","doc":"if this server is closed, or its transport starts no control client"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session, Duration timeout)","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":false}],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named.","body":"The client is started by this server's transport. A transport that cannot start processes\nfails here rather than attaching on the local machine. The process id is checked before the\nclient starts and again on the client itself; a server that has taken over the socket is\ndetached before this client changes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":815,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.control","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.control","product":"core","slug":"io-github-libtmux-server-server-control"},{"id":"io.github.libtmux.Server.Server.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a listing otherwise fails or the listings cannot form one valid snapshot"}]}],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nA failed read throws, including when no daemon is running. An empty graph means a live\nserver successfully reported no sessions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":875,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.snapshot","product":"core","slug":"io-github-libtmux-server-server-snapshot"},{"id":"io.github.libtmux.Server.Server.sessions","name":"sessions","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The sessions this expression matches, captured now.","body":"A safe expression is sent as {@code list-sessions -f}. The sessions that come back are still\ntested with the expression. A relation, or an expression tmux cannot apply, reads the whole server and\nfilters that capture; a filtered read that finds nothing is the answer.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListSessions.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListSessions.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List the sessions returned by a server read. */\npublic final class ListSessions {\n private ListSessions() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"sessions=\"\n + server.sessions().stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Query.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Query.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.Session_;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Select sessions with a typed name filter. */\npublic final class Query {\n private Query() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var matches = server.sessions(Session_.name().is(\"work-one\"));\n System.out.println(\"matches=\"\n + matches.stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":901,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sessions","product":"core","slug":"io-github-libtmux-server-server-sessions"},{"id":"io.github.libtmux.Server.Server.windows","name":"windows","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(WindowId id)","params":[{"name":"id","type":"WindowId"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order, empty if the window was not found","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":936,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.windows","product":"core","slug":"io-github-libtmux-server-server-windows"},{"id":"io.github.libtmux.Server.Server.panes","name":"panes","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":974,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.panes","product":"core","slug":"io-github-libtmux-server-server-panes"},{"id":"io.github.libtmux.Server.Server.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional session(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matches; its count is exact, since the whole capture is in hand"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does.","body":"Reads as {@link #sessions(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1014,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.session","product":"core","slug":"io-github-libtmux-server-server-session"},{"id":"io.github.libtmux.Server.Server.window","name":"window","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional window(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does.","body":"Reads as {@link #windows(FilterExpr)} does. A window linked into two sessions is two links,\nso an expression naming it matches twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1028,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.window","product":"core","slug":"io-github-libtmux-server-server-window"},{"id":"io.github.libtmux.Server.Server.pane","name":"pane","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional pane(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional pane(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does.","body":"Reads as {@link #panes(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1041,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.pane","product":"core","slug":"io-github-libtmux-server-server-pane"},{"id":"io.github.libtmux.Server.Server.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1064,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.admissionBound","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.admissionBound","product":"core","slug":"io-github-libtmux-server-server-admissionbound"},{"id":"io.github.libtmux.Server.Server.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.clients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.clients","product":"core","slug":"io-github-libtmux-server-server-clients"},{"id":"io.github.libtmux.Server.Server.attachedSessions","name":"attachedSessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List attachedSessions()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.attachedSessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.attachedSessions","product":"core","slug":"io-github-libtmux-server-server-attachedsessions"},{"id":"io.github.libtmux.Server.Server.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult run(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux reported a nonzero exit"}]}],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not.","body":"The counterpart to {@link #cmd}: use this when a nonzero exit means the thing you asked for\ndid not happen, and {@code cmd} when a nonzero exit is an answer you want to inspect. tmux\nreports an ordinary miss and a real problem the same way, so only the caller knows which it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.run","product":"core","slug":"io-github-libtmux-server-server-run"},{"id":"io.github.libtmux.Server.Server.runTogether","name":"runTogether","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult runTogether(ServerSnapshot snapshot, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult runTogether(ServerSnapshot snapshot, String input, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"input","type":"String"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs several commands in one invocation, so nothing of this caller's happens between them.","body":"tmux carries a group to its server as one message and runs it there, so a caller that stops\npartway cannot leave the group half applied. That is what an operation whose second command\ncleans up after its first needs."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.runTogether","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.runTogether","product":"core","slug":"io-github-libtmux-server-server-runtogether"},{"id":"io.github.libtmux.Server.Server.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"ServerSnapshot refresh(ServerSnapshot previous)","params":[{"name":"previous","type":"ServerSnapshot"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.refresh","product":"core","slug":"io-github-libtmux-server-server-refresh"},{"id":"io.github.libtmux.Server.Server.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.toBuilder","product":"core","slug":"io-github-libtmux-server-server-tobuilder"},{"id":"io.github.libtmux.Server.Server.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1300,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.close","product":"core","slug":"io-github-libtmux-server-server-close"},{"id":"io.github.libtmux.Server.Server.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.Server.Server","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects configuration and the ownership choice, then builds a server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1312,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder","product":"core","slug":"io-github-libtmux-server-server-builder-dv7l"},{"id":"io.github.libtmux.Server.Server.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1323,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.binary","product":"core","slug":"io-github-libtmux-server-server-builder-binary"},{"id":"io.github.libtmux.Server.Server.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.endpoint","product":"core","slug":"io-github-libtmux-server-server-builder-endpoint"},{"id":"io.github.libtmux.Server.Server.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1335,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.configFile","product":"core","slug":"io-github-libtmux-server-server-builder-configfile"},{"id":"io.github.libtmux.Server.Server.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-server-server-builder-defaulttimeout"},{"id":"io.github.libtmux.Server.Server.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support; false preserves terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.force256Colors","product":"core","slug":"io-github-libtmux-server-server-builder-force256colors"},{"id":"io.github.libtmux.Server.Server.Builder.transport","name":"transport","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder transport(TmuxTransport transport)","params":[{"name":"transport","type":"TmuxTransport"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Borrows a caller-owned transport, which the built server will never close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.transport","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.transport","product":"core","slug":"io-github-libtmux-server-server-builder-transport"},{"id":"io.github.libtmux.Server.Server.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Server build()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"Builds the server, owning a new transport unless one was borrowed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.build","product":"core","slug":"io-github-libtmux-server-server-builder-build"},{"id":"io.github.libtmux.ServerConfig.ServerConfig","name":"ServerConfig","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a server needs to know before it runs anything: which tmux, which server, which config.","body":"Deliberately a builder-built class rather than a record. tmux keeps growing flags, and a\nrecord's canonical constructor is public API: every field added later would break both source and\nbinary compatibility for anyone who had constructed one.\n\nNothing here contacts tmux. A config can be built, stored and compared on a machine that has\nno tmux installed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-yotf"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binary()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux executable, resolved on {@code PATH} unless it is an absolute path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","name":"binaryPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binaryPath()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The binary as a path, resolved the way this process resolves it.","body":"What to write into a command a pane will run. A pane resolves a bare name against the\nuser's {@code PATH} rather than this process's, and a tmux client built from a different\nrelease than the server it reaches is dropped rather than served. Falls back to the name when\nnothing on {@code PATH} matches, which leaves the caller no worse off."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binaryPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binarypath"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public ServerEndpoint endpoint()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":false}],"doc":{"summary":"Which tmux server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Optional configFile()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The config file tmux should read, if the caller pinned one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Duration defaultTimeout()","params":[],"returns":"Duration","typeScopeBoundary":false}],"doc":{"summary":"How long a request waits when the caller does not say."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public boolean force256Colors()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux clients advertise 256-color support regardless of terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public OperationObserver observer()","params":[],"returns":"OperationObserver","typeScopeBoundary":false}],"doc":{"summary":"Where each command's report goes. {@link OperationObserver#NONE} until a caller sets one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","name":"endpointCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"@ReadOnly\n public List endpointCommand()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The argv prefix every command on this server begins with: the binary, {@code -u}, optional color flag, the server selection, and the config file if one was pinned.","body":"{@code -u} says this client reads UTF-8. Without it tmux decides from {@code LC_ALL},\n{@code LC_CTYPE} and {@code LANG}, and a client it judges not to be UTF-8 has every non-ASCII\ncharacter in every reply replaced with {@code _} before it is sent — so a session named\n{@code café} reads back as {@code caf_}, and a pane's directory becomes a path that does not\nexist. The flag is in tmux's option string on every supported release.\n\nDeliberately the flag rather than {@code LC_ALL} in the child's environment, which would\nreach the same conclusion and then be inherited by every pane the server spawns from this\nclient."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpointCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpointcommand"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public int maxConcurrentCommands()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many tmux commands {@link Server#open} lets run at once; more wait their turn.","body":"A coroutine dispatcher or effect pool that runs blocking calls for this server gains nothing\nfrom more threads than this: the rest would only wait for admission."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every choice this config made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-tobuilder"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices; {@link #build()} checks them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-ly8z"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads, which is how a test isolates itself from a user's own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":195,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support with tmux's {@code -2}; false uses terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder observer(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command. The report names verbs, not arguments."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder maxConcurrentCommands(int maxConcurrentCommands)","params":[{"name":"maxConcurrentCommands","type":"int"}],"returns":"Builder","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code maxConcurrentCommands} is not positive"}]}],"doc":{"summary":"Sets how many tmux commands {@link Server#open} lets run at once, four unless set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public ServerConfig build()","params":[],"returns":"ServerConfig","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if a choice would only fail later"}]}],"doc":{"summary":"Builds an immutable config, rejecting choices that could only fail later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-build"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint","name":"ServerEndpoint","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server to talk to.","body":"A value, decided and comparable before any process runs. Two endpoints are equal when they name\nthe same server lexically; nothing here resolves symlinks, contacts the filesystem, or opens a\nsocket. That matters because an endpoint is routinely built, logged and compared while the socket\nit names does not exist yet.\n\nValidation that needs tmux — above all whether a socket path fits the platform's\n{@code sun_path} — happens at dispatch, where the error can carry the command that hit it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"@ReadOnly\n List flags();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The flags that select this server, in argv order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","name":"defaultSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint defaultSocket()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"tmux's own default server, wherever tmux decides that is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.defaultSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-defaultsocket"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","name":"namedSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint namedSocket(String name)","params":[{"name":"name","type":"String"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server named with {@code -L}, resolved by tmux under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.namedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-uymy"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","name":"socketPath","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint socketPath(Path path)","params":[{"name":"path","type":"Path"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server at an exact socket path, selected with {@code -S}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.socketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-l4dk"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","name":"Default","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record Default() implements ServerEndpoint","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Adds no flags, so tmux applies its own default socket resolution."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","name":"NamedSocket","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record NamedSocket(String name) implements ServerEndpoint","params":[{"name":"name","type":"String","doc":"a bare name, with no path separator"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server tmux locates by name under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-1lu0"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","name":"name","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"a bare name, with no path separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-name"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","name":"SocketPath","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record SocketPath(Path path) implements ServerEndpoint","params":[{"name":"path","type":"Path","doc":"the socket path, anchored and lexically normalized so equal sockets compare equal"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server at an exact socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-1obc"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the socket path, anchored and lexically normalized so equal sockets compare equal"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-path"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity","name":"ServerIdentity","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server a handle belongs to.","body":"Two entities with the same id are the same entity only if they came from the same server. The\nrealm exists because socket text alone is not enough: two unrelated execution realms — a local\nprocess and a container, say — can both hold a server at {@code /tmp/s}, and entities from them\nmust not compare equal.\n\nThe server is identified by a digest of its endpoint rather than by the endpoint itself, so an\nidentity can be logged, compared and embedded in a message without carrying a socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"static ServerIdentity of(String realm, ServerEndpoint endpoint)","params":[{"name":"realm","type":"String"},{"name":"endpoint","type":"ServerEndpoint"}],"returns":"ServerIdentity","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.of","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-of"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.at","name":"at","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"ServerIdentity at(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"This server as one process: a pid alone can be reused, so its start time is part of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.at","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.at","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-at"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String realm()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The execution realm the transport reaches tmux through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.realm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-realm"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String server()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"A stable opaque key for the server, carrying no socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.server","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-server"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","name":"processId","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public OptionalLong processId()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The live tmux process, present on an identity bound to a captured handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.processId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-processid"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-equals"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-hashcode"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-tostring"},{"id":"io.github.libtmux.Session.Session","name":"Session","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux session, as one capture saw it.","body":"Identity is the server and the session id. A name is state: a user can rename a session at any\ntime, and a handle whose equality included the name would stop matching itself the moment they\ndid.\n\n{@link #windows()} reads the capture this handle came from and issues no command. To see newer\nstate, take a new capture.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session","product":"core","slug":"io-github-libtmux-session-session"},{"id":"io.github.libtmux.Session.Session.Session","name":"Session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"Session(Server server, ServerSnapshot snapshot, SessionState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"SessionState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.Session","product":"core","slug":"io-github-libtmux-session-session-session"},{"id":"io.github.libtmux.Session.Session.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionState info()","params":[],"returns":"SessionState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.info","product":"core","slug":"io-github-libtmux-session-session-info"},{"id":"io.github.libtmux.Session.Session.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionId id()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.id","product":"core","slug":"io-github-libtmux-session-session-id"},{"id":"io.github.libtmux.Session.Session.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.name","product":"core","slug":"io-github-libtmux-session-session-name"},{"id":"io.github.libtmux.Session.Session.attached","name":"attached","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean attached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.attached","product":"core","slug":"io-github-libtmux-session-session-attached"},{"id":"io.github.libtmux.Session.Session.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.server","product":"core","slug":"io-github-libtmux-session-session-server"},{"id":"io.github.libtmux.Session.Session.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.snapshot","product":"core","slug":"io-github-libtmux-session-session-snapshot"},{"id":"io.github.libtmux.Session.Session.activeWindow","name":"activeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activeWindow()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activeWindow","product":"core","slug":"io-github-libtmux-session-session-activewindow"},{"id":"io.github.libtmux.Session.Session.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activePane","product":"core","slug":"io-github-libtmux-session-session-activepane"},{"id":"io.github.libtmux.Session.Session.selectWindow","name":"selectWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectWindow(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.selectWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.selectWindow","product":"core","slug":"io-github-libtmux-session-session-selectwindow"},{"id":"io.github.libtmux.Session.Session.nextWindow","name":"nextWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.nextWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.nextWindow","product":"core","slug":"io-github-libtmux-session-session-nextwindow"},{"id":"io.github.libtmux.Session.Session.previousWindow","name":"previousWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.previousWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.previousWindow","product":"core","slug":"io-github-libtmux-session-session-previouswindow"},{"id":"io.github.libtmux.Session.Session.lastWindow","name":"lastWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lastWindow()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if nothing else has been active yet, which tmux reports rather than silently staying put"}]}],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.lastWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.lastWindow","product":"core","slug":"io-github-libtmux-session-session-lastwindow"},{"id":"io.github.libtmux.Session.Session.detachClients","name":"detachClients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachClients()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.detachClients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.detachClients","product":"core","slug":"io-github-libtmux-session-session-detachclients"},{"id":"io.github.libtmux.Session.Session.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.options","product":"core","slug":"io-github-libtmux-session-session-options"},{"id":"io.github.libtmux.Session.Session.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.environment","product":"core","slug":"io-github-libtmux-session-session-environment"},{"id":"io.github.libtmux.Session.Session.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hooks","product":"core","slug":"io-github-libtmux-session-session-hooks"},{"id":"io.github.libtmux.Session.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setHistoryLimit(int lines)","params":[{"name":"lines","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.setHistoryLimit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.setHistoryLimit","product":"core","slug":"io-github-libtmux-session-session-sethistorylimit"},{"id":"io.github.libtmux.Session.Session.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.windows","product":"core","slug":"io-github-libtmux-session-session-windows"},{"id":"io.github.libtmux.Session.Session.newWindow","name":"newWindow","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(String name)","params":[{"name":"name","type":"String","doc":"the window name"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(WindowSpec spec)","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"}],"doc":{"summary":"Creates a window in this session and returns that exact window.","body":"The creating command reports which window it made, rather than the name being looked up\nafterwards: two windows may share a name, and then a lookup cannot say which one is new.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewWindow.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewWindow.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.WindowSpec;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Create a window and read the updated session. */\npublic final class NewWindow {\n private NewWindow() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.newWindow(WindowSpec.builder()\n .named(\"api-window\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + window.name());\n var refreshed = server.session(\"work-one\").orElseThrow();\n System.out.println(\"windows=\"\n + refreshed.windows().stream()\n .map(item -> item.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":186,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.newWindow","product":"core","slug":"io-github-libtmux-session-session-newwindow"},{"id":"io.github.libtmux.Session.Session.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.expand","product":"core","slug":"io-github-libtmux-session-session-expand"},{"id":"io.github.libtmux.Session.Session.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Session rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"Renames this session and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.rename","product":"core","slug":"io-github-libtmux-session-session-rename"},{"id":"io.github.libtmux.Session.Session.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this session. Every window in it goes with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.kill","product":"core","slug":"io-github-libtmux-session-session-kill"},{"id":"io.github.libtmux.Session.Session.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Session refresh()","params":[],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the session is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this session as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.refresh","product":"core","slug":"io-github-libtmux-session-session-refresh"},{"id":"io.github.libtmux.Session.Session.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":291,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.equals","product":"core","slug":"io-github-libtmux-session-session-equals"},{"id":"io.github.libtmux.Session.Session.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hashCode","product":"core","slug":"io-github-libtmux-session-session-hashcode"},{"id":"io.github.libtmux.Session.Session.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.toString","product":"core","slug":"io-github-libtmux-session-session-tostring"},{"id":"io.github.libtmux.SessionCreation.SessionCreation","name":"SessionCreation","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Assembles the pieces {@link Server#newSession(SessionSpec)} needs before tmux has a session yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","name":"failureMessage","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static String failureMessage(ServerConfig config, CommandResult result)","params":[{"name":"config","type":"ServerConfig"},{"name":"result","type":"CommandResult"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux exits 0 even when nothing was created: an explicit {@code -S} under a directory that does not exist prints its own {@code error creating ...} and still returns success, and a binary that is not tmux at all can exit 0 with nothing on stdout the same way {@code run} cannot tell apart from a real session id. Reads tmux's own words when it spoke and names the configured binary when it did not, rather than letting an empty list reach {@code SessionId} and throw an unchecked collection exception with neither in it.","body":"tmux 3.2a says nothing at all when it cannot create its socket: the server queues the\nerror and tells the client to exit at once, and the client leaves before the error reaches\nit. So a silent exit checks the one cause this client can see for itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.failureMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-failuremessage"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","name":"versionForCreation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static TmuxVersion versionForCreation(Server server)","params":[{"name":"server","type":"Server"}],"returns":"TmuxVersion","typeScopeBoundary":true}],"doc":{"summary":"The version to gate a session-creation spec against.","body":"{@code new-session} may be the first command said to a fresh socket, where {@link\nServer#version()} fails for want of a daemon. So this asks a running daemon when one answers,\nsince it may be a different build than the configured binary, and otherwise asks the binary\nthrough {@link #binaryVersion}.\n\nReads {@link SnapshotCapture#processForCreation()} rather than {@link Server#version()}: a\ndaemon too old to talk to fails the identity probe as one never started does (\"server exited\nunexpectedly\"), and {@link ServerUnavailableException} does not keep that distinction.\nFalling back to {@code binaryVersion} for such a daemon would report the binary's version as\nthe daemon's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.versionForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-versionforcreation"},{"id":"io.github.libtmux.SessionId.SessionId","name":"SessionId","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code $} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux session id, such as {@code $0}.","body":"Stable for the life of the session, unlike a session name, which a user can change at any\ntime. A separate type from {@link WindowId} and {@link PaneId} because tmux accepts any of them\nas {@code -t} syntax: passing the wrong one is not an error tmux reports, it simply addresses\nnothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId","product":"core","slug":"io-github-libtmux-sessionid-sessionid"},{"id":"io.github.libtmux.SessionId.SessionId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionId.SessionId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.toString","product":"core","slug":"io-github-libtmux-sessionid-sessionid-tostring"},{"id":"io.github.libtmux.SessionId.SessionId.value","name":"value","kind":"method","parent":"io.github.libtmux.SessionId.SessionId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code $} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.value","product":"core","slug":"io-github-libtmux-sessionid-sessionid-value"},{"id":"io.github.libtmux.SessionLookup.SessionLookup","name":"SessionLookup","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Resolves a caller-given session name to the id tmux keeps it under."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup"},{"id":"io.github.libtmux.SessionLookup.SessionLookup.named","name":"named","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionLookup.SessionLookup","signatures":[{"raw":"static Optional named(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The id of the session tmux keeps under this name, read from one listing.","body":"Not a {@code -t =name} target: tmux reads {@code .} and {@code :} in a target as window and\npane separators, and it may have stored the name differently from how it was given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup.named","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec","name":"SessionSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a session should be made.","body":"The shape {@link SplitSpec} and {@link WindowSpec} use. tmux's {@code -A}, which attaches when\nthe name is taken, is deliberately absent: attaching needs a terminal, and it fails with\n{@code open terminal failed} on every supported release when there is none. Asking\n{@link Server#hasSession} first does the same job from a process that has no tty, which is where a\nlibrary usually runs.","examples":[{"lang":"java","code":"Session build = server.newSession(s -> s.named(\"build\").sized(new Dimensions(120, 40)));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached session tmux names itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-1p4q"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session name, or empty to let tmux number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.name","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-name"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the session's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.directory","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-directory"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new session, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Always true, and not a choice.","body":"{@code new-session} attaches unless told not to, and attaching needs a terminal — from a\nprocess without one it fails with {@code open terminal failed}. A library is usually called\nfrom something that has no tty, so the session is always created detached. {@link WindowSpec}\nand {@link SplitSpec} default the other way, because their commands need no terminal."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detached","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detached"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.windowName","name":"windowName","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional windowName()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name of the session's first window, or empty for tmux's choice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.windowName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.windowName","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-windowname"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the session is, or empty for tmux's default. Requires tmux 3.3."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.size","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-size"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean withoutSize()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux is told not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detachOthers()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether other clients on this session are detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List clientFlags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Client flags, which tmux takes as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the session's first pane runs, empty for the default shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.command","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-command"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"List argv(String format, Supplier running)","params":[{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"Supplier","doc":"what the server about to run this is, asked only if it matters"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that makes this session, reporting it through {@code format}.","body":"The version arrives as a supplier because this is the one creating call that may run when\nthere is no server yet, and asking a socket with nothing behind it for its version fails.\nNothing asks unless the spec depends on the answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.argv","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-argv"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":192,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.toString","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-tostring"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-3lof"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session, where tmux would otherwise number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":213,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","name":"firstWindowNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder firstWindowNamed(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session's first window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.firstWindowNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-firstwindownamed"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the default shell. tmux reports the session before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-running"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the session in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-in"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new session's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-env"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new session's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","name":"sized","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder sized(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the session a size, which a detached session has no client to take one from."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.sized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-sized"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder withoutSize()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder detachOthers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Detaches any other client already on this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":268,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder clientFlags(String... flags)","params":[{"name":"flags","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the client flags tmux applies, which it reads as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public SessionSpec build()","params":[],"returns":"SessionSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-build"},{"id":"io.github.libtmux.Shell.Shell","name":"Shell","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"tmux expands {@code #(...)} in these strings before a shell sees them. Pass an interpolated\nvalue through {@link TmuxFormats#literal} unless that expansion is what you want."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.Shell","name":"Shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"Shell(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs a shell command for its effect. Nothing is claimed about what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.run","product":"core","slug":"io-github-libtmux-shell-shell-run"},{"id":"io.github.libtmux.Shell.Shell.capturing","name":"capturing","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.MUTATION)\n public List capturing(String command)","params":[{"name":"command","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"on tmux 3.3a and 3.4, which run the command and report nothing"}]}],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.capturing","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.capturing","product":"core","slug":"io-github-libtmux-shell-shell-capturing"},{"id":"io.github.libtmux.Shell.Shell.choose","name":"choose","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue)","params":[{"name":"condition","type":"String","doc":"a shell command, judged by its exit status"},{"name":"whenTrue","type":"String","doc":"the tmux command to run when the condition succeeds"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue, String whenFalse)","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String","doc":"the tmux command to run when the condition does not succeed"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.choose","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.choose","product":"core","slug":"io-github-libtmux-shell-shell-choose"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState","name":"ClientState","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientState(String name, Optional session)","params":[{"name":"name","type":"String","doc":"the client's terminal name, which is how tmux addresses it"},{"name":"session","type":"Optional","doc":"the session it was attached to, if any"}]}],"typeScopeBoundary":false,"doc":{"summary":"A client as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the client's terminal name, which is how tmux addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.name","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-name"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it was attached to, if any"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.session","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-session"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState","name":"PaneState","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneState(\n WindowContext context,\n PaneId id,\n int index,\n boolean active,\n String currentCommand,\n Dimensions size,\n PanePosition position,\n String title,\n String currentPath,\n OptionalLong pid,\n PaneEdges edges,\n Optional floating)","params":[{"name":"context","type":"WindowContext","doc":"the winlink the pane was reached through"},{"name":"id","type":"PaneId","doc":"the pane's stable id"},{"name":"index","type":"int","doc":"the pane's position, which shifts as neighbours come and go"},{"name":"active","type":"boolean","doc":"whether it was the active pane of its window"},{"name":"currentCommand","type":"String","doc":"the command tmux reported running in it"},{"name":"size","type":"Dimensions","doc":"how large the pane was, in terminal cells"},{"name":"position","type":"PanePosition","doc":"where the pane's top-left corner sat in its window, in terminal cells"},{"name":"title","type":"String","doc":"the pane title, which a program inside it can change"},{"name":"currentPath","type":"String","doc":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},{"name":"pid","type":"OptionalLong","doc":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},{"name":"edges","type":"PaneEdges","doc":"which sides of its window the pane touches"},{"name":"floating","type":"Optional","doc":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."}]}],"typeScopeBoundary":false,"doc":{"summary":"A pane as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"the winlink the pane was reached through"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.context","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-context"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.id","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-id"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the pane's position, which shifts as neighbours come and go"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.index","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-index"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active pane of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.active","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-active"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the command tmux reported running in it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentCommand","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentcommand"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the pane was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.size","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-size"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.position","name":"position","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PanePosition"}],"doc":{"summary":"where the pane's top-left corner sat in its window, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.position","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.position","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-position"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.title","name":"title","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the pane title, which a program inside it can change"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.title","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.title","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-title"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentPath","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentpath"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.pid","name":"pid","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"OptionalLong"}],"doc":{"summary":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.pid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.pid","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-pid"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.edges","name":"edges","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneEdges"}],"doc":{"summary":"which sides of its window the pane touches"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.edges","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.edges","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-edges"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.floating","name":"floating","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.floating","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.floating","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-floating"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","name":"ServerMirror","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A live copy of one tmux server's sessions, windows, panes and clients, rebuilt whenever tmux announces a change.","body":"A control client attached through an anchor session hears what tmux announces. Any\nannouncement, or a {@link Delivery.Gap} in them, starts a fresh {@link Server#snapshot()} — never\na patch of the last one, since an announcement says that something changed, not everything that\ndid. Announcements that arrive while a snapshot is being taken collapse into one more rebuild, and\na rebuild that finds nothing different publishes nothing. Each published {@link View} carries an\nepoch one above the last, counted by this mirror; it is not a number tmux keeps.\n\ntmux keeps no history of what it announced. When the control client ends, the mirror finds\nthe anchor session again by its id and attaches through it with a fresh snapshot; if the session\nhas gone, the mirror ends with {@link TargetGoneException}, and if the server has, with the\nfailure that said so. A change tmux does not announce to this client, such as a pane retitled in\nanother session, is seen at the next rebuild, or within {@code refreshEvery} when one is given.\n\nThread-safe. One virtual thread per mirror listens and rebuilds; {@link #close()} ends it and\nthe control client with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","name":"View","kind":"class","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"public record View(long epoch, ServerSnapshot snapshot)","params":[{"name":"epoch","type":"long","doc":"how many views this mirror published before this one"},{"name":"snapshot","type":"ServerSnapshot","doc":"the server as the rebuild captured it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One published state of the server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","name":"epoch","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"how many views this mirror published before this one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.epoch","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-epoch"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"ServerSnapshot"}],"doc":{"summary":"the server as the rebuild captured it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.snapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-snapshot"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","name":"open","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor)","params":[{"name":"anchor","type":"Session"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"TargetGoneException","doc":"if the anchor session or its server has gone"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor, Duration refreshEvery)","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration","doc":"how long a quiet mirror waits before rebuilding anyway; zero never does"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if {@code refreshEvery} is negative"}]}],"doc":{"summary":"Mirrors the server {@code anchor} belongs to, listening through a control client attached to {@code anchor}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.open","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-open"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","name":"current","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public View current()","params":[],"returns":"View","typeScopeBoundary":false}],"doc":{"summary":"The latest published view."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.current","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-current"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","name":"awaitNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional awaitNewer(long epoch, Duration timeout) throws InterruptedException","params":[{"name":"epoch","type":"long"},{"name":"timeout","type":"Duration"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the newer view, or empty when {@code timeout} passed first or the mirror ended; {@link #isEnded()} and {@link #cause()} tell those apart","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits for a view newer than {@code epoch}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.awaitNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-awaitnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","name":"onNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onNewer(long epoch, Runnable callback)","params":[{"name":"epoch","type":"long"},{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed"}]}],"doc":{"summary":"Arms a one-shot wakeup for when a view newer than {@code epoch} is published or the mirror ends.","body":"Runs {@code callback} at once, on this thread, when such a view already exists or the mirror\nhas ended; otherwise once, on the mirror's own thread. The callback must not block."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.onNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-onnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","name":"clearNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearNewer()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the callback {@link #onNewer} armed, if one is armed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.clearNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-clearnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","name":"isEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isEnded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.isEnded","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-isended"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this mirror ended, when something other than {@link #close()} ended it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.cause","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-cause"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Override\n @Operation(Kind.LIFECYCLE)\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops listening and detaches the control client. The last view stays readable. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.close","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-close"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","name":"ServerSnapshot","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux hierarchy, as it was at one moment.","body":"Every question below is answered from what was captured, so traversing a snapshot issues no\ncommands and cannot observe a half-changed server. It claims a moment rather than current truth:\ntmux offers no transaction across separate listings, and pretending otherwise would be a promise\nthis cannot keep."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true},{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n long serverStartTime,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true}],"doc":{"summary":"Assembles a capture tied to the live tmux process and version that produced it, with no start time: a handle made from it is fenced by the process id alone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.of","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-of"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","name":"capturedAt","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Instant capturedAt()","params":[],"returns":"Instant","typeScopeBoundary":false}],"doc":{"summary":"When this capture was taken."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":235,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.capturedAt","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-capturedat"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverPid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The tmux process that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverPid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverpid"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","name":"serverStartTime","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverStartTime()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"When the tmux process that produced this capture started, in seconds since the epoch, as {@code #{start_time}} reports it. Absent when the capture was assembled without it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverStartTime","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverstarttime"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","name":"serverVersion","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional serverVersion()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The tmux version that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverVersion","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverversion"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every session, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.sessions","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-sessions"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every winlink, in tmux's order, including a window linked into more than one session twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":264,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windows"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every pane, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panes"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":276,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.clients","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-clients"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false},{"raw":"public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session with this id, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-session"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The winlink at this exact position, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-window"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","name":"windowsOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windowsOf(SessionId session)","params":[{"name":"session","type":"SessionId"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The winlinks in one session, in order. Empty when the capture never saw that session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windowsOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windowsof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","name":"panesOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panesOf(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes under one winlink, in order. Empty when the capture never saw that winlink."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panesOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panesof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":308,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.toString","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-tostring"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState","name":"SessionState","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionState(SessionId id, String name, boolean attached, int windows)","params":[{"name":"id","type":"SessionId","doc":"the session's stable id"},{"name":"name","type":"String","doc":"the session name, which a user may change at any time"},{"name":"attached","type":"boolean","doc":"whether a client was attached to it"},{"name":"windows","type":"int","doc":"how many windows it contained"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.id","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-id"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session name, which a user may change at any time"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.name","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-name"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.attached","name":"attached","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether a client was attached to it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.attached","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.attached","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-attached"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.windows","name":"windows","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many windows it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.windows","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-windows"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext","name":"WindowContext","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowContext(SessionId session, WindowIndex index, WindowId window)","params":[{"name":"session","type":"SessionId","doc":"the session this link belongs to"},{"name":"index","type":"WindowIndex","doc":"where the window sits in that session"},{"name":"window","type":"WindowId","doc":"the underlying window, shared across links"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux winlink: a window as it appears in one session, at one index.","body":"The unit relations are keyed on. A window linked into two sessions has one {@link WindowId}\nand two contexts, and tmux treats those two positions as distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session this link belongs to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-session"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowIndex"}],"doc":{"summary":"where the window sits in that session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-index"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","name":"window","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"doc":{"summary":"the underlying window, shared across links"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-window"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState","name":"WindowState","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowState(\n WindowContext context,\n String name,\n boolean active,\n int panes,\n boolean linked,\n Dimensions size,\n String layout)","params":[{"name":"context","type":"WindowContext","doc":"which session and index this link occupies"},{"name":"name","type":"String","doc":"the window name"},{"name":"active","type":"boolean","doc":"whether it was the active window of its session"},{"name":"panes","type":"int","doc":"how many panes it contained"},{"name":"linked","type":"boolean","doc":"whether the window is linked into more than one session"},{"name":"size","type":"Dimensions","doc":"how large the window was, in terminal cells"},{"name":"layout","type":"String","doc":"tmux's own serialized layout, which can be handed back to select-layout"}]}],"typeScopeBoundary":false,"doc":{"summary":"A window as one capture saw it, at one of its positions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"which session and index this link occupies"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.context","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-context"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.name","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-name"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active window of its session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.active","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-active"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.panes","name":"panes","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many panes it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.panes","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-panes"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.linked","name":"linked","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the window is linked into more than one session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.linked","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.linked","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-linked"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the window was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.size","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-size"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.layout","name":"layout","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"tmux's own serialized layout, which can be handed back to select-layout"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.layout","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.layout","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-layout"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a whole tmux server into one snapshot.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nTwo commands: who the server is, then the listings as one group fenced against both halves of\nthat answer, its pid and its version. tmux runs a group in the server, so rows cannot come from\ntwo of them, and a server that is not the one probed is refused before a listing runs rather than\ndetected afterwards. Retrying is {@link Server#snapshot()}'s decision, not this one's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"SnapshotCapture(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","name":"attempt","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional attempt()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One attempt, empty when the server was replaced under it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.attempt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-attempt"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","name":"process","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional process()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Reads process identity and version together so neither can come from a different server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.process","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-process"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","name":"processForCreation","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional processForCreation()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"As {@link #process}, except a live daemon this client cannot actually talk to is never folded into \"no daemon\" - used only by {@link SessionCreation#versionForCreation}, the one caller for which that distinction matters.","body":"tmux reports both the same way from a client's side: \"no server running\"/\"(No such file or\ndirectory)\" for a socket nothing is listening on, and \"server exited unexpectedly\" for a\ndaemon that refused this client's handshake - confirmed against the matrix, a 3.2a client\nagainst a 3.7c daemon on the same socket fails the second way, rc 1. {@link #process} still\nfolds both into \"no daemon\" for every other caller, which asks \"is there a server I can read\nfrom\" and for which a daemon this client cannot use is no more usable than none at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.processForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-processforcreation"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","name":"oneSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional oneSession(String target, String field)","params":[{"name":"target","type":"String","doc":"the session name or id passed to {@code -t}"},{"name":"field","type":"String","doc":"{@code session_name} or {@code session_id}"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One session, its windows, and its panes. Empty when that session is absent. Other sessions are not read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.oneSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-onesession"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","name":"sessionsNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsNamed(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions stored under any name tmux may keep for this one, read in one fenced call, and an empty capture when there are none. Empty when a candidate cannot sit inside a format, and the caller reads the whole server instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsnamed"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","name":"sessionsWhere","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"ServerSnapshot sessionsWhere(String format, String... command)","params":[{"name":"format","type":"String"},{"name":"command","type":"String","variadic":"positional","doc":"{@code list-sessions}, {@code list-windows -a}, or {@code list-panes -a}"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding a row that {@code format} selects in this listing, read in full in one fenced call, and a capture holding nothing when none does.","body":"Nothing is a real answer: every operator {@link io.github.libtmux.query.TmuxFilters} writes\nexists from the oldest supported tmux, so a format it lowers is never one tmux cannot evaluate.\nA window or pane format is lifted to its session by looping that session's windows and panes,\nso the one call that reads the sessions also decides which ones to read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsWhere","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionswhere"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","name":"sessionsHolding","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsHolding(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding this pane, with their windows and panes, in one fenced call. Empty when no session holds it.","body":"The filter loops each listed row's own session, so every listing keeps whole sessions, and a\nwindow linked into two sessions brings both. tmux evaluates this loop inside {@code -f} the same\nway on every release from 3.2a; see {@code docs/decisions/0005-pushdown-lowering-is-exact-or-refused.md}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":339,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsHolding","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsholding"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","name":"ServerProcess","kind":"class","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"record ServerProcess(long pid, TmuxVersion version, long startTime)","params":[{"name":"pid","type":"long"},{"name":"version","type":"TmuxVersion"},{"name":"startTime","type":"long"}]}],"typeScopeBoundary":true,"doc":{"summary":"The server a capture reads, named by its process and when that process started."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":455,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","name":"pid","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-pid"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","name":"version","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"TmuxVersion"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-version"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","name":"startTime","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.startTime","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-starttime"},{"id":"io.github.libtmux.SplitDirection.SplitDirection","name":"SplitDirection","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new pane goes relative to the one being split.","body":"Separate from {@link Direction}, which moves and grows existing panes with {@code -U -D -L -R}.\nSplitting speaks a different dialect: an axis, and whether the new pane comes first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","name":"BELOW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Below the target, which is what tmux does when asked for nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.BELOW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-below"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","name":"ABOVE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.ABOVE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-above"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-right"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-left"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","name":"SplitDirection","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"SplitDirection(String axis, boolean first)","params":[{"name":"axis","type":"String"},{"name":"first","type":"boolean"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The tmux flags that place a pane this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.flags","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-flags"},{"id":"io.github.libtmux.SplitSpec.SplitSpec","name":"SplitSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a pane should be split.","body":"A description rather than an action: it can be built once, named, and applied to as many panes\nas it suits. Nothing here contacts tmux, so a spec can be assembled on a machine that has none,\nand the version rules it depends on are checked when it is applied rather than when it is written\n— the same spec is legal against one server and not another.\n\nA builder-built class rather than a record for the reason {@link ServerConfig} gives: a\nrecord's canonical constructor is public API, and tmux keeps adding flags to {@code split-window}\n— six of them in 3.7 alone.","examples":[{"lang":"java","code":"Pane side = pane.split(s -> s.toRight().percent(30));\n\nSplitSpec sidebar = SplitSpec.builder().toRight().percent(25).build();\nleft.split(sidebar);\nright.split(sidebar);"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec","product":"core","slug":"io-github-libtmux-splitspec-splitspec"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: below the target, half its size, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zmnf"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.direction","name":"direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public SplitDirection direction()","params":[],"returns":"SplitDirection","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane goes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.direction","product":"core","slug":"io-github-libtmux-splitspec-splitspec-direction"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the new pane should be, or empty to let tmux halve the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.size","product":"core","slug":"io-github-libtmux-splitspec-splitspec-size"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public PaneStart start()","params":[],"returns":"PaneStart","typeScopeBoundary":false}],"doc":{"summary":"What runs in the new pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.directory","product":"core","slug":"io-github-libtmux-splitspec-splitspec-directory"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new pane, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is left unfocused.","body":"False by default, which is what {@code split-window} itself does. A session created through\n{@link SessionSpec} is the opposite, because tmux cannot make one without attaching unless it\nis told to detach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean fullWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the split spans the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean zoomed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is zoomed on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","name":"keepOnExit","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean keepOnExit()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane stays after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","name":"exitMessage","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional exitMessage()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What a kept pane shows once its command has exited. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.exitMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","product":"core","slug":"io-github-libtmux-splitspec-splitspec-exitmessage"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional style()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional activeBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional inactiveBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"List argv(String target, String format, TmuxVersion running)","params":[{"name":"target","type":"String","doc":"what to split, as a tmux target"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"TmuxVersion","doc":"the version of the server about to run this"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that performs this split, reporting the new pane through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.argv","product":"core","slug":"io-github-libtmux-splitspec-splitspec-argv"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.toString","product":"core","slug":"io-github-libtmux-splitspec-splitspec-tostring"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-kfol"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","name":"below","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder below()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane below the target, which is what tmux does by default."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.below","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-below"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","name":"above","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder above()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane above the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":304,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.above","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-above"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","name":"toRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toRight()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the right of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":310,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toright"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","name":"toLeft","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toLeft()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the left of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toleft"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","name":"cells","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder cells(int count)","params":[{"name":"count","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this many terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-cells"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","name":"percent","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder percent(int share)","params":[{"name":"share","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":328,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-percent"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command, which closes the pane when it exits unless {@link #keepOnExit} is set.","body":"A command that exits fast enough races {@link Pane#split}'s own read-back: tmux can\ndestroy the pane before the second listing that confirms it runs, and the split then\nthrows {@code TargetGoneException} even though tmux made the pane and ran the\ncommand in it. {@link #keepOnExit} removes the race by keeping the pane there to be read.\n\ntmux also reports the pane before its process has become this command, so a read at once\ncan still see the process about to exec it: wait for the command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":344,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-running"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","name":"empty","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder empty()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates a pane with no process in it. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-empty"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder start(PaneStart start)","params":[{"name":"start","type":"PaneStart"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets what runs, for a caller holding a {@link PaneStart} already."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the new pane in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-in"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new pane's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-env"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new pane's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the target pane focused, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder fullWindow()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Splits the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder zoomed()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Zooms the new pane on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":392,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","name":"keepOnExit","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder keepOnExit()","params":[],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder keepOnExit(String message)","params":[{"name":"message","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the pane after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":398,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder style(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder activeBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":417,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder inactiveBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":423,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public SplitSpec build()","params":[],"returns":"SplitSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":429,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-build"},{"id":"io.github.libtmux.TargetIds.TargetIds","name":"TargetIds","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Shared validation for the sigil-prefixed ids tmux hands out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds","product":"core","slug":"io-github-libtmux-targetids-targetids"},{"id":"io.github.libtmux.TargetIds.TargetIds.require","name":"require","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TargetIds.TargetIds","signatures":[{"raw":"static void require(String value, char sigil, String kind)","params":[{"name":"value","type":"String"},{"name":"sigil","type":"char"},{"name":"kind","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Rejects anything tmux would not read as an id of this kind.","body":"A bare {@code 0} is the case worth catching: tmux would accept it as a target and resolve\nit as a name or an index, silently addressing something else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds.require","product":"core","slug":"io-github-libtmux-targetids-targetids-require"},{"id":"io.github.libtmux.TextOutcome.TextOutcome","name":"TextOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait for text on a pane ended.","body":"Separate from {@link WakeReason}, which answers for a tmux channel, because this wait reads a\nscreen rather than blocking on a signal and so can end a way a channel never does: with the text\nalready there. A pane that has said {@code ready} since an hour ago must not answer a wait for\n{@code ready} the way output that just arrived does, and it must not be reported as a timeout\neither — a caller told only \"not found\" would go looking for text that is in plain sight.\n\n{@link Pane#await(java.util.function.Predicate, Duration)} keeps {@link WakeReason}: a caller\nwrote that condition and can test it before waiting, so the library is not the only thing that can\nsee it was already true."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","name":"APPEARED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The text appeared while the wait was running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.APPEARED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-appeared"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","name":"PRESENT_AT_ENTRY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The first look already showed the text, so this wait did not see it arrive.","body":"Exactly that, and no more. It may be output from a command the caller started a moment ago\nand that finished before the first read, or it may have been on the pane for an hour — a\nscreen cannot tell those apart, and reporting them as the same thing would be the claim this\noutcome exists to avoid. A caller that needs the difference should not be reading a screen:\nappend {@code ; tmux wait-for -S name} to its own command and block on {@link Server#channel},\nwhich is exact.\n\nAn echo of what this library typed is never what is found here; that is the caller's own\nquestion coming back, and it is discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.PRESENT_AT_ENTRY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-present_at_entry"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the text absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-timed_out"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the wait, so nothing it was guarding can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-server_gone"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","name":"TmuxEnvironment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux tells a program running inside one of its panes.","body":"tmux exports {@code TMUX} as {@code ,,} and {@code TMUX_PANE} as\nthe pane's id. That is how a process discovers the server it is already inside, without being told\nwhere to look.\n\nReading is separated from the environment itself, so the parsing is testable without a process\never having to be started inside tmux: {@link #of} takes the variables, {@link #current} is the\none-line wrapper that fetches them.\n\nA class rather than a record for the reason {@link ServerConfig} gives — and because the pane\nis genuinely absent sometimes, which an {@link Optional} accessor says better than a nullable\nrecord component.","examples":[{"lang":"java","code":"TmuxEnvironment here = TmuxEnvironment.current().orElseThrow();\n\ntry (Server server = Server.open(here.config())) {\n Session mine = server.sessions().stream()\n .filter(session -> session.id().equals(here.session()))\n .findFirst()\n .orElseThrow();\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","name":"current","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional current()","params":[],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when this is not running inside tmux"}],"doc":{"summary":"Reads this process's own environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.current","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-current"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional of(Map environment)","params":[{"name":"environment","type":"Map","doc":"the variables to read, typically {@code System.getenv()}"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when {@code TMUX} is absent or unreadable"}],"doc":{"summary":"Reads a set of environment variables."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-of"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"The socket the server is listening on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.socket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-socket"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public long serverPid()","params":[],"returns":"long","typeScopeBoundary":false}],"doc":{"summary":"The process id of the tmux server, which is not the pane's process."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.serverPid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-serverpid"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public SessionId session()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session this process is running in."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-session"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","name":"pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Optional pane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane this process is running in, absent when {@code TMUX_PANE} was not set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-pane"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"A config addressing this server, ready for {@link Server#open}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-config"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-tostring"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats","name":"TmuxFormats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Values handed to a tmux argument position that expands formats.","body":"tmux expands {@code #{...}} and {@code #(...)} in many argument positions, and {@code #(...)}\nruns a shell command. For the arguments this library composes itself — a window name, a pane\ntitle, a working directory — it applies {@link #literal} at the construction boundary, so a\ncaller's {@code #} stays a {@code #}.\n\nIt cannot do that for an argument the caller composes: {@link Pane#pipeTo},\n{@link Window#displayPopup}, {@link Shell#run}, {@link Shell#capturing} and {@link Shell#choose}\nall take a whole shell command, where format expansion is a documented\ntmux feature a caller may want — {@code #{pane_id}} in a filename, for instance. A caller\ninterpolating an untrusted value into one of those needs {@link #literal} on that value, which is\nwhy this is public.\n\nShell quoting does not substitute for it. tmux expands the format *before* the shell\nsees the string, so a {@code #(...)} inside single quotes still runs. Measured on tmux 3.7d, with\nthe interpolated value quoted as a careful caller would quote it: {@code run-shell} executed it,\nand {@code pipe-pane -O} executed it as soon as the pane produced output."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"public static String literal(String value)","params":[{"name":"value","type":"String","doc":"a value to be read as text rather than expanded"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"the value with every {@code #} doubled"}],"doc":{"summary":"Makes one caller value literal at one construction boundary.","body":"Doubling {@code #} is tmux's own escape for it, so the value arrives as itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.literal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-literal"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","name":"printed","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static String printed(String line, TmuxVersion version)","params":[{"name":"line","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true},{"raw":"static java.util.List printed(java.util.List lines, TmuxVersion version)","params":[{"name":"lines","type":"java.util.List"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"Text as tmux held it, from a line it printed.","body":"tmux 3.4 alone puts a backslash before every {@code $} that an ASCII letter, {@code _}, or\n`{` follows, in everything it prints: formats, listings, and {@code show-options\n-v}. 3.5 stopped ({@code 692ce59b}). Each escape is exactly one backslash in that position, so\nremoving it restores the text on 3.4 and changes nothing elsewhere.\n\n3.4 through 3.5a also print a control character as a C escape or three octal digits,\n{@code \\033} for ESC, and leave a backslash as it is. That is not undone: {@code \\033} could as well be those\nfour characters, which a {@code terminal-overrides} entry often holds, so the text is left as\ntmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-printed"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","name":"storedNames","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static java.util.List storedNames(String name, TmuxVersion version)","params":[{"name":"name","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"The names to look for when a caller names a session: the one this release stores for it, then the name exactly as given, which is what {@link Session#name} already reports.","body":"tmux doubles each backslash; 3.2a through 3.4 put a backslash before a {@code $} that a\nletter, {@code _}, or `{` follows; 3.2a through 3.6 store {@code .} and {@code :}\nas {@code _} and a control character as a C escape or three octal digits. 3.7 and later refuse\ncontrol characters. The stored form is an escaping, so it names at most one session; only a\nname that is itself some other name's stored form is ambiguous, and the stored form wins."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.storedNames","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-storednames"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxVersion(int major, int minor, String patch, boolean development, String preRelease)\n implements Comparable","params":[{"name":"major","type":"int","doc":"the major number"},{"name":"minor","type":"int","doc":"the minor number"},{"name":"patch","type":"String","doc":"the patch letter, or empty for an unlettered release"},{"name":"development","type":"boolean","doc":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},{"name":"preRelease","type":"String","doc":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"}]}],"typeScopeBoundary":false,"doc":{"summary":"A released tmux version, ordered the way tmux releases are.","body":"tmux numbers a patch release with a letter rather than a third number: 3.7a follows 3.7, and\n3.2a follows 3.2. Comparing the text alone gets that wrong in both directions, and a feature gate\nthat gets it wrong reads a format the running tmux does not have.\n\nBetween releases, tmux reports itself as {@code next-M.m}: a development build tracking toward\nthe release named, not that release itself. It has everything the previous release shipped and\nnothing later's patches guarantee, so it sorts strictly between the two — above every patch of the\nrelease before it, below the release it names and every patch of that.\n\nA release candidate, {@code 3.8-rc}, compares equal to the release it names. tmux freezes\nfeatures at the candidate, so it has everything the release will and differs only in fixes —\nmeasured, not assumed: a 3.8 candidate writes JSON layouts and empties a dead pane's pid exactly\nas 3.8 does, and a feature gated on 3.8 works on it. It is not {@code equals} to the release, and\nit is written back exactly as tmux wrote it, which matters beyond display: every capture is\nfenced on the version tmux reports, and a candidate printed as {@code 3.8} failed that fence on\nevery read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public TmuxVersion(int major, int minor, String patch, boolean development)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"},{"name":"development","type":"boolean"}],"typeScopeBoundary":false},{"raw":"public TmuxVersion(int major, int minor, String patch)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A release or a development build, without a release candidate."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public static TmuxVersion parse(String reported)","params":[{"name":"reported","type":"String"}],"returns":"TmuxVersion","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the text does not begin with a release number, optionally preceded by {@code next-}; a build that reports something else is one this cannot make version decisions about"}]}],"doc":{"summary":"Reads what tmux reports for {@code #{version}}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.parse","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-parse"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public boolean atLeast(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this version has everything the given one has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.atLeast","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-atleast"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","name":"compareTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public int compareTo(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.compareTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-compareto"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tostring"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.major","name":"major","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the major number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.major","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.major","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-major"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","name":"minor","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the minor number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.minor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-minor"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","name":"patch","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the patch letter, or empty for an unlettered release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.patch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-patch"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.development","name":"development","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.development","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.development","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-development"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","name":"preRelease","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.preRelease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-prerelease"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest","name":"CommandRequest","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandRequest(\n @ReadOnly List endpoint, @ReadOnly List> commands, Duration timeout, String input)","params":[{"name":"endpoint","type":"List","doc":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},{"name":"commands","type":"List>","doc":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},{"name":"timeout","type":"Duration","doc":"how long the caller will wait for the whole invocation"},{"name":"input","type":"String","doc":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux invocation: how to reach the server, then the commands to run there.","body":"Commands are held literally. tmux ends a command at an argument whose last byte is {@code ;},\nso a value ending in one would otherwise be truncated with no error; a transport encodes for the\nparser it feeds, and {@link #commands()} answers with what the caller meant.\n\nThe timeout rides on the request instead of the transport because the same server serves both\na listing that should answer immediately and an attach that never returns."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandRequest","typeScopeBoundary":true},{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout, String input)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"},{"name":"input","type":"String"}],"returns":"CommandRequest","typeScopeBoundary":true}],"doc":{"summary":"A request for one command, which is every request but a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-of"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether sending this request twice leaves tmux as sending it once does: {@link Idempotence#IDEMPOTENT} only when every command in it reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-idempotence"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","name":"commandLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@ReadOnly\n public List commandLine()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The full argv to hand a process builder, encoded for tmux's own argv parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commandLine","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commandline"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only. Commands carry pane content and socket paths, and this value reaches log lines and failed assertions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-tostring"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","name":"endpoint","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.endpoint","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-endpoint"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","name":"commands","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"doc":{"summary":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commands","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commands"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","name":"timeout","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the caller will wait for the whole invocation"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.timeout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-timeout"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","name":"input","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.input","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-input"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult","name":"CommandResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandResult(\n int exitCode,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"exitCode","type":"int","doc":"the process exit status"},{"name":"stdout","type":"List","doc":"stdout split at LF, preserving carriage returns and interior blanks"},{"name":"stderr","type":"List","doc":"stderr split into lines, with blanks dropped"}]}],"typeScopeBoundary":false,"doc":{"summary":"One completed invocation.","body":"A nonzero exit is data, not a failure. tmux reports an ordinary \"no such pane\" the same way it\nreports a real problem, so only a higher-level method knows which one should raise."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux reported success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.succeeded","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-succeeded"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only, because both channels carry captured terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.toString","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-tostring"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the process exit status"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-exitcode"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stdout split at LF, preserving carriage returns and interior blanks"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stdout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stdout"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stderr split into lines, with blanks dropped"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stderr","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stderr"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","name":"ControlCarrier","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Starts a long-lived tmux process in a transport's realm.","body":"A control client stays attached, so it cannot borrow a command permit. It still has to be\nstarted by the same carrier as the commands, or a custom transport's realm is silently ignored\nand the client attaches to whatever the local machine calls tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List","doc":"the tmux invocation, arguments already separate"}],"returns":"Process","typeScopeBoundary":false,"returnsDoc":"the running process","raises":[{"type":"IOException","doc":"if the process cannot be started"}]}],"doc":{"summary":"Starts the process. The caller owns it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier-start"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","name":"DispatchOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How certain the transport is that tmux applied a request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","name":"NOT_DISPATCHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process never started, so tmux cannot have applied anything."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.NOT_DISPATCHED","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-not_dispatched"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process ran to completion and both channels were drained."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.COMPLETE","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-complete"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux may already have applied the command; the result is not knowable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.UNKNOWN","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-unknown"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","name":"canRetryVerbatim","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[{"raw":"public boolean canRetryVerbatim(Idempotence idempotence)","params":[{"name":"idempotence","type":"Idempotence","doc":"whether every command in the request only reads"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the exact same request may be sent again after this outcome.","body":"A request that never reached tmux may always be resent. One that may have reached it may be\nresent only when it changes nothing. One that completed is not a dispatch question at all:\nwhether to act on tmux's answer is the caller's decision, so this answers {@code false}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.canRetryVerbatim","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-canretryverbatim"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence","name":"Idempotence","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Whether running a request twice leaves tmux as running it once does.","body":"Decided from the commands themselves: a request is idempotent only when every command in it\nreads and changes nothing. Anything this library cannot tell is a read counts as a change, so a\nfailure never reports a mutation as safe to resend."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","name":"IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Every command only reads; sending it again cannot change tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","name":"NOT_IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"At least one command may change tmux, so a second send may apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.NOT_IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-not_idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[{"raw":"public static Idempotence of(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"Idempotence","typeScopeBoundary":true}],"doc":{"summary":"The idempotence of a request made of {@code commands}, each an argv."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.of","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-of"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver","name":"OperationObserver","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Receives one {@link OperationReport} after each command.","body":"The transport still throws on failure. This does not retry. A report whose {@link\nOperationReport#certainty() certainty} is {@link DispatchOutcome#NOT_DISPATCHED} was never\napplied. {@link DispatchOutcome#UNKNOWN} must not be sent again blindly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","name":"accept","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationObserver.OperationObserver","signatures":[{"raw":"void accept(OperationReport report);","params":[{"name":"report","type":"OperationReport"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called once, after the command ends, on the thread that ran it.","body":"An exception thrown here does not change the command's result, since the command has\nalready run: failing it would invite a retry of something tmux may have done. The exception is\nlogged at {@code WARNING}, with its stack trace, by the logger of the transport or control\nclient that ran the command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver.accept","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver-accept"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport","name":"OperationReport","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationReport(\n long id,\n @ReadOnly List verbs,\n DispatchOutcome certainty,\n OptionalInt exitCode,\n int stdoutLines,\n int stderrLines,\n String boundedError,\n Duration queued,\n Duration elapsed)","params":[{"name":"id","type":"long","doc":"a counter for this transport, so one call can be told from the next"},{"name":"verbs","type":"List","doc":"the commands, without their arguments"},{"name":"certainty","type":"DispatchOutcome","doc":"whether tmux never started, finished, or might have applied the command"},{"name":"exitCode","type":"OptionalInt","doc":"the process exit status, empty when the process did not finish"},{"name":"stdoutLines","type":"int","doc":"how many stdout lines came back"},{"name":"stderrLines","type":"int","doc":"how many stderr lines came back"},{"name":"boundedError","type":"String","doc":"stderr text, at most {@link #ERROR_LIMIT} characters"},{"name":"queued","type":"Duration","doc":"how long the call waited for a free process or writer slot"},{"name":"elapsed","type":"Duration","doc":"how long the command itself ran after that wait"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command a transport finished or failed to finish.","body":"The verbs are the first word of each command. Arguments, standard input, and stdout are not\nhere: they carry session names, socket paths, and whatever a caller typed. {@link #boundedError()}\nis stderr, cut off, and {@link #toString()} leaves it out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","name":"ERROR_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[],"typeScopeBoundary":true,"type":"int","value":"240","doc":{"summary":"How much stderr text a report keeps."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.ERROR_LIMIT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-error_limit"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.bound","name":"bound","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"public static String bound(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Joins stderr lines and cuts them at {@link #ERROR_LIMIT}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.bound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.bound","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-bound"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts and timings only. The error text stays on {@link #boundedError()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.toString","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-tostring"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.id","name":"id","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"a counter for this transport, so one call can be told from the next"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.id","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.id","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-id"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","name":"verbs","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands, without their arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.verbs","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-verbs"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","name":"certainty","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"DispatchOutcome"}],"doc":{"summary":"whether tmux never started, finished, or might have applied the command"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.certainty","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-certainty"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the process exit status, empty when the process did not finish"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-exitcode"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","name":"stdoutLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stdout lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stdoutlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","name":"stderrLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stderr lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stderrlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","name":"boundedError","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"stderr text, at most {@link #ERROR_LIMIT} characters"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.boundedError","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-boundederror"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.queued","name":"queued","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the call waited for a free process or writer slot"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.queued","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.queued","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-queued"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","name":"elapsed","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the command itself ran after that wait"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.elapsed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-elapsed"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","name":"OutputDecoder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Turns a drained pipe into lines while preserving tmux values.","body":"tmux emits pane content, so the bytes are not guaranteed to be UTF-8. A malformed byte is\nescaped as {@code \\xNN} rather than replaced with U+FFFD, which keeps the original byte\nrecoverable and matches what CPython's {@code backslashreplace} produces.\n\ntmux frames stdout with LF; CR is value data, including before LF. Stdout keeps interior blank\nlines and drops trailing ones. Diagnostic stderr normalizes CRLF and CR to LF and drops all blanks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","name":"stdoutLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stdoutLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stdoutlines"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","name":"stderrLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stderrLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stderrlines"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The default transport: one child process per call, drained by a bounded pool of platform threads.","body":"A caller takes one admission permit before launching, and the pool holds exactly three workers\nper permit, so holding a permit means both drains and the input pump are already free. Without\nthat coupling a caller can start a child whose pipes nobody is reading, or block forever writing\nto one that stopped reading.\n\nA request declared as waiting also takes one of all but one admission permits. The remaining\nprocess stays available for the ordinary request that observes or releases those waits, without\nincreasing the total process or pump bound. An additional waiter is refused before dispatch, so\nits caller knows it was never registered.\n\nThe caller itself may be a virtual thread: {@code Process.waitFor} releases its carrier. The\ndrains stay platform threads, although on JDK 25 neither a monitor nor a pipe read pins a virtual\nthread any more. A virtual thread is always a daemon, and a drain has to finish the reply it is\nreading rather than be dropped at exit; and a library does not own the scheduler, where a\ncaller's CPU-bound task that never blocks keeps its carrier and a drain waiting behind it lets\nthe pipe fill.\n\nLaunching and closing are ordered by an explicit gate rather than a flag, because checking a\nflag and then acting on it lets a caller start a child after {@code close()} has already decided\nthere was nothing left to destroy."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"public ProcessTransport()","params":[],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once ({@code executeWaiting} requires at least two)"}],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses, int maxOutputBytes)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once"},{"name":"maxOutputBytes","type":"int","doc":"maximum bytes accepted from each output channel of one process"}],"typeScopeBoundary":false}],"doc":{"summary":"A transport allowing four concurrent tmux processes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-controlcarrier"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-admissionbound"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-observe"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-execute"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-executewaiting"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":331,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-close"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","name":"ProcessStarter","kind":"interface","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":733,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List"}],"returns":"Process","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":735,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter-start"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A worker could not be recovered. Distinct from {@link IllegalStateException}, which this transport reserves for use after close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":801,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","signatures":[{"raw":"ResourceNotReclaimed(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","name":"TmuxTransport","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs one tmux command and blocks until it has an answer.","body":"Implementations are thread-safe and {@link #close()} is idempotent. A call begun before close\neither completes under the documented contract or fails with its dispatch certainty intact; a\ncall begun after close fails with {@link io.github.libtmux.exception.ServerClosedException}, an\n{@link IllegalStateException}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"CommandResult execute(CommandRequest request);","params":[{"name":"request","type":"CommandRequest","doc":"what to run, what it reads, and how long to wait"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the exit status and both channels; a nonzero exit is a result, not a failure","raises":[{"type":"DispatchException","doc":"if the command could not be run to completion, carrying how certain it is that tmux applied it"},{"type":"IllegalStateException","doc":"if this transport is closed"}]}],"doc":{"summary":"Runs the request to completion.","body":"An implementation writes {@link CommandRequest#input()} to tmux's standard input and\ncloses it. A command that reads standard input and is given none reads end of file, which\ntmux reports as success over an empty result rather than as a failure."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-execute"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a request expected to remain blocked until another request through this transport releases it.","body":"The default shares ordinary admission. A transport with bounded concurrency may override\nthis to keep release and observation requests from queuing behind every waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-executewaiting"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default String realm()","params":[],"returns":"String","typeScopeBoundary":false,"returnsDoc":"a stable realm name; the default is the local process's own view of the filesystem"}],"doc":{"summary":"Names the execution realm this transport reaches tmux through.","body":"Entity identity is scoped by it. Two unrelated realms can both hold a server at the same\nsocket path, and entities from them must not compare equal, so a transport that reaches a\ndifferent machine, container or user should return something stable and distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.realm","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-realm"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How this transport starts a process that stays attached.","body":"Empty when the transport cannot. A command-only fake is in that set, and so is any realm\nthat has not said how its processes are born. Callers that need a control client then fail\ninstead of starting one on the local machine."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-controlcarrier"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command this transport runs.","body":"The default ignores it. A transport that cannot see its own commands leaves the observer\nunset rather than inventing timings."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-observe"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many requests this transport runs at once; the rest wait for a turn."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-admissionbound"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"@Override\n void close();","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases every resource and destroys every child still running. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-close"},{"id":"io.github.libtmux.TypedText.TypedText","name":"TypedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Discounts input recorded by this library when reading a pane's output.","body":"Create one instance per wait. Each read refreshes pending input and retains submitted echoes\nalready observed, even after the shared record expires. This mutable view is not thread-safe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText","product":"core","slug":"io-github-libtmux-typedtext-typedtext"},{"id":"io.github.libtmux.TypedText.TypedText.in","name":"in","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public static TypedText in(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"TypedText","typeScopeBoundary":true}],"doc":{"summary":"What this library has typed into the pane recently enough to still be on its screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.in","product":"core","slug":"io-github-libtmux-typedtext-typedtext-in"},{"id":"io.github.libtmux.TypedText.TypedText.withoutEcho","name":"withoutEcho","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@ReadOnly\n public List withoutEcho(List lines)","params":[{"name":"lines","type":"List"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The lines with each recorded echo taken out, wherever it stands as an echo does.","body":"An occurrence is taken out only where it is not part of a longer word on either side. That is\nwhat keeps the answer when the answer merely contains the question — {@code id} comes off\n{@code $ id} and stays inside {@code uid=1000} — while still taking out every copy of an echo a\nshell drew more than once, and one a shell drew something straight after. A row the echo shared\nwith real output keeps that output.\n\nWhat no rule can do is tell an echo from output that repeats the whole typed line as a line\nof its own. Wait for something the command prints rather than something it says.\n\nThe lines are scanned as one string, so an echo the terminal broke across rows is still\nfound. Pass lines with wrapping already rejoined when the text being watched for can itself be\nbroken across rows. A shell redraw or truncated capture that retains only part of an echo\ncannot be recognized reliably."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.withoutEcho","product":"core","slug":"io-github-libtmux-typedtext-typedtext-withoutecho"},{"id":"io.github.libtmux.TypedText.TypedText.isEmpty","name":"isEmpty","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public boolean isEmpty()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether anything typed into the pane is live enough, right now, to still be discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.isEmpty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.isEmpty","product":"core","slug":"io-github-libtmux-typedtext-typedtext-isempty"},{"id":"io.github.libtmux.TypedText.TypedText.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.toString","product":"core","slug":"io-github-libtmux-typedtext-typedtext-tostring"},{"id":"io.github.libtmux.WakeReason.WakeReason","name":"WakeReason","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait on a tmux channel ended.","body":"An enum rather than a boolean, and rather than nothing at all, because tmux's own\n{@code wait-for} cannot distinguish these: it exits successfully both when the channel is\nsignalled and when the server dies underneath the waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason","product":"core","slug":"io-github-libtmux-wakereason-wakereason"},{"id":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","name":"SIGNALLED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The channel was signalled."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SIGNALLED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","product":"core","slug":"io-github-libtmux-wakereason-wakereason-signalled"},{"id":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing signalled the channel before the caller's deadline."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","product":"core","slug":"io-github-libtmux-wakereason-wakereason-timed_out"},{"id":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server is gone. tmux reports this as a successful wake, so it is checked for rather than believed; a caller cannot rely on anything the wait was guarding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","product":"core","slug":"io-github-libtmux-wakereason-wakereason-server_gone"},{"id":"io.github.libtmux.Window.Window","name":"Window","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux window at one of its positions, as one capture saw it.","body":"Identity is the winlink: the server, the session, the index and the window. A window linked\ninto two sessions is one window and two handles, because tmux orders and addresses those\npositions separately. {@link #id()} stays available for asking whether two links are the same\nunderlying window.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window","product":"core","slug":"io-github-libtmux-window-window"},{"id":"io.github.libtmux.Window.Window.Window","name":"Window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"Window(Server server, ServerSnapshot snapshot, WindowState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"WindowState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.Window","product":"core","slug":"io-github-libtmux-window-window-window"},{"id":"io.github.libtmux.Window.Window.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowState info()","params":[],"returns":"WindowState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.info","product":"core","slug":"io-github-libtmux-window-window-info"},{"id":"io.github.libtmux.Window.Window.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowId id()","params":[],"returns":"WindowId","typeScopeBoundary":false}],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.id","product":"core","slug":"io-github-libtmux-window-window-id"},{"id":"io.github.libtmux.Window.Window.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowIndex index()","params":[],"returns":"WindowIndex","typeScopeBoundary":false}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.index","product":"core","slug":"io-github-libtmux-window-window-index"},{"id":"io.github.libtmux.Window.Window.context","name":"context","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowContext context()","params":[],"returns":"WindowContext","typeScopeBoundary":false}],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.context","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.context","product":"core","slug":"io-github-libtmux-window-window-context"},{"id":"io.github.libtmux.Window.Window.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.name","product":"core","slug":"io-github-libtmux-window-window-name"},{"id":"io.github.libtmux.Window.Window.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.active","product":"core","slug":"io-github-libtmux-window-window-active"},{"id":"io.github.libtmux.Window.Window.linked","name":"linked","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean linked()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linked","product":"core","slug":"io-github-libtmux-window-window-linked"},{"id":"io.github.libtmux.Window.Window.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.size","product":"core","slug":"io-github-libtmux-window-window-size"},{"id":"io.github.libtmux.Window.Window.layout","name":"layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowLayout layout()","params":[],"returns":"WindowLayout","typeScopeBoundary":false}],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it.","body":"Classic before tmux 3.8 and JSON from it, and the type says which. Hand it back with {@link\n#applyLayout(WindowLayout)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.layout","product":"core","slug":"io-github-libtmux-window-window-layout"},{"id":"io.github.libtmux.Window.Window.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane tmux had active here. A pure read of the capture.","body":"Empty only when the capture holds no pane marked active for this window, which a complete\ncapture of a live window does not."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.activePane","product":"core","slug":"io-github-libtmux-window-window-activepane"},{"id":"io.github.libtmux.Window.Window.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.select","product":"core","slug":"io-github-libtmux-window-window-select"},{"id":"io.github.libtmux.Window.Window.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.server","product":"core","slug":"io-github-libtmux-window-window-server"},{"id":"io.github.libtmux.Window.Window.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.snapshot","product":"core","slug":"io-github-libtmux-window-window-snapshot"},{"id":"io.github.libtmux.Window.Window.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Session session()","params":[],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.session","product":"core","slug":"io-github-libtmux-window-window-session"},{"id":"io.github.libtmux.Window.Window.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hooks","product":"core","slug":"io-github-libtmux-window-window-hooks"},{"id":"io.github.libtmux.Window.Window.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.options","product":"core","slug":"io-github-libtmux-window-window-options"},{"id":"io.github.libtmux.Window.Window.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.panes","product":"core","slug":"io-github-libtmux-window-window-panes"},{"id":"io.github.libtmux.Window.Window.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.split","product":"core","slug":"io-github-libtmux-window-window-split"},{"id":"io.github.libtmux.Window.Window.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.expand","product":"core","slug":"io-github-libtmux-window-window-expand"},{"id":"io.github.libtmux.Window.Window.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Window rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Renames this window and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state.\n\nA {@code :} or {@code .} is kept as written on every supported release but 3.7, which\nrefuses the name. A kept delimiter cannot then address the window, since a target splits on\nboth. Unlike a session name, a window name is never rewritten."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rename","product":"core","slug":"io-github-libtmux-window-window-rename"},{"id":"io.github.libtmux.Window.Window.linkTo","name":"linkTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void linkTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linkTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linkTo","product":"core","slug":"io-github-libtmux-window-window-linkto"},{"id":"io.github.libtmux.Window.Window.unlink","name":"unlink","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unlink()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this is the window's only link, which tmux refuses to remove"}]}],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.unlink","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.unlink","product":"core","slug":"io-github-libtmux-window-window-unlink"},{"id":"io.github.libtmux.Window.Window.moveTo","name":"moveTo","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session, int index)","params":[{"name":"session","type":"Session"},{"name":"index","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.moveTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.moveTo","product":"core","slug":"io-github-libtmux-window-window-moveto"},{"id":"io.github.libtmux.Window.Window.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":275,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.resizeTo","product":"core","slug":"io-github-libtmux-window-window-resizeto"},{"id":"io.github.libtmux.Window.Window.synchronizePanes","name":"synchronizePanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void synchronizePanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}.","body":"A verb pair rather than a boolean parameter, so a call site says which it means — as\n{@link Pane#pipeTo} and {@link Pane#stopPiping} already do for the other state a window\ncarries."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.synchronizePanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.synchronizePanes","product":"core","slug":"io-github-libtmux-window-window-synchronizepanes"},{"id":"io.github.libtmux.Window.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopSynchronizingPanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.stopSynchronizingPanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.stopSynchronizingPanes","product":"core","slug":"io-github-libtmux-window-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.Window.Window.rotate","name":"rotate","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void rotate()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rotate","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rotate","product":"core","slug":"io-github-libtmux-window-window-rotate"},{"id":"io.github.libtmux.Window.Window.selectLayout","name":"selectLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectLayout(Layout layout)","params":[{"name":"layout","type":"Layout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the layout arrived after the release this server runs"}]}],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":319,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.selectLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.selectLayout","product":"core","slug":"io-github-libtmux-window-window-selectlayout"},{"id":"io.github.libtmux.Window.Window.nextLayout","name":"nextLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":327,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.nextLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.nextLayout","product":"core","slug":"io-github-libtmux-window-window-nextlayout"},{"id":"io.github.libtmux.Window.Window.previousLayout","name":"previousLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.previousLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.previousLayout","product":"core","slug":"io-github-libtmux-window-window-previouslayout"},{"id":"io.github.libtmux.Window.Window.applyLayout","name":"applyLayout","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(WindowLayout layout)","params":[{"name":"layout","type":"WindowLayout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]},{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(String layout)","params":[{"name":"layout","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]}],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}.","body":"The string is checked here rather than by tmux, because tmux 3.3a does not survive being\nhanded one it cannot parse: it ends the server and every session on the socket. Every other\nsupported release answers {@code invalid layout}. The classic form carries tmux's own\nchecksum, so a wrong one is detectable without asking; since 3.8 tmux may instead hand back\nJSON, which carries no checksum, so that shape is only trusted from a server new enough to\nhave written it.\n\n\"Exact\" holds in full only for a JSON layout, since that is the one form carrying each\npane's id. A classic string — every release before 3.8, or an older reader against a newer\nserver — restores the geometry but names no pane, so which process lands in which cell can\ndiffer from where it started; whether it does depends on whether the pane list still happens\nto match the order the layout was saved in. Confirmed by hand on 3.2a and 3.7c."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":358,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.applyLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.applyLayout","product":"core","slug":"io-github-libtmux-window-window-applylayout"},{"id":"io.github.libtmux.Window.Window.respawn","name":"respawn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.respawn","product":"core","slug":"io-github-libtmux-window-window-respawn"},{"id":"io.github.libtmux.Window.Window.displayPopup","name":"displayPopup","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void displayPopup(String shellCommand)","params":[{"name":"shellCommand","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Shows a popup over this window, running a command in it.","body":"tmux draws a popup for a client, so this needs one attached; on a detached session tmux\nreports that it has no current client.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.displayPopup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.displayPopup","product":"core","slug":"io-github-libtmux-window-window-displaypopup"},{"id":"io.github.libtmux.Window.Window.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.kill","product":"core","slug":"io-github-libtmux-window-window-kill"},{"id":"io.github.libtmux.Window.Window.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Window refresh()","params":[],"returns":"Window","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this window is no longer linked here, from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":413,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.refresh","product":"core","slug":"io-github-libtmux-window-window-refresh"},{"id":"io.github.libtmux.Window.Window.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":432,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.equals","product":"core","slug":"io-github-libtmux-window-window-equals"},{"id":"io.github.libtmux.Window.Window.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hashCode","product":"core","slug":"io-github-libtmux-window-window-hashcode"},{"id":"io.github.libtmux.Window.Window.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":444,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.toString","product":"core","slug":"io-github-libtmux-window-window-tostring"},{"id":"io.github.libtmux.WindowId.WindowId","name":"WindowId","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code @} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux window id, such as {@code @1}.","body":"Identifies the window itself, not where it sits. A window linked into two sessions has one id\nand two positions, so this is what to compare when asking whether two links are the same window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId","product":"core","slug":"io-github-libtmux-windowid-windowid"},{"id":"io.github.libtmux.WindowId.WindowId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowId.WindowId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.toString","product":"core","slug":"io-github-libtmux-windowid-windowid-tostring"},{"id":"io.github.libtmux.WindowId.WindowId.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowId.WindowId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code @} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.value","product":"core","slug":"io-github-libtmux-windowid-windowid-value"},{"id":"io.github.libtmux.WindowIndex.WindowIndex","name":"WindowIndex","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowIndex(int value)","params":[{"name":"value","type":"int","doc":"the index, as tmux reports it"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a window sits in one session.","body":"A position, not an identity: tmux renumbering moves a window to a different index, and the\nsame window linked into two sessions can hold a different index in each."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex","product":"core","slug":"io-github-libtmux-windowindex-windowindex"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowIndex.WindowIndex","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.toString","product":"core","slug":"io-github-libtmux-windowindex-windowindex-tostring"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowIndex.WindowIndex","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the index, as tmux reports it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.value","product":"core","slug":"io-github-libtmux-windowindex-windowindex-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout","name":"WindowLayout","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A window's layout as tmux reported it, in whichever of its two forms it used.","body":"tmux writes a layout in its classic checksummed form — {@code c3a4,80x24,0,0,1} — on every\nrelease before 3.8, and as JSON from 3.8, which also names the pane in each cell. The same window\ntherefore reports a differently shaped string depending on the server, and a caller that parses it\nneeds to know which it has. This says, so the compiler can carry what used to be a comment:\n\nEither form is an opaque token to hand back to tmux, which {@link Window#applyLayout(WindowLayout)}\ndoes; parsing one is tmux's job, and {@link #value()} is the text for a caller who wants to anyway.","examples":[{"lang":"java","code":"switch (window.layout()) {\n case WindowLayout.Json json -> restorePanes(json.value());\n case WindowLayout.Classic classic -> restoreGeometry(classic.value());\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"String value();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The layout exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic","name":"Classic","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Classic(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The checksummed form every release writes before 3.8. It carries geometry and no pane ids."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Classic","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json","name":"Json","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Json(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The JSON form tmux writes from 3.8, which names the pane in each cell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Json","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"static WindowLayout of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"WindowLayout","typeScopeBoundary":true}],"doc":{"summary":"Which form a reported layout is in.","body":"Decided as tmux decides it, on whether the first non-blank character opens a JSON object —\n{@code layout_construct} in {@code layout-custom.c} dispatches on nothing more."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.of","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-of"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new window is inserted relative to the current one.","body":"Absent rather than a third constant when the caller does not care: tmux picking the next free\nindex is a different thing from being asked for a particular side, and a {@code DEFAULT} member\nwould have no flag to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","name":"AFTER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.AFTER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-after"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","name":"BEFORE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.BEFORE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-before"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"WindowPlacement(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that places a window this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-flag"},{"id":"io.github.libtmux.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a window should be made.","body":"The shape {@link SplitSpec} uses, for the same reasons: a description that contacts nothing, so\nit can be named, reused, and applied wherever it fits.","examples":[{"lang":"java","code":"Window logs = session.newWindow(w -> w.named(\"logs\").running(\"journalctl\", \"-f\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec","product":"core","slug":"io-github-libtmux-windowspec-windowspec"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached window at the end, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1sop"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name the window is created with, or empty to let tmux choose."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.name","product":"core","slug":"io-github-libtmux-windowspec-windowspec-name"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.directory","product":"core","slug":"io-github-libtmux-windowspec-windowspec-directory"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new window, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the window is left unselected.","body":"False by default, which is what {@code new-window} itself does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.placement","name":"placement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional placement()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window is inserted, or empty for tmux's own choice of index."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.placement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.placement","product":"core","slug":"io-github-libtmux-windowspec-windowspec-placement"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional index()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The index the window is created at, or empty for the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.index","product":"core","slug":"io-github-libtmux-windowspec-windowspec-index"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean replaceExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window already at the target index is destroyed to make room.","body":"Only means anything alongside {@link Builder#atIndex}: tmux has nothing to replace when it\nis choosing the index itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean reuseExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window that already carries this name is selected instead of a second being made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the window's first pane runs, empty for the session's shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.command","product":"core","slug":"io-github-libtmux-windowspec-windowspec-command"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"List argv(String target, String format)","params":[{"name":"target","type":"String","doc":"the session, or the index, to create in"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The command that makes this window, reporting it through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.argv","product":"core","slug":"io-github-libtmux-windowspec-windowspec-argv"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.toString","product":"core","slug":"io-github-libtmux-windowspec-windowspec-tostring"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1f6n"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the window, where tmux would otherwise name it after what runs in it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-named"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","name":"after","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder after()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately after the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.after","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-after"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","name":"before","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder before()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately before the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.before","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-before"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the session's shell. tmux reports the window before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-running"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the window in this directory. A relative one resolves against this process's working directory, on every release: tmux 3.2a would resolve it against the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-in"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new window's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":218,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-env"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new window's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the current window selected, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","name":"atIndex","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder atIndex(int index)","params":[{"name":"index","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates the window at a chosen index rather than the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.atIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-atindex"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder replaceExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Destroys whatever window already sits at the index chosen by {@link #atIndex}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder reuseExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Selects a window that already carries this name rather than making a second.","body":"tmux reports nothing when it reuses one, so the answer comes from a lookup. Every other\ncreating call in this library is told what it made; this is the exception."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public WindowSpec build()","params":[],"returns":"WindowSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-build"},{"id":"io.github.libtmux.Client_.Client_","name":"Client_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Client}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_","product":"core","slug":"io-github-libtmux-client_-client_"},{"id":"io.github.libtmux.Client_.Client_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.name","product":"core","slug":"io-github-libtmux-client_-client_-name"},{"id":"io.github.libtmux.Client_.Client_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.session","product":"core","slug":"io-github-libtmux-client_-client_-session"},{"id":"io.github.libtmux.Pane_.Pane_","name":"Pane_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Pane}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_","product":"core","slug":"io-github-libtmux-pane_-pane_"},{"id":"io.github.libtmux.Pane_.Pane_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane id."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.id","product":"core","slug":"io-github-libtmux-pane_-pane_-id"},{"id":"io.github.libtmux.Pane_.Pane_.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField command()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.command","product":"core","slug":"io-github-libtmux-pane_-pane_-command"},{"id":"io.github.libtmux.Pane_.Pane_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.index","product":"core","slug":"io-github-libtmux-pane_-pane_-index"},{"id":"io.github.libtmux.Pane_.Pane_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.active","product":"core","slug":"io-github-libtmux-pane_-pane_-active"},{"id":"io.github.libtmux.Pane_.Pane_.title","name":"title","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField title()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.title","product":"core","slug":"io-github-libtmux-pane_-pane_-title"},{"id":"io.github.libtmux.Pane_.Pane_.path","name":"path","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField path()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.path","product":"core","slug":"io-github-libtmux-pane_-pane_-path"},{"id":"io.github.libtmux.Pane_.Pane_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.width","product":"core","slug":"io-github-libtmux-pane_-pane_-width"},{"id":"io.github.libtmux.Pane_.Pane_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.height","product":"core","slug":"io-github-libtmux-pane_-pane_-height"},{"id":"io.github.libtmux.Pane_.Pane_.left","name":"left","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField left()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.left","product":"core","slug":"io-github-libtmux-pane_-pane_-left"},{"id":"io.github.libtmux.Pane_.Pane_.top","name":"top","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField top()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.top","product":"core","slug":"io-github-libtmux-pane_-pane_-top"},{"id":"io.github.libtmux.Pane_.Pane_.atTop","name":"atTop","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atTop()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atTop","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atTop","product":"core","slug":"io-github-libtmux-pane_-pane_-attop"},{"id":"io.github.libtmux.Pane_.Pane_.atBottom","name":"atBottom","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atBottom()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atBottom","product":"core","slug":"io-github-libtmux-pane_-pane_-atbottom"},{"id":"io.github.libtmux.Pane_.Pane_.atLeft","name":"atLeft","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atLeft()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atLeft","product":"core","slug":"io-github-libtmux-pane_-pane_-atleft"},{"id":"io.github.libtmux.Pane_.Pane_.atRight","name":"atRight","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atRight()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atRight","product":"core","slug":"io-github-libtmux-pane_-pane_-atright"},{"id":"io.github.libtmux.Session_.Session_","name":"Session_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Session}, for building an expression that can be read as well as run.","body":"Each field exposes only the operators its type supports, so asking a flag to start with a\nstring does not compile. Every field names a tmux format, so a backend model can bind the handle\nbefore translating the expression into tmux's own {@code -f} filter."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_","product":"core","slug":"io-github-libtmux-session_-session_"},{"id":"io.github.libtmux.Session_.Session_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.id","product":"core","slug":"io-github-libtmux-session_-session_-id"},{"id":"io.github.libtmux.Session_.Session_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.name","product":"core","slug":"io-github-libtmux-session_-session_-name"},{"id":"io.github.libtmux.Session_.Session_.attached","name":"attached","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.FlagField attached()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.attached","product":"core","slug":"io-github-libtmux-session_-session_-attached"},{"id":"io.github.libtmux.Session_.Session_.windowCount","name":"windowCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.NumberField windowCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windowCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windowCount","product":"core","slug":"io-github-libtmux-session_-session_-windowcount"},{"id":"io.github.libtmux.Session_.Session_.windows","name":"windows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.ToManyRef windows()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windows","product":"core","slug":"io-github-libtmux-session_-session_-windows"},{"id":"io.github.libtmux.Window_.Window_","name":"Window_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Window}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_","product":"core","slug":"io-github-libtmux-window_-window_"},{"id":"io.github.libtmux.Window_.Window_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.id","product":"core","slug":"io-github-libtmux-window_-window_-id"},{"id":"io.github.libtmux.Window_.Window_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.name","product":"core","slug":"io-github-libtmux-window_-window_-name"},{"id":"io.github.libtmux.Window_.Window_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.index","product":"core","slug":"io-github-libtmux-window_-window_-index"},{"id":"io.github.libtmux.Window_.Window_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.active","product":"core","slug":"io-github-libtmux-window_-window_-active"},{"id":"io.github.libtmux.Window_.Window_.linked","name":"linked","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField linked()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.linked","product":"core","slug":"io-github-libtmux-window_-window_-linked"},{"id":"io.github.libtmux.Window_.Window_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.width","product":"core","slug":"io-github-libtmux-window_-window_-width"},{"id":"io.github.libtmux.Window_.Window_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.height","product":"core","slug":"io-github-libtmux-window_-window_-height"},{"id":"io.github.libtmux.Window_.Window_.paneCount","name":"paneCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField paneCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.paneCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.paneCount","product":"core","slug":"io-github-libtmux-window_-window_-panecount"},{"id":"io.github.libtmux.Window_.Window_.panes","name":"panes","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToManyRef panes()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.panes","product":"core","slug":"io-github-libtmux-window_-window_-panes"},{"id":"io.github.libtmux.Window_.Window_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.session","product":"core","slug":"io-github-libtmux-window_-window_-session"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec","name":"PaneSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneSpec(List commands)","params":[{"name":"commands","type":"List","doc":"the commands to send, in order; a pane with none is left at its shell"}]}],"typeScopeBoundary":false,"doc":{"summary":"One pane and what to run in it."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","name":"commands","kind":"method","parent":"io.github.libtmux.workspace.PaneSpec.PaneSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands to send, in order; a pane with none is left at its shell"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec.commands","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec-commands"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowSpec(String name, Optional layout, List panes)","params":[{"name":"name","type":"String","doc":"the window name"},{"name":"layout","type":"Optional","doc":"the tmux layout to apply once the panes exist, if the file asked for one"},{"name":"panes","type":"List","doc":"the panes to create, in order; a window always has at least one"}]}],"typeScopeBoundary":false,"doc":{"summary":"One window, its panes, and how they are arranged."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","name":"name","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.name","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-name"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","name":"layout","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the tmux layout to apply once the panes exist, if the file asked for one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.layout","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-layout"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","name":"panes","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the panes to create, in order; a window always has at least one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.panes","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-panes"},{"id":"io.github.libtmux.workspace.Workspace.Workspace","name":"Workspace","kind":"class","modifiers":[],"signatures":[{"raw":"public record Workspace(String sessionName, List windows)","params":[{"name":"sessionName","type":"String","doc":"the session to create"},{"name":"windows","type":"List","doc":"the windows to create, in order"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session described in a file, before anything has been built."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","name":"sessionName","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session to create"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.sessionName","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-sessionname"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.windows","name":"windows","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the windows to create, in order"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.windows","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.windows","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-windows"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","name":"WorkspaceApplier","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Applies a validated workspace as one session and attempts to remove it after a failure."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","signatures":[{"raw":"static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier-build"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","name":"WorkspaceBuilder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Builds a tmux session from a written description.","body":"Reads the shape of a tmuxp workspace file. Full runtime compatibility with tmuxp is not the\naim; starting from a file somebody already has is.\n\nReading and building are separate. A file that describes something tmux would refuse is\nrejected while it is still text, before any session exists to leave half-built.\n\nThe {@code tmux-workspace} command is a separate implementation with a wider document\nlanguage and its own behaviour around building; see this package's documentation for what\ndiffers. Code against this class for what this class does."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace read(Path file)","params":[{"name":"file","type":"Path"}],"returns":"Workspace","typeScopeBoundary":true}],"doc":{"summary":"Reads a workspace from a file."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.read","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-read"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the description is one tmux could not build, including a layout name tmux would not recognise"}]}],"doc":{"summary":"Reads a workspace from YAML text."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-parse"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true,"returnsDoc":"the session, from a capture taken once everything exists"}],"doc":{"summary":"Creates the described session on a server."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-build"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","name":"WorkspaceParser","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Converts the supported YAML shape into immutable workspace values."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","signatures":[{"raw":"static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser-parse"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson","name":"FilterJson","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The versioned wire form of a filter expression.","body":"Writing and reading both require a model. Expressions hold executable accessors and navigators,\nwhile documents carry only their ids; the model is the authority that binds one to the other.\nRegex operands retain {@link java.util.regex.Pattern} syntax and flag bits.\n\nEverything unrecognised fails. An expression read wrongly does not announce itself — it\nsilently matches the wrong things, and a caller who wanted a filter gets one, just not theirs."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","name":"SCHEMA","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[],"typeScopeBoundary":true,"type":"String","value":"\"libtmux.filter/1\"","doc":{"summary":"The schema this version reads and writes. Immutable once published."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.SCHEMA","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-schema"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.write","name":"write","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static ObjectNode write(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"ObjectNode","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if any field or relation is not the exact handle declared by the model"}]}],"doc":{"summary":"Writes an expression as a document for the model that declared all of its fields and relations."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.write","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.write","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-write"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","name":"writeString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static String writeString(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"String","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Writes an expression as compact JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.writeString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-writestring"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr read(JsonNode document, FilterModel model)","params":[{"name":"document","type":"JsonNode"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if the schema version, the model, a field, a relation, an operator or a node shape is not one this version knows"}]}],"doc":{"summary":"Reads a document back as an expression over the given model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.read","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.read","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-read"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","name":"readString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr readString(String json, FilterModel model)","params":[{"name":"json","type":"String"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Reads a document from JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.readString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-readstring"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel","name":"FilterModel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the entity this model describes"}],"doc":{"summary":"What a document's field and relation ids mean.","body":"Expressions carry executable field and relation handles, while documents carry only their ids.\nThis model binds those forms and gives each nested relation its target model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.named","name":"named","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public static Builder named(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"public static Builder named(String id, Class entityType)","params":[{"name":"id","type":"String"},{"name":"entityType","type":"Class"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Starts a caller-owned model. Its id must identify the caller's namespace."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.named","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.named","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-named"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"static Builder builtIn(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.builtIn","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builtin"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The id documents name this model by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.id","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.id","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-id"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","name":"fieldNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set fieldNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every field a document may compare on, in declaration order."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.fieldNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-fieldnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","name":"relationNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set relationNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every relation a document may navigate."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.relationNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relationnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.field","name":"field","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"FieldRef field(String fieldId)","params":[{"name":"fieldId","type":"String"}],"returns":"FieldRef","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","name":"toMany","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toMany(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","name":"toOne","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toOne(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","name":"Relation","kind":"class","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"record Relation(\n Fields.@Nullable ToManyRef toMany,\n Fields.@Nullable ToOneRef toOne,\n Supplier> targetModel)","params":[{"name":"toMany","type":"Fields.@Nullable ToManyRef"},{"name":"toOne","type":"Fields.@Nullable ToOneRef"},{"name":"targetModel","type":"Supplier>"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A relation handle paired with the model its far side is described by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","name":"target","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","signatures":[{"raw":"FilterModel target()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.target","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-target"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","name":"toMany","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToManyRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","name":"toOne","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToOneRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","name":"targetModel","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Supplier>"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.targetModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-targetmodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Collects the exact handles and unique ids a document may name."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","name":"field","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder field(Fields.TextField field)","params":[{"name":"field","type":"Fields.TextField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.NumberField field)","params":[{"name":"field","type":"Fields.NumberField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.FlagField field)","params":[{"name":"field","type":"Fields.FlagField"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Declares a text field by the handle a metamodel already mints."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","name":"toMany","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toMany(Fields.ToManyRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toMany(Fields.ToManyRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-many relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","name":"toOne","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toOne(Fields.ToOneRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toOne(Fields.ToOneRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-one relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public FilterModel build()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"doc":{"summary":"Builds the model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.build","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-build"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","name":"LibTmuxModels","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The wire ids for this library's own entities.","body":"The ids are tmux's format names, which is what makes a document readable by something that is\nnot this library: another implementation already knows what {@code pane_current_command} means."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel pane()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code pane}."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.pane","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-pane"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel window()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code window}, reaching panes."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.window","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-window"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel session()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code session}, reaching windows."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.session","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-session"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","name":"client","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel client()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code client}, reaching its session."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.client","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-client"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException","name":"SchemaException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A document could not be read as the expression it claims to be.","body":"Every failure here is a refusal rather than a best effort. An expression read wrongly does not\nannounce itself: it silently matches the wrong things, which is worse than not loading at all. An\n{@link IllegalArgumentException}, since the fault is in the document, not in talking to tmux."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","name":"SchemaException","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.SchemaException.SchemaException","signatures":[{"raw":"public SchemaException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception-schemaexception"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A {@code tmux -C} client of a {@link FakeTmux}, as the process a control client talks to.","body":"It reads one command line at a time, has the fake answer it, and writes the reply block tmux\nwould: {@code %begin}, the output, then {@code %end} or {@code %error}. Pushed output and\nnotifications are written between replies, never inside one, as tmux writes them. It ends, with\n{@code %exit}, when the fake restarts or the client closes its input."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"FakeControlClient(Function>, CommandResult> answer)","params":[{"name":"answer","type":"Function>, CommandResult>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","name":"push","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void push(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes an unprompted line, such as {@code %output}, between replies."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.push","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-push"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void end()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.end","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-end"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"static List> parse(String line)","params":[{"name":"line","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"A command line as tmux's parser reads the ones this library writes: each argument single quoted, a quote as {@code '\\''}, a newline or return as {@code \"\\n\"} or {@code \"\\r\"}, and an unquoted {@code ;} between commands."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-parse"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","name":"getOutputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public OutputStream getOutputStream()","params":[],"returns":"OutputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getOutputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getoutputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","name":"getInputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getInputStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getInputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getinputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","name":"getErrorStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getErrorStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getErrorStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-geterrorstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","name":"waitFor","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int waitFor() throws InterruptedException","params":[],"returns":"int","typeScopeBoundary":false},{"raw":"@Override\n public boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException","params":[{"name":"timeout","type":"long"},{"name":"unit","type":"TimeUnit"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.waitFor","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-waitfor"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","name":"exitValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int exitValue()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.exitValue","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-exitvalue"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.isAlive","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-isalive"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","name":"destroy","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public void destroy()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.destroy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-destroy"},{"id":"io.github.libtmux.junit5.FakePane.FakePane","name":"FakePane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One pane in a {@link FakeWindow}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":5,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.id","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-id"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.index","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-index"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.command","name":"command","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.command","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.command","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-command"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.directory","name":"directory","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.directory","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.directory","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-directory"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.pid","name":"pid","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"long","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.pid","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.pid","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-pid"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.title","name":"title","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","value":"\"\"","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.title","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.title","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-title"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","name":"FakePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[{"raw":"FakePane(String id, int index, String command, String directory, long pid)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"command","type":"String"},{"name":"directory","type":"String"},{"name":"pid","type":"long"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession","name":"FakeSession","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One session in a {@link FakeTmux}, holding its windows in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.id","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-id"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.name","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-name"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","name":"windows","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-windows"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","name":"FakeSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[{"raw":"FakeSession(String id, String name)","params":[{"name":"id","type":"String"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux","name":"FakeTmux","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux server that is not there, for testing code that uses this library without starting one.","body":"It answers the way tmux answers, not the way a stub would: a listing is rendered from the\ntemplate the library sends, so a snapshot of a fake server is a real snapshot and every handle\nworks; a handle command is fenced on the server's identity and refused once the fake is replaced,\nas tmux refuses it; a group stops at its first failure. What it models is the hierarchy —\nsessions, windows, panes and their names and titles — and what each pane shows. What it does not\nmodel is a shell: keys sent to a pane are recorded, not run, and a pane shows what the test says.\n\nFor behaviour that depends on tmux itself — what a release does with a flag, how a real shell\nechoes — test against real tmux with {@link TmuxExtension} instead. This is for code whose\ninterest in tmux ends at the calls it makes.","examples":[{"lang":"java","code":"FakeTmux tmux = new FakeTmux();\nPaneId editor = tmux.addSession(\"work\");\ntmux.show(editor, \"$ make\", \"make: Nothing to be done for 'all'.\");\n\ntry (Server server = tmux.server()) {\n Pane pane = server.pane(editor).orElseThrow();\n pane.capture(); // → [$ make, make: Nothing to be done for 'all'.]\n pane.sendLine(\"make test\");\n}\n\ntmux.sent(); // every command, as the library sent it"}]},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","name":"FakeTmux","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public FakeTmux()","params":[],"typeScopeBoundary":false}],"doc":{"summary":"A fake server with no sessions, as tmux is before anything has been created."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"A server this transport answers for.","body":"Borrowed rather than owned, so closing it leaves this fake as it is and a test can inspect\nit afterwards."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-server"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","name":"addSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized PaneId addSession(String name)","params":[{"name":"name","type":"String"}],"returns":"PaneId","typeScopeBoundary":false,"returnsDoc":"the pane, so a test can say what it shows"}],"doc":{"summary":"Adds a session with one window and one pane running {@code sh}, as {@code new-session} makes."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.addSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-addsession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","name":"restart","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void restart()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Replaces the server, as a restart does: a new process, and nothing in it.","body":"Handles made before this are refused from now on, which is what a test of code that has to\nsurvive a server restarting under it needs to see."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.restart","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-restart"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void show(PaneId pane, String... lines)","params":[{"name":"pane","type":"PaneId"},{"name":"lines","type":"String","variadic":"positional"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"What the pane shows, one element per line, which is what capturing it answers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.show","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-show"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","name":"sent","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List> sent()","params":[],"returns":"List>","typeScopeBoundary":false}],"doc":{"summary":"Every command the library sent, in order, each as the words tmux would have read.","body":"Unwrapped: a command the library fenced on the server's identity or sent in a group is here\nas itself, and the plumbing that carried it is not."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sent","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sent"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The sessions the fake holds now, by id."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sessions","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sessions"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public synchronized CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.execute","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-execute"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Control clients of this fake: {@code server.control(session)} attaches one, its commands are answered as this fake answers any other, and it hears what {@link #output} and {@link #notify} push. A restart ends every client attached, as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.controlCarrier","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-controlcarrier"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","name":"output","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void output(PaneId pane, String text)","params":[{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes what a pane wrote to every attached control client, as tmux's {@code %output}: a control byte or a backslash as three octal digits, and the rest as it is."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":267,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.output","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-output"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","name":"notify","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void notify(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes a notification line, such as {@code %window-renamed @1 logs}, to every attached client."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.notify","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-notify"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":294,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-close"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow","name":"FakeWindow","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One window in a {@link FakeSession}, holding its panes in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-id"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-index"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-name"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","name":"active","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakePane active()","params":[],"returns":"FakePane","typeScopeBoundary":false}],"typeScopeBoundary":false,"type":"boolean","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-active"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","name":"panes","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-panes"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","name":"FakeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakeWindow(String id, int index, String name)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.Flags.Flags","name":"Flags","kind":"class","modifiers":[],"signatures":[{"raw":"record Flags(Map values, Set switches, List positional)","params":[{"name":"values","type":"Map"},{"name":"switches","type":"Set"},{"name":"positional","type":"List"}]}],"typeScopeBoundary":false,"doc":{"summary":"A command's flags and the words after them, read as tmux's argument parser reads them."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags","product":"core","slug":"io-github-libtmux-junit5-flags-flags"},{"id":"io.github.libtmux.junit5.Flags.Flags.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"static Flags parse(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Flags","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.parse","product":"core","slug":"io-github-libtmux-junit5-flags-flags-parse"},{"id":"io.github.libtmux.junit5.Flags.Flags.has","name":"has","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"boolean has(String flag)","params":[{"name":"flag","type":"String"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.has","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.has","product":"core","slug":"io-github-libtmux-junit5-flags-flags-has"},{"id":"io.github.libtmux.junit5.Flags.Flags.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"@Nullable\n String value(String flag)","params":[{"name":"flag","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.value","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.value","product":"core","slug":"io-github-libtmux-junit5-flags-flags-value"},{"id":"io.github.libtmux.junit5.Flags.Flags.values","name":"values","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Map"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.values","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.values","product":"core","slug":"io-github-libtmux-junit5-flags-flags-values"},{"id":"io.github.libtmux.junit5.Flags.Flags.switches","name":"switches","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Set"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.switches","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.switches","product":"core","slug":"io-github-libtmux-junit5-flags-flags-switches"},{"id":"io.github.libtmux.junit5.Flags.Flags.positional","name":"positional","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.positional","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.positional","product":"core","slug":"io-github-libtmux-junit5-flags-flags-positional"},{"id":"io.github.libtmux.junit5.Formats.Formats","name":"Formats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The part of tmux's format language the library sends: variables, comparisons, {@code &&} and {@code ||}, {@code ?} conditionals, and the {@code W:} and {@code P:} loops."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats","product":"core","slug":"io-github-libtmux-junit5-formats-formats"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope","name":"Scope","kind":"interface","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"What a format is expanded against: a row's variables, and the rows a loop visits."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"@Nullable\n String get(String variable);","params":[{"name":"variable","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.get","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.get","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-get"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List windows();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The windows of this row's session, each at its active pane."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-windows"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List panes();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes of this row's window."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-panes"},{"id":"io.github.libtmux.junit5.Formats.Formats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String literal(String value)","params":[{"name":"value","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Undoes {@code TmuxFormats.literal}: tmux reads {@code ##} in a format as one {@code #}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.literal","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.literal","product":"core","slug":"io-github-libtmux-junit5-formats-formats-literal"},{"id":"io.github.libtmux.junit5.Formats.Formats.expand","name":"expand","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String expand(String format, Function variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Function"}],"returns":"String","typeScopeBoundary":true},{"raw":"static String expand(String format, Scope variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Scope"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.expand","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.expand","product":"core","slug":"io-github-libtmux-junit5-formats-formats-expand"},{"id":"io.github.libtmux.junit5.Formats.Formats.truthy","name":"truthy","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static boolean truthy(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.truthy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.truthy","product":"core","slug":"io-github-libtmux-junit5-formats-formats-truthy"},{"id":"io.github.libtmux.junit5.Groups.Groups","name":"Groups","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a command group the way tmux's command parser reads it: words in single quotes, a quote spelled {@code '\\''}, a line break spelled {@code \"\\n\"}, commands separated by {@code ;}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups","product":"core","slug":"io-github-libtmux-junit5-groups-groups"},{"id":"io.github.libtmux.junit5.Groups.Groups.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Groups.Groups","signatures":[{"raw":"static List> parse(String text)","params":[{"name":"text","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups.parse","product":"core","slug":"io-github-libtmux-junit5-groups-groups-parse"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","name":"NamedServerFixture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the safe teardown of a tmux server addressed by socket name."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","name":"own","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public static NamedServerFixture own(Server server, String expectedName, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedName","type":"String","doc":"the exact socket name the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the {@code TMUX_TMPDIR} assigned to this test task"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]},{"raw":"public static NamedServerFixture own(Server server, Path expectedSocket, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedSocket","type":"Path","doc":"the exact socket path the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the owned root that must contain the socket"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]}],"doc":{"summary":"Authenticates a live named server and takes responsibility for ending it."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.own","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-own"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"Returns the exact socket path authenticated when ownership was taken."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-socket"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"@Override\n public synchronized void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-close"},{"id":"io.github.libtmux.junit5.Target.Target","name":"Target","kind":"class","modifiers":[],"signatures":[{"raw":"record Target(FakeSession session, FakeWindow window, FakePane pane)","params":[{"name":"session","type":"FakeSession"},{"name":"window","type":"FakeWindow"},{"name":"pane","type":"FakePane"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session, one of its windows, and one of that window's panes: what a command is scoped to."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target","product":"core","slug":"io-github-libtmux-junit5-target-target"},{"id":"io.github.libtmux.junit5.Target.Target.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional active(List sessions)","params":[{"name":"sessions","type":"List"}],"returns":"Optional","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.active","product":"core","slug":"io-github-libtmux-junit5-target-target-active"},{"id":"io.github.libtmux.junit5.Target.Target.resolve","name":"resolve","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional resolve(List sessions, @Nullable String spec)","params":[{"name":"sessions","type":"List"},{"name":"spec","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"Resolves {@code $id}, {@code @id}, {@code %id} and {@code =name}, with any trailing separator."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.resolve","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.resolve","product":"core","slug":"io-github-libtmux-junit5-target-target-resolve"},{"id":"io.github.libtmux.junit5.Target.Target.session","name":"session","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeSession"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.session","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.session","product":"core","slug":"io-github-libtmux-junit5-target-target-session"},{"id":"io.github.libtmux.junit5.Target.Target.window","name":"window","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeWindow"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.window","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.window","product":"core","slug":"io-github-libtmux-junit5-target-target-window"},{"id":"io.github.libtmux.junit5.Target.Target.pane","name":"pane","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakePane"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.pane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.pane","product":"core","slug":"io-github-libtmux-junit5-target-target-pane"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","name":"TmuxExtension","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Gives each test its own tmux server and guarantees it is gone afterwards.","body":"All state lives in the extension store, never in fields. JUnit reuses one declaratively\nregistered extension instance for every test in a class, so a field is shared state the moment\ntests run in parallel, and one test's teardown then reaches another test's server.\n\nThe server is started eagerly, before the test body, and the aggregate that owns it is\nregistered before any process exists. Registering afterwards leaves a window in which a failure\npartway through setup leaks a running tmux that nothing is left holding.\n\nTeardown is driven from a lifecycle callback and the aggregate is also {@link AutoCloseable}\nfor the framework's own store handling. Relying on store auto-close alone is a silent dependency\non a configuration property: with it disabled that design releases nothing and reports nothing.\nThe aggregate closes exactly once, so either path alone is sufficient."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","name":"fixtureRoot","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Path fixtureRoot()","params":[],"returns":"Path","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.fixtureRoot","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixtureroot"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","name":"reapAbandoned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static int reapAbandoned(Path root)","params":[{"name":"root","type":"Path"}],"returns":"int","typeScopeBoundary":true}],"doc":{"summary":"Ends every tmux server under {@code root} whose owning JVM is gone, and answers how many ended. Runs while other runs are using the same root, so it may only touch abandoned servers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.reapAbandoned","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-reapabandoned"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","name":"startOf","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Optional startOf(long pid)","params":[{"name":"pid","type":"long"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"When a process started, in a form every JVM on this machine reads the same way: the kernel's own ticks since boot on Linux, and the platform's start instant elsewhere."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.startOf","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-startof"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","name":"deleteTree","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static void deleteTree(Path root)","params":[{"name":"root","type":"Path"}],"returns":"void","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":255,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.deleteTree","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-deletetree"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","name":"beforeEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void beforeEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.beforeEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-beforeeach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","name":"supportsParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public boolean supportsParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.supportsParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-supportsparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","name":"resolveParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public Object resolveParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"Object","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.resolveParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-resolveparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","name":"afterEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void afterEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.afterEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-aftereach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","name":"Fixture","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"One test's server, socket and directory, released exactly once."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"synchronized void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.start","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-start"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-server"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-socket"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"@Override\n public synchronized void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-close"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","name":"awaitExit","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"static boolean awaitExit(Server server)","params":[{"name":"server","type":"Server"}],"returns":"boolean","typeScopeBoundary":true},{"raw":"static boolean awaitExit(Server server, long timeoutMillis)","params":[{"name":"server","type":"Server"},{"name":"timeoutMillis","type":"long"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Exit is proved by asking, not assumed from a kill that may have raced."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.awaitExit","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-awaitexit"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","name":"TmuxSocketPath","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxSocketPath(Path path)","params":[{"name":"path","type":"Path","doc":"the exact socket path this test's tmux was started with"}]}],"typeScopeBoundary":false,"doc":{"summary":"The socket a fixture server is listening on.","body":"A distinct type rather than a bare {@link Path} so the extension can resolve it without\nclaiming every {@code Path} parameter a test might want from some other extension."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the exact socket path this test's tmux was started with"},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath.path","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath-path"},{"id":"io.github.libtmux.mcp.Main.Main","name":"Main","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs the tmux MCP server over stdin and stdout.","body":"An MCP client launches this as a subprocess and speaks JSON-RPC over its standard streams, so\n**nothing may write to stdout but the protocol**. Diagnostics go to stderr, which the\nclient is free to log or discard.\n\nWhich tmux server to expose is chosen the same way the library chooses it: a socket path, a\nsocket name, or tmux's own default.\n\nThe unordered toolset and named-tool environment variables resolve one immutable surface\nbefore tmux is opened. A tool outside it is neither listed nor callable.","examples":[{"lang":"java","code":"libtmux-mcp --socket /run/user/1000/tmux/default\nlibtmux-mcp --socket-name work --tmux /usr/local/bin/tmux"}]},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.main","name":"main","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"public static void main(String[] args)","params":[{"name":"args","type":"String[]","doc":"{@code --socket PATH}, {@code --socket-name NAME}, {@code --tmux BINARY}"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout until the client closes them."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.configure","name":"configure","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"static ServerConfig configure(List args)","params":[{"name":"args","type":"List"}],"returns":"ServerConfig","typeScopeBoundary":true},{"raw":"static ServerConfig configure(List args, Map environment)","params":[{"name":"args","type":"List"},{"name":"environment","type":"Map"}],"returns":"ServerConfig","typeScopeBoundary":true}],"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.configure","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.configure","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-configure"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","name":"TmuxMcpServer","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Exposes a tmux server to a model over the Model Context Protocol.","body":"Thin by design. What the tools do lives in {@link Catalog} and the classes it names, which is\nwhat gets tested against real tmux; this class describes them to a client and turns their answers\ninto protocol.\n\nThe SDK dispatches synchronous handlers on its bounded worker scheduler, not the transport I/O\nthread. Core operations remain typed and synchronous; wait and channel operations retain their\nown cancellation and timeout contracts."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","name":"overStdio","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer overStdio(Server server)","params":[{"name":"server","type":"Server"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout, which is how an MCP client launches a tool."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.overStdio","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-overstdio"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","name":"serving","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer serving(Server server, McpServerTransportProvider transport)","params":[{"name":"server","type":"Server"},{"name":"transport","type":"McpServerTransportProvider"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over a caller-supplied transport.","body":"The returned server owns the transport. Ownership transfers on entry, so failed startup\ncloses it too."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.serving","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-serving"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"workspace","package":"libtmux-workspace","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"mcp","package":"libtmux-mcp","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Client}.\n */\npublic final class Client_ {\n private static final Fields.TextField NAME = Fields.text(\"client_name\", Client::name);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", Client::session);\n\n private Client_() {\n }\n\n /**\n * The client's terminal name, which is how tmux addresses it.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * The session this client was attached to, if any.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Pane}.\n */\npublic final class Pane_ {\n private static final Fields.TextField ID = Fields.text(\"pane_id\", pane -> pane.id().value());\n\n private static final Fields.TextField COMMAND = Fields.text(\"pane_current_command\", Pane::currentCommand);\n\n private static final Fields.NumberField INDEX = Fields.number(\"pane_index\", Pane::index);\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"pane_active\", Pane::active);\n\n private static final Fields.TextField TITLE = Fields.text(\"pane_title\", Pane::title);\n\n private static final Fields.TextField PATH = Fields.text(\"pane_current_path\", Pane::currentPathText);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"pane_width\", pane -> pane.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"pane_height\", pane -> pane.size().height());\n\n private static final Fields.NumberField LEFT = Fields.number(\"pane_left\", pane -> pane.position().left());\n\n private static final Fields.NumberField TOP = Fields.number(\"pane_top\", pane -> pane.position().top());\n\n private static final Fields.FlagField AT_TOP = Fields.flag(\"pane_at_top\", pane -> pane.edges().top());\n\n private static final Fields.FlagField AT_BOTTOM = Fields.flag(\"pane_at_bottom\", pane -> pane.edges().bottom());\n\n private static final Fields.FlagField AT_LEFT = Fields.flag(\"pane_at_left\", pane -> pane.edges().left());\n\n private static final Fields.FlagField AT_RIGHT = Fields.flag(\"pane_at_right\", pane -> pane.edges().right());\n\n private Pane_() {\n }\n\n /**\n * The pane id.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The command tmux reported running in the pane.\n */\n public static Fields.TextField command() {\n return COMMAND;\n }\n\n /**\n * The pane's position in its window.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its window's active pane.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * The pane's title, which a program running in it can set.\n */\n public static Fields.TextField title() {\n return TITLE;\n }\n\n /**\n * The pane's working directory, as the text tmux reported.\n */\n public static Fields.TextField path() {\n return PATH;\n }\n\n /**\n * The pane's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The pane's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * The column of the pane's left edge in its window.\n */\n public static Fields.NumberField left() {\n return LEFT;\n }\n\n /**\n * The row of the pane's top edge in its window.\n */\n public static Fields.NumberField top() {\n return TOP;\n }\n\n /**\n * Whether the pane touches the top of its window.\n */\n public static Fields.FlagField atTop() {\n return AT_TOP;\n }\n\n /**\n * Whether the pane touches the bottom of its window.\n */\n public static Fields.FlagField atBottom() {\n return AT_BOTTOM;\n }\n\n /**\n * Whether the pane touches the left of its window.\n */\n public static Fields.FlagField atLeft() {\n return AT_LEFT;\n }\n\n /**\n * Whether the pane touches the right of its window.\n */\n public static Fields.FlagField atRight() {\n return AT_RIGHT;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Session}, for building an expression that can be read as well as run.\n *\n *

Each field exposes only the operators its type supports, so asking a flag to start with a\n * string does not compile. Every field names a tmux format, so a backend model can bind the handle\n * before translating the expression into tmux's own {@code -f} filter.\n */\npublic final class Session_ {\n private static final Fields.TextField ID = Fields.text(\"session_id\", session -> session.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"session_name\", Session::name);\n\n private static final Fields.FlagField ATTACHED = Fields.flag(\"session_attached\", Session::attached);\n\n private static final Fields.NumberField WINDOW_COUNT = Fields.number(\"session_windows\", session -> session.windows().size());\n\n private static final Fields.ToManyRef WINDOWS = Fields.toMany(\"windows\", Session::windows);\n\n private Session_() {\n }\n\n /**\n * The session id, as text, so it can be compared and listed.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The session name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Whether a client was attached when this was captured.\n */\n public static Fields.FlagField attached() {\n return ATTACHED;\n }\n\n /**\n * How many windows this session holds.\n */\n public static Fields.NumberField windowCount() {\n return WINDOW_COUNT;\n }\n\n /**\n * This session's windows.\n */\n public static Fields.ToManyRef windows() {\n return WINDOWS;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Window}.\n */\npublic final class Window_ {\n private static final Fields.TextField ID = Fields.text(\"window_id\", window -> window.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"window_name\", Window::name);\n\n private static final Fields.NumberField INDEX = Fields.number(\"window_index\", window -> window.index().value());\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"window_active\", Window::active);\n\n private static final Fields.FlagField LINKED = Fields.flag(\"window_linked\", Window::linked);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"window_width\", window -> window.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"window_height\", window -> window.size().height());\n\n private static final Fields.NumberField PANE_COUNT = Fields.number(\"window_panes\", window -> window.panes().size());\n\n private static final Fields.ToManyRef PANES = Fields.toMany(\"panes\", Window::panes);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", window -> java.util.Optional.of(window.session()));\n\n private Window_() {\n }\n\n /**\n * The underlying window id, shared by every link to it.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The window name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Where this link sits in its session.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its session's active window.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * Whether the underlying window is linked into more than one session.\n */\n public static Fields.FlagField linked() {\n return LINKED;\n }\n\n /**\n * The window's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The window's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * How many panes this link holds.\n */\n public static Fields.NumberField paneCount() {\n return PANE_COUNT;\n }\n\n /**\n * This link's panes.\n */\n public static Fields.ToManyRef panes() {\n return PANES;\n }\n\n /**\n * The session this link belongs to.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n"},"repo":"libtmux/libtmux-java"} diff --git a/site/src/data/api/kotlin.json b/site/src/data/api/kotlin.json index f0bdc31fe..d65fea074 100644 --- a/site/src/data/api/kotlin.json +++ b/site/src/data/api/kotlin.json @@ -1 +1 @@ -{"port":"kotlin","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (kotlin syntax)","symbols":[{"id":"io.github.libtmux.kotlin.Batch","name":"Batch","kind":"class","signatures":[{"raw":"public class Batch","params":[]}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"Several tmux commands collected to run together in one invocation.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BatchOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch"},{"id":"io.github.libtmux.kotlin.Batch.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Batch","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-server"},{"id":"io.github.libtmux.kotlin.Batch.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public val asJava: JavaBatch","params":[],"returns":"JavaBatch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"The Java batch this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-asjava"},{"id":"io.github.libtmux.kotlin.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun add(vararg argv: String): Batch","params":[{"name":"argv","type":"String"}],"returns":"Batch"},{"raw":"public fun add(argv: List): Batch","params":[{"name":"argv","type":"List"}],"returns":"Batch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"doc":{"summary":"Adds one tmux command, its arguments already separate elements. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-add"},{"id":"io.github.libtmux.kotlin.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun size(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many operations have been collected. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-size"},{"id":"io.github.libtmux.kotlin.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun length(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-length"},{"id":"io.github.libtmux.kotlin.Batch.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-equals"},{"id":"io.github.libtmux.kotlin.Batch.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-hashcode"},{"id":"io.github.libtmux.kotlin.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-tostring"},{"id":"io.github.libtmux.kotlin.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"public class Buffers","params":[]}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The tmux server's paste buffers.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BuffersOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers"},{"id":"io.github.libtmux.kotlin.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-server"},{"id":"io.github.libtmux.kotlin.Buffers.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public val asJava: JavaBuffers","params":[],"returns":"JavaBuffers"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The Java buffers this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-asjava"},{"id":"io.github.libtmux.kotlin.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-equals"},{"id":"io.github.libtmux.kotlin.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-hashcode"},{"id":"io.github.libtmux.kotlin.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-tostring"},{"id":"io.github.libtmux.kotlin.Client","name":"Client","kind":"class","signatures":[{"raw":"public class Client","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"An attached tmux client and its captured properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ClientOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client"},{"id":"io.github.libtmux.kotlin.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Client","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-server"},{"id":"io.github.libtmux.kotlin.Client.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val asJava: JavaClient","params":[],"returns":"JavaClient"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-asjava"},{"id":"io.github.libtmux.kotlin.Client.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-name"},{"id":"io.github.libtmux.kotlin.Client.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val session: Session?","params":[],"returns":"Session?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-session"},{"id":"io.github.libtmux.kotlin.Client.attachment","name":"attachment","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val attachment: ClientAttachment?","params":[],"returns":"ClientAttachment?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-attachment"},{"id":"io.github.libtmux.kotlin.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-equals"},{"id":"io.github.libtmux.kotlin.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-hashcode"},{"id":"io.github.libtmux.kotlin.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-tostring"},{"id":"io.github.libtmux.kotlin.Client.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion"},{"id":"io.github.libtmux.kotlin.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"public class CommandChain","params":[]}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandChainOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain"},{"id":"io.github.libtmux.kotlin.CommandChain.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-server"},{"id":"io.github.libtmux.kotlin.CommandChain.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public val asJava: JavaCommandChain","params":[],"returns":"JavaCommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"The Java chain this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-asjava"},{"id":"io.github.libtmux.kotlin.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun newWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Makes a window named [name], which the commands after it act on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-newwindow"},{"id":"io.github.libtmux.kotlin.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun renameWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Renames the window the chain is on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-renamewindow"},{"id":"io.github.libtmux.kotlin.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitLeftRight(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into left and right. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splitleftright"},{"id":"io.github.libtmux.kotlin.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitTopBottom(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into top and bottom. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splittopbottom"},{"id":"io.github.libtmux.kotlin.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun sendLine(command: String): CommandChain","params":[{"name":"command","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Types [command] into the current pane and presses Enter. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-sendline"},{"id":"io.github.libtmux.kotlin.CommandChain.then","name":"then","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun then(vararg argv: String): CommandChain","params":[{"name":"argv","type":"String"}],"returns":"CommandChain"},{"raw":"public fun then(argv: List): CommandChain","params":[{"name":"argv","type":"List"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"doc":{"summary":"Adds any tmux command. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-then"},{"id":"io.github.libtmux.kotlin.CommandChain.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-equals"},{"id":"io.github.libtmux.kotlin.CommandChain.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-hashcode"},{"id":"io.github.libtmux.kotlin.CommandChain.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-tostring"},{"id":"io.github.libtmux.kotlin.Commands","name":"Commands","kind":"class","signatures":[{"raw":"public class Commands","params":[]}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The commands this tmux knows, read without starting a server to answer.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandsOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands"},{"id":"io.github.libtmux.kotlin.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Commands","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-server"},{"id":"io.github.libtmux.kotlin.Commands.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public val asJava: JavaCommands","params":[],"returns":"JavaCommands"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The Java commands this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-asjava"},{"id":"io.github.libtmux.kotlin.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-equals"},{"id":"io.github.libtmux.kotlin.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-hashcode"},{"id":"io.github.libtmux.kotlin.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-tostring"},{"id":"io.github.libtmux.kotlin.ControlClient","name":"ControlClient","kind":"class","signatures":[{"raw":"public class ControlClient : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ControlClientOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient"},{"id":"io.github.libtmux.kotlin.ControlClient.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-server"},{"id":"io.github.libtmux.kotlin.ControlClient.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val asJava: JavaControlClient","params":[],"returns":"JavaControlClient"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The Java control client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-asjava"},{"id":"io.github.libtmux.kotlin.ControlClient.isAlive","name":"isAlive","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val isAlive: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether the client is still running."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-isalive"},{"id":"io.github.libtmux.kotlin.ControlClient.standardError","name":"standardError","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardError: String","params":[],"returns":"String"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderror"},{"id":"io.github.libtmux.kotlin.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardErrorTruncated: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether [standardError] stopped before the process finished writing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.kotlin.ControlClient.output","name":"output","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun output(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Terminal output tmux pushes, as a cold [Flow].","body":"A fresh Java subscription opens per [kotlinx.coroutines.flow.Flow.collect] and closes when\ncollection ends, cancels, or throws — fan-out means collecting twice, each with its own gap\naccounting. Not `suspend`: opening the subscription is local and does no tmux round trip: only\ncollecting it reads.\n\nOutput tmux sends before the subscription opens is not delivered, and a cold flow opens it\nonly when collection starts. So a command whose output is wanted belongs in [onSubscribed],\nwhich runs once the subscription exists and before the first read, rather than before\n`collect`: `control.output(32) { control.send(\"send-keys\", ...) }`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-output"},{"id":"io.github.libtmux.kotlin.ControlClient.events","name":"events","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun events(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"State changes tmux volunteers, as a cold [Flow]. Reads, and takes [onSubscribed], as [output] does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-events"},{"id":"io.github.libtmux.kotlin.ControlClient.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-close"},{"id":"io.github.libtmux.kotlin.LibTmuxDsl","name":"LibTmuxDsl","kind":"class","signatures":[{"raw":"@DslMarker\npublic annotation class LibTmuxDsl","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Marks every builder below so an inner block cannot reach an outer block's receiver by accident: `split { directory = x }` inside `window { }` resolves to the innermost [SplitBuilder], never to the [WindowBuilder] it is nested in. Reaching the outer receiver on purpose still works, spelled explicitly (`this@window.directory = x`)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-libtmuxdsl"},{"id":"io.github.libtmux.kotlin.SessionBuilder","name":"SessionBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SessionBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a new session, its initial command, and its windows with [Server.newSession]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder"},{"id":"io.github.libtmux.kotlin.SessionBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-name"},{"id":"io.github.libtmux.kotlin.SessionBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"The session's working directory, which its first window starts in too."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-directory"},{"id":"io.github.libtmux.kotlin.SessionBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in the first window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-running"},{"id":"io.github.libtmux.kotlin.SessionBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new session's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-env"},{"id":"io.github.libtmux.kotlin.SessionBuilder.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun window(configure: WindowBuilder.() -> Unit)","params":[{"name":"configure","type":"WindowBuilder.() -> Unit"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-window"},{"id":"io.github.libtmux.kotlin.WindowBuilder","name":"WindowBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class WindowBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a window and its pane splits inside a [SessionBuilder] block."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder"},{"id":"io.github.libtmux.kotlin.WindowBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-name"},{"id":"io.github.libtmux.kotlin.WindowBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-directory"},{"id":"io.github.libtmux.kotlin.WindowBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in this window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-running"},{"id":"io.github.libtmux.kotlin.WindowBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new window's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-env"},{"id":"io.github.libtmux.kotlin.WindowBuilder.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun split(configure: SplitBuilder.() -> Unit = {})","params":[{"name":"configure","type":"SplitBuilder.() -> Unit","default":"{}"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-split"},{"id":"io.github.libtmux.kotlin.SplitBuilder","name":"SplitBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SplitBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Choose the position, size, and working directory of a new pane split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder"},{"id":"io.github.libtmux.kotlin.SplitBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-directory"},{"id":"io.github.libtmux.kotlin.SplitBuilder.below","name":"below","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun below()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane below this one. tmux's own default if no direction is chosen."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-below"},{"id":"io.github.libtmux.kotlin.SplitBuilder.above","name":"above","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun above()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane above this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-above"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toRight","name":"toRight","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toRight()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the right of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toright"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toLeft","name":"toLeft","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toLeft()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the left of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toleft"},{"id":"io.github.libtmux.kotlin.SplitBuilder.cells","name":"cells","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun cells(count: Int)","params":[{"name":"count","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane by an exact number of cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-cells"},{"id":"io.github.libtmux.kotlin.SplitBuilder.percent","name":"percent","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun percent(share: Int)","params":[{"name":"share","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane as a percentage of the space being split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-percent"},{"id":"io.github.libtmux.kotlin.SplitBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new pane's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-env"},{"id":"io.github.libtmux.kotlin.Environment","name":"Environment","kind":"class","signatures":[{"raw":"public class Environment","params":[]}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"Read and update environment variables used to start processes in tmux.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `EnvironmentOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment"},{"id":"io.github.libtmux.kotlin.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Environment","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-server"},{"id":"io.github.libtmux.kotlin.Environment.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public val asJava: JavaEnvironment","params":[],"returns":"JavaEnvironment"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"The Java environment this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-asjava"},{"id":"io.github.libtmux.kotlin.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-equals"},{"id":"io.github.libtmux.kotlin.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-hashcode"},{"id":"io.github.libtmux.kotlin.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-tostring"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy","name":"ExecutionPolicy","kind":"class","signatures":[{"raw":"public class ExecutionPolicy(\n public val commands: CoroutineDispatcher,\n public val streamReads: CoroutineDispatcher,\n public val defaultDeadline: Duration = Duration.INFINITE,\n)","params":[{"name":"commands","type":"CoroutineDispatcher"},{"name":"streamReads","type":"CoroutineDispatcher"},{"name":"defaultDeadline","type":"Duration","default":"Duration.INFINITE"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Controls the dispatchers and concurrency limits for a [Server]'s suspending operations.","body":"Two independently sized pools, not one: [commands] backs every `suspend` operation this module\ngenerates or hand-writes, sized from the transport's own admission bound rather than a guess.\n[streamReads] backs only what still genuinely blocks a thread — [Server.liveState]'s background\npump. [ControlClient.output] and [ControlClient.events] hold no thread from either pool; they are\nbuilt on [io.github.libtmux.control.EventSubscription.poll] and `onReady`, not on a blocking read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.commands","name":"commands","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val commands: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-commands"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.streamReads","name":"streamReads","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val streamReads: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-streamreads"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.defaultDeadline","name":"defaultDeadline","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val defaultDeadline: Duration = Duration.INFINITE","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-defaultdeadline"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.ExecutionPolicy","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion.default","name":"default","kind":"method","parent":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","signatures":[{"raw":"public fun default(\n config: ServerConfig,\n streamReadCapacity: Int = DEFAULT_STREAM_READ_CAPACITY,\n ): ExecutionPolicy","params":[{"name":"config","type":"ServerConfig"},{"name":"streamReadCapacity","type":"Int","default":"DEFAULT_STREAM_READ_CAPACITY"}],"returns":"ExecutionPolicy"}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Sizes [commands] from `config`'s own [ServerConfig.maxConcurrentCommands], and [streamReads] independently: it bounds a structurally different resource, open [Server.liveState] watches, not tmux process admission."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion-default"},{"id":"io.github.libtmux.kotlin.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"public class Hooks","params":[]}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"Read and update hooks for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `HooksOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks"},{"id":"io.github.libtmux.kotlin.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-server"},{"id":"io.github.libtmux.kotlin.Hooks.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public val asJava: JavaHooks","params":[],"returns":"JavaHooks"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"The Java hooks this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-asjava"},{"id":"io.github.libtmux.kotlin.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-equals"},{"id":"io.github.libtmux.kotlin.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-hashcode"},{"id":"io.github.libtmux.kotlin.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-tostring"},{"id":"io.github.libtmux.kotlin.Keys","name":"Keys","kind":"class","signatures":[{"raw":"public class Keys","params":[]}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `KeysOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys"},{"id":"io.github.libtmux.kotlin.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Keys","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-server"},{"id":"io.github.libtmux.kotlin.Keys.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public val asJava: JavaKeys","params":[],"returns":"JavaKeys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The Java keys this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-asjava"},{"id":"io.github.libtmux.kotlin.Keys.`in`","name":"`in`","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public fun `in`(table: String): Keys","params":[{"name":"table","type":"String"}],"returns":"Keys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The same bindings, in one named table. A pure, local view: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-in"},{"id":"io.github.libtmux.kotlin.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-equals"},{"id":"io.github.libtmux.kotlin.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-hashcode"},{"id":"io.github.libtmux.kotlin.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-tostring"},{"id":"io.github.libtmux.kotlin.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"public class MessageLog","params":[]}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The server's own message log, newest last.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `MessageLogOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog"},{"id":"io.github.libtmux.kotlin.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-server"},{"id":"io.github.libtmux.kotlin.MessageLog.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public val asJava: JavaMessageLog","params":[],"returns":"JavaMessageLog"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The Java message log this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-asjava"},{"id":"io.github.libtmux.kotlin.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-equals"},{"id":"io.github.libtmux.kotlin.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-hashcode"},{"id":"io.github.libtmux.kotlin.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-tostring"},{"id":"io.github.libtmux.kotlin.Options","name":"Options","kind":"class","signatures":[{"raw":"public class Options","params":[]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"Read and update options for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `OptionsOperations.kt`. `get`/`set` are hand-written in both overloads: a Kotlin member\nmakes every same-named extension unreachable regardless of its own parameter types, so the\n`OptionKey` overload cannot be added beside a generated `get(String)`/`set(String, String)`\nwithout also hand-writing those."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options"},{"id":"io.github.libtmux.kotlin.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Options","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-server"},{"id":"io.github.libtmux.kotlin.Options.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public val asJava: JavaOptions","params":[],"returns":"JavaOptions"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"The Java options this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-asjava"},{"id":"io.github.libtmux.kotlin.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun get(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","returnsDoc":"empty only when tmux does not know the option"},{"raw":"public suspend fun get(key: OptionKey): T?","params":[{"name":"key","type":"OptionKey"}],"returns":"T?","typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-get"},{"id":"io.github.libtmux.kotlin.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun set(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]},{"raw":"public suspend fun set(key: OptionKey, value: T)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-set"},{"id":"io.github.libtmux.kotlin.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-equals"},{"id":"io.github.libtmux.kotlin.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-hashcode"},{"id":"io.github.libtmux.kotlin.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-tostring"},{"id":"io.github.libtmux.kotlin.Pane","name":"Pane","kind":"class","signatures":[{"raw":"public class Pane","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"A tmux pane, with operations for input, output, and layout.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PaneOperations.kt`. [Companion] hosts the generated query field namespace\n(`Pane.command`, `Pane.active`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane"},{"id":"io.github.libtmux.kotlin.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Pane","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-server"},{"id":"io.github.libtmux.kotlin.Pane.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val asJava: JavaPane","params":[],"returns":"JavaPane"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The Java pane this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-asjava"},{"id":"io.github.libtmux.kotlin.Pane.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val id: PaneId","params":[],"returns":"PaneId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-id"},{"id":"io.github.libtmux.kotlin.Pane.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val index: Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-index"},{"id":"io.github.libtmux.kotlin.Pane.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-active"},{"id":"io.github.libtmux.kotlin.Pane.currentCommand","name":"currentCommand","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentCommand: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentcommand"},{"id":"io.github.libtmux.kotlin.Pane.floating","name":"floating","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val floating: Boolean?","params":[],"returns":"Boolean?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this pane floats, or null when the running tmux cannot say."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-floating"},{"id":"io.github.libtmux.kotlin.Pane.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-size"},{"id":"io.github.libtmux.kotlin.Pane.position","name":"position","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val position: PanePosition","params":[],"returns":"PanePosition"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-position"},{"id":"io.github.libtmux.kotlin.Pane.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val title: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-title"},{"id":"io.github.libtmux.kotlin.Pane.currentPath","name":"currentPath","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentPath: Path","params":[],"returns":"Path"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentpath"},{"id":"io.github.libtmux.kotlin.Pane.pid","name":"pid","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val pid: Long?","params":[],"returns":"Long?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pid"},{"id":"io.github.libtmux.kotlin.Pane.edges","name":"edges","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val edges: PaneEdges","params":[],"returns":"PaneEdges"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-edges"},{"id":"io.github.libtmux.kotlin.Pane.window","name":"window","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val window: Window","params":[],"returns":"Window"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-window"},{"id":"io.github.libtmux.kotlin.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-batch"},{"id":"io.github.libtmux.kotlin.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hooks"},{"id":"io.github.libtmux.kotlin.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-options"},{"id":"io.github.libtmux.kotlin.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun awaitText(\n text: String,\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"TextOutcome","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [text] shows in this pane.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout, and it does not stop a\nprogram already running in the pane.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-awaittext"},{"id":"io.github.libtmux.kotlin.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun await(\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n settled: (Pane) -> Boolean,\n ): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"},{"name":"settled","type":"(Pane) -> Boolean"}],"returns":"WakeReason","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [settled] accepts this pane, read fresh from tmux before each test.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A read already sent to\ntmux is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-await"},{"id":"io.github.libtmux.kotlin.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun run(\n command: String,\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): PaneRun","params":[{"name":"command","type":"String","doc":"a line of shell, run as `eval` would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"PaneRun","returnsDoc":"the command's exit status and what it printed"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"Cancelling the coroutine interrupts the wait. The command keeps running in the pane; only the\nwait for its end is what cancellation reaches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-run"},{"id":"io.github.libtmux.kotlin.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-equals"},{"id":"io.github.libtmux.kotlin.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hashcode"},{"id":"io.github.libtmux.kotlin.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-tostring"},{"id":"io.github.libtmux.kotlin.Pane.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion"},{"id":"io.github.libtmux.kotlin.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"public class Prompt","params":[]}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The server's command-prompt history.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PromptOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt"},{"id":"io.github.libtmux.kotlin.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-server"},{"id":"io.github.libtmux.kotlin.Prompt.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public val asJava: JavaPrompt","params":[],"returns":"JavaPrompt"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The Java prompt this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-asjava"},{"id":"io.github.libtmux.kotlin.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-equals"},{"id":"io.github.libtmux.kotlin.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-hashcode"},{"id":"io.github.libtmux.kotlin.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-tostring"},{"id":"io.github.libtmux.kotlin.retryIfSafe","name":"retryIfSafe","kind":"function","signatures":[{"raw":"public suspend fun retryIfSafe(times: Int = 1, block: suspend () -> T): T","params":[{"name":"times","type":"Int","default":"1"},{"name":"block","type":"suspend"}],"returns":"T","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"DispatchException":"io.github.libtmux.exception.DispatchException"},"modifiers":["async"],"doc":{"summary":"Retries [block] up to [times] more times after a [DispatchException] whose [DispatchException.safeToRetry] says the exact same request can be sent again.","body":"No retry executor lives in this library: [DispatchException.safeToRetry] is computed by the\noperation that threw it from its own catalogued idempotence, so this needs no per-call lookup and\ncomposes with any retry library a caller already uses instead of replacing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Retry.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-retryifsafe"},{"id":"io.github.libtmux.kotlin.withServer","name":"withServer","kind":"function","signatures":[{"raw":"public suspend fun withServer(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n block: suspend (Server) -> R,\n): R","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"Opens a [Server], runs [block], and closes it — even if [block] throws or is cancelled.","body":"The rule this follows, stated once: the scope that acquired a Java `AutoCloseable` is the only\nthing that closes it. [close][Server.close] runs with [NonCancellable] so a cancelled [block]\nstill releases the transport's threads.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withserver"},{"id":"io.github.libtmux.kotlin.withControl","name":"withControl","kind":"function","signatures":[{"raw":"public suspend fun withControl(\n server: Server,\n session: Session,\n timeout: Duration = server.config.defaultTimeout().toKotlinDuration(),\n block: suspend (ControlClient) -> R,\n): R","params":[{"name":"server","type":"Server"},{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"server.config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [withServer], for a [ControlClient] attached through [server]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withcontrol"},{"id":"io.github.libtmux.kotlin.Server","name":"Server","kind":"class","signatures":[{"raw":"public class Server : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use [open] with a [ServerConfig] to select a server by socket name or path. From this object,\ncreate sessions or query the server's existing sessions, windows, and panes. Each [Session]\ncontains windows, and each [Window] contains panes.\n\nOperations that contact tmux are `suspend` functions dispatched through [policy]. Call [close]\nafter the last operation to release resources owned by this object. The tmux server and its\nsessions keep running.\n\n[asJava] exposes the underlying [JavaServer] for interoperability. Both objects share the same\nresources, so closing either closes both.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server"},{"id":"io.github.libtmux.kotlin.Server.policy","name":"policy","kind":"property","parent":"io.github.libtmux.kotlin.Server","modifiers":[],"signatures":[{"raw":"public val policy: ExecutionPolicy","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-policy"},{"id":"io.github.libtmux.kotlin.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java server this wraps, for an operation this class does not mirror or a Java API that takes one. The same object, not a copy: closing either closes both."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-asjava"},{"id":"io.github.libtmux.kotlin.Server.config","name":"config","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val config: ServerConfig","params":[],"returns":"ServerConfig"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-config"},{"id":"io.github.libtmux.kotlin.Server.identity","name":"identity","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val identity: ServerIdentity","params":[],"returns":"ServerIdentity"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-identity"},{"id":"io.github.libtmux.kotlin.Server.admissionBound","name":"admissionBound","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val admissionBound: Int","params":[],"returns":"Int"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from [ExecutionPolicy.default]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-admissionbound"},{"id":"io.github.libtmux.kotlin.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-batch"},{"id":"io.github.libtmux.kotlin.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun chain(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-chain"},{"id":"io.github.libtmux.kotlin.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun shell(): Shell","params":[],"returns":"Shell"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-shell"},{"id":"io.github.libtmux.kotlin.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun commands(): Commands","params":[],"returns":"Commands"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-commands"},{"id":"io.github.libtmux.kotlin.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun messageLog(): MessageLog","params":[],"returns":"MessageLog"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-messagelog"},{"id":"io.github.libtmux.kotlin.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun prompt(): Prompt","params":[],"returns":"Prompt"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-prompt"},{"id":"io.github.libtmux.kotlin.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun channel(name: String): Channel","params":[{"name":"name","type":"String"}],"returns":"Channel"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-channel"},{"id":"io.github.libtmux.kotlin.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun keys(): Keys","params":[],"returns":"Keys"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's key bindings: `prefix` when binding, every table when listing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-keys"},{"id":"io.github.libtmux.kotlin.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun buffers(): Buffers","params":[],"returns":"Buffers"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-buffers"},{"id":"io.github.libtmux.kotlin.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-options"},{"id":"io.github.libtmux.kotlin.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun globalOptions(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-globaloptions"},{"id":"io.github.libtmux.kotlin.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-environment"},{"id":"io.github.libtmux.kotlin.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hooks"},{"id":"io.github.libtmux.kotlin.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun session(expression: FilterExpr): Session","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matched"}]},{"raw":"public suspend fun Server.session(name: String): Session?","params":[{"name":"name","type":"String"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.session(id: SessionId): Session?","params":[{"name":"id","type":"SessionId"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one session this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-session"},{"id":"io.github.libtmux.kotlin.Server.sessionOrNull","name":"sessionOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun sessionOrNull(expression: FilterExpr): Session?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one session this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessionornull"},{"id":"io.github.libtmux.kotlin.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun window(expression: FilterExpr): Window","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matched"}]},{"raw":"public suspend fun Server.window(context: WindowContext): Window?","params":[{"name":"context","type":"WindowContext"}],"returns":"Window?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one window link this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-window"},{"id":"io.github.libtmux.kotlin.Server.windowOrNull","name":"windowOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun windowOrNull(expression: FilterExpr): Window?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one window link this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windowornull"},{"id":"io.github.libtmux.kotlin.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun pane(expression: FilterExpr): Pane","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matched"}]},{"raw":"public suspend fun Server.pane(id: PaneId): Pane?","params":[{"name":"id","type":"PaneId"}],"returns":"Pane?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one pane this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-pane"},{"id":"io.github.libtmux.kotlin.Server.paneOrNull","name":"paneOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun paneOrNull(expression: FilterExpr): Pane?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one pane this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-paneornull"},{"id":"io.github.libtmux.kotlin.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun control(\n session: Session,\n timeout: Duration = config.defaultTimeout().toKotlinDuration(),\n ): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-control"},{"id":"io.github.libtmux.kotlin.Server.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-close"},{"id":"io.github.libtmux.kotlin.Server.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion"},{"id":"io.github.libtmux.kotlin.Server.Companion.open","name":"open","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public suspend fun open(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n ): Server","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-open"},{"id":"io.github.libtmux.kotlin.Server.Companion.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public fun fromJava(\n server: JavaServer,\n policy: ExecutionPolicy = ExecutionPolicy.default(server.config()),\n ): Server","params":[{"name":"server","type":"JavaServer"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(server.config())"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A wrapper over a server opened in Java, such as a test fixture's. It takes the server as it is: closing the wrapper closes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-fromjava"},{"id":"io.github.libtmux.kotlin.Session","name":"Session","kind":"class","signatures":[{"raw":"public class Session","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"A tmux session and its captured windows and properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `SessionOperations.kt`. [Companion] hosts the generated query field namespace\n(`Session.name`, `Session.attached`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session"},{"id":"io.github.libtmux.kotlin.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Session","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-server"},{"id":"io.github.libtmux.kotlin.Session.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val asJava: JavaSession","params":[],"returns":"JavaSession"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The Java session this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-asjava"},{"id":"io.github.libtmux.kotlin.Session.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val id: SessionId","params":[],"returns":"SessionId"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-id"},{"id":"io.github.libtmux.kotlin.Session.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-name"},{"id":"io.github.libtmux.kotlin.Session.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val attached: Boolean","params":[],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-attached"},{"id":"io.github.libtmux.kotlin.Session.activeWindow","name":"activeWindow","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activeWindow: Window?","params":[],"returns":"Window?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activewindow"},{"id":"io.github.libtmux.kotlin.Session.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activepane"},{"id":"io.github.libtmux.kotlin.Session.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val windows: List","params":[],"returns":"List"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-windows"},{"id":"io.github.libtmux.kotlin.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-options"},{"id":"io.github.libtmux.kotlin.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-environment"},{"id":"io.github.libtmux.kotlin.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hooks"},{"id":"io.github.libtmux.kotlin.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-equals"},{"id":"io.github.libtmux.kotlin.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hashcode"},{"id":"io.github.libtmux.kotlin.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-tostring"},{"id":"io.github.libtmux.kotlin.Session.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public companion object","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion"},{"id":"io.github.libtmux.kotlin.Shell","name":"Shell","kind":"class","signatures":[{"raw":"public class Shell","params":[]}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ShellOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell"},{"id":"io.github.libtmux.kotlin.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Shell","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-server"},{"id":"io.github.libtmux.kotlin.Shell.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public val asJava: JavaShell","params":[],"returns":"JavaShell"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"The Java shell this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-asjava"},{"id":"io.github.libtmux.kotlin.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-equals"},{"id":"io.github.libtmux.kotlin.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-hashcode"},{"id":"io.github.libtmux.kotlin.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-tostring"},{"id":"io.github.libtmux.kotlin.Window","name":"Window","kind":"class","signatures":[{"raw":"public class Window","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A tmux window at a specific position in a session.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `WindowOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window"},{"id":"io.github.libtmux.kotlin.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Window","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-server"},{"id":"io.github.libtmux.kotlin.Window.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val asJava: JavaWindow","params":[],"returns":"JavaWindow"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java window this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-asjava"},{"id":"io.github.libtmux.kotlin.Window.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val id: WindowId","params":[],"returns":"WindowId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-id"},{"id":"io.github.libtmux.kotlin.Window.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val index: WindowIndex","params":[],"returns":"WindowIndex"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-index"},{"id":"io.github.libtmux.kotlin.Window.context","name":"context","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val context: WindowContext","params":[],"returns":"WindowContext"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-context"},{"id":"io.github.libtmux.kotlin.Window.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-name"},{"id":"io.github.libtmux.kotlin.Window.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-active"},{"id":"io.github.libtmux.kotlin.Window.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val linked: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linked"},{"id":"io.github.libtmux.kotlin.Window.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-size"},{"id":"io.github.libtmux.kotlin.Window.layout","name":"layout","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val layout: WindowLayout","params":[],"returns":"WindowLayout"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-layout"},{"id":"io.github.libtmux.kotlin.Window.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The pane tmux had active here. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-activepane"},{"id":"io.github.libtmux.kotlin.Window.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val session: Session","params":[],"returns":"Session"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-session"},{"id":"io.github.libtmux.kotlin.Window.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val panes: List","params":[],"returns":"List"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-panes"},{"id":"io.github.libtmux.kotlin.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hooks"},{"id":"io.github.libtmux.kotlin.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-options"},{"id":"io.github.libtmux.kotlin.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-equals"},{"id":"io.github.libtmux.kotlin.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hashcode"},{"id":"io.github.libtmux.kotlin.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-tostring"},{"id":"io.github.libtmux.kotlin.Window.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion"},{"id":"io.github.libtmux.kotlin.query.TextField","name":"TextField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class TextField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Kotlin-idiomatic wrappers over [Fields]' typed field handles, each holding the Java handle it wraps. A value class, so this costs nothing beyond the Java object it already holds — the same choice [io.github.libtmux.kotlin.Server]'s live handles reject, made here on purpose: a field handle carries exactly one property, which is what makes the boxing tradeoff free."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield"},{"id":"io.github.libtmux.kotlin.query.TextField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun eq(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-eq"},{"id":"io.github.libtmux.kotlin.query.TextField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun ne(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-ne"},{"id":"io.github.libtmux.kotlin.query.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun startsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-startswith"},{"id":"io.github.libtmux.kotlin.query.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun endsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-endswith"},{"id":"io.github.libtmux.kotlin.query.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun contains(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-contains"},{"id":"io.github.libtmux.kotlin.query.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun matches(pattern: Pattern): FilterExpr","params":[{"name":"pattern","type":"Pattern"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-matches"},{"id":"io.github.libtmux.kotlin.query.TextField.oneOf","name":"oneOf","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun oneOf(values: Collection): FilterExpr","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-oneof"},{"id":"io.github.libtmux.kotlin.query.NumberField","name":"NumberField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class NumberField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Build numeric comparisons for a captured tmux field."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield"},{"id":"io.github.libtmux.kotlin.query.NumberField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun eq(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-eq"},{"id":"io.github.libtmux.kotlin.query.NumberField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun ne(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-ne"},{"id":"io.github.libtmux.kotlin.query.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun lessThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-lessthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atMost(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atmost"},{"id":"io.github.libtmux.kotlin.query.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun greaterThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-greaterthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atLeast(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atleast"},{"id":"io.github.libtmux.kotlin.query.FlagField","name":"FlagField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class FlagField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match a captured boolean field against true or false."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield"},{"id":"io.github.libtmux.kotlin.query.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isTrue(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-istrue"},{"id":"io.github.libtmux.kotlin.query.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isFalse(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-isfalse"},{"id":"io.github.libtmux.kotlin.query.ToManyField","name":"ToManyField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToManyField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by the captured children related to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield"},{"id":"io.github.libtmux.kotlin.query.ToManyField.any","name":"any","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun any(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-any"},{"id":"io.github.libtmux.kotlin.query.ToManyField.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun all(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-all"},{"id":"io.github.libtmux.kotlin.query.ToManyField.none","name":"none","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun none(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-none"},{"id":"io.github.libtmux.kotlin.query.ToOneField","name":"ToOneField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToOneField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by one captured related object."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield"},{"id":"io.github.libtmux.kotlin.query.ToOneField.matching","name":"matching","kind":"method","parent":"io.github.libtmux.kotlin.query.ToOneField","signatures":[{"raw":"public infix fun matching(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield-matching"},{"id":"io.github.libtmux.kotlin.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public suspend fun Batch.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"Batch"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-run"},{"id":"io.github.libtmux.kotlin.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.delete(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-delete"},{"id":"io.github.libtmux.kotlin.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-list"},{"id":"io.github.libtmux.kotlin.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.load(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-load"},{"id":"io.github.libtmux.kotlin.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.save(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-save"},{"id":"io.github.libtmux.kotlin.Buffers.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.`set`(name: String, contents: String): Unit","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-set"},{"id":"io.github.libtmux.kotlin.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.show(name: String): String","params":[{"name":"name","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-show"},{"id":"io.github.libtmux.kotlin.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detach"},{"id":"io.github.libtmux.kotlin.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detachothers"},{"id":"io.github.libtmux.kotlin.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.fetchAttachment(): ClientAttachment?","params":[],"returns":"ClientAttachment?","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-fetchattachment"},{"id":"io.github.libtmux.kotlin.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-redraw"},{"id":"io.github.libtmux.kotlin.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.refresh(): Client","params":[],"returns":"Client","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-refresh"},{"id":"io.github.libtmux.kotlin.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-switchto"},{"id":"io.github.libtmux.kotlin.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.arrange(layout: String): CommandChain","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-arrange"},{"id":"io.github.libtmux.kotlin.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-run"},{"id":"io.github.libtmux.kotlin.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public suspend fun Commands.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Commands"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-list"},{"id":"io.github.libtmux.kotlin.ControlClient.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.send(vararg argv: String): ControlReply","params":[{"name":"argv","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List): ControlReply","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-send"},{"id":"io.github.libtmux.kotlin.ControlClient.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.unwatch(name: String): ControlReply","params":[{"name":"name","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops a watch."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-unwatch"},{"id":"io.github.libtmux.kotlin.ControlClient.watch","name":"watch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to report a format whenever its value changes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-watch"},{"id":"io.github.libtmux.kotlin.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-all"},{"id":"io.github.libtmux.kotlin.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-effective"},{"id":"io.github.libtmux.kotlin.Environment.`get`","name":"`get`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`get`(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-get"},{"id":"io.github.libtmux.kotlin.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.isRemoved(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-isremoved"},{"id":"io.github.libtmux.kotlin.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.remove(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-remove"},{"id":"io.github.libtmux.kotlin.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.removed(): Set","params":[],"returns":"Set","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-removed"},{"id":"io.github.libtmux.kotlin.Environment.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`set`(name: String, `value`: String): Unit","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-set"},{"id":"io.github.libtmux.kotlin.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-setexpanded"},{"id":"io.github.libtmux.kotlin.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-unset"},{"id":"io.github.libtmux.kotlin.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.all(): Map>","params":[],"returns":"Map>","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-all"},{"id":"io.github.libtmux.kotlin.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.append(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.append(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"As [.append(String, String)], with the command as words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-append"},{"id":"io.github.libtmux.kotlin.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.run(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-run"},{"id":"io.github.libtmux.kotlin.Hooks.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.`set`(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.`set`(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-set"},{"id":"io.github.libtmux.kotlin.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.unset(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-unset"},{"id":"io.github.libtmux.kotlin.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.bind(key: String, command: List): Unit","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-bind"},{"id":"io.github.libtmux.kotlin.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-list"},{"id":"io.github.libtmux.kotlin.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.unbind(key: String): Unit","params":[{"name":"key","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-unbind"},{"id":"io.github.libtmux.kotlin.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public suspend fun MessageLog.lines(): List","params":[],"returns":"List","receiver":{"name":"this","type":"MessageLog"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-lines"},{"id":"io.github.libtmux.kotlin.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-all"},{"id":"io.github.libtmux.kotlin.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.append(name: String, suffix: String): Unit","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-append"},{"id":"io.github.libtmux.kotlin.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-effective"},{"id":"io.github.libtmux.kotlin.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setexpanded"},{"id":"io.github.libtmux.kotlin.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setifabsent"},{"id":"io.github.libtmux.kotlin.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-unset"},{"id":"io.github.libtmux.kotlin.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-breakout"},{"id":"io.github.libtmux.kotlin.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.capture(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.capture(spec: CaptureSpec): List","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-capture"},{"id":"io.github.libtmux.kotlin.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-clearhistory"},{"id":"io.github.libtmux.kotlin.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-copymode"},{"id":"io.github.libtmux.kotlin.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-dead"},{"id":"io.github.libtmux.kotlin.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-exitmode"},{"id":"io.github.libtmux.kotlin.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-expand"},{"id":"io.github.libtmux.kotlin.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-jointo"},{"id":"io.github.libtmux.kotlin.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-kill"},{"id":"io.github.libtmux.kotlin.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.mode(): PaneMode?","params":[],"returns":"PaneMode?","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-mode"},{"id":"io.github.libtmux.kotlin.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through [.sendLiteral]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-notetyped"},{"id":"io.github.libtmux.kotlin.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-paste"},{"id":"io.github.libtmux.kotlin.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pastebuffer"},{"id":"io.github.libtmux.kotlin.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends everything this pane prints to a shell command, until [.stopPiping]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pipeto"},{"id":"io.github.libtmux.kotlin.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-refresh"},{"id":"io.github.libtmux.kotlin.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resize(direction: Direction, cells: Int): Unit","params":[{"name":"direction","type":"Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resize"},{"id":"io.github.libtmux.kotlin.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resizeto"},{"id":"io.github.libtmux.kotlin.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.respawn(vararg command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawn"},{"id":"io.github.libtmux.kotlin.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawnIn(directory: Path): Unit","params":[{"name":"directory","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawnin"},{"id":"io.github.libtmux.kotlin.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-retitle"},{"id":"io.github.libtmux.kotlin.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-select"},{"id":"io.github.libtmux.kotlin.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-send"},{"id":"io.github.libtmux.kotlin.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendKeys(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendkeys"},{"id":"io.github.libtmux.kotlin.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendline"},{"id":"io.github.libtmux.kotlin.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLiteral(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendliteral"},{"id":"io.github.libtmux.kotlin.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-split"},{"id":"io.github.libtmux.kotlin.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-stoppiping"},{"id":"io.github.libtmux.kotlin.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":196,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-swapwith"},{"id":"io.github.libtmux.kotlin.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-variables"},{"id":"io.github.libtmux.kotlin.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.clear(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-clear"},{"id":"io.github.libtmux.kotlin.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.history(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-history"},{"id":"io.github.libtmux.kotlin.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.attachedSessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-attachedsessions"},{"id":"io.github.libtmux.kotlin.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.clients(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-clients"},{"id":"io.github.libtmux.kotlin.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.cmd(vararg argv: String): CommandResult","params":[{"name":"argv","type":"String"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-cmd"},{"id":"io.github.libtmux.kotlin.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-expand"},{"id":"io.github.libtmux.kotlin.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hassession"},{"id":"io.github.libtmux.kotlin.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.isAlive(timeout: Duration): Boolean","params":[{"name":"timeout","type":"Duration"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-isalive"},{"id":"io.github.libtmux.kotlin.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.killServer(timeout: Duration): Unit","params":[{"name":"timeout","type":"Duration"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killserver"},{"id":"io.github.libtmux.kotlin.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killsession"},{"id":"io.github.libtmux.kotlin.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-lock"},{"id":"io.github.libtmux.kotlin.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(spec: SessionSpec): Session","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(configure: SessionBuilder.() -> Unit): Session","params":[{"name":"configure","type":"SessionBuilder.() -> Unit"}],"returns":"Session","receiver":{"name":"this","type":"Server"},"raises":[{"type":"IllegalArgumentException","doc":"if the session and its first window block both set a directory, or both set a command: tmux has one of each for that window"}]}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewSession.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewSession.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a session running cat. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(\"created=${session.name}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewSessionKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-newsession"},{"id":"io.github.libtmux.kotlin.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.paneFields(names: List): Map>","params":[{"name":"names","type":"List"}],"returns":"Map>","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panefields"},{"id":"io.github.libtmux.kotlin.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.panes(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.panes(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panes"},{"id":"io.github.libtmux.kotlin.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-requirealive"},{"id":"io.github.libtmux.kotlin.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.run(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-run"},{"id":"io.github.libtmux.kotlin.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.sessions(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Every session, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListSessions.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListSessions.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List the sessions returned by a server read. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"sessions=\" + server.sessions().map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListSessionsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Query.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Query.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Select sessions with a typed name filter. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val matches = server.sessions(Session.name eq \"work-one\")\n println(\"matches=\" + matches.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.QueryKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessions"},{"id":"io.github.libtmux.kotlin.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.snapshot(): ServerSnapshot","params":[],"returns":"ServerSnapshot","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":153,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-snapshot"},{"id":"io.github.libtmux.kotlin.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sourceFile(`file`: Path): Unit","params":[{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":158,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sourcefile"},{"id":"io.github.libtmux.kotlin.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-variables"},{"id":"io.github.libtmux.kotlin.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.version(): TmuxVersion","params":[],"returns":"TmuxVersion","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-version"},{"id":"io.github.libtmux.kotlin.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.windows(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(id: WindowId): List","params":[{"name":"id","type":"WindowId"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windows"},{"id":"io.github.libtmux.kotlin.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-detachclients"},{"id":"io.github.libtmux.kotlin.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-expand"},{"id":"io.github.libtmux.kotlin.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-kill"},{"id":"io.github.libtmux.kotlin.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-lastwindow"},{"id":"io.github.libtmux.kotlin.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Session"}},{"raw":"public suspend fun Session.newWindow(spec: WindowSpec): Window","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewWindow.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewWindow.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.WindowSpec\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a window and read the updated session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.session(Session.name eq \"work-one\")\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(\"created=${window.name}\")\n val refreshed = server.session(Session.name eq \"work-one\")\n println(\"windows=\" + refreshed.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewWindowKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-newwindow"},{"id":"io.github.libtmux.kotlin.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-nextwindow"},{"id":"io.github.libtmux.kotlin.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-previouswindow"},{"id":"io.github.libtmux.kotlin.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.refresh(): Session","params":[],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-refresh"},{"id":"io.github.libtmux.kotlin.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-rename"},{"id":"io.github.libtmux.kotlin.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-selectwindow"},{"id":"io.github.libtmux.kotlin.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-sethistorylimit"},{"id":"io.github.libtmux.kotlin.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.capturing(command: String): List","params":[{"name":"command","type":"String"}],"returns":"List","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-capturing"},{"id":"io.github.libtmux.kotlin.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.choose(condition: String, whenTrue: String): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}},{"raw":"public suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-choose"},{"id":"io.github.libtmux.kotlin.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.run(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-run"},{"id":"io.github.libtmux.kotlin.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.applyLayout(layout: WindowLayout): Unit","params":[{"name":"layout","type":"WindowLayout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Restores an exact arrangement previously read from [.layout()]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-applylayout"},{"id":"io.github.libtmux.kotlin.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-displaypopup"},{"id":"io.github.libtmux.kotlin.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-expand"},{"id":"io.github.libtmux.kotlin.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-kill"},{"id":"io.github.libtmux.kotlin.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linkto"},{"id":"io.github.libtmux.kotlin.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-moveto"},{"id":"io.github.libtmux.kotlin.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-nextlayout"},{"id":"io.github.libtmux.kotlin.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-previouslayout"},{"id":"io.github.libtmux.kotlin.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.refresh(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-refresh"},{"id":"io.github.libtmux.kotlin.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rename"},{"id":"io.github.libtmux.kotlin.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-resizeto"},{"id":"io.github.libtmux.kotlin.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-respawn"},{"id":"io.github.libtmux.kotlin.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rotate"},{"id":"io.github.libtmux.kotlin.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-select"},{"id":"io.github.libtmux.kotlin.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.selectLayout(layout: Layout): Unit","params":[{"name":"layout","type":"Layout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-selectlayout"},{"id":"io.github.libtmux.kotlin.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-split"},{"id":"io.github.libtmux.kotlin.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.kotlin.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-synchronizepanes"},{"id":"io.github.libtmux.kotlin.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-unlink"},{"id":"io.github.libtmux.kotlin.Client.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-name"},{"id":"io.github.libtmux.kotlin.Client.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-session"},{"id":"io.github.libtmux.kotlin.Pane.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-id"},{"id":"io.github.libtmux.kotlin.Pane.Companion.command","name":"command","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.command: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-command"},{"id":"io.github.libtmux.kotlin.Pane.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-index"},{"id":"io.github.libtmux.kotlin.Pane.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-active"},{"id":"io.github.libtmux.kotlin.Pane.Companion.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.title: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-title"},{"id":"io.github.libtmux.kotlin.Pane.Companion.path","name":"path","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.path: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-path"},{"id":"io.github.libtmux.kotlin.Pane.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-width"},{"id":"io.github.libtmux.kotlin.Pane.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-height"},{"id":"io.github.libtmux.kotlin.Pane.Companion.left","name":"left","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.left: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-left"},{"id":"io.github.libtmux.kotlin.Pane.Companion.top","name":"top","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.top: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-top"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atTop","name":"atTop","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atTop: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-attop"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atBottom","name":"atBottom","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atBottom: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atbottom"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atLeft","name":"atLeft","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atLeft: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atleft"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atRight","name":"atRight","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atRight: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atright"},{"id":"io.github.libtmux.kotlin.Session.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-id"},{"id":"io.github.libtmux.kotlin.Session.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-name"},{"id":"io.github.libtmux.kotlin.Session.Companion.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.attached: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-attached"},{"id":"io.github.libtmux.kotlin.Session.Companion.windowCount","name":"windowCount","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windowCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windowcount"},{"id":"io.github.libtmux.kotlin.Session.Companion.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windows: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windows"},{"id":"io.github.libtmux.kotlin.Window.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-id"},{"id":"io.github.libtmux.kotlin.Window.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-name"},{"id":"io.github.libtmux.kotlin.Window.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-index"},{"id":"io.github.libtmux.kotlin.Window.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-active"},{"id":"io.github.libtmux.kotlin.Window.Companion.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.linked: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-linked"},{"id":"io.github.libtmux.kotlin.Window.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-width"},{"id":"io.github.libtmux.kotlin.Window.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-height"},{"id":"io.github.libtmux.kotlin.Window.Companion.paneCount","name":"paneCount","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.paneCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panecount"},{"id":"io.github.libtmux.kotlin.Window.Companion.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.panes: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panes"},{"id":"io.github.libtmux.kotlin.Window.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-session"},{"id":"io.github.libtmux.query.FilterExpr.not","name":"not","kind":"function","signatures":[{"raw":"public operator fun FilterExpr.not(): FilterExpr","params":[],"returns":"FilterExpr","receiver":{"name":"this","type":"FilterExpr"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Inverts an expression, so `!Pane_.active().isTrue()` says what it means.","body":"There is no matching `and` or `or` here, deliberately. Those are already methods on\n[FilterExpr], and an extension of the same name would be shadowed by the member inside its own\nbody while winning at an infix call site — correct either way, but for a reason no reader should\nhave to work out. `a.and(b)` is one character longer than `a and b` and always means the thing it\nappears to.\n\n`negate` rather than `not` on the Java side because [java.util.function.Predicate] already owns\n`not`, and these expressions are predicates.\n\nThe bound is `T : Any` rather than `T`, and that is not a style choice. The core is `@NullMarked`,\nso Kotlin reads `FilterExpr` as `FilterExpr`; an unbounded `T` here would admit a\nnullable entity the core says cannot exist. Compiled with `-Xjspecify-annotations=strict`, so it\nis an error rather than a warning — this file did not compile until the bound was written."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-query-filterexpr-not"},{"id":"io.github.libtmux.kotlin.Iterable.filter","name":"filter","kind":"function","signatures":[{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["overload"],"doc":{"summary":"Selects the elements an expression matches.","body":"Kotlin's own `filter` takes a function, not a [java.util.function.Predicate], so handing it a\n[FilterExpr] does not compile — the one place where reading the Java documentation and writing\nKotlin part company. This is that overload, so `panes.filter(Pane_.active().isTrue())` means what\nit appears to.\n\nThe list is already in hand: this asks tmux nothing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-iterable-filter"},{"id":"io.github.libtmux.kotlin.Server.liveState","name":"liveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.liveState(\n session: Session,\n scope: CoroutineScope,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n): StateFlow","params":[{"name":"session","type":"Session"},{"name":"scope","type":"CoroutineScope"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the first attach, and the deadline each later rebuild wait uses to recheck [scope] for cancellation"}],"returns":"StateFlow","receiver":{"name":"this","type":"Server"},"raises":[{"type":"io.github.libtmux.exception.TargetGoneException","doc":"synchronously if [session]'s server has already gone when this is called; later, the same failure ends [scope] instead, since it surfaces from the launched pump rather than from this call"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"A live, continuously rebuilt view of [server], as a [StateFlow].","body":"Wraps Java's [ServerMirror] rather than reinventing it: every routine case — resnapshot on\nnotification, on gap, and on reconnect; conflation while a rebuild is in flight; ending once\n[session] itself is gone — is already handled once, correctly, inside [ServerMirror]. This\nfunction's only job is pumping [ServerMirror.awaitNewer] on a dedicated thread from\n[ExecutionPolicy.streamReads] and publishing what comes back. Named `liveState`, not `ServerMirror`,\nso it does not collide with the Java type it wraps.\n\n[scope] owns the returned [StateFlow]'s whole lifetime: closing the mirror is this function's own\n`launch`+`finally`, tied to [scope]'s cancellation, so the caller never has to close it by hand."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-livestate"},{"id":"io.github.libtmux.kotlin.Server.withLiveState","name":"withLiveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.withLiveState(\n session: Session,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n block: suspend (StateFlow) -> R,\n): R","params":[{"name":"session","type":"Session"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","receiver":{"name":"this","type":"Server"},"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [liveState], scoped to [block]: opens the live view, runs [block] against it, and cancels the background pump before returning — the same `withServer`/`withControl` shape, for the one resource [liveState] itself cannot close on its own.","body":"[liveState]'s pump runs until [scope] ends, by design (a caller collecting it for the life of a\nprogram passes its own long-lived scope) — which means a bare `coroutineScope { liveState(...) }`\nnever returns: `coroutineScope` waits for every child, the pump included, and nothing inside it\nasks the pump to stop. This cancels that one child explicitly once [block] is done, whether it\nreturns or throws."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-withlivestate"},{"id":"java.util.OptionalInt.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalInt.orNull(): Int?","params":[],"returns":"Int?","receiver":{"name":"this","type":"OptionalInt"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent: an exit status, a captured server pid."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionalint-ornull"},{"id":"java.util.OptionalLong.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalLong.orNull(): Long?","params":[],"returns":"Long?","receiver":{"name":"this","type":"OptionalLong"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionallong-ornull"},{"id":"io.github.libtmux.Channel.await","name":"await","kind":"function","signatures":[{"raw":"public suspend fun Channel.await(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"},"returnsDoc":"why the wait ended"}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Waits for something to signal this channel.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A `wait-for` tmux has already\naccepted is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-await"},{"id":"io.github.libtmux.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"function","signatures":[{"raw":"public suspend fun Channel.awaitReservingCapacity(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"}}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"As [await], while preserving process capacity for a call that signals it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-awaitreservingcapacity"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-kotlin","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs every collected operation in one tmux invocation.\n */\npublic suspend fun Batch.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.BufferInfo\nimport java.nio.`file`.Path\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Removes a buffer by its exact name.\n */\npublic suspend fun Buffers.delete(name: String): Unit = runInterruptible(server.policy.commands) { java.delete(name) }\n\n/**\n * Captures every buffer the server holds, in tmux's order.\n */\npublic suspend fun Buffers.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Reads a file into a named buffer.\n */\npublic suspend fun Buffers.load(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.load(name, file) }\n\n/**\n * Writes a buffer's contents to a file.\n */\npublic suspend fun Buffers.save(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.save(name, file) }\n\n/**\n * Puts text in a named buffer, replacing whatever was there.\n */\npublic suspend fun Buffers.`set`(name: String, contents: String): Unit = runInterruptible(server.policy.commands) { java.set(name, contents) }\n\n/**\n * What a buffer holds, without any line breaks it ends with.\n */\npublic suspend fun Buffers.show(name: String): String = runInterruptible(server.policy.commands) { java.show(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.ClientAttachment\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches this client, leaving whatever it was attached to running.\n */\npublic suspend fun Client.detach(): Unit = runInterruptible(server.policy.commands) { java.detach() }\n\n/**\n * Detaches every other client, leaving this one attached.\n */\npublic suspend fun Client.detachOthers(): Unit = runInterruptible(server.policy.commands) { java.detachOthers() }\n\n/**\n * Takes a new capture and returns what this client is looking at now.\n */\npublic suspend fun Client.fetchAttachment(): ClientAttachment? = runInterruptible(server.policy.commands) { java.fetchAttachment().orElse(null) }\n\n/**\n * Asks tmux to redraw this client.\n */\npublic suspend fun Client.redraw(): Unit = runInterruptible(server.policy.commands) { java.redraw() }\n\n/**\n * Takes a new capture and returns this client as it is now.\n */\npublic suspend fun Client.refresh(): Client = runInterruptible(server.policy.commands) { Client(java.refresh(), this.server) }\n\n/**\n * Moves this client to another session.\n */\npublic suspend fun Client.switchTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.switchTo(session.java) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.String\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Arranges the current window.\n */\npublic suspend fun CommandChain.arrange(layout: String): CommandChain = runInterruptible(server.policy.commands) { CommandChain(java.arrange(layout), this.server) }\n\n/**\n * Runs the whole chain in one tmux invocation, attributing each step.\n */\npublic suspend fun CommandChain.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every command, as tmux prints it.\n */\npublic suspend fun Commands.list(): List = runInterruptible(server.policy.commands) { java.list() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.control.ControlReply\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(vararg argv: String): ControlReply = runInterruptible(server.policy.commands) { java.send(*argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List): ControlReply = runInterruptible(server.policy.commands) { java.send(argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply = runInterruptible(server.policy.commands) { java.send(argv, timeout.toJavaDuration()) }\n\n/**\n * Stops a watch.\n */\npublic suspend fun ControlClient.unwatch(name: String): ControlReply = runInterruptible(server.policy.commands) { java.unwatch(name) }\n\n/**\n * Asks tmux to report a format whenever its value changes.\n */\npublic suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply = runInterruptible(server.policy.commands) { java.watch(name, target, format) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.collections.Set\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every name set at this scope, in tmux's order.\n */\npublic suspend fun Environment.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * What a process started from this scope is actually handed, both scopes taken together.\n */\npublic suspend fun Environment.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * The value set for this name, or empty when it is removed or absent.\n */\npublic suspend fun Environment.`get`(name: String): String? = runInterruptible(server.policy.commands) { java.get(name).orElse(null) }\n\n/**\n * Whether new processes are told not to inherit this name.\n */\npublic suspend fun Environment.isRemoved(name: String): Boolean = runInterruptible(server.policy.commands) { java.isRemoved(name) }\n\n/**\n * Tells processes started after this not to inherit the name.\n */\npublic suspend fun Environment.remove(name: String): Unit = runInterruptible(server.policy.commands) { java.remove(name) }\n\n/**\n * Every name this scope tells a new process not to inherit.\n */\npublic suspend fun Environment.removed(): Set = runInterruptible(server.policy.commands) { java.removed() }\n\n/**\n * Sets a name to a literal value.\n */\npublic suspend fun Environment.`set`(name: String, `value`: String): Unit = runInterruptible(server.policy.commands) { java.set(name, value) }\n\n/**\n * Sets a name to what a tmux format expands to now.\n */\npublic suspend fun Environment.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Removes the name from this scope, so it is neither set nor marked.\n */\npublic suspend fun Environment.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.\n */\npublic suspend fun Hooks.all(): Map> = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * As [.append(String, String)], with the command as words.\n */\npublic suspend fun Hooks.append(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Binds another command to an event, after whatever is already bound to it.\n */\npublic suspend fun Hooks.append(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Runs what is bound to an event now, without waiting for the event.\n */\npublic suspend fun Hooks.run(event: String): Unit = runInterruptible(server.policy.commands) { java.run(event) }\n\n/**\n * Binds a tmux command to an event at this scope, replacing anything already bound to it.\n */\npublic suspend fun Hooks.`set`(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * As [.set(String, String)], with the command as words rather than a line tmux parses.\n */\npublic suspend fun Hooks.`set`(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * Removes everything bound to an event at this scope.\n */\npublic suspend fun Hooks.unset(event: String): Unit = runInterruptible(server.policy.commands) { java.unset(event) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Binds a key to a tmux command, given as its words.\n */\npublic suspend fun Keys.bind(key: String, command: List): Unit = runInterruptible(server.policy.commands) { java.bind(key, command) }\n\n/**\n * The bindings as tmux lists them, one per line.\n */\npublic suspend fun Keys.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Removes a key's binding.\n */\npublic suspend fun Keys.unbind(key: String): Unit = runInterruptible(server.policy.commands) { java.unbind(key) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * The log lines.\n */\npublic suspend fun MessageLog.lines(): List = runInterruptible(server.policy.commands) { java.lines() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every option set at this scope, in tmux's order.\n */\npublic suspend fun Options.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * Adds to the end of a string option, rather than replacing it.\n */\npublic suspend fun Options.append(name: String, suffix: String): Unit = runInterruptible(server.policy.commands) { java.append(name, suffix) }\n\n/**\n * Every option tmux lists at this scope, including inherited built-in values.\n */\npublic suspend fun Options.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * Sets one option to what a tmux format comes to, rather than to the format itself.\n */\npublic suspend fun Options.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Sets one option only if this scope does not already set it.\n */\npublic suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean = runInterruptible(server.policy.commands) { java.setIfAbsent(name, value) }\n\n/**\n * Removes one option at this scope, so it falls back to whatever it inherits.\n */\npublic suspend fun Options.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.CaptureSpec\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Direction\nimport io.github.libtmux.PaneMode\nimport io.github.libtmux.SplitSpec\nimport java.lang.Runnable\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Moves this pane into a window of its own, leaving tmux to name it.\n */\npublic suspend fun Pane.breakOut(): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(), this.server) }\n\n/**\n * Moves this pane into a window of its own with the given name.\n */\npublic suspend fun Pane.breakOut(windowName: String): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(windowName), this.server) }\n\n/**\n * This pane's visible content, one element per line.\n */\npublic suspend fun Pane.capture(): List = runInterruptible(server.policy.commands) { java.capture() }\n\n/**\n * Reads part of this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.capture(spec: CaptureSpec): List = runInterruptible(server.policy.commands) { java.capture(spec) }\n\n/**\n * Discards this pane's scrollback.\n */\npublic suspend fun Pane.clearHistory(): Unit = runInterruptible(server.policy.commands) { java.clearHistory() }\n\n/**\n * Puts this pane into copy mode, where its scrollback can be navigated.\n */\npublic suspend fun Pane.copyMode(): Unit = runInterruptible(server.policy.commands) { java.copyMode() }\n\n/**\n * Whether this pane's process has exited, read fresh rather than from the capture.\n */\npublic suspend fun Pane.dead(): Boolean = runInterruptible(server.policy.commands) { java.dead() }\n\n/**\n * Leaves whichever mode this pane is in.\n */\npublic suspend fun Pane.exitMode(): Unit = runInterruptible(server.policy.commands) { java.exitMode() }\n\n/**\n * Expands a tmux format in this pane's context, and answers with what it came to.\n */\npublic suspend fun Pane.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Moves this pane into another window, splitting it.\n */\npublic suspend fun Pane.joinTo(window: Window): Unit = runInterruptible(server.policy.commands) { java.joinTo(window.java) }\n\n/**\n * Closes this pane.\n */\npublic suspend fun Pane.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Which mode this pane is in at this moment, or empty when it is in none.\n */\npublic suspend fun Pane.mode(): PaneMode? = runInterruptible(server.policy.commands) { java.mode().orElse(null) }\n\n/**\n * Notes text that reached this pane without going through this handle, so a wait discounts its\n * echo the way it discounts text sent through [.sendLiteral].\n */\npublic suspend fun Pane.noteTyped(text: String): Unit = runInterruptible(server.policy.commands) { java.noteTyped(text) }\n\n/**\n * Pastes text into this pane as one block, leaving nothing behind on the server.\n */\npublic suspend fun Pane.paste(text: String): Unit = runInterruptible(server.policy.commands) { java.paste(text) }\n\n/**\n * As [.paste(String)], after a caller rechecks state once its private buffer is ready.\n */\npublic suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit = runInterruptible(server.policy.commands) { java.paste(text, beforePaste) }\n\n/**\n * Pastes a named buffer into this pane, as though it had been typed.\n */\npublic suspend fun Pane.pasteBuffer(name: String): Unit = runInterruptible(server.policy.commands) { java.pasteBuffer(name) }\n\n/**\n * Sends everything this pane prints to a shell command, until [.stopPiping].\n */\npublic suspend fun Pane.pipeTo(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.pipeTo(shellCommand) }\n\n/**\n * Takes a new capture and returns this pane as it is now.\n */\npublic suspend fun Pane.refresh(): Pane = runInterruptible(server.policy.commands) { Pane(java.refresh(), this.server) }\n\n/**\n * Grows this pane by a number of cells in one direction.\n */\npublic suspend fun Pane.resize(direction: Direction, cells: Int): Unit = runInterruptible(server.policy.commands) { java.resize(direction, cells) }\n\n/**\n * Resizes this pane.\n */\npublic suspend fun Pane.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills whatever runs here and starts the pane's default command again.\n */\npublic suspend fun Pane.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Kills whatever runs here and starts the given command instead.\n */\npublic suspend fun Pane.respawn(vararg command: String): Unit = runInterruptible(server.policy.commands) { java.respawn(*command) }\n\n/**\n * Restarts the configured pane process in a caller-supplied literal directory, resolved against\n * this process's working directory when relative.\n */\npublic suspend fun Pane.respawnIn(directory: Path): Unit = runInterruptible(server.policy.commands) { java.respawnIn(directory) }\n\n/**\n * Retitles this pane and returns its replacement capture.\n */\npublic suspend fun Pane.retitle(title: String): Pane = runInterruptible(server.policy.commands) { Pane(java.retitle(title), this.server) }\n\n/**\n * Makes this the active pane of its window.\n */\npublic suspend fun Pane.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Sends keys to this pane without pressing Enter.\n */\npublic suspend fun Pane.send(keys: String): Unit = runInterruptible(server.policy.commands) { java.send(keys) }\n\n/**\n * Sends an ordered group of key names to this pane, as tmux resolves them.\n */\npublic suspend fun Pane.sendKeys(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys) }\n\n/**\n * As [.sendKeys(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys, beforeSend) }\n\n/**\n * Sends a line to this pane and presses Enter, which is how a command gets run.\n */\npublic suspend fun Pane.sendLine(command: String): Unit = runInterruptible(server.policy.commands) { java.sendLine(command) }\n\n/**\n * Sends an ordered group of strings to this pane as the characters they spell.\n */\npublic suspend fun Pane.sendLiteral(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys) }\n\n/**\n * As [.sendLiteral(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys, beforeSend) }\n\n/**\n * Splits this pane in half, putting the new one below it.\n */\npublic suspend fun Pane.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops sending this pane's output anywhere.\n */\npublic suspend fun Pane.stopPiping(): Unit = runInterruptible(server.policy.commands) { java.stopPiping() }\n\n/**\n * Swaps this pane's position with another's.\n */\npublic suspend fun Pane.swapWith(other: Pane): Unit = runInterruptible(server.policy.commands) { java.swapWith(other.java) }\n\n/**\n * Reads validated tmux variables in this pane's format context.\n */\npublic suspend fun Pane.variables(names: List): Map = runInterruptible(server.policy.commands) { java.variables(names) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Forgets what has been typed at the prompt.\n */\npublic suspend fun Prompt.clear(): Unit = runInterruptible(server.policy.commands) { java.clear() }\n\n/**\n * What has been typed at the prompt, oldest first.\n */\npublic suspend fun Prompt.history(): List = runInterruptible(server.policy.commands) { java.history() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.PaneId\nimport io.github.libtmux.SessionId\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TmuxVersion\nimport io.github.libtmux.WindowId\nimport io.github.libtmux.query.FilterExpr\nimport io.github.libtmux.snapshot.ServerSnapshot\nimport io.github.libtmux.snapshot.WindowContext\nimport io.github.libtmux.transport.CommandResult\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Captures every session a client is attached to.\n */\npublic suspend fun Server.attachedSessions(): List = runInterruptible(policy.commands) { java.attachedSessions().map { Session(it, this) } }\n\n/**\n * Captures every attached client.\n */\npublic suspend fun Server.clients(): List = runInterruptible(policy.commands) { java.clients().map { Client(it, this) } }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(vararg argv: String): CommandResult = runInterruptible(policy.commands) { java.cmd(*argv) }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(argv: List): CommandResult = runInterruptible(policy.commands) { java.cmd(argv) }\n\n/**\n * Runs one tmux command against this server, overriding the configured deadline.\n */\npublic suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult = runInterruptible(policy.commands) { java.cmd(argv, timeout.toJavaDuration()) }\n\n/**\n * Expands a tmux format against the server, and answers with what it came to.\n */\npublic suspend fun Server.expand(format: String): String = runInterruptible(policy.commands) { java.expand(format) }\n\n/**\n * Whether a session with this name exists.\n */\npublic suspend fun Server.hasSession(name: String): Boolean = runInterruptible(policy.commands) { java.hasSession(name) }\n\n/**\n * Whether the server is running and answering.\n */\npublic suspend fun Server.isAlive(): Boolean = runInterruptible(policy.commands) { java.isAlive() }\n\n/**\n * Whether the server is running and answering, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.isAlive(timeout: Duration): Boolean = runInterruptible(policy.commands) { java.isAlive(timeout.toJavaDuration()) }\n\n/**\n * Ends the tmux server and every session on it.\n */\npublic suspend fun Server.killServer(): Unit = runInterruptible(policy.commands) { java.killServer() }\n\n/**\n * Ends the tmux server and every session on it, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.killServer(timeout: Duration): Unit = runInterruptible(policy.commands) { java.killServer(timeout.toJavaDuration()) }\n\n/**\n * Ends the session with this name, and everything in it.\n */\npublic suspend fun Server.killSession(name: String): Unit = runInterruptible(policy.commands) { java.killSession(name) }\n\n/**\n * Locks every client attached to this server.\n */\npublic suspend fun Server.lock(): Unit = runInterruptible(policy.commands) { java.lock() }\n\n/**\n * Creates a detached session and returns that exact session.\n */\npublic suspend fun Server.newSession(name: String): Session = runInterruptible(policy.commands) { Session(java.newSession(name), this) }\n\n/**\n * Creates a session according to a spec, which may be reused across servers.\n */\npublic suspend fun Server.newSession(spec: SessionSpec): Session = runInterruptible(policy.commands) { Session(java.newSession(spec), this) }\n\n/**\n * The pane with this id, captured now.\n */\npublic suspend fun Server.pane(id: PaneId): Pane? = runInterruptible(policy.commands) { java.pane(id).map { Pane(it, this) }.orElse(null) }\n\n/**\n * Chosen fields for every pane on the server, from one listing.\n */\npublic suspend fun Server.paneFields(names: List): Map> = runInterruptible(policy.commands) { java.paneFields(names) }\n\n/**\n * Captures every pane on the server.\n */\npublic suspend fun Server.panes(): List = runInterruptible(policy.commands) { java.panes().map { Pane(it, this) } }\n\n/**\n * The panes this expression matches, captured now.\n */\npublic suspend fun Server.panes(expression: FilterExpr): List = runInterruptible(policy.commands) { java.panes(expression).map { Pane(it, this) } }\n\n/**\n * Requires a running tmux daemon that answers the liveness probe.\n */\npublic suspend fun Server.requireAlive(): Unit = runInterruptible(policy.commands) { java.requireAlive() }\n\n/**\n * Runs a command that is expected to work, and raises when it did not.\n */\npublic suspend fun Server.run(argv: List): CommandResult = runInterruptible(policy.commands) { java.run(argv) }\n\n/**\n * The session with this name, captured now.\n */\npublic suspend fun Server.session(name: String): Session? = runInterruptible(policy.commands) { java.session(name).map { Session(it, this) }.orElse(null) }\n\n/**\n * The session with this id, captured now.\n */\npublic suspend fun Server.session(id: SessionId): Session? = runInterruptible(policy.commands) { java.session(id).map { Session(it, this) }.orElse(null) }\n\n/**\n * Every session, captured now.\n */\npublic suspend fun Server.sessions(): List = runInterruptible(policy.commands) { java.sessions().map { Session(it, this) } }\n\n/**\n * The sessions this expression matches, captured now.\n */\npublic suspend fun Server.sessions(expression: FilterExpr): List = runInterruptible(policy.commands) { java.sessions(expression).map { Session(it, this) } }\n\n/**\n * Captures the whole hierarchy in at most four listings, retrying once if the server is\n * replaced.\n */\npublic suspend fun Server.snapshot(): ServerSnapshot = runInterruptible(policy.commands) { java.snapshot() }\n\n/**\n * Runs a file of tmux commands, as a configuration file would be run.\n */\npublic suspend fun Server.sourceFile(`file`: Path): Unit = runInterruptible(policy.commands) { java.sourceFile(file) }\n\n/**\n * Reads only validated tmux variable names, never caller-authored format syntax.\n */\npublic suspend fun Server.variables(names: List): Map = runInterruptible(policy.commands) { java.variables(names) }\n\n/**\n * Which tmux this server is running.\n */\npublic suspend fun Server.version(): TmuxVersion = runInterruptible(policy.commands) { java.version() }\n\n/**\n * The winlink at this exact position, captured now.\n */\npublic suspend fun Server.window(context: WindowContext): Window? = runInterruptible(policy.commands) { java.window(context).map { Window(it, this) }.orElse(null) }\n\n/**\n * Captures every winlink, preserving each session and index placement.\n */\npublic suspend fun Server.windows(): List = runInterruptible(policy.commands) { java.windows().map { Window(it, this) } }\n\n/**\n * The winlinks this expression matches, captured now.\n */\npublic suspend fun Server.windows(expression: FilterExpr): List = runInterruptible(policy.commands) { java.windows(expression).map { Window(it, this) } }\n\n/**\n * Every winlink of the window with this id, captured now.\n */\npublic suspend fun Server.windows(id: WindowId): List = runInterruptible(policy.commands) { java.windows(id).map { Window(it, this) } }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.WindowSpec\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches every client attached to this session, leaving the session running.\n */\npublic suspend fun Session.detachClients(): Unit = runInterruptible(server.policy.commands) { java.detachClients() }\n\n/**\n * Expands a tmux format in this session's context, and answers with what it came to.\n */\npublic suspend fun Session.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Ends this session.\n */\npublic suspend fun Session.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Returns to the window that was active before this one.\n */\npublic suspend fun Session.lastWindow(): Unit = runInterruptible(server.policy.commands) { java.lastWindow() }\n\n/**\n * Creates a window in this session and returns that exact window.\n */\npublic suspend fun Session.newWindow(name: String): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(name), this.server) }\n\n/**\n * Creates a window in this session according to a spec, which may be reused across sessions.\n */\npublic suspend fun Session.newWindow(spec: WindowSpec): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(spec), this.server) }\n\n/**\n * Moves to the next window in this session, wrapping at the end.\n */\npublic suspend fun Session.nextWindow(): Unit = runInterruptible(server.policy.commands) { java.nextWindow() }\n\n/**\n * Moves to the previous window in this session, wrapping at the start.\n */\npublic suspend fun Session.previousWindow(): Unit = runInterruptible(server.policy.commands) { java.previousWindow() }\n\n/**\n * Takes a new capture and returns this session as it is now.\n */\npublic suspend fun Session.refresh(): Session = runInterruptible(server.policy.commands) { Session(java.refresh(), this.server) }\n\n/**\n * Renames this session and returns its replacement capture.\n */\npublic suspend fun Session.rename(name: String): Session = runInterruptible(server.policy.commands) { Session(java.rename(name), this.server) }\n\n/**\n * Makes a window of this session the active one.\n */\npublic suspend fun Session.selectWindow(window: Window): Unit = runInterruptible(server.policy.commands) { java.selectWindow(window.java) }\n\n/**\n * Sets the scrollback retained by panes created in this session.\n */\npublic suspend fun Session.setHistoryLimit(lines: Int): Unit = runInterruptible(server.policy.commands) { java.setHistoryLimit(lines) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs a shell command and answers with what it printed.\n */\npublic suspend fun Shell.capturing(command: String): List = runInterruptible(server.policy.commands) { java.capturing(command) }\n\n/**\n * Runs one tmux command when a shell command succeeds.\n */\npublic suspend fun Shell.choose(condition: String, whenTrue: String): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue) }\n\n/**\n * Runs one tmux command or another, according to whether a shell command succeeds.\n */\npublic suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue, whenFalse) }\n\n/**\n * Runs a shell command for its effect.\n */\npublic suspend fun Shell.run(command: String): Unit = runInterruptible(server.policy.commands) { java.run(command) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Layout\nimport io.github.libtmux.SplitSpec\nimport io.github.libtmux.WindowLayout\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Restores an exact arrangement previously read from [.layout()].\n */\npublic suspend fun Window.applyLayout(layout: WindowLayout): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * As [.applyLayout(WindowLayout)], for a layout held as text — one saved to a file, say.\n */\npublic suspend fun Window.applyLayout(layout: String): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * Shows a popup over this window, running a command in it.\n */\npublic suspend fun Window.displayPopup(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.displayPopup(shellCommand) }\n\n/**\n * Expands a tmux format in this window's context, and answers with what it came to.\n */\npublic suspend fun Window.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Closes this window.\n */\npublic suspend fun Window.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Links this window into another session, so one window sits in both.\n */\npublic suspend fun Window.linkTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.linkTo(session.java) }\n\n/**\n * Moves this window into another session.\n */\npublic suspend fun Window.moveTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java) }\n\n/**\n * Moves this window to an exact index in another session.\n */\npublic suspend fun Window.moveTo(session: Session, index: Int): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java, index) }\n\n/**\n * Moves to the next built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.nextLayout(): Unit = runInterruptible(server.policy.commands) { java.nextLayout() }\n\n/**\n * Moves to the previous built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.previousLayout(): Unit = runInterruptible(server.policy.commands) { java.previousLayout() }\n\n/**\n * Takes a new capture and returns this winlink as it is now.\n */\npublic suspend fun Window.refresh(): Window = runInterruptible(server.policy.commands) { Window(java.refresh(), this.server) }\n\n/**\n * Renames this window and returns its replacement capture.\n */\npublic suspend fun Window.rename(name: String): Window = runInterruptible(server.policy.commands) { Window(java.rename(name), this.server) }\n\n/**\n * Resizes this window in terminal cells.\n */\npublic suspend fun Window.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills what is running in this window and starts it again.\n */\npublic suspend fun Window.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Rotates the panes within this window.\n */\npublic suspend fun Window.rotate(): Unit = runInterruptible(server.policy.commands) { java.rotate() }\n\n/**\n * Makes this the active window of its session.\n */\npublic suspend fun Window.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Rearranges this window's panes into one of tmux's built-in layouts.\n */\npublic suspend fun Window.selectLayout(layout: Layout): Unit = runInterruptible(server.policy.commands) { java.selectLayout(layout) }\n\n/**\n * Splits this window's active pane in half, putting the new one below it.\n */\npublic suspend fun Window.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this window's active pane according to a spec, which may be reused across windows.\n */\npublic suspend fun Window.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops copying input between this window's panes.\n */\npublic suspend fun Window.stopSynchronizingPanes(): Unit = runInterruptible(server.policy.commands) { java.stopSynchronizingPanes() }\n\n/**\n * Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes].\n */\npublic suspend fun Window.synchronizePanes(): Unit = runInterruptible(server.policy.commands) { java.synchronizePanes() }\n\n/**\n * Removes this link, leaving the window wherever else it is linked.\n */\npublic suspend fun Window.unlink(): Unit = runInterruptible(server.policy.commands) { java.unlink() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Client_\nimport io.github.libtmux.Session\nimport io.github.libtmux.Client as LibtmuxClient\nimport io.github.libtmux.kotlin.Client as KotlinClient\n\n/**\n * The client's terminal name, which is how tmux addresses it.\n */\npublic val KotlinClient.Companion.name: TextField\n get() = TextField(Client_.name())\n\n/**\n * The session this client was attached to, if any.\n */\npublic val KotlinClient.Companion.session: ToOneField\n get() = ToOneField(Client_.session())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane_\nimport io.github.libtmux.Pane as LibtmuxPane\nimport io.github.libtmux.kotlin.Pane as KotlinPane\n\n/**\n * The pane id.\n */\npublic val KotlinPane.Companion.id: TextField\n get() = TextField(Pane_.id())\n\n/**\n * The command tmux reported running in the pane.\n */\npublic val KotlinPane.Companion.command: TextField\n get() = TextField(Pane_.command())\n\n/**\n * The pane's position in its window.\n */\npublic val KotlinPane.Companion.index: NumberField\n get() = NumberField(Pane_.index())\n\n/**\n * Whether this was its window's active pane.\n */\npublic val KotlinPane.Companion.active: FlagField\n get() = FlagField(Pane_.active())\n\n/**\n * The pane's title, which a program running in it can set.\n */\npublic val KotlinPane.Companion.title: TextField\n get() = TextField(Pane_.title())\n\n/**\n * The pane's working directory, as the text tmux reported.\n */\npublic val KotlinPane.Companion.path: TextField\n get() = TextField(Pane_.path())\n\n/**\n * The pane's width, in cells.\n */\npublic val KotlinPane.Companion.width: NumberField\n get() = NumberField(Pane_.width())\n\n/**\n * The pane's height, in cells.\n */\npublic val KotlinPane.Companion.height: NumberField\n get() = NumberField(Pane_.height())\n\n/**\n * The column of the pane's left edge in its window.\n */\npublic val KotlinPane.Companion.left: NumberField\n get() = NumberField(Pane_.left())\n\n/**\n * The row of the pane's top edge in its window.\n */\npublic val KotlinPane.Companion.top: NumberField\n get() = NumberField(Pane_.top())\n\n/**\n * Whether the pane touches the top of its window.\n */\npublic val KotlinPane.Companion.atTop: FlagField\n get() = FlagField(Pane_.atTop())\n\n/**\n * Whether the pane touches the bottom of its window.\n */\npublic val KotlinPane.Companion.atBottom: FlagField\n get() = FlagField(Pane_.atBottom())\n\n/**\n * Whether the pane touches the left of its window.\n */\npublic val KotlinPane.Companion.atLeft: FlagField\n get() = FlagField(Pane_.atLeft())\n\n/**\n * Whether the pane touches the right of its window.\n */\npublic val KotlinPane.Companion.atRight: FlagField\n get() = FlagField(Pane_.atRight())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Session_\nimport io.github.libtmux.Window\nimport io.github.libtmux.Session as LibtmuxSession\nimport io.github.libtmux.kotlin.Session as KotlinSession\n\n/**\n * The session id, as text, so it can be compared and listed.\n */\npublic val KotlinSession.Companion.id: TextField\n get() = TextField(Session_.id())\n\n/**\n * The session name.\n */\npublic val KotlinSession.Companion.name: TextField\n get() = TextField(Session_.name())\n\n/**\n * Whether a client was attached when this was captured.\n */\npublic val KotlinSession.Companion.attached: FlagField\n get() = FlagField(Session_.attached())\n\n/**\n * How many windows this session holds.\n */\npublic val KotlinSession.Companion.windowCount: NumberField\n get() = NumberField(Session_.windowCount())\n\n/**\n * This session's windows.\n */\npublic val KotlinSession.Companion.windows: ToManyField\n get() = ToManyField(Session_.windows())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane\nimport io.github.libtmux.Session\nimport io.github.libtmux.Window_\nimport io.github.libtmux.Window as LibtmuxWindow\nimport io.github.libtmux.kotlin.Window as KotlinWindow\n\n/**\n * The underlying window id, shared by every link to it.\n */\npublic val KotlinWindow.Companion.id: TextField\n get() = TextField(Window_.id())\n\n/**\n * The window name.\n */\npublic val KotlinWindow.Companion.name: TextField\n get() = TextField(Window_.name())\n\n/**\n * Where this link sits in its session.\n */\npublic val KotlinWindow.Companion.index: NumberField\n get() = NumberField(Window_.index())\n\n/**\n * Whether this was its session's active window.\n */\npublic val KotlinWindow.Companion.active: FlagField\n get() = FlagField(Window_.active())\n\n/**\n * Whether the underlying window is linked into more than one session.\n */\npublic val KotlinWindow.Companion.linked: FlagField\n get() = FlagField(Window_.linked())\n\n/**\n * The window's width, in cells.\n */\npublic val KotlinWindow.Companion.width: NumberField\n get() = NumberField(Window_.width())\n\n/**\n * The window's height, in cells.\n */\npublic val KotlinWindow.Companion.height: NumberField\n get() = NumberField(Window_.height())\n\n/**\n * How many panes this link holds.\n */\npublic val KotlinWindow.Companion.paneCount: NumberField\n get() = NumberField(Window_.paneCount())\n\n/**\n * This link's panes.\n */\npublic val KotlinWindow.Companion.panes: ToManyField\n get() = ToManyField(Window_.panes())\n\n/**\n * The session this link belongs to.\n */\npublic val KotlinWindow.Companion.session: ToOneField\n get() = ToOneField(Window_.session())\n"},"repo":"libtmux/libtmux-java"} +{"port":"kotlin","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (kotlin syntax)","symbols":[{"id":"io.github.libtmux.kotlin.Batch","name":"Batch","kind":"class","signatures":[{"raw":"public class Batch","params":[]}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"Several tmux commands collected to run together in one invocation.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BatchOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch"},{"id":"io.github.libtmux.kotlin.Batch.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Batch","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-server"},{"id":"io.github.libtmux.kotlin.Batch.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public val asJava: JavaBatch","params":[],"returns":"JavaBatch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"The Java batch this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-asjava"},{"id":"io.github.libtmux.kotlin.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun add(vararg argv: String): Batch","params":[{"name":"argv","type":"String"}],"returns":"Batch"},{"raw":"public fun add(argv: List): Batch","params":[{"name":"argv","type":"List"}],"returns":"Batch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"doc":{"summary":"Adds one tmux command, its arguments already separate elements. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-add"},{"id":"io.github.libtmux.kotlin.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun size(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many operations have been collected. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-size"},{"id":"io.github.libtmux.kotlin.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun length(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-length"},{"id":"io.github.libtmux.kotlin.Batch.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-equals"},{"id":"io.github.libtmux.kotlin.Batch.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-hashcode"},{"id":"io.github.libtmux.kotlin.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-tostring"},{"id":"io.github.libtmux.kotlin.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"public class Buffers","params":[]}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The tmux server's paste buffers.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BuffersOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers"},{"id":"io.github.libtmux.kotlin.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-server"},{"id":"io.github.libtmux.kotlin.Buffers.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public val asJava: JavaBuffers","params":[],"returns":"JavaBuffers"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The Java buffers this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-asjava"},{"id":"io.github.libtmux.kotlin.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-equals"},{"id":"io.github.libtmux.kotlin.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-hashcode"},{"id":"io.github.libtmux.kotlin.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-tostring"},{"id":"io.github.libtmux.kotlin.Client","name":"Client","kind":"class","signatures":[{"raw":"public class Client","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"An attached tmux client and its captured properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ClientOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client"},{"id":"io.github.libtmux.kotlin.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Client","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-server"},{"id":"io.github.libtmux.kotlin.Client.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val asJava: JavaClient","params":[],"returns":"JavaClient"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-asjava"},{"id":"io.github.libtmux.kotlin.Client.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-name"},{"id":"io.github.libtmux.kotlin.Client.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val session: Session?","params":[],"returns":"Session?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-session"},{"id":"io.github.libtmux.kotlin.Client.attachment","name":"attachment","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val attachment: ClientAttachment?","params":[],"returns":"ClientAttachment?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-attachment"},{"id":"io.github.libtmux.kotlin.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-equals"},{"id":"io.github.libtmux.kotlin.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-hashcode"},{"id":"io.github.libtmux.kotlin.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-tostring"},{"id":"io.github.libtmux.kotlin.Client.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion"},{"id":"io.github.libtmux.kotlin.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"public class CommandChain","params":[]}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandChainOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain"},{"id":"io.github.libtmux.kotlin.CommandChain.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-server"},{"id":"io.github.libtmux.kotlin.CommandChain.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public val asJava: JavaCommandChain","params":[],"returns":"JavaCommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"The Java chain this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-asjava"},{"id":"io.github.libtmux.kotlin.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun newWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Makes a window named [name], which the commands after it act on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-newwindow"},{"id":"io.github.libtmux.kotlin.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun renameWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Renames the window the chain is on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-renamewindow"},{"id":"io.github.libtmux.kotlin.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitLeftRight(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into left and right. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splitleftright"},{"id":"io.github.libtmux.kotlin.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitTopBottom(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into top and bottom. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splittopbottom"},{"id":"io.github.libtmux.kotlin.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun sendLine(command: String): CommandChain","params":[{"name":"command","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Types [command] into the current pane and presses Enter. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-sendline"},{"id":"io.github.libtmux.kotlin.CommandChain.then","name":"then","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun then(vararg argv: String): CommandChain","params":[{"name":"argv","type":"String"}],"returns":"CommandChain"},{"raw":"public fun then(argv: List): CommandChain","params":[{"name":"argv","type":"List"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"doc":{"summary":"Adds any tmux command. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-then"},{"id":"io.github.libtmux.kotlin.CommandChain.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-equals"},{"id":"io.github.libtmux.kotlin.CommandChain.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-hashcode"},{"id":"io.github.libtmux.kotlin.CommandChain.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-tostring"},{"id":"io.github.libtmux.kotlin.Commands","name":"Commands","kind":"class","signatures":[{"raw":"public class Commands","params":[]}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The commands this tmux knows, read without starting a server to answer.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandsOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands"},{"id":"io.github.libtmux.kotlin.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Commands","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-server"},{"id":"io.github.libtmux.kotlin.Commands.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public val asJava: JavaCommands","params":[],"returns":"JavaCommands"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The Java commands this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-asjava"},{"id":"io.github.libtmux.kotlin.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-equals"},{"id":"io.github.libtmux.kotlin.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-hashcode"},{"id":"io.github.libtmux.kotlin.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-tostring"},{"id":"io.github.libtmux.kotlin.ControlClient","name":"ControlClient","kind":"class","signatures":[{"raw":"public class ControlClient : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ControlClientOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient"},{"id":"io.github.libtmux.kotlin.ControlClient.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-server"},{"id":"io.github.libtmux.kotlin.ControlClient.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val asJava: JavaControlClient","params":[],"returns":"JavaControlClient"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The Java control client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-asjava"},{"id":"io.github.libtmux.kotlin.ControlClient.isAlive","name":"isAlive","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val isAlive: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether the client is still running."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-isalive"},{"id":"io.github.libtmux.kotlin.ControlClient.standardError","name":"standardError","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardError: String","params":[],"returns":"String"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderror"},{"id":"io.github.libtmux.kotlin.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardErrorTruncated: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether [standardError] stopped before the process finished writing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.kotlin.ControlClient.output","name":"output","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun output(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Terminal output tmux pushes, as a cold [Flow].","body":"A fresh Java subscription opens per [kotlinx.coroutines.flow.Flow.collect] and closes when\ncollection ends, cancels, or throws — fan-out means collecting twice, each with its own gap\naccounting. Not `suspend`: opening the subscription is local and does no tmux round trip: only\ncollecting it reads.\n\nOutput tmux sends before the subscription opens is not delivered, and a cold flow opens it\nonly when collection starts. So a command whose output is wanted belongs in [onSubscribed],\nwhich runs once the subscription exists and before the first read, rather than before\n`collect`: `control.output(32) { control.send(\"send-keys\", ...) }`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-output"},{"id":"io.github.libtmux.kotlin.ControlClient.events","name":"events","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun events(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"State changes tmux volunteers, as a cold [Flow]. Reads, and takes [onSubscribed], as [output] does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-events"},{"id":"io.github.libtmux.kotlin.ControlClient.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-close"},{"id":"io.github.libtmux.kotlin.LibTmuxDsl","name":"LibTmuxDsl","kind":"class","signatures":[{"raw":"@DslMarker\npublic annotation class LibTmuxDsl","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Marks every builder below so an inner block cannot reach an outer block's receiver by accident: `split { directory = x }` inside `window { }` resolves to the innermost [SplitBuilder], never to the [WindowBuilder] it is nested in. Reaching the outer receiver on purpose still works, spelled explicitly (`this@window.directory = x`)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-libtmuxdsl"},{"id":"io.github.libtmux.kotlin.SessionBuilder","name":"SessionBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SessionBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a new session, its initial command, and its windows with [Server.newSession]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder"},{"id":"io.github.libtmux.kotlin.SessionBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-name"},{"id":"io.github.libtmux.kotlin.SessionBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"The session's working directory, which its first window starts in too."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-directory"},{"id":"io.github.libtmux.kotlin.SessionBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in the first window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-running"},{"id":"io.github.libtmux.kotlin.SessionBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new session's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-env"},{"id":"io.github.libtmux.kotlin.SessionBuilder.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun window(configure: WindowBuilder.() -> Unit)","params":[{"name":"configure","type":"WindowBuilder.() -> Unit"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-window"},{"id":"io.github.libtmux.kotlin.WindowBuilder","name":"WindowBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class WindowBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a window and its pane splits inside a [SessionBuilder] block."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder"},{"id":"io.github.libtmux.kotlin.WindowBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-name"},{"id":"io.github.libtmux.kotlin.WindowBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-directory"},{"id":"io.github.libtmux.kotlin.WindowBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in this window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-running"},{"id":"io.github.libtmux.kotlin.WindowBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new window's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-env"},{"id":"io.github.libtmux.kotlin.WindowBuilder.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun split(configure: SplitBuilder.() -> Unit = {})","params":[{"name":"configure","type":"SplitBuilder.() -> Unit","default":"{}"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-split"},{"id":"io.github.libtmux.kotlin.SplitBuilder","name":"SplitBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SplitBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Choose the position, size, and working directory of a new pane split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder"},{"id":"io.github.libtmux.kotlin.SplitBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-directory"},{"id":"io.github.libtmux.kotlin.SplitBuilder.below","name":"below","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun below()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane below this one. tmux's own default if no direction is chosen."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-below"},{"id":"io.github.libtmux.kotlin.SplitBuilder.above","name":"above","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun above()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane above this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-above"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toRight","name":"toRight","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toRight()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the right of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toright"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toLeft","name":"toLeft","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toLeft()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the left of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toleft"},{"id":"io.github.libtmux.kotlin.SplitBuilder.cells","name":"cells","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun cells(count: Int)","params":[{"name":"count","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane by an exact number of cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-cells"},{"id":"io.github.libtmux.kotlin.SplitBuilder.percent","name":"percent","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun percent(share: Int)","params":[{"name":"share","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane as a percentage of the space being split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-percent"},{"id":"io.github.libtmux.kotlin.SplitBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new pane's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-env"},{"id":"io.github.libtmux.kotlin.Environment","name":"Environment","kind":"class","signatures":[{"raw":"public class Environment","params":[]}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"Read and update environment variables used to start processes in tmux.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `EnvironmentOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment"},{"id":"io.github.libtmux.kotlin.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Environment","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-server"},{"id":"io.github.libtmux.kotlin.Environment.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public val asJava: JavaEnvironment","params":[],"returns":"JavaEnvironment"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"The Java environment this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-asjava"},{"id":"io.github.libtmux.kotlin.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-equals"},{"id":"io.github.libtmux.kotlin.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-hashcode"},{"id":"io.github.libtmux.kotlin.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-tostring"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy","name":"ExecutionPolicy","kind":"class","signatures":[{"raw":"public class ExecutionPolicy(\n public val commands: CoroutineDispatcher,\n public val streamReads: CoroutineDispatcher,\n public val defaultDeadline: Duration = Duration.INFINITE,\n)","params":[{"name":"commands","type":"CoroutineDispatcher"},{"name":"streamReads","type":"CoroutineDispatcher"},{"name":"defaultDeadline","type":"Duration","default":"Duration.INFINITE"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Controls the dispatchers and concurrency limits for a [Server]'s suspending operations.","body":"Two independently sized pools, not one: [commands] backs every `suspend` operation this module\ngenerates or hand-writes, sized from the transport's own admission bound rather than a guess.\n[streamReads] backs only what still genuinely blocks a thread — [Server.liveState]'s background\npump. [ControlClient.output] and [ControlClient.events] hold no thread from either pool; they are\nbuilt on [io.github.libtmux.control.EventSubscription.poll] and `onReady`, not on a blocking read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.commands","name":"commands","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val commands: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-commands"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.streamReads","name":"streamReads","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val streamReads: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-streamreads"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.defaultDeadline","name":"defaultDeadline","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val defaultDeadline: Duration = Duration.INFINITE","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-defaultdeadline"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.ExecutionPolicy","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion.default","name":"default","kind":"method","parent":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","signatures":[{"raw":"public fun default(\n config: ServerConfig,\n streamReadCapacity: Int = DEFAULT_STREAM_READ_CAPACITY,\n ): ExecutionPolicy","params":[{"name":"config","type":"ServerConfig"},{"name":"streamReadCapacity","type":"Int","default":"DEFAULT_STREAM_READ_CAPACITY"}],"returns":"ExecutionPolicy"}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Sizes [commands] from `config`'s own [ServerConfig.maxConcurrentCommands], and [streamReads] independently: it bounds a structurally different resource, open [Server.liveState] watches, not tmux process admission."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion-default"},{"id":"io.github.libtmux.kotlin.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"public class Hooks","params":[]}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"Read and update hooks for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `HooksOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks"},{"id":"io.github.libtmux.kotlin.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-server"},{"id":"io.github.libtmux.kotlin.Hooks.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public val asJava: JavaHooks","params":[],"returns":"JavaHooks"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"The Java hooks this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-asjava"},{"id":"io.github.libtmux.kotlin.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-equals"},{"id":"io.github.libtmux.kotlin.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-hashcode"},{"id":"io.github.libtmux.kotlin.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-tostring"},{"id":"io.github.libtmux.kotlin.Keys","name":"Keys","kind":"class","signatures":[{"raw":"public class Keys","params":[]}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `KeysOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys"},{"id":"io.github.libtmux.kotlin.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Keys","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-server"},{"id":"io.github.libtmux.kotlin.Keys.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public val asJava: JavaKeys","params":[],"returns":"JavaKeys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The Java keys this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-asjava"},{"id":"io.github.libtmux.kotlin.Keys.`in`","name":"`in`","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public fun `in`(table: String): Keys","params":[{"name":"table","type":"String"}],"returns":"Keys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The same bindings, in one named table. A pure, local view: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-in"},{"id":"io.github.libtmux.kotlin.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-equals"},{"id":"io.github.libtmux.kotlin.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-hashcode"},{"id":"io.github.libtmux.kotlin.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-tostring"},{"id":"io.github.libtmux.kotlin.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"public class MessageLog","params":[]}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The server's own message log, newest last.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `MessageLogOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog"},{"id":"io.github.libtmux.kotlin.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-server"},{"id":"io.github.libtmux.kotlin.MessageLog.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public val asJava: JavaMessageLog","params":[],"returns":"JavaMessageLog"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The Java message log this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-asjava"},{"id":"io.github.libtmux.kotlin.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-equals"},{"id":"io.github.libtmux.kotlin.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-hashcode"},{"id":"io.github.libtmux.kotlin.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-tostring"},{"id":"io.github.libtmux.kotlin.Options","name":"Options","kind":"class","signatures":[{"raw":"public class Options","params":[]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"Read and update options for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `OptionsOperations.kt`. `get`/`set` are hand-written in both overloads: a Kotlin member\nmakes every same-named extension unreachable regardless of its own parameter types, so the\n`OptionKey` overload cannot be added beside a generated `get(String)`/`set(String, String)`\nwithout also hand-writing those."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options"},{"id":"io.github.libtmux.kotlin.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Options","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-server"},{"id":"io.github.libtmux.kotlin.Options.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public val asJava: JavaOptions","params":[],"returns":"JavaOptions"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"The Java options this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-asjava"},{"id":"io.github.libtmux.kotlin.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun get(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","returnsDoc":"empty only when tmux does not know the option"},{"raw":"public suspend fun get(key: OptionKey): T?","params":[{"name":"key","type":"OptionKey"}],"returns":"T?","typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-get"},{"id":"io.github.libtmux.kotlin.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun set(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]},{"raw":"public suspend fun set(key: OptionKey, value: T)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-set"},{"id":"io.github.libtmux.kotlin.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-equals"},{"id":"io.github.libtmux.kotlin.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-hashcode"},{"id":"io.github.libtmux.kotlin.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-tostring"},{"id":"io.github.libtmux.kotlin.Pane","name":"Pane","kind":"class","signatures":[{"raw":"public class Pane","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"A tmux pane, with operations for input, output, and layout.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PaneOperations.kt`. [Companion] hosts the generated query field namespace\n(`Pane.command`, `Pane.active`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane"},{"id":"io.github.libtmux.kotlin.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Pane","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-server"},{"id":"io.github.libtmux.kotlin.Pane.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val asJava: JavaPane","params":[],"returns":"JavaPane"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The Java pane this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-asjava"},{"id":"io.github.libtmux.kotlin.Pane.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val id: PaneId","params":[],"returns":"PaneId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-id"},{"id":"io.github.libtmux.kotlin.Pane.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val index: Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-index"},{"id":"io.github.libtmux.kotlin.Pane.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-active"},{"id":"io.github.libtmux.kotlin.Pane.currentCommand","name":"currentCommand","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentCommand: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentcommand"},{"id":"io.github.libtmux.kotlin.Pane.floating","name":"floating","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val floating: Boolean?","params":[],"returns":"Boolean?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this pane floats, or null when the running tmux cannot say."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-floating"},{"id":"io.github.libtmux.kotlin.Pane.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-size"},{"id":"io.github.libtmux.kotlin.Pane.position","name":"position","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val position: PanePosition","params":[],"returns":"PanePosition"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-position"},{"id":"io.github.libtmux.kotlin.Pane.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val title: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-title"},{"id":"io.github.libtmux.kotlin.Pane.currentPath","name":"currentPath","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentPath: Path","params":[],"returns":"Path"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentpath"},{"id":"io.github.libtmux.kotlin.Pane.pid","name":"pid","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val pid: Long?","params":[],"returns":"Long?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pid"},{"id":"io.github.libtmux.kotlin.Pane.edges","name":"edges","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val edges: PaneEdges","params":[],"returns":"PaneEdges"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-edges"},{"id":"io.github.libtmux.kotlin.Pane.window","name":"window","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val window: Window","params":[],"returns":"Window"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-window"},{"id":"io.github.libtmux.kotlin.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-batch"},{"id":"io.github.libtmux.kotlin.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hooks"},{"id":"io.github.libtmux.kotlin.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-options"},{"id":"io.github.libtmux.kotlin.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun awaitText(\n text: String,\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"TextOutcome","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [text] shows in this pane.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout, and it does not stop a\nprogram already running in the pane.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-awaittext"},{"id":"io.github.libtmux.kotlin.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun await(\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n settled: (Pane) -> Boolean,\n ): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"},{"name":"settled","type":"(Pane) -> Boolean"}],"returns":"WakeReason","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [settled] accepts this pane, read fresh from tmux before each test.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A read already sent to\ntmux is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-await"},{"id":"io.github.libtmux.kotlin.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun run(\n command: String,\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): PaneRun","params":[{"name":"command","type":"String","doc":"a line of shell, run as `eval` would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"PaneRun","returnsDoc":"the command's exit status and what it printed"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"Cancelling the coroutine interrupts the wait. The command keeps running in the pane; only the\nwait for its end is what cancellation reaches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-run"},{"id":"io.github.libtmux.kotlin.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-equals"},{"id":"io.github.libtmux.kotlin.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hashcode"},{"id":"io.github.libtmux.kotlin.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-tostring"},{"id":"io.github.libtmux.kotlin.Pane.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion"},{"id":"io.github.libtmux.kotlin.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"public class Prompt","params":[]}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The server's command-prompt history.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PromptOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt"},{"id":"io.github.libtmux.kotlin.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-server"},{"id":"io.github.libtmux.kotlin.Prompt.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public val asJava: JavaPrompt","params":[],"returns":"JavaPrompt"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The Java prompt this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-asjava"},{"id":"io.github.libtmux.kotlin.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-equals"},{"id":"io.github.libtmux.kotlin.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-hashcode"},{"id":"io.github.libtmux.kotlin.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-tostring"},{"id":"io.github.libtmux.kotlin.retryIfSafe","name":"retryIfSafe","kind":"function","signatures":[{"raw":"public suspend fun retryIfSafe(times: Int = 1, block: suspend () -> T): T","params":[{"name":"times","type":"Int","default":"1"},{"name":"block","type":"suspend"}],"returns":"T","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"DispatchException":"io.github.libtmux.exception.DispatchException"},"modifiers":["async"],"doc":{"summary":"Retries [block] up to [times] more times after a [DispatchException] whose [DispatchException.safeToRetry] says the exact same request can be sent again.","body":"No retry executor lives in this library: [DispatchException.safeToRetry] is computed by the\noperation that threw it from its own catalogued idempotence, so this needs no per-call lookup and\ncomposes with any retry library a caller already uses instead of replacing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Retry.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-retryifsafe"},{"id":"io.github.libtmux.kotlin.withServer","name":"withServer","kind":"function","signatures":[{"raw":"public suspend fun withServer(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n block: suspend (Server) -> R,\n): R","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"Opens a [Server], runs [block], and closes it — even if [block] throws or is cancelled.","body":"The rule this follows, stated once: the scope that acquired a Java `AutoCloseable` is the only\nthing that closes it. [close][Server.close] runs with [NonCancellable] so a cancelled [block]\nstill releases the transport's threads.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withserver"},{"id":"io.github.libtmux.kotlin.withControl","name":"withControl","kind":"function","signatures":[{"raw":"public suspend fun withControl(\n server: Server,\n session: Session,\n timeout: Duration = server.config.defaultTimeout().toKotlinDuration(),\n block: suspend (ControlClient) -> R,\n): R","params":[{"name":"server","type":"Server"},{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"server.config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [withServer], for a [ControlClient] attached through [server]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withcontrol"},{"id":"io.github.libtmux.kotlin.Server","name":"Server","kind":"class","signatures":[{"raw":"public class Server : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use [open] with a [ServerConfig] to select a server by socket name or path. From this object,\ncreate sessions or query the server's existing sessions, windows, and panes. Each [Session]\ncontains windows, and each [Window] contains panes.\n\nOperations that contact tmux are `suspend` functions dispatched through [policy]. Call [close]\nafter the last operation to release resources owned by this object. The tmux server and its\nsessions keep running.\n\n[asJava] exposes the underlying [JavaServer] for interoperability. Both objects share the same\nresources, so closing either closes both.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server"},{"id":"io.github.libtmux.kotlin.Server.policy","name":"policy","kind":"property","parent":"io.github.libtmux.kotlin.Server","modifiers":[],"signatures":[{"raw":"public val policy: ExecutionPolicy","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-policy"},{"id":"io.github.libtmux.kotlin.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java server this wraps, for an operation this class does not mirror or a Java API that takes one. The same object, not a copy: closing either closes both."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-asjava"},{"id":"io.github.libtmux.kotlin.Server.config","name":"config","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val config: ServerConfig","params":[],"returns":"ServerConfig"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-config"},{"id":"io.github.libtmux.kotlin.Server.identity","name":"identity","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val identity: ServerIdentity","params":[],"returns":"ServerIdentity"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-identity"},{"id":"io.github.libtmux.kotlin.Server.admissionBound","name":"admissionBound","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val admissionBound: Int","params":[],"returns":"Int"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from [ExecutionPolicy.default]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-admissionbound"},{"id":"io.github.libtmux.kotlin.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-batch"},{"id":"io.github.libtmux.kotlin.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun chain(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-chain"},{"id":"io.github.libtmux.kotlin.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun shell(): Shell","params":[],"returns":"Shell"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-shell"},{"id":"io.github.libtmux.kotlin.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun commands(): Commands","params":[],"returns":"Commands"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-commands"},{"id":"io.github.libtmux.kotlin.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun messageLog(): MessageLog","params":[],"returns":"MessageLog"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-messagelog"},{"id":"io.github.libtmux.kotlin.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun prompt(): Prompt","params":[],"returns":"Prompt"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-prompt"},{"id":"io.github.libtmux.kotlin.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun channel(name: String): Channel","params":[{"name":"name","type":"String"}],"returns":"Channel"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-channel"},{"id":"io.github.libtmux.kotlin.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun keys(): Keys","params":[],"returns":"Keys"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's key bindings: `prefix` when binding, every table when listing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-keys"},{"id":"io.github.libtmux.kotlin.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun buffers(): Buffers","params":[],"returns":"Buffers"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-buffers"},{"id":"io.github.libtmux.kotlin.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-options"},{"id":"io.github.libtmux.kotlin.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun globalOptions(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-globaloptions"},{"id":"io.github.libtmux.kotlin.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-environment"},{"id":"io.github.libtmux.kotlin.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hooks"},{"id":"io.github.libtmux.kotlin.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun session(expression: FilterExpr): Session","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matched"}]},{"raw":"public suspend fun Server.session(name: String): Session?","params":[{"name":"name","type":"String"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.session(id: SessionId): Session?","params":[{"name":"id","type":"SessionId"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one session this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-session"},{"id":"io.github.libtmux.kotlin.Server.sessionOrNull","name":"sessionOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun sessionOrNull(expression: FilterExpr): Session?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one session this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessionornull"},{"id":"io.github.libtmux.kotlin.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun window(expression: FilterExpr): Window","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matched"}]},{"raw":"public suspend fun Server.window(context: WindowContext): Window?","params":[{"name":"context","type":"WindowContext"}],"returns":"Window?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one window link this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-window"},{"id":"io.github.libtmux.kotlin.Server.windowOrNull","name":"windowOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun windowOrNull(expression: FilterExpr): Window?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one window link this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windowornull"},{"id":"io.github.libtmux.kotlin.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun pane(expression: FilterExpr): Pane","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matched"}]},{"raw":"public suspend fun Server.pane(id: PaneId): Pane?","params":[{"name":"id","type":"PaneId"}],"returns":"Pane?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one pane this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-pane"},{"id":"io.github.libtmux.kotlin.Server.paneOrNull","name":"paneOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun paneOrNull(expression: FilterExpr): Pane?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one pane this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-paneornull"},{"id":"io.github.libtmux.kotlin.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun control(\n session: Session,\n timeout: Duration = config.defaultTimeout().toKotlinDuration(),\n ): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-control"},{"id":"io.github.libtmux.kotlin.Server.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-close"},{"id":"io.github.libtmux.kotlin.Server.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion"},{"id":"io.github.libtmux.kotlin.Server.Companion.open","name":"open","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public suspend fun open(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n ): Server","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-open"},{"id":"io.github.libtmux.kotlin.Server.Companion.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public fun fromJava(\n server: JavaServer,\n policy: ExecutionPolicy = ExecutionPolicy.default(server.config()),\n ): Server","params":[{"name":"server","type":"JavaServer"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(server.config())"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A wrapper over a server opened in Java, such as a test fixture's. It takes the server as it is: closing the wrapper closes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-fromjava"},{"id":"io.github.libtmux.kotlin.Session","name":"Session","kind":"class","signatures":[{"raw":"public class Session","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"A tmux session and its captured windows and properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `SessionOperations.kt`. [Companion] hosts the generated query field namespace\n(`Session.name`, `Session.attached`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session"},{"id":"io.github.libtmux.kotlin.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Session","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-server"},{"id":"io.github.libtmux.kotlin.Session.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val asJava: JavaSession","params":[],"returns":"JavaSession"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The Java session this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-asjava"},{"id":"io.github.libtmux.kotlin.Session.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val id: SessionId","params":[],"returns":"SessionId"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-id"},{"id":"io.github.libtmux.kotlin.Session.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-name"},{"id":"io.github.libtmux.kotlin.Session.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val attached: Boolean","params":[],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-attached"},{"id":"io.github.libtmux.kotlin.Session.activeWindow","name":"activeWindow","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activeWindow: Window?","params":[],"returns":"Window?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activewindow"},{"id":"io.github.libtmux.kotlin.Session.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activepane"},{"id":"io.github.libtmux.kotlin.Session.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val windows: List","params":[],"returns":"List"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-windows"},{"id":"io.github.libtmux.kotlin.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-options"},{"id":"io.github.libtmux.kotlin.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-environment"},{"id":"io.github.libtmux.kotlin.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hooks"},{"id":"io.github.libtmux.kotlin.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-equals"},{"id":"io.github.libtmux.kotlin.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hashcode"},{"id":"io.github.libtmux.kotlin.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-tostring"},{"id":"io.github.libtmux.kotlin.Session.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public companion object","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion"},{"id":"io.github.libtmux.kotlin.Shell","name":"Shell","kind":"class","signatures":[{"raw":"public class Shell","params":[]}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ShellOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell"},{"id":"io.github.libtmux.kotlin.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Shell","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-server"},{"id":"io.github.libtmux.kotlin.Shell.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public val asJava: JavaShell","params":[],"returns":"JavaShell"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"The Java shell this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-asjava"},{"id":"io.github.libtmux.kotlin.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-equals"},{"id":"io.github.libtmux.kotlin.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-hashcode"},{"id":"io.github.libtmux.kotlin.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-tostring"},{"id":"io.github.libtmux.kotlin.Window","name":"Window","kind":"class","signatures":[{"raw":"public class Window","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A tmux window at a specific position in a session.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `WindowOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window"},{"id":"io.github.libtmux.kotlin.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Window","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-server"},{"id":"io.github.libtmux.kotlin.Window.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val asJava: JavaWindow","params":[],"returns":"JavaWindow"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java window this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-asjava"},{"id":"io.github.libtmux.kotlin.Window.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val id: WindowId","params":[],"returns":"WindowId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-id"},{"id":"io.github.libtmux.kotlin.Window.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val index: WindowIndex","params":[],"returns":"WindowIndex"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-index"},{"id":"io.github.libtmux.kotlin.Window.context","name":"context","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val context: WindowContext","params":[],"returns":"WindowContext"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-context"},{"id":"io.github.libtmux.kotlin.Window.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-name"},{"id":"io.github.libtmux.kotlin.Window.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-active"},{"id":"io.github.libtmux.kotlin.Window.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val linked: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linked"},{"id":"io.github.libtmux.kotlin.Window.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-size"},{"id":"io.github.libtmux.kotlin.Window.layout","name":"layout","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val layout: WindowLayout","params":[],"returns":"WindowLayout"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-layout"},{"id":"io.github.libtmux.kotlin.Window.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The pane tmux had active here. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-activepane"},{"id":"io.github.libtmux.kotlin.Window.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val session: Session","params":[],"returns":"Session"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-session"},{"id":"io.github.libtmux.kotlin.Window.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val panes: List","params":[],"returns":"List"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-panes"},{"id":"io.github.libtmux.kotlin.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hooks"},{"id":"io.github.libtmux.kotlin.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-options"},{"id":"io.github.libtmux.kotlin.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-equals"},{"id":"io.github.libtmux.kotlin.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hashcode"},{"id":"io.github.libtmux.kotlin.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-tostring"},{"id":"io.github.libtmux.kotlin.Window.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion"},{"id":"io.github.libtmux.kotlin.query.TextField","name":"TextField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class TextField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Kotlin-idiomatic wrappers over [Fields]' typed field handles, each holding the Java handle it wraps. A value class, so this costs nothing beyond the Java object it already holds — the same choice [io.github.libtmux.kotlin.Server]'s live handles reject, made here on purpose: a field handle carries exactly one property, which is what makes the boxing tradeoff free."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield"},{"id":"io.github.libtmux.kotlin.query.TextField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun eq(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-eq"},{"id":"io.github.libtmux.kotlin.query.TextField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun ne(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-ne"},{"id":"io.github.libtmux.kotlin.query.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun startsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-startswith"},{"id":"io.github.libtmux.kotlin.query.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun endsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-endswith"},{"id":"io.github.libtmux.kotlin.query.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun contains(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-contains"},{"id":"io.github.libtmux.kotlin.query.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun matches(pattern: Pattern): FilterExpr","params":[{"name":"pattern","type":"Pattern"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-matches"},{"id":"io.github.libtmux.kotlin.query.TextField.oneOf","name":"oneOf","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun oneOf(values: Collection): FilterExpr","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-oneof"},{"id":"io.github.libtmux.kotlin.query.NumberField","name":"NumberField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class NumberField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Build numeric comparisons for a captured tmux field."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield"},{"id":"io.github.libtmux.kotlin.query.NumberField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun eq(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-eq"},{"id":"io.github.libtmux.kotlin.query.NumberField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun ne(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-ne"},{"id":"io.github.libtmux.kotlin.query.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun lessThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-lessthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atMost(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atmost"},{"id":"io.github.libtmux.kotlin.query.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun greaterThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-greaterthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atLeast(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atleast"},{"id":"io.github.libtmux.kotlin.query.FlagField","name":"FlagField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class FlagField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match a captured boolean field against true or false."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield"},{"id":"io.github.libtmux.kotlin.query.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isTrue(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-istrue"},{"id":"io.github.libtmux.kotlin.query.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isFalse(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-isfalse"},{"id":"io.github.libtmux.kotlin.query.ToManyField","name":"ToManyField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToManyField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by the captured children related to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield"},{"id":"io.github.libtmux.kotlin.query.ToManyField.any","name":"any","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun any(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-any"},{"id":"io.github.libtmux.kotlin.query.ToManyField.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun all(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-all"},{"id":"io.github.libtmux.kotlin.query.ToManyField.none","name":"none","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun none(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-none"},{"id":"io.github.libtmux.kotlin.query.ToOneField","name":"ToOneField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToOneField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by one captured related object."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield"},{"id":"io.github.libtmux.kotlin.query.ToOneField.matching","name":"matching","kind":"method","parent":"io.github.libtmux.kotlin.query.ToOneField","signatures":[{"raw":"public infix fun matching(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield-matching"},{"id":"io.github.libtmux.kotlin.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public suspend fun Batch.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"Batch"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-run"},{"id":"io.github.libtmux.kotlin.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.delete(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-delete"},{"id":"io.github.libtmux.kotlin.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-list"},{"id":"io.github.libtmux.kotlin.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.load(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-load"},{"id":"io.github.libtmux.kotlin.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.save(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-save"},{"id":"io.github.libtmux.kotlin.Buffers.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.`set`(name: String, contents: String): Unit","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-set"},{"id":"io.github.libtmux.kotlin.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.show(name: String): String","params":[{"name":"name","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-show"},{"id":"io.github.libtmux.kotlin.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detach"},{"id":"io.github.libtmux.kotlin.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detachothers"},{"id":"io.github.libtmux.kotlin.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.fetchAttachment(): ClientAttachment?","params":[],"returns":"ClientAttachment?","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-fetchattachment"},{"id":"io.github.libtmux.kotlin.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-redraw"},{"id":"io.github.libtmux.kotlin.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.refresh(): Client","params":[],"returns":"Client","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-refresh"},{"id":"io.github.libtmux.kotlin.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-switchto"},{"id":"io.github.libtmux.kotlin.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.arrange(layout: String): CommandChain","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-arrange"},{"id":"io.github.libtmux.kotlin.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-run"},{"id":"io.github.libtmux.kotlin.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public suspend fun Commands.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Commands"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-list"},{"id":"io.github.libtmux.kotlin.ControlClient.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.send(vararg argv: String): ControlReply","params":[{"name":"argv","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List): ControlReply","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-send"},{"id":"io.github.libtmux.kotlin.ControlClient.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.unwatch(name: String): ControlReply","params":[{"name":"name","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops a watch."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-unwatch"},{"id":"io.github.libtmux.kotlin.ControlClient.watch","name":"watch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to report a format whenever its value changes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-watch"},{"id":"io.github.libtmux.kotlin.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-all"},{"id":"io.github.libtmux.kotlin.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-effective"},{"id":"io.github.libtmux.kotlin.Environment.`get`","name":"`get`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`get`(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-get"},{"id":"io.github.libtmux.kotlin.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.isRemoved(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-isremoved"},{"id":"io.github.libtmux.kotlin.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.remove(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-remove"},{"id":"io.github.libtmux.kotlin.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.removed(): Set","params":[],"returns":"Set","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-removed"},{"id":"io.github.libtmux.kotlin.Environment.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`set`(name: String, `value`: String): Unit","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-set"},{"id":"io.github.libtmux.kotlin.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-setexpanded"},{"id":"io.github.libtmux.kotlin.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-unset"},{"id":"io.github.libtmux.kotlin.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.all(): Map>","params":[],"returns":"Map>","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-all"},{"id":"io.github.libtmux.kotlin.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.append(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.append(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"As [.append(String, String)], with the command as words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-append"},{"id":"io.github.libtmux.kotlin.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.run(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-run"},{"id":"io.github.libtmux.kotlin.Hooks.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.`set`(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.`set`(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-set"},{"id":"io.github.libtmux.kotlin.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.unset(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-unset"},{"id":"io.github.libtmux.kotlin.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.bind(key: String, command: List): Unit","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-bind"},{"id":"io.github.libtmux.kotlin.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-list"},{"id":"io.github.libtmux.kotlin.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.unbind(key: String): Unit","params":[{"name":"key","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-unbind"},{"id":"io.github.libtmux.kotlin.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public suspend fun MessageLog.lines(): List","params":[],"returns":"List","receiver":{"name":"this","type":"MessageLog"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-lines"},{"id":"io.github.libtmux.kotlin.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-all"},{"id":"io.github.libtmux.kotlin.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.append(name: String, suffix: String): Unit","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-append"},{"id":"io.github.libtmux.kotlin.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-effective"},{"id":"io.github.libtmux.kotlin.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setexpanded"},{"id":"io.github.libtmux.kotlin.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setifabsent"},{"id":"io.github.libtmux.kotlin.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-unset"},{"id":"io.github.libtmux.kotlin.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-breakout"},{"id":"io.github.libtmux.kotlin.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.capture(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.capture(spec: CaptureSpec): List","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-capture"},{"id":"io.github.libtmux.kotlin.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-clearhistory"},{"id":"io.github.libtmux.kotlin.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-copymode"},{"id":"io.github.libtmux.kotlin.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-dead"},{"id":"io.github.libtmux.kotlin.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-exitmode"},{"id":"io.github.libtmux.kotlin.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-expand"},{"id":"io.github.libtmux.kotlin.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-jointo"},{"id":"io.github.libtmux.kotlin.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-kill"},{"id":"io.github.libtmux.kotlin.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.mode(): PaneMode?","params":[],"returns":"PaneMode?","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-mode"},{"id":"io.github.libtmux.kotlin.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through [.sendLiteral]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-notetyped"},{"id":"io.github.libtmux.kotlin.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-paste"},{"id":"io.github.libtmux.kotlin.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pastebuffer"},{"id":"io.github.libtmux.kotlin.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends everything this pane prints to a shell command, until [.stopPiping]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pipeto"},{"id":"io.github.libtmux.kotlin.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-refresh"},{"id":"io.github.libtmux.kotlin.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resize(direction: Direction, cells: Int): Unit","params":[{"name":"direction","type":"Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resize"},{"id":"io.github.libtmux.kotlin.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resizeto"},{"id":"io.github.libtmux.kotlin.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.respawn(vararg command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawn"},{"id":"io.github.libtmux.kotlin.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawnIn(directory: Path): Unit","params":[{"name":"directory","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawnin"},{"id":"io.github.libtmux.kotlin.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-retitle"},{"id":"io.github.libtmux.kotlin.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-select"},{"id":"io.github.libtmux.kotlin.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-send"},{"id":"io.github.libtmux.kotlin.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendKeys(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendkeys"},{"id":"io.github.libtmux.kotlin.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendline"},{"id":"io.github.libtmux.kotlin.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLiteral(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendliteral"},{"id":"io.github.libtmux.kotlin.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-split"},{"id":"io.github.libtmux.kotlin.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-stoppiping"},{"id":"io.github.libtmux.kotlin.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":196,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-swapwith"},{"id":"io.github.libtmux.kotlin.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-variables"},{"id":"io.github.libtmux.kotlin.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.clear(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-clear"},{"id":"io.github.libtmux.kotlin.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.history(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-history"},{"id":"io.github.libtmux.kotlin.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.attachedSessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-attachedsessions"},{"id":"io.github.libtmux.kotlin.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.clients(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-clients"},{"id":"io.github.libtmux.kotlin.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.cmd(vararg argv: String): CommandResult","params":[{"name":"argv","type":"String"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-cmd"},{"id":"io.github.libtmux.kotlin.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-expand"},{"id":"io.github.libtmux.kotlin.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hassession"},{"id":"io.github.libtmux.kotlin.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.isAlive(timeout: Duration): Boolean","params":[{"name":"timeout","type":"Duration"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-isalive"},{"id":"io.github.libtmux.kotlin.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.killServer(timeout: Duration): Unit","params":[{"name":"timeout","type":"Duration"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killserver"},{"id":"io.github.libtmux.kotlin.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killsession"},{"id":"io.github.libtmux.kotlin.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-lock"},{"id":"io.github.libtmux.kotlin.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(spec: SessionSpec): Session","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(configure: SessionBuilder.() -> Unit): Session","params":[{"name":"configure","type":"SessionBuilder.() -> Unit"}],"returns":"Session","receiver":{"name":"this","type":"Server"},"raises":[{"type":"IllegalArgumentException","doc":"if the session and its first window block both set a directory, or both set a command: tmux has one of each for that window"}]}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewSession.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewSession.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a session running cat. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(\"created=${session.name}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewSessionKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-newsession"},{"id":"io.github.libtmux.kotlin.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.paneFields(names: List): Map>","params":[{"name":"names","type":"List"}],"returns":"Map>","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panefields"},{"id":"io.github.libtmux.kotlin.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.panes(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.panes(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panes"},{"id":"io.github.libtmux.kotlin.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-requirealive"},{"id":"io.github.libtmux.kotlin.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.run(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-run"},{"id":"io.github.libtmux.kotlin.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.sessions(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Every session, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListSessions.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListSessions.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List the sessions returned by a server read. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"sessions=\" + server.sessions().map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListSessionsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Query.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Query.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Select sessions with a typed name filter. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val matches = server.sessions(Session.name eq \"work-one\")\n println(\"matches=\" + matches.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.QueryKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessions"},{"id":"io.github.libtmux.kotlin.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.snapshot(): ServerSnapshot","params":[],"returns":"ServerSnapshot","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":153,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-snapshot"},{"id":"io.github.libtmux.kotlin.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sourceFile(`file`: Path): Unit","params":[{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":158,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sourcefile"},{"id":"io.github.libtmux.kotlin.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-variables"},{"id":"io.github.libtmux.kotlin.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.version(): TmuxVersion","params":[],"returns":"TmuxVersion","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-version"},{"id":"io.github.libtmux.kotlin.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.windows(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(id: WindowId): List","params":[{"name":"id","type":"WindowId"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windows"},{"id":"io.github.libtmux.kotlin.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-detachclients"},{"id":"io.github.libtmux.kotlin.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-expand"},{"id":"io.github.libtmux.kotlin.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-kill"},{"id":"io.github.libtmux.kotlin.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-lastwindow"},{"id":"io.github.libtmux.kotlin.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Session"}},{"raw":"public suspend fun Session.newWindow(spec: WindowSpec): Window","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewWindow.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewWindow.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.WindowSpec\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a window and read the updated session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.session(Session.name eq \"work-one\")\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(\"created=${window.name}\")\n val refreshed = server.session(Session.name eq \"work-one\")\n println(\"windows=\" + refreshed.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewWindowKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-newwindow"},{"id":"io.github.libtmux.kotlin.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-nextwindow"},{"id":"io.github.libtmux.kotlin.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-previouswindow"},{"id":"io.github.libtmux.kotlin.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.refresh(): Session","params":[],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-refresh"},{"id":"io.github.libtmux.kotlin.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-rename"},{"id":"io.github.libtmux.kotlin.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-selectwindow"},{"id":"io.github.libtmux.kotlin.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-sethistorylimit"},{"id":"io.github.libtmux.kotlin.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.capturing(command: String): List","params":[{"name":"command","type":"String"}],"returns":"List","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-capturing"},{"id":"io.github.libtmux.kotlin.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.choose(condition: String, whenTrue: String): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}},{"raw":"public suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-choose"},{"id":"io.github.libtmux.kotlin.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.run(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-run"},{"id":"io.github.libtmux.kotlin.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.applyLayout(layout: WindowLayout): Unit","params":[{"name":"layout","type":"WindowLayout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Restores an exact arrangement previously read from [.layout()]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-applylayout"},{"id":"io.github.libtmux.kotlin.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-displaypopup"},{"id":"io.github.libtmux.kotlin.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-expand"},{"id":"io.github.libtmux.kotlin.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-kill"},{"id":"io.github.libtmux.kotlin.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linkto"},{"id":"io.github.libtmux.kotlin.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-moveto"},{"id":"io.github.libtmux.kotlin.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-nextlayout"},{"id":"io.github.libtmux.kotlin.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-previouslayout"},{"id":"io.github.libtmux.kotlin.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.refresh(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-refresh"},{"id":"io.github.libtmux.kotlin.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rename"},{"id":"io.github.libtmux.kotlin.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-resizeto"},{"id":"io.github.libtmux.kotlin.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-respawn"},{"id":"io.github.libtmux.kotlin.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rotate"},{"id":"io.github.libtmux.kotlin.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-select"},{"id":"io.github.libtmux.kotlin.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.selectLayout(layout: Layout): Unit","params":[{"name":"layout","type":"Layout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-selectlayout"},{"id":"io.github.libtmux.kotlin.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-split"},{"id":"io.github.libtmux.kotlin.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.kotlin.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-synchronizepanes"},{"id":"io.github.libtmux.kotlin.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-unlink"},{"id":"io.github.libtmux.kotlin.Client.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-name"},{"id":"io.github.libtmux.kotlin.Client.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-session"},{"id":"io.github.libtmux.kotlin.Pane.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-id"},{"id":"io.github.libtmux.kotlin.Pane.Companion.command","name":"command","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.command: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-command"},{"id":"io.github.libtmux.kotlin.Pane.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-index"},{"id":"io.github.libtmux.kotlin.Pane.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-active"},{"id":"io.github.libtmux.kotlin.Pane.Companion.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.title: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-title"},{"id":"io.github.libtmux.kotlin.Pane.Companion.path","name":"path","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.path: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-path"},{"id":"io.github.libtmux.kotlin.Pane.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-width"},{"id":"io.github.libtmux.kotlin.Pane.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-height"},{"id":"io.github.libtmux.kotlin.Pane.Companion.left","name":"left","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.left: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-left"},{"id":"io.github.libtmux.kotlin.Pane.Companion.top","name":"top","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.top: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-top"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atTop","name":"atTop","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atTop: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-attop"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atBottom","name":"atBottom","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atBottom: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atbottom"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atLeft","name":"atLeft","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atLeft: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atleft"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atRight","name":"atRight","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atRight: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atright"},{"id":"io.github.libtmux.kotlin.Session.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-id"},{"id":"io.github.libtmux.kotlin.Session.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-name"},{"id":"io.github.libtmux.kotlin.Session.Companion.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.attached: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-attached"},{"id":"io.github.libtmux.kotlin.Session.Companion.windowCount","name":"windowCount","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windowCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windowcount"},{"id":"io.github.libtmux.kotlin.Session.Companion.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windows: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windows"},{"id":"io.github.libtmux.kotlin.Window.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-id"},{"id":"io.github.libtmux.kotlin.Window.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-name"},{"id":"io.github.libtmux.kotlin.Window.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-index"},{"id":"io.github.libtmux.kotlin.Window.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-active"},{"id":"io.github.libtmux.kotlin.Window.Companion.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.linked: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-linked"},{"id":"io.github.libtmux.kotlin.Window.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-width"},{"id":"io.github.libtmux.kotlin.Window.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-height"},{"id":"io.github.libtmux.kotlin.Window.Companion.paneCount","name":"paneCount","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.paneCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panecount"},{"id":"io.github.libtmux.kotlin.Window.Companion.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.panes: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panes"},{"id":"io.github.libtmux.kotlin.Window.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-session"},{"id":"io.github.libtmux.query.FilterExpr.not","name":"not","kind":"function","signatures":[{"raw":"public operator fun FilterExpr.not(): FilterExpr","params":[],"returns":"FilterExpr","receiver":{"name":"this","type":"FilterExpr"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Inverts an expression, so `!Pane_.active().isTrue()` says what it means.","body":"There is no matching `and` or `or` here, deliberately. Those are already methods on\n[FilterExpr], and an extension of the same name would be shadowed by the member inside its own\nbody while winning at an infix call site — correct either way, but for a reason no reader should\nhave to work out. `a.and(b)` is one character longer than `a and b` and always means the thing it\nappears to.\n\n`negate` rather than `not` on the Java side because [java.util.function.Predicate] already owns\n`not`, and these expressions are predicates.\n\nThe bound is `T : Any` rather than `T`, and that is not a style choice. The core is `@NullMarked`,\nso Kotlin reads `FilterExpr` as `FilterExpr`; an unbounded `T` here would admit a\nnullable entity the core says cannot exist. Compiled with `-Xjspecify-annotations=strict`, so it\nis an error rather than a warning — this file did not compile until the bound was written."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-query-filterexpr-not"},{"id":"io.github.libtmux.kotlin.Iterable.filter","name":"filter","kind":"function","signatures":[{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["overload"],"doc":{"summary":"Selects the elements an expression matches.","body":"Kotlin's own `filter` takes a function, not a [java.util.function.Predicate], so handing it a\n[FilterExpr] does not compile — the one place where reading the Java documentation and writing\nKotlin part company. This is that overload, so `panes.filter(Pane_.active().isTrue())` means what\nit appears to.\n\nThe list is already in hand: this asks tmux nothing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-iterable-filter"},{"id":"io.github.libtmux.kotlin.Server.liveState","name":"liveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.liveState(\n session: Session,\n scope: CoroutineScope,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n): StateFlow","params":[{"name":"session","type":"Session"},{"name":"scope","type":"CoroutineScope"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the first attach, and the deadline each later rebuild wait uses to recheck [scope] for cancellation"}],"returns":"StateFlow","receiver":{"name":"this","type":"Server"},"raises":[{"type":"io.github.libtmux.exception.TargetGoneException","doc":"synchronously if [session]'s server has already gone when this is called; later, the same failure ends [scope] instead, since it surfaces from the launched pump rather than from this call"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"A live, continuously rebuilt view of [server], as a [StateFlow].","body":"Wraps Java's [ServerMirror] rather than reinventing it: every routine case — resnapshot on\nnotification, on gap, and on reconnect; conflation while a rebuild is in flight; ending once\n[session] itself is gone — is already handled once, correctly, inside [ServerMirror]. This\nfunction's only job is pumping [ServerMirror.awaitNewer] on a dedicated thread from\n[ExecutionPolicy.streamReads] and publishing what comes back. Named `liveState`, not `ServerMirror`,\nso it does not collide with the Java type it wraps.\n\n[scope] owns the returned [StateFlow]'s whole lifetime: closing the mirror is this function's own\n`launch`+`finally`, tied to [scope]'s cancellation, so the caller never has to close it by hand."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-livestate"},{"id":"io.github.libtmux.kotlin.Server.withLiveState","name":"withLiveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.withLiveState(\n session: Session,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n block: suspend (StateFlow) -> R,\n): R","params":[{"name":"session","type":"Session"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","receiver":{"name":"this","type":"Server"},"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [liveState], scoped to [block]: opens the live view, runs [block] against it, and cancels the background pump before returning — the same `withServer`/`withControl` shape, for the one resource [liveState] itself cannot close on its own.","body":"[liveState]'s pump runs until [scope] ends, by design (a caller collecting it for the life of a\nprogram passes its own long-lived scope) — which means a bare `coroutineScope { liveState(...) }`\nnever returns: `coroutineScope` waits for every child, the pump included, and nothing inside it\nasks the pump to stop. This cancels that one child explicitly once [block] is done, whether it\nreturns or throws."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-withlivestate"},{"id":"java.util.OptionalInt.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalInt.orNull(): Int?","params":[],"returns":"Int?","receiver":{"name":"this","type":"OptionalInt"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent: an exit status, a captured server pid."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionalint-ornull"},{"id":"java.util.OptionalLong.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalLong.orNull(): Long?","params":[],"returns":"Long?","receiver":{"name":"this","type":"OptionalLong"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionallong-ornull"},{"id":"io.github.libtmux.Channel.await","name":"await","kind":"function","signatures":[{"raw":"public suspend fun Channel.await(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"},"returnsDoc":"why the wait ended"}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Waits for something to signal this channel.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A `wait-for` tmux has already\naccepted is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-await"},{"id":"io.github.libtmux.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"function","signatures":[{"raw":"public suspend fun Channel.awaitReservingCapacity(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"}}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"As [await], while preserving process capacity for a call that signals it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-awaitreservingcapacity"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-kotlin","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs every collected operation in one tmux invocation.\n */\npublic suspend fun Batch.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.BufferInfo\nimport java.nio.`file`.Path\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Removes a buffer by its exact name.\n */\npublic suspend fun Buffers.delete(name: String): Unit = runInterruptible(server.policy.commands) { java.delete(name) }\n\n/**\n * Captures every buffer the server holds, in tmux's order.\n */\npublic suspend fun Buffers.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Reads a file into a named buffer.\n */\npublic suspend fun Buffers.load(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.load(name, file) }\n\n/**\n * Writes a buffer's contents to a file.\n */\npublic suspend fun Buffers.save(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.save(name, file) }\n\n/**\n * Puts text in a named buffer, replacing whatever was there.\n */\npublic suspend fun Buffers.`set`(name: String, contents: String): Unit = runInterruptible(server.policy.commands) { java.set(name, contents) }\n\n/**\n * What a buffer holds, without any line breaks it ends with.\n */\npublic suspend fun Buffers.show(name: String): String = runInterruptible(server.policy.commands) { java.show(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.ClientAttachment\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches this client, leaving whatever it was attached to running.\n */\npublic suspend fun Client.detach(): Unit = runInterruptible(server.policy.commands) { java.detach() }\n\n/**\n * Detaches every other client, leaving this one attached.\n */\npublic suspend fun Client.detachOthers(): Unit = runInterruptible(server.policy.commands) { java.detachOthers() }\n\n/**\n * Takes a new capture and returns what this client is looking at now.\n */\npublic suspend fun Client.fetchAttachment(): ClientAttachment? = runInterruptible(server.policy.commands) { java.fetchAttachment().orElse(null) }\n\n/**\n * Asks tmux to redraw this client.\n */\npublic suspend fun Client.redraw(): Unit = runInterruptible(server.policy.commands) { java.redraw() }\n\n/**\n * Takes a new capture and returns this client as it is now.\n */\npublic suspend fun Client.refresh(): Client = runInterruptible(server.policy.commands) { Client(java.refresh(), this.server) }\n\n/**\n * Moves this client to another session.\n */\npublic suspend fun Client.switchTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.switchTo(session.java) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.String\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Arranges the current window.\n */\npublic suspend fun CommandChain.arrange(layout: String): CommandChain = runInterruptible(server.policy.commands) { CommandChain(java.arrange(layout), this.server) }\n\n/**\n * Runs the whole chain in one tmux invocation, attributing each step.\n */\npublic suspend fun CommandChain.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every command, as tmux prints it.\n */\npublic suspend fun Commands.list(): List = runInterruptible(server.policy.commands) { java.list() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.control.ControlReply\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(vararg argv: String): ControlReply = runInterruptible(server.policy.commands) { java.send(*argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List): ControlReply = runInterruptible(server.policy.commands) { java.send(argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply = runInterruptible(server.policy.commands) { java.send(argv, timeout.toJavaDuration()) }\n\n/**\n * Stops a watch.\n */\npublic suspend fun ControlClient.unwatch(name: String): ControlReply = runInterruptible(server.policy.commands) { java.unwatch(name) }\n\n/**\n * Asks tmux to report a format whenever its value changes.\n */\npublic suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply = runInterruptible(server.policy.commands) { java.watch(name, target, format) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.collections.Set\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every name set at this scope, in tmux's order.\n */\npublic suspend fun Environment.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * What a process started from this scope is actually handed, both scopes taken together.\n */\npublic suspend fun Environment.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * The value set for this name, or empty when it is removed or absent.\n */\npublic suspend fun Environment.`get`(name: String): String? = runInterruptible(server.policy.commands) { java.get(name).orElse(null) }\n\n/**\n * Whether new processes are told not to inherit this name.\n */\npublic suspend fun Environment.isRemoved(name: String): Boolean = runInterruptible(server.policy.commands) { java.isRemoved(name) }\n\n/**\n * Tells processes started after this not to inherit the name.\n */\npublic suspend fun Environment.remove(name: String): Unit = runInterruptible(server.policy.commands) { java.remove(name) }\n\n/**\n * Every name this scope tells a new process not to inherit.\n */\npublic suspend fun Environment.removed(): Set = runInterruptible(server.policy.commands) { java.removed() }\n\n/**\n * Sets a name to a literal value.\n */\npublic suspend fun Environment.`set`(name: String, `value`: String): Unit = runInterruptible(server.policy.commands) { java.set(name, value) }\n\n/**\n * Sets a name to what a tmux format expands to now.\n */\npublic suspend fun Environment.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Removes the name from this scope, so it is neither set nor marked.\n */\npublic suspend fun Environment.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.\n */\npublic suspend fun Hooks.all(): Map> = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * As [.append(String, String)], with the command as words.\n */\npublic suspend fun Hooks.append(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Binds another command to an event, after whatever is already bound to it.\n */\npublic suspend fun Hooks.append(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Runs what is bound to an event now, without waiting for the event.\n */\npublic suspend fun Hooks.run(event: String): Unit = runInterruptible(server.policy.commands) { java.run(event) }\n\n/**\n * Binds a tmux command to an event at this scope, replacing anything already bound to it.\n */\npublic suspend fun Hooks.`set`(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * As [.set(String, String)], with the command as words rather than a line tmux parses.\n */\npublic suspend fun Hooks.`set`(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * Removes everything bound to an event at this scope.\n */\npublic suspend fun Hooks.unset(event: String): Unit = runInterruptible(server.policy.commands) { java.unset(event) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Binds a key to a tmux command, given as its words.\n */\npublic suspend fun Keys.bind(key: String, command: List): Unit = runInterruptible(server.policy.commands) { java.bind(key, command) }\n\n/**\n * The bindings as tmux lists them, one per line.\n */\npublic suspend fun Keys.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Removes a key's binding.\n */\npublic suspend fun Keys.unbind(key: String): Unit = runInterruptible(server.policy.commands) { java.unbind(key) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * The log lines.\n */\npublic suspend fun MessageLog.lines(): List = runInterruptible(server.policy.commands) { java.lines() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every option set at this scope, in tmux's order.\n */\npublic suspend fun Options.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * Adds to the end of a string option, rather than replacing it.\n */\npublic suspend fun Options.append(name: String, suffix: String): Unit = runInterruptible(server.policy.commands) { java.append(name, suffix) }\n\n/**\n * Every option tmux lists at this scope, including inherited built-in values.\n */\npublic suspend fun Options.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * Sets one option to what a tmux format comes to, rather than to the format itself.\n */\npublic suspend fun Options.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Sets one option only if this scope does not already set it.\n */\npublic suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean = runInterruptible(server.policy.commands) { java.setIfAbsent(name, value) }\n\n/**\n * Removes one option at this scope, so it falls back to whatever it inherits.\n */\npublic suspend fun Options.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.CaptureSpec\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Direction\nimport io.github.libtmux.PaneMode\nimport io.github.libtmux.SplitSpec\nimport java.lang.Runnable\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Moves this pane into a window of its own, leaving tmux to name it.\n */\npublic suspend fun Pane.breakOut(): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(), this.server) }\n\n/**\n * Moves this pane into a window of its own with the given name.\n */\npublic suspend fun Pane.breakOut(windowName: String): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(windowName), this.server) }\n\n/**\n * This pane's visible content, one element per line.\n */\npublic suspend fun Pane.capture(): List = runInterruptible(server.policy.commands) { java.capture() }\n\n/**\n * Reads part of this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.capture(spec: CaptureSpec): List = runInterruptible(server.policy.commands) { java.capture(spec) }\n\n/**\n * Discards this pane's scrollback.\n */\npublic suspend fun Pane.clearHistory(): Unit = runInterruptible(server.policy.commands) { java.clearHistory() }\n\n/**\n * Puts this pane into copy mode, where its scrollback can be navigated.\n */\npublic suspend fun Pane.copyMode(): Unit = runInterruptible(server.policy.commands) { java.copyMode() }\n\n/**\n * Whether this pane's process has exited, read fresh rather than from the capture.\n */\npublic suspend fun Pane.dead(): Boolean = runInterruptible(server.policy.commands) { java.dead() }\n\n/**\n * Leaves whichever mode this pane is in.\n */\npublic suspend fun Pane.exitMode(): Unit = runInterruptible(server.policy.commands) { java.exitMode() }\n\n/**\n * Expands a tmux format in this pane's context, and answers with what it came to.\n */\npublic suspend fun Pane.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Moves this pane into another window, splitting it.\n */\npublic suspend fun Pane.joinTo(window: Window): Unit = runInterruptible(server.policy.commands) { java.joinTo(window.java) }\n\n/**\n * Closes this pane.\n */\npublic suspend fun Pane.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Which mode this pane is in at this moment, or empty when it is in none.\n */\npublic suspend fun Pane.mode(): PaneMode? = runInterruptible(server.policy.commands) { java.mode().orElse(null) }\n\n/**\n * Notes text that reached this pane without going through this handle, so a wait discounts its\n * echo the way it discounts text sent through [.sendLiteral].\n */\npublic suspend fun Pane.noteTyped(text: String): Unit = runInterruptible(server.policy.commands) { java.noteTyped(text) }\n\n/**\n * Pastes text into this pane as one block, leaving nothing behind on the server.\n */\npublic suspend fun Pane.paste(text: String): Unit = runInterruptible(server.policy.commands) { java.paste(text) }\n\n/**\n * As [.paste(String)], after a caller rechecks state once its private buffer is ready.\n */\npublic suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit = runInterruptible(server.policy.commands) { java.paste(text, beforePaste) }\n\n/**\n * Pastes a named buffer into this pane, as though it had been typed.\n */\npublic suspend fun Pane.pasteBuffer(name: String): Unit = runInterruptible(server.policy.commands) { java.pasteBuffer(name) }\n\n/**\n * Sends everything this pane prints to a shell command, until [.stopPiping].\n */\npublic suspend fun Pane.pipeTo(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.pipeTo(shellCommand) }\n\n/**\n * Takes a new capture and returns this pane as it is now.\n */\npublic suspend fun Pane.refresh(): Pane = runInterruptible(server.policy.commands) { Pane(java.refresh(), this.server) }\n\n/**\n * Grows this pane by a number of cells in one direction.\n */\npublic suspend fun Pane.resize(direction: Direction, cells: Int): Unit = runInterruptible(server.policy.commands) { java.resize(direction, cells) }\n\n/**\n * Resizes this pane.\n */\npublic suspend fun Pane.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills whatever runs here and starts the pane's default command again.\n */\npublic suspend fun Pane.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Kills whatever runs here and starts the given command instead.\n */\npublic suspend fun Pane.respawn(vararg command: String): Unit = runInterruptible(server.policy.commands) { java.respawn(*command) }\n\n/**\n * Restarts the configured pane process in a caller-supplied literal directory, resolved against\n * this process's working directory when relative.\n */\npublic suspend fun Pane.respawnIn(directory: Path): Unit = runInterruptible(server.policy.commands) { java.respawnIn(directory) }\n\n/**\n * Retitles this pane and returns its replacement capture.\n */\npublic suspend fun Pane.retitle(title: String): Pane = runInterruptible(server.policy.commands) { Pane(java.retitle(title), this.server) }\n\n/**\n * Makes this the active pane of its window.\n */\npublic suspend fun Pane.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Sends keys to this pane without pressing Enter.\n */\npublic suspend fun Pane.send(keys: String): Unit = runInterruptible(server.policy.commands) { java.send(keys) }\n\n/**\n * Sends an ordered group of key names to this pane, as tmux resolves them.\n */\npublic suspend fun Pane.sendKeys(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys) }\n\n/**\n * As [.sendKeys(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys, beforeSend) }\n\n/**\n * Sends a line to this pane and presses Enter, which is how a command gets run.\n */\npublic suspend fun Pane.sendLine(command: String): Unit = runInterruptible(server.policy.commands) { java.sendLine(command) }\n\n/**\n * Sends an ordered group of strings to this pane as the characters they spell.\n */\npublic suspend fun Pane.sendLiteral(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys) }\n\n/**\n * As [.sendLiteral(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys, beforeSend) }\n\n/**\n * Splits this pane in half, putting the new one below it.\n */\npublic suspend fun Pane.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops sending this pane's output anywhere.\n */\npublic suspend fun Pane.stopPiping(): Unit = runInterruptible(server.policy.commands) { java.stopPiping() }\n\n/**\n * Swaps this pane's position with another's.\n */\npublic suspend fun Pane.swapWith(other: Pane): Unit = runInterruptible(server.policy.commands) { java.swapWith(other.java) }\n\n/**\n * Reads validated tmux variables in this pane's format context.\n */\npublic suspend fun Pane.variables(names: List): Map = runInterruptible(server.policy.commands) { java.variables(names) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Forgets what has been typed at the prompt.\n */\npublic suspend fun Prompt.clear(): Unit = runInterruptible(server.policy.commands) { java.clear() }\n\n/**\n * What has been typed at the prompt, oldest first.\n */\npublic suspend fun Prompt.history(): List = runInterruptible(server.policy.commands) { java.history() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.PaneId\nimport io.github.libtmux.SessionId\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TmuxVersion\nimport io.github.libtmux.WindowId\nimport io.github.libtmux.query.FilterExpr\nimport io.github.libtmux.snapshot.ServerSnapshot\nimport io.github.libtmux.snapshot.WindowContext\nimport io.github.libtmux.transport.CommandResult\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Captures every session a client is attached to.\n */\npublic suspend fun Server.attachedSessions(): List = runInterruptible(policy.commands) { java.attachedSessions().map { Session(it, this) } }\n\n/**\n * Captures every attached client.\n */\npublic suspend fun Server.clients(): List = runInterruptible(policy.commands) { java.clients().map { Client(it, this) } }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(vararg argv: String): CommandResult = runInterruptible(policy.commands) { java.cmd(*argv) }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(argv: List): CommandResult = runInterruptible(policy.commands) { java.cmd(argv) }\n\n/**\n * Runs one tmux command against this server, overriding the configured deadline.\n */\npublic suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult = runInterruptible(policy.commands) { java.cmd(argv, timeout.toJavaDuration()) }\n\n/**\n * Expands a tmux format against the server, and answers with what it came to.\n */\npublic suspend fun Server.expand(format: String): String = runInterruptible(policy.commands) { java.expand(format) }\n\n/**\n * Whether a session with this name exists.\n */\npublic suspend fun Server.hasSession(name: String): Boolean = runInterruptible(policy.commands) { java.hasSession(name) }\n\n/**\n * Whether the server is running and answering.\n */\npublic suspend fun Server.isAlive(): Boolean = runInterruptible(policy.commands) { java.isAlive() }\n\n/**\n * Whether the server is running and answering, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.isAlive(timeout: Duration): Boolean = runInterruptible(policy.commands) { java.isAlive(timeout.toJavaDuration()) }\n\n/**\n * Ends the tmux server and every session on it.\n */\npublic suspend fun Server.killServer(): Unit = runInterruptible(policy.commands) { java.killServer() }\n\n/**\n * Ends the tmux server and every session on it, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.killServer(timeout: Duration): Unit = runInterruptible(policy.commands) { java.killServer(timeout.toJavaDuration()) }\n\n/**\n * Ends the session with this name, and everything in it.\n */\npublic suspend fun Server.killSession(name: String): Unit = runInterruptible(policy.commands) { java.killSession(name) }\n\n/**\n * Locks every client attached to this server.\n */\npublic suspend fun Server.lock(): Unit = runInterruptible(policy.commands) { java.lock() }\n\n/**\n * Creates a detached session and returns that exact session.\n */\npublic suspend fun Server.newSession(name: String): Session = runInterruptible(policy.commands) { Session(java.newSession(name), this) }\n\n/**\n * Creates a session according to a spec, which may be reused across servers.\n */\npublic suspend fun Server.newSession(spec: SessionSpec): Session = runInterruptible(policy.commands) { Session(java.newSession(spec), this) }\n\n/**\n * The pane with this id, captured now.\n */\npublic suspend fun Server.pane(id: PaneId): Pane? = runInterruptible(policy.commands) { java.pane(id).map { Pane(it, this) }.orElse(null) }\n\n/**\n * Chosen fields for every pane on the server, from one listing.\n */\npublic suspend fun Server.paneFields(names: List): Map> = runInterruptible(policy.commands) { java.paneFields(names) }\n\n/**\n * Captures every pane on the server.\n */\npublic suspend fun Server.panes(): List = runInterruptible(policy.commands) { java.panes().map { Pane(it, this) } }\n\n/**\n * The panes this expression matches, captured now.\n */\npublic suspend fun Server.panes(expression: FilterExpr): List = runInterruptible(policy.commands) { java.panes(expression).map { Pane(it, this) } }\n\n/**\n * Requires a running tmux daemon that answers the liveness probe.\n */\npublic suspend fun Server.requireAlive(): Unit = runInterruptible(policy.commands) { java.requireAlive() }\n\n/**\n * Runs a command that is expected to work, and raises when it did not.\n */\npublic suspend fun Server.run(argv: List): CommandResult = runInterruptible(policy.commands) { java.run(argv) }\n\n/**\n * The session with this name, captured now.\n */\npublic suspend fun Server.session(name: String): Session? = runInterruptible(policy.commands) { java.session(name).map { Session(it, this) }.orElse(null) }\n\n/**\n * The session with this id, captured now.\n */\npublic suspend fun Server.session(id: SessionId): Session? = runInterruptible(policy.commands) { java.session(id).map { Session(it, this) }.orElse(null) }\n\n/**\n * Every session, captured now.\n */\npublic suspend fun Server.sessions(): List = runInterruptible(policy.commands) { java.sessions().map { Session(it, this) } }\n\n/**\n * The sessions this expression matches, captured now.\n */\npublic suspend fun Server.sessions(expression: FilterExpr): List = runInterruptible(policy.commands) { java.sessions(expression).map { Session(it, this) } }\n\n/**\n * Captures the whole hierarchy in at most four listings, retrying once if the server is\n * replaced.\n */\npublic suspend fun Server.snapshot(): ServerSnapshot = runInterruptible(policy.commands) { java.snapshot() }\n\n/**\n * Runs a file of tmux commands, as a configuration file would be run.\n */\npublic suspend fun Server.sourceFile(`file`: Path): Unit = runInterruptible(policy.commands) { java.sourceFile(file) }\n\n/**\n * Reads only validated tmux variable names, never caller-authored format syntax.\n */\npublic suspend fun Server.variables(names: List): Map = runInterruptible(policy.commands) { java.variables(names) }\n\n/**\n * Which tmux this server is running.\n */\npublic suspend fun Server.version(): TmuxVersion = runInterruptible(policy.commands) { java.version() }\n\n/**\n * The winlink at this exact position, captured now.\n */\npublic suspend fun Server.window(context: WindowContext): Window? = runInterruptible(policy.commands) { java.window(context).map { Window(it, this) }.orElse(null) }\n\n/**\n * Captures every winlink, preserving each session and index placement.\n */\npublic suspend fun Server.windows(): List = runInterruptible(policy.commands) { java.windows().map { Window(it, this) } }\n\n/**\n * The winlinks this expression matches, captured now.\n */\npublic suspend fun Server.windows(expression: FilterExpr): List = runInterruptible(policy.commands) { java.windows(expression).map { Window(it, this) } }\n\n/**\n * Every winlink of the window with this id, captured now.\n */\npublic suspend fun Server.windows(id: WindowId): List = runInterruptible(policy.commands) { java.windows(id).map { Window(it, this) } }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.WindowSpec\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches every client attached to this session, leaving the session running.\n */\npublic suspend fun Session.detachClients(): Unit = runInterruptible(server.policy.commands) { java.detachClients() }\n\n/**\n * Expands a tmux format in this session's context, and answers with what it came to.\n */\npublic suspend fun Session.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Ends this session.\n */\npublic suspend fun Session.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Returns to the window that was active before this one.\n */\npublic suspend fun Session.lastWindow(): Unit = runInterruptible(server.policy.commands) { java.lastWindow() }\n\n/**\n * Creates a window in this session and returns that exact window.\n */\npublic suspend fun Session.newWindow(name: String): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(name), this.server) }\n\n/**\n * Creates a window in this session according to a spec, which may be reused across sessions.\n */\npublic suspend fun Session.newWindow(spec: WindowSpec): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(spec), this.server) }\n\n/**\n * Moves to the next window in this session, wrapping at the end.\n */\npublic suspend fun Session.nextWindow(): Unit = runInterruptible(server.policy.commands) { java.nextWindow() }\n\n/**\n * Moves to the previous window in this session, wrapping at the start.\n */\npublic suspend fun Session.previousWindow(): Unit = runInterruptible(server.policy.commands) { java.previousWindow() }\n\n/**\n * Takes a new capture and returns this session as it is now.\n */\npublic suspend fun Session.refresh(): Session = runInterruptible(server.policy.commands) { Session(java.refresh(), this.server) }\n\n/**\n * Renames this session and returns its replacement capture.\n */\npublic suspend fun Session.rename(name: String): Session = runInterruptible(server.policy.commands) { Session(java.rename(name), this.server) }\n\n/**\n * Makes a window of this session the active one.\n */\npublic suspend fun Session.selectWindow(window: Window): Unit = runInterruptible(server.policy.commands) { java.selectWindow(window.java) }\n\n/**\n * Sets the scrollback retained by panes created in this session.\n */\npublic suspend fun Session.setHistoryLimit(lines: Int): Unit = runInterruptible(server.policy.commands) { java.setHistoryLimit(lines) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs a shell command and answers with what it printed.\n */\npublic suspend fun Shell.capturing(command: String): List = runInterruptible(server.policy.commands) { java.capturing(command) }\n\n/**\n * Runs one tmux command when a shell command succeeds.\n */\npublic suspend fun Shell.choose(condition: String, whenTrue: String): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue) }\n\n/**\n * Runs one tmux command or another, according to whether a shell command succeeds.\n */\npublic suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue, whenFalse) }\n\n/**\n * Runs a shell command for its effect.\n */\npublic suspend fun Shell.run(command: String): Unit = runInterruptible(server.policy.commands) { java.run(command) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Layout\nimport io.github.libtmux.SplitSpec\nimport io.github.libtmux.WindowLayout\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Restores an exact arrangement previously read from [.layout()].\n */\npublic suspend fun Window.applyLayout(layout: WindowLayout): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * As [.applyLayout(WindowLayout)], for a layout held as text — one saved to a file, say.\n */\npublic suspend fun Window.applyLayout(layout: String): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * Shows a popup over this window, running a command in it.\n */\npublic suspend fun Window.displayPopup(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.displayPopup(shellCommand) }\n\n/**\n * Expands a tmux format in this window's context, and answers with what it came to.\n */\npublic suspend fun Window.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Closes this window.\n */\npublic suspend fun Window.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Links this window into another session, so one window sits in both.\n */\npublic suspend fun Window.linkTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.linkTo(session.java) }\n\n/**\n * Moves this window into another session.\n */\npublic suspend fun Window.moveTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java) }\n\n/**\n * Moves this window to an exact index in another session.\n */\npublic suspend fun Window.moveTo(session: Session, index: Int): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java, index) }\n\n/**\n * Moves to the next built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.nextLayout(): Unit = runInterruptible(server.policy.commands) { java.nextLayout() }\n\n/**\n * Moves to the previous built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.previousLayout(): Unit = runInterruptible(server.policy.commands) { java.previousLayout() }\n\n/**\n * Takes a new capture and returns this winlink as it is now.\n */\npublic suspend fun Window.refresh(): Window = runInterruptible(server.policy.commands) { Window(java.refresh(), this.server) }\n\n/**\n * Renames this window and returns its replacement capture.\n */\npublic suspend fun Window.rename(name: String): Window = runInterruptible(server.policy.commands) { Window(java.rename(name), this.server) }\n\n/**\n * Resizes this window in terminal cells.\n */\npublic suspend fun Window.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills what is running in this window and starts it again.\n */\npublic suspend fun Window.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Rotates the panes within this window.\n */\npublic suspend fun Window.rotate(): Unit = runInterruptible(server.policy.commands) { java.rotate() }\n\n/**\n * Makes this the active window of its session.\n */\npublic suspend fun Window.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Rearranges this window's panes into one of tmux's built-in layouts.\n */\npublic suspend fun Window.selectLayout(layout: Layout): Unit = runInterruptible(server.policy.commands) { java.selectLayout(layout) }\n\n/**\n * Splits this window's active pane in half, putting the new one below it.\n */\npublic suspend fun Window.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this window's active pane according to a spec, which may be reused across windows.\n */\npublic suspend fun Window.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops copying input between this window's panes.\n */\npublic suspend fun Window.stopSynchronizingPanes(): Unit = runInterruptible(server.policy.commands) { java.stopSynchronizingPanes() }\n\n/**\n * Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes].\n */\npublic suspend fun Window.synchronizePanes(): Unit = runInterruptible(server.policy.commands) { java.synchronizePanes() }\n\n/**\n * Removes this link, leaving the window wherever else it is linked.\n */\npublic suspend fun Window.unlink(): Unit = runInterruptible(server.policy.commands) { java.unlink() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Client_\nimport io.github.libtmux.Session\nimport io.github.libtmux.Client as LibtmuxClient\nimport io.github.libtmux.kotlin.Client as KotlinClient\n\n/**\n * The client's terminal name, which is how tmux addresses it.\n */\npublic val KotlinClient.Companion.name: TextField\n get() = TextField(Client_.name())\n\n/**\n * The session this client was attached to, if any.\n */\npublic val KotlinClient.Companion.session: ToOneField\n get() = ToOneField(Client_.session())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane_\nimport io.github.libtmux.Pane as LibtmuxPane\nimport io.github.libtmux.kotlin.Pane as KotlinPane\n\n/**\n * The pane id.\n */\npublic val KotlinPane.Companion.id: TextField\n get() = TextField(Pane_.id())\n\n/**\n * The command tmux reported running in the pane.\n */\npublic val KotlinPane.Companion.command: TextField\n get() = TextField(Pane_.command())\n\n/**\n * The pane's position in its window.\n */\npublic val KotlinPane.Companion.index: NumberField\n get() = NumberField(Pane_.index())\n\n/**\n * Whether this was its window's active pane.\n */\npublic val KotlinPane.Companion.active: FlagField\n get() = FlagField(Pane_.active())\n\n/**\n * The pane's title, which a program running in it can set.\n */\npublic val KotlinPane.Companion.title: TextField\n get() = TextField(Pane_.title())\n\n/**\n * The pane's working directory, as the text tmux reported.\n */\npublic val KotlinPane.Companion.path: TextField\n get() = TextField(Pane_.path())\n\n/**\n * The pane's width, in cells.\n */\npublic val KotlinPane.Companion.width: NumberField\n get() = NumberField(Pane_.width())\n\n/**\n * The pane's height, in cells.\n */\npublic val KotlinPane.Companion.height: NumberField\n get() = NumberField(Pane_.height())\n\n/**\n * The column of the pane's left edge in its window.\n */\npublic val KotlinPane.Companion.left: NumberField\n get() = NumberField(Pane_.left())\n\n/**\n * The row of the pane's top edge in its window.\n */\npublic val KotlinPane.Companion.top: NumberField\n get() = NumberField(Pane_.top())\n\n/**\n * Whether the pane touches the top of its window.\n */\npublic val KotlinPane.Companion.atTop: FlagField\n get() = FlagField(Pane_.atTop())\n\n/**\n * Whether the pane touches the bottom of its window.\n */\npublic val KotlinPane.Companion.atBottom: FlagField\n get() = FlagField(Pane_.atBottom())\n\n/**\n * Whether the pane touches the left of its window.\n */\npublic val KotlinPane.Companion.atLeft: FlagField\n get() = FlagField(Pane_.atLeft())\n\n/**\n * Whether the pane touches the right of its window.\n */\npublic val KotlinPane.Companion.atRight: FlagField\n get() = FlagField(Pane_.atRight())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Session_\nimport io.github.libtmux.Window\nimport io.github.libtmux.Session as LibtmuxSession\nimport io.github.libtmux.kotlin.Session as KotlinSession\n\n/**\n * The session id, as text, so it can be compared and listed.\n */\npublic val KotlinSession.Companion.id: TextField\n get() = TextField(Session_.id())\n\n/**\n * The session name.\n */\npublic val KotlinSession.Companion.name: TextField\n get() = TextField(Session_.name())\n\n/**\n * Whether a client was attached when this was captured.\n */\npublic val KotlinSession.Companion.attached: FlagField\n get() = FlagField(Session_.attached())\n\n/**\n * How many windows this session holds.\n */\npublic val KotlinSession.Companion.windowCount: NumberField\n get() = NumberField(Session_.windowCount())\n\n/**\n * This session's windows.\n */\npublic val KotlinSession.Companion.windows: ToManyField\n get() = ToManyField(Session_.windows())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane\nimport io.github.libtmux.Session\nimport io.github.libtmux.Window_\nimport io.github.libtmux.Window as LibtmuxWindow\nimport io.github.libtmux.kotlin.Window as KotlinWindow\n\n/**\n * The underlying window id, shared by every link to it.\n */\npublic val KotlinWindow.Companion.id: TextField\n get() = TextField(Window_.id())\n\n/**\n * The window name.\n */\npublic val KotlinWindow.Companion.name: TextField\n get() = TextField(Window_.name())\n\n/**\n * Where this link sits in its session.\n */\npublic val KotlinWindow.Companion.index: NumberField\n get() = NumberField(Window_.index())\n\n/**\n * Whether this was its session's active window.\n */\npublic val KotlinWindow.Companion.active: FlagField\n get() = FlagField(Window_.active())\n\n/**\n * Whether the underlying window is linked into more than one session.\n */\npublic val KotlinWindow.Companion.linked: FlagField\n get() = FlagField(Window_.linked())\n\n/**\n * The window's width, in cells.\n */\npublic val KotlinWindow.Companion.width: NumberField\n get() = NumberField(Window_.width())\n\n/**\n * The window's height, in cells.\n */\npublic val KotlinWindow.Companion.height: NumberField\n get() = NumberField(Window_.height())\n\n/**\n * How many panes this link holds.\n */\npublic val KotlinWindow.Companion.paneCount: NumberField\n get() = NumberField(Window_.paneCount())\n\n/**\n * This link's panes.\n */\npublic val KotlinWindow.Companion.panes: ToManyField\n get() = ToManyField(Window_.panes())\n\n/**\n * The session this link belongs to.\n */\npublic val KotlinWindow.Companion.session: ToOneField\n get() = ToOneField(Window_.session())\n"},"repo":"libtmux/libtmux-java"} diff --git a/site/src/data/api/scala.json b/site/src/data/api/scala.json index c601ac842..127eea8fb 100644 --- a/site/src/data/api/scala.json +++ b/site/src/data/api/scala.json @@ -1 +1 @@ -{"port":"scala","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (scala syntax)","symbols":[{"id":"io.github.libtmux.scaladsl.cats.Batch","name":"Batch","kind":"class","signatures":[{"raw":"final class Batch[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"An immutable batch plan. Construction does no tmux I/O and never touches a shared Java object: each `add` returns a new value holding one more argument vector. Each `run`/`length` builds a fresh Java `Batch` from `create` and dispatches it through `Execution`, so it is F-suspended, cancellation-safe, and admission-bounded like every other Cats operation — cancelling one run never disturbs a concurrent one, since neither shares Java state."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch"},{"id":"io.github.libtmux.scaladsl.cats.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def add(argv: Seq[String]): Batch[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"Batch[F]"},{"raw":"def add(command: String, arguments: String*): Batch[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"Batch[F]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-add"},{"id":"io.github.libtmux.scaladsl.cats.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def size: Int","params":[],"returns":"Int"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-size"},{"id":"io.github.libtmux.scaladsl.cats.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def length: F[Int]","params":[],"returns":"F[Int]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-length"},{"id":"io.github.libtmux.scaladsl.cats.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-run"},{"id":"io.github.libtmux.scaladsl.cats.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Channel","name":"Channel","kind":"class","signatures":[{"raw":"final class Channel[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels. `signal` is a real dispatch (tmux's own `wait-for -S`), routed through `Execution#apply` like any other mutation; `await` reserves this server's shared-wait capacity the way every other handwritten `WAIT` operation does, since a Cats caller waiting and the caller releasing it usually share this same bounded transport."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel"},{"id":"io.github.libtmux.scaladsl.cats.Channel.signal","name":"signal","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def signal: F[Unit]","params":[],"returns":"F[Unit]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-signal"},{"id":"io.github.libtmux.scaladsl.cats.Channel.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def await(timeout: FiniteDuration): F[WakeReason]","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"F[WakeReason]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-await"},{"id":"io.github.libtmux.scaladsl.cats.Channel.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-tostring"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"final class CommandChain[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"An immutable plan using tmux's evolving current target. Construction does no tmux I/O; each `run` builds a fresh Java chain from `create` and dispatches it through `Execution`, F-suspended and cancellation-safe like every other Cats operation."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def newWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def renameWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-renamewindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitLeftRight(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splitleftright"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitTopBottom(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splittopbottom"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def sendLine(command: String): CommandChain[F]","params":[{"name":"command","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-sendline"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def arrange(layout: String): CommandChain[F]","params":[{"name":"layout","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Layout validation and its possible version query occur during run."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-arrange"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.`then`","name":"`then`","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def `then`(argv: Seq[String]): CommandChain[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"CommandChain[F]"},{"raw":"def `then`(command: String, arguments: String*): CommandChain[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-then"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-run"},{"id":"io.github.libtmux.scaladsl.cats.Control","name":"Control","kind":"class","signatures":[{"raw":"final class Control[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Control","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Owns an attached Java control client. Canceling an active request can end this attachment and its queued requests and observations. Use separate attachments for commands and observations that must survive that failure."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control"},{"id":"io.github.libtmux.scaladsl.cats.Control.acknowledge","name":"acknowledge","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def acknowledge(\n argv: Seq[String],\n timeout: Duration = Duration.ofSeconds(30)\n ): F[Control.Ack]","params":[{"name":"argv","type":"Seq[String]"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Reads one raw reply without claiming deferred command completion. Cancellation does not prove that tmux rolled back a dispatched command. The timeout starts after Scala admission; an effect timeout can bound the whole call."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-acknowledge"},{"id":"io.github.libtmux.scaladsl.cats.Control.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def isAlive: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether this attachment's process is still running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardError","name":"standardError","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardError: F[String]","params":[],"returns":"F[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Error text from this control process, at most 4096 bytes."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderror"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardErrorTruncated: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether `standardError` stopped before the process finished writing."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderrortruncated"},{"id":"io.github.libtmux.scaladsl.cats.Control.watch","name":"watch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def watch(name: String, target: String, format: String): F[Control.Ack]","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Asks tmux to report `format` when it changes. A target that does not name a pane or window watches the attached session."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-watch"},{"id":"io.github.libtmux.scaladsl.cats.Control.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def unwatch(name: String): F[Control.Ack]","params":[{"name":"name","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Removes a watch registered under `name`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-unwatch"},{"id":"io.github.libtmux.scaladsl.cats.Control.output","name":"output","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def output(capacity: Int): Resource[F, Observation[F, PaneOutput]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, PaneOutput]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers decoded text output before the returned resource body runs. Terminal bytes and character boundaries are not preserved by Java."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-output"},{"id":"io.github.libtmux.scaladsl.cats.Control.events","name":"events","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def events(capacity: Int): Resource[F, Observation[F, ControlEvent]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, ControlEvent]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers Java's typed notifications, including unknown event kinds."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-events"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack","name":"Ack","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"final class Ack","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Retains tmux's raw reply framing and line shape."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.unsafeJava","name":"unsafeJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def unsafeJava: ControlReply","params":[],"returns":"ControlReply"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-unsafejava"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.accepted","name":"accepted","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def accepted: Boolean","params":[],"returns":"Boolean"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"True for a %end reply. Deferred tmux work can still be running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-accepted"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.lines","name":"lines","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"val lines: Vector[String]","params":[],"returns":"Vector[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-lines"},{"id":"io.github.libtmux.scaladsl.cats.Control.attachUnfenced","name":"attachUnfenced","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attachUnfenced[F[_]: Async](\n config: ServerConfig,\n session: SessionId,\n timeout: Duration = Duration.ofSeconds(30),\n maxConcurrentCalls: Int = 4\n ): Resource[F, Control[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Attaches lazily to whatever server now answers this endpoint, without an incarnation guard; prefer attaching a captured session. Bounds simultaneous acknowledgement calls. Release stops their owned work before detaching the client and preserves the tmux daemon."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attachunfenced"},{"id":"io.github.libtmux.scaladsl.cats.Control.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attach[F[_]: Async](session: Session[F]): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: Session[F],\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: direct.Session,\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"direct.Session"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":["overload"],"doc":{"summary":"Attaches to the process the captured session named."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attach"},{"id":"io.github.libtmux.scaladsl.cats.Session","name":"Session","kind":"class","signatures":[{"raw":"final class Session[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux session whose operations run in the effect type `F`.","body":"Use [[server]] for the connection that owns this handle and [[asJava]] for\nJava interoperability. Captured properties stay unchanged until an explicit\nrefresh returns a new handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session"},{"id":"io.github.libtmux.scaladsl.cats.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Session","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-server"},{"id":"io.github.libtmux.scaladsl.cats.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-equals"},{"id":"io.github.libtmux.scaladsl.cats.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"def asJava: io.github.libtmux.Session","params":[],"returns":"io.github.libtmux.Session"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Window","name":"Window","kind":"class","signatures":[{"raw":"final class Window[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux window at a specific session position, with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window"},{"id":"io.github.libtmux.scaladsl.cats.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Window","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-server"},{"id":"io.github.libtmux.scaladsl.cats.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-equals"},{"id":"io.github.libtmux.scaladsl.cats.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"def asJava: io.github.libtmux.Window","params":[],"returns":"io.github.libtmux.Window"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Pane","name":"Pane","kind":"class","signatures":[{"raw":"final class Pane[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Pane","params":[]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux pane with input, output, and layout operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane"},{"id":"io.github.libtmux.scaladsl.cats.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Pane","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-server"},{"id":"io.github.libtmux.scaladsl.cats.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-equals"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"def asJava: io.github.libtmux.Pane","params":[],"returns":"io.github.libtmux.Pane"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Client","name":"Client","kind":"class","signatures":[{"raw":"final class Client[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An attached tmux client with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client"},{"id":"io.github.libtmux.scaladsl.cats.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Client","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-server"},{"id":"io.github.libtmux.scaladsl.cats.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-equals"},{"id":"io.github.libtmux.scaladsl.cats.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"def asJava: io.github.libtmux.Client","params":[],"returns":"io.github.libtmux.Client"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":182,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Instances","name":"Instances","kind":"module","signatures":[{"raw":"object Instances","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"Instances derived from Java's `equals`/`hashCode`/`toString`, and from `TmuxVersion`'s own `Comparable` — the one handle-adjacent type that actually has a natural order. None of `Server`, `Session`, `Window`, `Pane` or `Client` implements `Comparable` in Java, and none has a domain-meaningful order (a pane's tmux index is not identity, and two panes can share an index across different windows), so those get `Eq`/`Show`/`Hash` only — never a manufactured `Order` that invites `.sorted`/`SortedSet` producing an ordering nobody asked for."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.serverInstances","name":"serverInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given serverInstances\n : (Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])","params":[],"returns":"(Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-serverinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directSessionInstances","name":"directSessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directSessionInstances\n : (Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])","params":[],"returns":"(Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directsessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directWindowInstances","name":"directWindowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directWindowInstances\n : (Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])","params":[],"returns":"(Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directwindowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directPaneInstances","name":"directPaneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directPaneInstances\n : (Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])","params":[],"returns":"(Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directpaneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directClientInstances","name":"directClientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directClientInstances\n : (Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])","params":[],"returns":"(Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directclientinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneIdInstances","name":"paneIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneIdInstances: (Eq[PaneId] & Hash[PaneId] & Show[PaneId])","params":[],"returns":"(Eq[PaneId] & Hash[PaneId] & Show[PaneId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionIdInstances","name":"sessionIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionIdInstances\n : (Eq[SessionId] & Hash[SessionId] & Show[SessionId])","params":[],"returns":"(Eq[SessionId] & Hash[SessionId] & Show[SessionId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessionidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowIdInstances","name":"windowIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowIdInstances: (Eq[WindowId] & Hash[WindowId] & Show[WindowId])","params":[],"returns":"(Eq[WindowId] & Hash[WindowId] & Show[WindowId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.tmuxVersionInstances","name":"tmuxVersionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given tmuxVersionInstances: (Order[TmuxVersion] & Show[TmuxVersion])","params":[],"returns":"(Order[TmuxVersion] & Show[TmuxVersion])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"`TmuxVersion` already defines a natural order in Java (`implements Comparable`); this is a direct projection of it, not a manufactured one."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-tmuxversioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionInstances","name":"sessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionInstances[F[_]]\n : (Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","params":[],"returns":"(Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowInstances","name":"windowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowInstances[F[_]]\n : (Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","params":[],"returns":"(Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneInstances","name":"paneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneInstances[F[_]]: (Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","params":[],"returns":"(Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.clientInstances","name":"clientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given clientInstances[F[_]]\n : (Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","params":[],"returns":"(Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-clientinstances"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer","name":"LiveServer","kind":"class","signatures":[{"raw":"final class LiveServer[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object LiveServer","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Observe a tmux server through a continuously updated [[signal]].","body":"[[LiveServer.attach]] returns a `Resource` that closes the Java\n[[io.github.libtmux.snapshot.ServerMirror ServerMirror]] when released. Read\n[[failure]] to distinguish a quiet server from a stopped poller."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.signal","name":"signal","kind":"property","parent":"io.github.libtmux.scaladsl.cats.LiveServer","imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"signatures":[{"raw":"val signal: Signal[F, JavaServerMirror.View]","params":[],"returns":"Signal[F, JavaServerMirror.View]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-signal"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.failure","name":"failure","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def failure(implicit F: _root_.cats.Functor[F]): F[Option[Throwable]]","params":[{"name":"F","type":"_root_.cats.Functor[F]"}],"returns":"F[Option[Throwable]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"`None` while still live; `Some(cause)` once the background poller has died. Never blocks."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-failure"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def attach[F[_]](\n anchor: Session[F]\n )(implicit F: Async[F]): Resource[F, LiveServer[F]]","params":[{"name":"anchor","type":"Session[F]"},{"name":"F","type":"Async[F]"}],"returns":"Resource[F, LiveServer[F]]","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement. The session is a required parameter: there is no arbitrary pick left to make, and a session that later disappears is `ServerMirror`'s own reconnect-or-`TargetGoneException` policy, surfaced through [[LiveServer#failure]] like any other cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-attach"},{"id":"io.github.libtmux.scaladsl.cats.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[F[_], A]","params":[],"typeParams":["F","A"],"typeParameters":[{"name":"F"},{"name":"A"}]},{"raw":"object Observation","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Pulls a bounded Java subscription with one active stream consumer. A full buffer yields a `Delivery.Gap` in this stream before the events that remain. FS2 demand does not provide tmux backpressure. A subscription does not reconnect: attach again and read a snapshot.","body":"The stream itself suspends the *fiber*, not a platform thread, while idle:\n[[io.github.libtmux.control.EventSubscription EventSubscription]] is already\nsingle-consumer by construction at the Java layer, with a non-blocking\n[[io.github.libtmux.control.EventSubscription#poll poll]] plus a one-shot\n[[io.github.libtmux.control.EventSubscription#onReady onReady]] wakeup. Each\nwait polls first — if something is already buffered, nothing suspends at all\n— and only then arms `onReady`, disarming it with\n[[io.github.libtmux.control.EventSubscription#clearReady clearReady]] if the\nfiber is cancelled first. No `ExecutionContext` sized for blocking stream\nreads is needed, because no read here ever blocks a thread."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation"},{"id":"io.github.libtmux.scaladsl.cats.Observation.stream","name":"stream","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def stream: Stream[F, Delivery[A]]","params":[],"returns":"Stream[F, Delivery[A]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reads on `F`'s own fiber scheduler. Cancelling the stream releases its consumer slot and disarms any pending wakeup; releasing the observation discards its buffered events. Deliberate closure ends the stream. A client that ended the subscription fails it with that cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-stream"},{"id":"io.github.libtmux.scaladsl.cats.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def droppedCount: F[Long]","params":[],"returns":"F[Long]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A `Delivery.Gap` in [[stream]] says where it sits."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.cats.Observation.isClosed","name":"isClosed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def isClosed: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reports subscription closure, including after resource finalization."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-isclosed"},{"id":"io.github.libtmux.scaladsl.cats.Observation.value","name":"value","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def value[A](delivery: Delivery[A]): Option[A]","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"Option[A]","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The value inside an event delivery, and none for a gap."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-value"},{"id":"io.github.libtmux.scaladsl.cats.Observation.kept","name":"kept","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def kept[A](delivery: Delivery[A]): A","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-kept"},{"id":"io.github.libtmux.scaladsl.cats.Observation.UnknownCause","name":"UnknownCause","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"final class UnknownCause \n extends IllegalStateException(\n \"control observation ended without a deliberate Scala close; Java exposes no cause\"\n )","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Java ended the subscription without exposing the reason."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-unknowncause"},{"id":"io.github.libtmux.scaladsl.cats.Server","name":"Server","kind":"class","signatures":[{"raw":"final class Server[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Server","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"A tmux server whose operations run in the effect type `F`.","body":"Acquire it with [[Server.resource]], or borrow a Java client with\n[[Server.fromJava]]. Releasing the `Resource` cancels this scope's\noperations and closes an owned client. Cancellation does not roll back\ncommands already sent to tmux, and closing the client does not stop the tmux\nserver.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server"},{"id":"io.github.libtmux.scaladsl.cats.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Server.resource","name":"resource","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def resource[F[_]: Async](\n config: ServerConfig,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Owns a Java client, with one to four simultaneous facade calls. Release cancels queued and running operations before closing the client.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-resource"},{"id":"io.github.libtmux.scaladsl.cats.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def fromJava[F[_]: Async](\n java: JavaServer,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"java","type":"JavaServer"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows Java without closing it. The bound covers this facade only; transport capacity and interruption remain the owner's responsibility.","body":"`direct.Server` is opaque, so a borrowed handle and an owned one are the\nsame runtime object. Release here tears down only this scope's own\n`Execution` (its semaphores and supervised fibers); it never calls\n`close()` on the borrowed handle, which is `resource`'s job alone."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-fromjava"},{"id":"io.github.libtmux.scaladsl.cats.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"final class Hooks[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update tmux hooks through the owning [[server]].","body":"Operations run in the effect type `F`. Use [[asJava]] to access the Java\nhook API directly."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Hooks","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-server"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-equals"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"def asJava: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Options","name":"Options","kind":"class","signatures":[{"raw":"final class Options[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Options","params":[]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update options on the server, session, window, or pane that owns this handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options"},{"id":"io.github.libtmux.scaladsl.cats.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Options","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-server"},{"id":"io.github.libtmux.scaladsl.cats.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-equals"},{"id":"io.github.libtmux.scaladsl.cats.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Options.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"def asJava: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Shell","name":"Shell","kind":"class","signatures":[{"raw":"final class Shell[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Run shell commands through tmux in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell"},{"id":"io.github.libtmux.scaladsl.cats.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Shell","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-server"},{"id":"io.github.libtmux.scaladsl.cats.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-equals"},{"id":"io.github.libtmux.scaladsl.cats.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Shell.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"def asJava: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Commands","name":"Commands","kind":"class","signatures":[{"raw":"final class Commands[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Inspect the commands supported by the selected tmux executable."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands"},{"id":"io.github.libtmux.scaladsl.cats.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Commands","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-server"},{"id":"io.github.libtmux.scaladsl.cats.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-equals"},{"id":"io.github.libtmux.scaladsl.cats.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Commands.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"def asJava: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"final class Buffers[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read, create, and remove the server's paste buffers."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Buffers","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-server"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-equals"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"def asJava: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Environment","name":"Environment","kind":"class","signatures":[{"raw":"final class Environment[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update environment variables for processes started by tmux."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment"},{"id":"io.github.libtmux.scaladsl.cats.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Environment","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-server"},{"id":"io.github.libtmux.scaladsl.cats.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-equals"},{"id":"io.github.libtmux.scaladsl.cats.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Environment.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"def asJava: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-asjava"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"final class MessageLog[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read messages recorded by the tmux server."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.MessageLog","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-server"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-equals"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-tostring"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"def asJava: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"final class Prompt[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and clear the server's command-prompt history."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Prompt","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-server"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-equals"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":172,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"def asJava: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Keys","name":"Keys","kind":"class","signatures":[{"raw":"final class Keys[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update bindings in tmux key tables."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys"},{"id":"io.github.libtmux.scaladsl.cats.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Keys","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-server"},{"id":"io.github.libtmux.scaladsl.cats.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-equals"},{"id":"io.github.libtmux.scaladsl.cats.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Keys.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"def asJava: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-asjava"},{"id":"io.github.libtmux.scaladsl.ox.Flows","name":"Flows","kind":"module","signatures":[{"raw":"object Flows","params":[]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"An Ox `Flow` over a subscription or a live view, for a supervised scope. Ox adds no new handle type (`io.github.libtmux.scaladsl`'s opaque handles work unchanged inside a `fork`); what it needs from this project is the same single-owner discipline the direct-style `Observation` and `LiveView` already give a blocking caller, expressed as a cold `Flow` instead of an `Iterator`."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows"},{"id":"io.github.libtmux.scaladsl.ox.Flows.subscription","name":"subscription","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def subscription[T](sub: EventSubscription[T]): Flow[Delivery[T]]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Flow[Delivery[T]]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"One `Flow` element per step: an event this subscription kept, or a gap naming what was lost. Collecting the flow takes the subscription for good, through the Java subscription's own single-reader claim, and closes it when the collection ends. A second collection is refused as it starts, before it can disturb the first. The flow fails with the control client's cause if the client ended the subscription."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-subscription"},{"id":"io.github.libtmux.scaladsl.ox.Flows.liveView","name":"liveView","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def liveView(view: LiveView): Flow[ServerMirror.View]","params":[{"name":"view","type":"LiveView"}],"returns":"Flow[ServerMirror.View]"}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The current view when the flow starts, then every newer one, one per notification. Completes when the view is closed, and fails with its cause when the anchor session or server has gone."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-liveview"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields","name":"PaneFields","kind":"module","signatures":[{"raw":"object PaneFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured pane objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-id"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-command"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-index"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-active"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-title"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-path"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-width"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-height"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-left"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-top"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-attop"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atbottom"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atleft"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atright"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields","name":"SessionFields","kind":"module","signatures":[{"raw":"object SessionFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured session objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-id"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-name"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-attached"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windowcount"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windows"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields","name":"WindowFields","kind":"module","signatures":[{"raw":"object WindowFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured window objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-id"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-name"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-index"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-active"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-linked"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-width"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-height"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panecount"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panes"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-session"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields","name":"ClientFields","kind":"module","signatures":[{"raw":"object ClientFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured client objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-name"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-session"},{"id":"io.github.libtmux.scaladsl.Client","name":"Client","kind":"typealias","signatures":[{"raw":"opaque type Client = JavaClient","params":[]},{"raw":"object Client","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["opaque"],"doc":{"summary":"A captured attached client, opaque over the Java handle. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client"},{"id":"io.github.libtmux.scaladsl.Client.given_CanEqual_Client_Client","name":"given_CanEqual_Client_Client","kind":"constant","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"given CanEqual[Client, Client]","params":[],"returns":"CanEqual[Client, Client]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-given_canequal_client_client"},{"id":"io.github.libtmux.scaladsl.Pane","name":"Pane","kind":"typealias","signatures":[{"raw":"opaque type Pane = JavaPane","params":[]},{"raw":"object Pane","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["opaque"],"doc":{"summary":"A captured pane occurrence, opaque over the Java handle. Java equality identifies the physical pane; every operation beyond that is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane"},{"id":"io.github.libtmux.scaladsl.Pane.given_CanEqual_Pane_Pane","name":"given_CanEqual_Pane_Pane","kind":"constant","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"given CanEqual[Pane, Pane]","params":[],"returns":"CanEqual[Pane, Pane]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-given_canequal_pane_pane"},{"id":"io.github.libtmux.scaladsl.Server","name":"Server","kind":"typealias","signatures":[{"raw":"opaque type Server <: AutoCloseable = JavaServer","params":[]},{"raw":"object Server","params":[]}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["opaque"],"doc":{"summary":"The Java client, opaque: every member beyond [[java.lang.AutoCloseable#close]] is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`. Closing an owned client releases its transport, not tmux; `close()` comes from the `AutoCloseable` bound with no forwarding of its own, so `Using.resource(server) { ... }` works.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-server"},{"id":"io.github.libtmux.scaladsl.Server.open","name":"open","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def open(config: ServerConfig): Server","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Opens an owned client for `config`.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-open"},{"id":"io.github.libtmux.scaladsl.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def fromJava(java: JavaServer): Server","params":[{"name":"java","type":"JavaServer"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows a Java client this facade did not open; closing it closes that client too."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-fromjava"},{"id":"io.github.libtmux.scaladsl.Server.given_CanEqual_Server_Server","name":"given_CanEqual_Server_Server","kind":"constant","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"given CanEqual[Server, Server]","params":[],"returns":"CanEqual[Server, Server]"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-given_canequal_server_server"},{"id":"io.github.libtmux.scaladsl.Session","name":"Session","kind":"typealias","signatures":[{"raw":"opaque type Session = JavaSession","params":[]},{"raw":"object Session","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":["opaque"],"doc":{"summary":"A captured session, opaque over the Java handle; every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session"},{"id":"io.github.libtmux.scaladsl.Session.given_CanEqual_Session_Session","name":"given_CanEqual_Session_Session","kind":"constant","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"given CanEqual[Session, Session]","params":[],"returns":"CanEqual[Session, Session]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-given_canequal_session_session"},{"id":"io.github.libtmux.scaladsl.Window","name":"Window","kind":"typealias","signatures":[{"raw":"opaque type Window = JavaWindow","params":[]},{"raw":"object Window","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":["opaque"],"doc":{"summary":"One captured window placement, opaque over the Java handle. Equality includes its session and index, since a window linked into more than one session has more than one placement. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window"},{"id":"io.github.libtmux.scaladsl.Window.given_CanEqual_Window_Window","name":"given_CanEqual_Window_Window","kind":"constant","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"given CanEqual[Window, Window]","params":[],"returns":"CanEqual[Window, Window]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-given_canequal_window_window"},{"id":"io.github.libtmux.scaladsl.live.LiveView","name":"LiveView","kind":"typealias","signatures":[{"raw":"opaque type LiveView <: AutoCloseable = JavaServerMirror","params":[]},{"raw":"object LiveView","params":[]}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["opaque"],"doc":{"summary":"A live view of one tmux server's sessions, windows, panes and clients, opaque over Java's own [[io.github.libtmux.snapshot.ServerMirror ServerMirror]] — re-snapshotting on notification, on a gap and on reconnect is entirely Java's job; this only wraps it, rather than re-deriving resnapshot-on-notification from a raw control subscription. `close()` comes from the `AutoCloseable` bound with no forwarding of its own."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview"},{"id":"io.github.libtmux.scaladsl.live.LiveView.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"def attach(anchor: Session): LiveView","params":[{"name":"anchor","type":"Session"}],"returns":"LiveView"},{"raw":"def attach(anchor: Session, refreshEvery: Duration): LiveView","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration"}],"returns":"LiveView"}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["overload"],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-attach"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError","name":"CardinalityError","kind":"enum","signatures":[{"raw":"enum CardinalityError derives CanEqual","params":[]},{"raw":"object CardinalityError","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"Mirrors [[io.github.libtmux.exception.CardinalityException CardinalityException]]'s two leaves losslessly, including the match count Java's own `MultipleMatches.atLeast()` carries — dropping it would be exactly the hand-authored lossy projection this facade's opaque handles exist to make impossible everywhere else."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.NoMatch","name":"NoMatch","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"NoMatch","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-nomatch"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.MultipleMatches","name":"MultipleMatches","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"MultipleMatches(atLeast: Int)","params":[{"name":"atLeast","type":"Int"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-multiplematches"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.from","name":"from","kind":"method","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"def from(e: CardinalityException): CardinalityError","params":[{"name":"e","type":"CardinalityException"}],"returns":"CardinalityError"}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-from"},{"id":"io.github.libtmux.scaladsl.query.Expr","name":"Expr","kind":"typealias","signatures":[{"raw":"opaque type Expr[T] = JavaFilterExpr[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Expr","params":[]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":["opaque"],"doc":{"summary":"A filter over `T`, both runnable and readable, opaque over Java's own `FilterExpr[T]` — lossless by construction, the same reasoning [[io.github.libtmux.scaladsl.Pane]] and its siblings rest on. `T` is the raw Java handle type a Java field metamodel (`Pane_`, `Session_`, ...) is built over, not this facade's opaque one: a query is a Java-shaped value that this facade's own `.matching` extensions apply to captured Scala handles."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-zfkn"},{"id":"io.github.libtmux.scaladsl.query.Expr.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"def apply[T](java: JavaFilterExpr[T]): Expr[T]","params":[{"name":"java","type":"JavaFilterExpr[T]"}],"returns":"Expr[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Wraps an existing Java expression, such as one a typed field method already produced."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-apply"},{"id":"io.github.libtmux.scaladsl.query.Fields","name":"Fields","kind":"module","signatures":[{"raw":"object Fields","params":[]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"doc":{"summary":"Typed field handles, wrapping Java's `io.github.libtmux.query.Fields` records so every operator returns this facade's [[Expr]] rather than a raw Java `FilterExpr`. An extension cannot reshape these methods' return type on the Java records directly — same-named would silently lose to the Java member, exactly the trap `-Werror` exists to catch — so each kind gets its own small Scala class instead, one line per operator, forwarding to the Java one underneath."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField","name":"TextField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class TextField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def is(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def isNot(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def contains(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-contains"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def startsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-startswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def endsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-endswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def matches(value: Pattern): Expr[T]","params":[{"name":"value","type":"Pattern"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-matches"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def in(values: Iterable[String]): Expr[T]","params":[{"name":"values","type":"Iterable[String]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-in"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField","name":"NumberField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class NumberField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def is(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def isNot(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def lessThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-lessthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atMost(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atmost"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def greaterThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atLeast(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atleast"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField","name":"FlagField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class FlagField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def is(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isNot(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isTrue: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-istrue"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isFalse: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isfalse"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","name":"ToOneRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToOneRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","signatures":[{"raw":"def is(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","name":"ToManyRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToManyRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.any","name":"any","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def any(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-any"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def all(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-all"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.none","name":"none","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def none(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-none"},{"id":"io.github.libtmux.scaladsl.streaming.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[T] \n extends AutoCloseable","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Observation","params":[]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"A single-consumer guard over one Java subscription, for direct-style reading.","body":"`EventSubscription` is already single-consumer by construction at the Java\nlayer — a second concurrent read is refused — but that guard is scoped to\none call; nothing stopped two direct `Iterator`s built from the same\nsubscription from interleaving reads across calls. This adds the same\nscoped-CAS discipline the Cats module's own `Observation` already had, so a\n`read` call is the unit of exclusive ownership here too, released when it\nreturns so a later sequential `read` stays legal."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.read","name":"read","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def read[A](pollTimeout: Duration)(use: Iterator[Delivery[T]] => A): A","params":[{"name":"pollTimeout","type":"Duration"},{"name":"use","type":"Iterator[Delivery[T]] => A"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}],"raises":[{"type":"java.lang.IllegalStateException","doc":"if another `read` on this observation is already in progress"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Runs `use` over every step waiting or arriving within `pollTimeout` per poll, until the subscription closes. Rejects a second, overlapping `read` on this observation."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-read"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def droppedCount: Long","params":[],"returns":"Long"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A [[io.github.libtmux.control.Delivery$Gap Delivery.Gap]] read by [[read]] says where it sits."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.close","name":"close","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def close(): Unit","params":[],"returns":"Unit"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-close"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def apply[T](sub: EventSubscription[T]): Observation[T]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Observation[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-apply"},{"id":"io.github.libtmux.scaladsl.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"},{"raw":"extension (self: Client)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.name","product":"core","slug":"io-github-libtmux-scaladsl-client-name"},{"id":"io.github.libtmux.scaladsl.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"},{"raw":"extension (self: Client)\ndef session: Option[Session]","params":[],"returns":"Option[Session]","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.session","product":"core","slug":"io-github-libtmux-scaladsl-client-session"},{"id":"io.github.libtmux.scaladsl.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.id","product":"core","slug":"io-github-libtmux-scaladsl-pane-id"},{"id":"io.github.libtmux.scaladsl.Pane.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.command","product":"core","slug":"io-github-libtmux-scaladsl-pane-command"},{"id":"io.github.libtmux.scaladsl.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"},{"raw":"extension (self: Pane)\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.index","product":"core","slug":"io-github-libtmux-scaladsl-pane-index"},{"id":"io.github.libtmux.scaladsl.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"},{"raw":"extension (self: Pane)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.active","product":"core","slug":"io-github-libtmux-scaladsl-pane-active"},{"id":"io.github.libtmux.scaladsl.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.title","product":"core","slug":"io-github-libtmux-scaladsl-pane-title"},{"id":"io.github.libtmux.scaladsl.Pane.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.path","product":"core","slug":"io-github-libtmux-scaladsl-pane-path"},{"id":"io.github.libtmux.scaladsl.Pane.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.width","product":"core","slug":"io-github-libtmux-scaladsl-pane-width"},{"id":"io.github.libtmux.scaladsl.Pane.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.height","product":"core","slug":"io-github-libtmux-scaladsl-pane-height"},{"id":"io.github.libtmux.scaladsl.Pane.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.left","product":"core","slug":"io-github-libtmux-scaladsl-pane-left"},{"id":"io.github.libtmux.scaladsl.Pane.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.top","product":"core","slug":"io-github-libtmux-scaladsl-pane-top"},{"id":"io.github.libtmux.scaladsl.Pane.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","product":"core","slug":"io-github-libtmux-scaladsl-pane-attop"},{"id":"io.github.libtmux.scaladsl.Pane.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","product":"core","slug":"io-github-libtmux-scaladsl-pane-atbottom"},{"id":"io.github.libtmux.scaladsl.Pane.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","product":"core","slug":"io-github-libtmux-scaladsl-pane-atleft"},{"id":"io.github.libtmux.scaladsl.Pane.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","product":"core","slug":"io-github-libtmux-scaladsl-pane-atright"},{"id":"io.github.libtmux.scaladsl.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.id","product":"core","slug":"io-github-libtmux-scaladsl-session-id"},{"id":"io.github.libtmux.scaladsl.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.name","product":"core","slug":"io-github-libtmux-scaladsl-session-name"},{"id":"io.github.libtmux.scaladsl.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"},{"raw":"extension (self: Session)\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.attached","product":"core","slug":"io-github-libtmux-scaladsl-session-attached"},{"id":"io.github.libtmux.scaladsl.Session.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","product":"core","slug":"io-github-libtmux-scaladsl-session-windowcount"},{"id":"io.github.libtmux.scaladsl.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"},{"raw":"extension (self: Session)\ndef windows: Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This session's windows.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windows","product":"core","slug":"io-github-libtmux-scaladsl-session-windows"},{"id":"io.github.libtmux.scaladsl.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.id","product":"core","slug":"io-github-libtmux-scaladsl-window-id"},{"id":"io.github.libtmux.scaladsl.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.name","product":"core","slug":"io-github-libtmux-scaladsl-window-name"},{"id":"io.github.libtmux.scaladsl.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"},{"raw":"extension (self: Window)\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.index","product":"core","slug":"io-github-libtmux-scaladsl-window-index"},{"id":"io.github.libtmux.scaladsl.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.active","product":"core","slug":"io-github-libtmux-scaladsl-window-active"},{"id":"io.github.libtmux.scaladsl.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.linked","product":"core","slug":"io-github-libtmux-scaladsl-window-linked"},{"id":"io.github.libtmux.scaladsl.Window.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.width","product":"core","slug":"io-github-libtmux-scaladsl-window-width"},{"id":"io.github.libtmux.scaladsl.Window.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.height","product":"core","slug":"io-github-libtmux-scaladsl-window-height"},{"id":"io.github.libtmux.scaladsl.Window.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","product":"core","slug":"io-github-libtmux-scaladsl-window-panecount"},{"id":"io.github.libtmux.scaladsl.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"},{"raw":"extension (self: Window)\ndef panes: Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This link's panes.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.panes","product":"core","slug":"io-github-libtmux-scaladsl-window-panes"},{"id":"io.github.libtmux.scaladsl.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"},{"raw":"extension (self: Window)\ndef session: Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.session","product":"core","slug":"io-github-libtmux-scaladsl-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[io.github.libtmux.BufferInfo]]","params":[],"returns":"F[Vector[io.github.libtmux.BufferInfo]]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-list"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, contents: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-set"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef show(name: String): F[String]","params":[{"name":"name","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-show"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef delete(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-delete"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef save(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-save"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef load(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-load"},{"id":"io.github.libtmux.scaladsl.cats.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-name"},{"id":"io.github.libtmux.scaladsl.cats.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detach(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detach"},{"id":"io.github.libtmux.scaladsl.cats.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detachOthers(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detachothers"},{"id":"io.github.libtmux.scaladsl.cats.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef switchTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-switchto"},{"id":"io.github.libtmux.scaladsl.cats.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef redraw(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-redraw"},{"id":"io.github.libtmux.scaladsl.cats.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef session: Option[Session[F]]","params":[],"returns":"Option[Session[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-session"},{"id":"io.github.libtmux.scaladsl.cats.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-attachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]]","params":[],"returns":"F[Option[io.github.libtmux.ClientAttachment]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Client[F]]","params":[],"returns":"F[Client[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Commands[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-list"},{"id":"io.github.libtmux.scaladsl.cats.Environment.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-get"},{"id":"io.github.libtmux.scaladsl.cats.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef isRemoved(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-isremoved"},{"id":"io.github.libtmux.scaladsl.cats.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-all"},{"id":"io.github.libtmux.scaladsl.cats.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-effective"},{"id":"io.github.libtmux.scaladsl.cats.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef removed(): F[Set[String]]","params":[],"returns":"F[Set[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-removed"},{"id":"io.github.libtmux.scaladsl.cats.Environment.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-set"},{"id":"io.github.libtmux.scaladsl.cats.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-unset"},{"id":"io.github.libtmux.scaladsl.cats.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef remove(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-remove"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-set"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-append"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef unset(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-unset"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef run(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-run"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-all"},{"id":"io.github.libtmux.scaladsl.cats.Keys.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef in(table: String): Keys[F]","params":[{"name":"table","type":"String"}],"returns":"Keys[F]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-in"},{"id":"io.github.libtmux.scaladsl.cats.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef bind(key: String, command: Vector[String]): F[Unit]","params":[{"name":"key","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-bind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef unbind(key: String): F[Unit]","params":[{"name":"key","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-unbind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-list"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F])\ndef lines(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"MessageLog[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-lines"},{"id":"io.github.libtmux.scaladsl.cats.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-all"},{"id":"io.github.libtmux.scaladsl.cats.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-effective"},{"id":"io.github.libtmux.scaladsl.cats.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setIfAbsent(name: String, value: String): F[Boolean]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setifabsent"},{"id":"io.github.libtmux.scaladsl.cats.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef append(name: String, suffix: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-append"},{"id":"io.github.libtmux.scaladsl.cats.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-unset"},{"id":"io.github.libtmux.scaladsl.cats.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":204,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-info"},{"id":"io.github.libtmux.scaladsl.cats.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":208,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-id"},{"id":"io.github.libtmux.scaladsl.cats.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-index"},{"id":"io.github.libtmux.scaladsl.cats.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-active"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-floating"},{"id":"io.github.libtmux.scaladsl.cats.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-size"},{"id":"io.github.libtmux.scaladsl.cats.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":232,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-position"},{"id":"io.github.libtmux.scaladsl.cats.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-title"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pid"},{"id":"io.github.libtmux.scaladsl.cats.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef dead(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-dead"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit]","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":257,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resize"},{"id":"io.github.libtmux.scaladsl.cats.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-edges"},{"id":"io.github.libtmux.scaladsl.cats.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef copyMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-copymode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef mode(): F[Option[io.github.libtmux.PaneMode]]","params":[],"returns":"F[Option[io.github.libtmux.PaneMode]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-mode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef exitMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":273,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-select"},{"id":"io.github.libtmux.scaladsl.cats.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef retitle(title: String): F[Pane[F]]","params":[{"name":"title","type":"String"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-retitle"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef window: Window[F]","params":[],"returns":"Window[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":289,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-window"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-options"},{"id":"io.github.libtmux.scaladsl.cats.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-capture"},{"id":"io.github.libtmux.scaladsl.cats.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef noteTyped(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.cats.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef send(keys: String): F[Unit]","params":[{"name":"keys","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":318,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-send"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":330,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLine(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":338,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendline"},{"id":"io.github.libtmux.scaladsl.cats.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(windowName: String): F[Window[F]]","params":[{"name":"windowName","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":342,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-breakout"},{"id":"io.github.libtmux.scaladsl.cats.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-expand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-variables"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(command: String*): F[Unit]","params":[{"name":"command","type":"String*"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":354,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawnIn(directory: java.nio.file.Path): F[Unit]","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pipeTo(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":367,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef stopPiping(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":371,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.cats.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":379,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-split"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pasteBuffer(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":391,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.cats.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String, beforePaste: () => Unit): F[Unit]","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-paste"},{"id":"io.github.libtmux.scaladsl.cats.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef clearHistory(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":403,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.cats.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef swapWith(other: Pane[F]): F[Unit]","params":[{"name":"other","type":"Pane[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":407,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.cats.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef joinTo(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-jointo"},{"id":"io.github.libtmux.scaladsl.cats.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-kill"},{"id":"io.github.libtmux.scaladsl.cats.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef history(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":426,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-history"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef clear(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-clear"},{"id":"io.github.libtmux.scaladsl.cats.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]]","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]]","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewSession.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a session running cat. */\nobject NewSession extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build()\n )\n _ <- IO.println(s\"created=${session.name}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":437,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-newsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hasSession(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":449,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hassession"},{"id":"io.github.libtmux.scaladsl.cats.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killSession(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":453,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef requireAlive(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":465,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-requirealive"},{"id":"io.github.libtmux.scaladsl.cats.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":469,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killserver"},{"id":"io.github.libtmux.scaladsl.cats.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-expand"},{"id":"io.github.libtmux.scaladsl.cats.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef shell: Shell[F]","params":[],"returns":"Shell[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":481,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-shell"},{"id":"io.github.libtmux.scaladsl.cats.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef commands: Commands[F]","params":[],"returns":"Commands[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":485,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-commands"},{"id":"io.github.libtmux.scaladsl.cats.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef lock(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-lock"},{"id":"io.github.libtmux.scaladsl.cats.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef messageLog: MessageLog[F]","params":[],"returns":"MessageLog[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":493,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef prompt: Prompt[F]","params":[],"returns":"Prompt[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":497,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-variables"},{"id":"io.github.libtmux.scaladsl.cats.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":505,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panefields"},{"id":"io.github.libtmux.scaladsl.cats.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef keys: Keys[F]","params":[],"returns":"Keys[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":509,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-keys"},{"id":"io.github.libtmux.scaladsl.cats.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef buffers: Buffers[F]","params":[],"returns":"Buffers[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":513,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sourceFile(file: java.nio.file.Path): F[Unit]","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.cats.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-options"},{"id":"io.github.libtmux.scaladsl.cats.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef globalOptions: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.cats.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-environment"},{"id":"io.github.libtmux.scaladsl.cats.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef version(): F[io.github.libtmux.TmuxVersion]","params":[],"returns":"F[io.github.libtmux.TmuxVersion]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-version"},{"id":"io.github.libtmux.scaladsl.cats.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-identity"},{"id":"io.github.libtmux.scaladsl.cats.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-config"},{"id":"io.github.libtmux.scaladsl.cats.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: String*): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"String*"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-cmd"},{"id":"io.github.libtmux.scaladsl.cats.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot]","params":[],"returns":"F[io.github.libtmux.snapshot.ServerSnapshot]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-snapshot"},{"id":"io.github.libtmux.scaladsl.cats.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListSessions.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List the sessions returned by a server read. */\nobject ListSessions extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n sessions <- server.sessions()\n _ <- IO.println(\n \"sessions=\" + sessions.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Query.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport io.github.libtmux.scaladsl.{Session as SessionFields}\nimport io.github.libtmux.scaladsl.query.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Select sessions with a typed name filter. */\nobject Query extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n matches <- server.sessions(SessionFields.name.is(\"work-one\"))\n _ <- IO.println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(): F[Vector[Window[F]]]","params":[],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":574,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-windows"},{"id":"io.github.libtmux.scaladsl.cats.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(): F[Vector[Pane[F]]]","params":[],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panes"},{"id":"io.github.libtmux.scaladsl.cats.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(name: String): F[Option[Session[F]]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(id: io.github.libtmux.SessionId): F[Option[Session[F]]]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-session"},{"id":"io.github.libtmux.scaladsl.cats.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-window"},{"id":"io.github.libtmux.scaladsl.cats.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":598,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-pane"},{"id":"io.github.libtmux.scaladsl.cats.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":602,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.cats.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef clients(): F[Vector[Client[F]]]","params":[],"returns":"F[Vector[Client[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":626,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-clients"},{"id":"io.github.libtmux.scaladsl.cats.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef attachedSessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":634,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-run"},{"id":"io.github.libtmux.scaladsl.cats.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":638,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.cats.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-info"},{"id":"io.github.libtmux.scaladsl.cats.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-id"},{"id":"io.github.libtmux.scaladsl.cats.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-name"},{"id":"io.github.libtmux.scaladsl.cats.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-attached"},{"id":"io.github.libtmux.scaladsl.cats.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activeWindow: Option[Window[F]]","params":[],"returns":"Option[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":661,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activewindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef selectWindow(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":669,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef nextWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":673,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef previousWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef lastWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef detachClients(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-detachclients"},{"id":"io.github.libtmux.scaladsl.cats.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-options"},{"id":"io.github.libtmux.scaladsl.cats.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":694,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-environment"},{"id":"io.github.libtmux.scaladsl.cats.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":698,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef setHistoryLimit(lines: Int): F[Unit]","params":[{"name":"lines","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":702,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.cats.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef windows: Vector[Window[F]]","params":[],"returns":"Vector[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-windows"},{"id":"io.github.libtmux.scaladsl.cats.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]]","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]]","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewWindow.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a window and read the updated session. */\nobject NewWindow extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n _ <- IO.println(s\"created=${window.name}\")\n updated <- server.session(\"work-one\")\n refreshed <- IO.fromOption(updated)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":710,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":722,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-expand"},{"id":"io.github.libtmux.scaladsl.cats.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":726,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-rename"},{"id":"io.github.libtmux.scaladsl.cats.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":730,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-kill"},{"id":"io.github.libtmux.scaladsl.cats.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Session[F]]","params":[],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":734,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef run(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-run"},{"id":"io.github.libtmux.scaladsl.cats.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef capturing(command: String): F[Vector[String]]","params":[{"name":"command","type":"String"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-capturing"},{"id":"io.github.libtmux.scaladsl.cats.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String, whenFalse: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-choose"},{"id":"io.github.libtmux.scaladsl.cats.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":760,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-info"},{"id":"io.github.libtmux.scaladsl.cats.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-id"},{"id":"io.github.libtmux.scaladsl.cats.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":768,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-index"},{"id":"io.github.libtmux.scaladsl.cats.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":772,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-context"},{"id":"io.github.libtmux.scaladsl.cats.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":776,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-name"},{"id":"io.github.libtmux.scaladsl.cats.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":780,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-active"},{"id":"io.github.libtmux.scaladsl.cats.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":784,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linked"},{"id":"io.github.libtmux.scaladsl.cats.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":788,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-size"},{"id":"io.github.libtmux.scaladsl.cats.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":792,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-layout"},{"id":"io.github.libtmux.scaladsl.cats.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":796,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":800,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-select"},{"id":"io.github.libtmux.scaladsl.cats.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef session: Session[F]","params":[],"returns":"Session[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":808,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":812,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-options"},{"id":"io.github.libtmux.scaladsl.cats.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef panes: Vector[Pane[F]]","params":[],"returns":"Vector[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":816,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-panes"},{"id":"io.github.libtmux.scaladsl.cats.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":820,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-split"},{"id":"io.github.libtmux.scaladsl.cats.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":832,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-expand"},{"id":"io.github.libtmux.scaladsl.cats.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":836,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rename"},{"id":"io.github.libtmux.scaladsl.cats.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linkTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":840,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linkto"},{"id":"io.github.libtmux.scaladsl.cats.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef unlink(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":844,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-unlink"},{"id":"io.github.libtmux.scaladsl.cats.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F], index: Int): F[Unit]","params":[{"name":"session","type":"Session[F]"},{"name":"index","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":848,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-moveto"},{"id":"io.github.libtmux.scaladsl.cats.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":856,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef synchronizePanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":860,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef stopSynchronizingPanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":864,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rotate(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":868,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rotate"},{"id":"io.github.libtmux.scaladsl.cats.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef selectLayout(layout: io.github.libtmux.Layout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":872,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef nextLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":876,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef previousLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":880,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: String): F[Unit]","params":[{"name":"layout","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":884,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-applylayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":892,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef displayPopup(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":896,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.cats.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":900,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-kill"},{"id":"io.github.libtmux.scaladsl.cats.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":904,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this pane's server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-batch"},{"id":"io.github.libtmux.scaladsl.cats.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef run(\n command: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.PaneRun]","params":[{"name":"command","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.PaneRun]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-run"},{"id":"io.github.libtmux.scaladsl.cats.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` runs on the blocking worker with each fresh capture."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-await"},{"id":"io.github.libtmux.scaladsl.cats.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-batch"},{"id":"io.github.libtmux.scaladsl.cats.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef chain: CommandChain[F]","params":[],"returns":"CommandChain[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable chain plan using tmux's evolving current target; each run dispatches a fresh Java `CommandChain` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-chain"},{"id":"io.github.libtmux.scaladsl.cats.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef channel(name: String): Channel[F]","params":[{"name":"name","type":"String"}],"returns":"Channel[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels, named once."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-channel"},{"id":"io.github.libtmux.scaladsl.cats.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get[T](key: io.github.libtmux.OptionKey[T]): F[Option[T]]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"}],"returns":"F[Option[T]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-get"},{"id":"io.github.libtmux.scaladsl.cats.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set[T](key: io.github.libtmux.OptionKey[T], value: T): F[Unit]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"},{"name":"value","type":"T"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-set"},{"id":"io.github.libtmux.scaladsl.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detach"},{"id":"io.github.libtmux.scaladsl.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detachothers"},{"id":"io.github.libtmux.scaladsl.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-switchto"},{"id":"io.github.libtmux.scaladsl.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-redraw"},{"id":"io.github.libtmux.scaladsl.Client.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-server"},{"id":"io.github.libtmux.scaladsl.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-attachment"},{"id":"io.github.libtmux.scaladsl.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef fetchAttachment(): Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef refresh(): Client","params":[],"returns":"Client","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-refresh"},{"id":"io.github.libtmux.scaladsl.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-info"},{"id":"io.github.libtmux.scaladsl.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-floating"},{"id":"io.github.libtmux.scaladsl.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-size"},{"id":"io.github.libtmux.scaladsl.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-position"},{"id":"io.github.libtmux.scaladsl.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pid"},{"id":"io.github.libtmux.scaladsl.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-dead"},{"id":"io.github.libtmux.scaladsl.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resize(direction: io.github.libtmux.Direction, cells: Int): Unit","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resize"},{"id":"io.github.libtmux.scaladsl.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-edges"},{"id":"io.github.libtmux.scaladsl.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-copymode"},{"id":"io.github.libtmux.scaladsl.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef mode(): Option[io.github.libtmux.PaneMode]","params":[],"returns":"Option[io.github.libtmux.PaneMode]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-mode"},{"id":"io.github.libtmux.scaladsl.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-select"},{"id":"io.github.libtmux.scaladsl.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-retitle"},{"id":"io.github.libtmux.scaladsl.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.Pane.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-server"},{"id":"io.github.libtmux.scaladsl.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-batch"},{"id":"io.github.libtmux.scaladsl.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef window: Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-window"},{"id":"io.github.libtmux.scaladsl.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-hooks"},{"id":"io.github.libtmux.scaladsl.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-options"},{"id":"io.github.libtmux.scaladsl.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef capture(): Vector[String]","params":[],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(spec: io.github.libtmux.CaptureSpec): Vector[String]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-capture"},{"id":"io.github.libtmux.scaladsl.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-send"},{"id":"io.github.libtmux.scaladsl.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendline"},{"id":"io.github.libtmux.scaladsl.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-breakout"},{"id":"io.github.libtmux.scaladsl.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-expand"},{"id":"io.github.libtmux.scaladsl.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-variables"},{"id":"io.github.libtmux.scaladsl.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef respawn(command: String*): Unit","params":[{"name":"command","type":"String*"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawn"},{"id":"io.github.libtmux.scaladsl.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawnIn(directory: java.nio.file.Path): Unit","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-split"},{"id":"io.github.libtmux.scaladsl.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef paste(text: String, beforePaste: () => Unit): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-paste"},{"id":"io.github.libtmux.scaladsl.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-jointo"},{"id":"io.github.libtmux.scaladsl.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-kill"},{"id":"io.github.libtmux.scaladsl.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-refresh"},{"id":"io.github.libtmux.scaladsl.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(spec: io.github.libtmux.SessionSpec): Session","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"Session","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewSession.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a session running cat. */\nobject NewSession {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(s\"created=${session.name}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-newsession"},{"id":"io.github.libtmux.scaladsl.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hassession"},{"id":"io.github.libtmux.scaladsl.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killsession"},{"id":"io.github.libtmux.scaladsl.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-isalive"},{"id":"io.github.libtmux.scaladsl.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-requirealive"},{"id":"io.github.libtmux.scaladsl.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":313,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killserver"},{"id":"io.github.libtmux.scaladsl.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":321,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-batch"},{"id":"io.github.libtmux.scaladsl.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef chain: io.github.libtmux.CommandChain","params":[],"returns":"io.github.libtmux.CommandChain","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":325,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-chain"},{"id":"io.github.libtmux.scaladsl.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-expand"},{"id":"io.github.libtmux.scaladsl.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef shell: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-shell"},{"id":"io.github.libtmux.scaladsl.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef commands: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":337,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-commands"},{"id":"io.github.libtmux.scaladsl.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-lock"},{"id":"io.github.libtmux.scaladsl.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef messageLog: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":345,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-messagelog"},{"id":"io.github.libtmux.scaladsl.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef prompt: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":349,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-prompt"},{"id":"io.github.libtmux.scaladsl.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef channel(name: String): io.github.libtmux.Channel","params":[{"name":"name","type":"String"}],"returns":"io.github.libtmux.Channel","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-channel"},{"id":"io.github.libtmux.scaladsl.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":357,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-variables"},{"id":"io.github.libtmux.scaladsl.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":361,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panefields"},{"id":"io.github.libtmux.scaladsl.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef keys: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":365,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-keys"},{"id":"io.github.libtmux.scaladsl.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef buffers: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":369,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-buffers"},{"id":"io.github.libtmux.scaladsl.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sourceFile(file: java.nio.file.Path): Unit","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-options"},{"id":"io.github.libtmux.scaladsl.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef globalOptions: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-environment"},{"id":"io.github.libtmux.scaladsl.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hooks"},{"id":"io.github.libtmux.scaladsl.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef version(): io.github.libtmux.TmuxVersion","params":[],"returns":"io.github.libtmux.TmuxVersion","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-version"},{"id":"io.github.libtmux.scaladsl.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-identity"},{"id":"io.github.libtmux.scaladsl.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-config"},{"id":"io.github.libtmux.scaladsl.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef cmd(argv: String*): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"String*"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":405,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-cmd"},{"id":"io.github.libtmux.scaladsl.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef snapshot(): io.github.libtmux.snapshot.ServerSnapshot","params":[],"returns":"io.github.libtmux.snapshot.ServerSnapshot","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":418,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-snapshot"},{"id":"io.github.libtmux.scaladsl.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef sessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListSessions.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List the sessions returned by a server read. */\nobject ListSessions {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\n \"sessions=\" + server.sessions().map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Query.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport io.github.libtmux.scaladsl.query.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Select sessions with a typed name filter. */\nobject Query {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val matches = server.sessions(Session.name.is(\"work-one\"))\n println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":422,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sessions"},{"id":"io.github.libtmux.scaladsl.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef windows(): Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(id: io.github.libtmux.WindowId): Vector[Window]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-windows"},{"id":"io.github.libtmux.scaladsl.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef panes(): Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":438,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panes"},{"id":"io.github.libtmux.scaladsl.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(name: String): Option[Session]","params":[{"name":"name","type":"String"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(id: io.github.libtmux.SessionId): Option[Session]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":446,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-session"},{"id":"io.github.libtmux.scaladsl.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef window(context: io.github.libtmux.snapshot.WindowContext): Option[Window]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":450,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-window"},{"id":"io.github.libtmux.scaladsl.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef pane(id: io.github.libtmux.PaneId): Option[Pane]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":454,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-pane"},{"id":"io.github.libtmux.scaladsl.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":458,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef clients(): Vector[Client]","params":[],"returns":"Vector[Client]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":482,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-clients"},{"id":"io.github.libtmux.scaladsl.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef attachedSessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":486,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef run(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":490,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-run"},{"id":"io.github.libtmux.scaladsl.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":494,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-info"},{"id":"io.github.libtmux.scaladsl.Session.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-server"},{"id":"io.github.libtmux.scaladsl.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activeWindow: Option[Window]","params":[],"returns":"Option[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activewindow"},{"id":"io.github.libtmux.scaladsl.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activepane"},{"id":"io.github.libtmux.scaladsl.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-detachclients"},{"id":"io.github.libtmux.scaladsl.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-options"},{"id":"io.github.libtmux.scaladsl.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":554,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-environment"},{"id":"io.github.libtmux.scaladsl.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-hooks"},{"id":"io.github.libtmux.scaladsl.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(spec: io.github.libtmux.WindowSpec): Window","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"Window","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewWindow.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a window and read the updated session. */\nobject NewWindow {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(s\"created=${window.name}\")\n val refreshed =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":570,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-newwindow"},{"id":"io.github.libtmux.scaladsl.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-expand"},{"id":"io.github.libtmux.scaladsl.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":586,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-rename"},{"id":"io.github.libtmux.scaladsl.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-kill"},{"id":"io.github.libtmux.scaladsl.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef refresh(): Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-refresh"},{"id":"io.github.libtmux.scaladsl.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":601,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-info"},{"id":"io.github.libtmux.scaladsl.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":613,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-context"},{"id":"io.github.libtmux.scaladsl.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":629,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-size"},{"id":"io.github.libtmux.scaladsl.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":633,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-layout"},{"id":"io.github.libtmux.scaladsl.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":637,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-activepane"},{"id":"io.github.libtmux.scaladsl.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":641,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-select"},{"id":"io.github.libtmux.scaladsl.Window.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-server"},{"id":"io.github.libtmux.scaladsl.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-hooks"},{"id":"io.github.libtmux.scaladsl.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-options"},{"id":"io.github.libtmux.scaladsl.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-split"},{"id":"io.github.libtmux.scaladsl.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-expand"},{"id":"io.github.libtmux.scaladsl.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rename"},{"id":"io.github.libtmux.scaladsl.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-linkto"},{"id":"io.github.libtmux.scaladsl.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-unlink"},{"id":"io.github.libtmux.scaladsl.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":693,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-moveto"},{"id":"io.github.libtmux.scaladsl.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":701,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-resizeto"},{"id":"io.github.libtmux.scaladsl.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":709,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":713,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rotate"},{"id":"io.github.libtmux.scaladsl.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef selectLayout(layout: io.github.libtmux.Layout): Unit","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":717,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":725,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef applyLayout(layout: io.github.libtmux.WindowLayout): Unit","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":729,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-applylayout"},{"id":"io.github.libtmux.scaladsl.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-respawn"},{"id":"io.github.libtmux.scaladsl.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-kill"},{"id":"io.github.libtmux.scaladsl.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef refresh(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-refresh"},{"id":"io.github.libtmux.scaladsl.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef asJava: JavaClient","params":[],"returns":"JavaClient","receiver":{"name":"self","type":"Client"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-asjava"},{"id":"io.github.libtmux.scaladsl.Vector.matching","name":"matching","kind":"function","signatures":[{"raw":"extension (clients: Vector[Client])\ndef matching(expr: Expr[JavaClient]): Vector[Client]","params":[{"name":"expr","type":"Expr[JavaClient]"}],"returns":"Vector[Client]","receiver":{"name":"clients","type":"Vector[Client]"}},{"raw":"extension (panes: Vector[Pane])\ndef matching(expr: Expr[JavaPane]): Vector[Pane]","params":[{"name":"expr","type":"Expr[JavaPane]"}],"returns":"Vector[Pane]","receiver":{"name":"panes","type":"Vector[Pane]"}},{"raw":"extension (sessions: Vector[Session])\ndef matching(expr: Expr[JavaSession]): Vector[Session]","params":[{"name":"expr","type":"Expr[JavaSession]"}],"returns":"Vector[Session]","receiver":{"name":"sessions","type":"Vector[Session]"}},{"raw":"extension (windows: Vector[Window])\ndef matching(expr: Expr[JavaWindow]): Vector[Window]","params":[{"name":"expr","type":"Expr[JavaWindow]"}],"returns":"Vector[Window]","receiver":{"name":"windows","type":"Vector[Window]"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The captured clients `expr` matches: a local filter over what is already held."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-vector-matching"},{"id":"io.github.libtmux.scaladsl.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef asJava: JavaPane","params":[],"returns":"JavaPane","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"The underlying Java pane. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-asjava"},{"id":"io.github.libtmux.scaladsl.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef awaitText(text: String, timeout: FiniteDuration): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef awaitText(\n text: String,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef run(command: String, timeout: FiniteDuration): PaneRun","params":[{"name":"command","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"PaneRun","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-run"},{"id":"io.github.libtmux.scaladsl.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef await(settled: Pane => Boolean, timeout: FiniteDuration): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef await(\n settled: Pane => Boolean,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` receives a fresh capture each look."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-await"},{"id":"io.github.libtmux.scaladsl.Server.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef asJava: JavaServer","params":[],"returns":"JavaServer","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-asjava"},{"id":"io.github.libtmux.scaladsl.Server.within","name":"within","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef within(timeout: FiniteDuration): Server","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"Server","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"This server with every command given `timeout` rather than the default, sharing this one's transport and scope. `LIFECYCLE`, handwritten: not a per-operation forward, a derived scope."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-within"},{"id":"io.github.libtmux.scaladsl.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef control(session: Session): ControlClient","params":[{"name":"session","type":"Session"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef control(session: Session, timeout: FiniteDuration): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"FiniteDuration"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["overload"],"doc":{"summary":"A control-mode client on `session`, refused by a tmux other than the one that captured it. `LIFECYCLE`, handwritten: resource scoping, not a per-operation forward."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-control"},{"id":"io.github.libtmux.scaladsl.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef asJava: JavaSession","params":[],"returns":"JavaSession","receiver":{"name":"self","type":"Session"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The underlying Java session. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-asjava"},{"id":"io.github.libtmux.scaladsl.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef asJava: JavaWindow","params":[],"returns":"JavaWindow","receiver":{"name":"self","type":"Window"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying Java window link. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef asJava: JavaServerMirror","params":[],"returns":"JavaServerMirror","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The underlying Java mirror. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.current","name":"current","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef current: JavaServerMirror.View","params":[],"returns":"JavaServerMirror.View","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The latest published view. Never blocks."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-current"},{"id":"io.github.libtmux.scaladsl.live.LiveView.awaitNewer","name":"awaitNewer","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef awaitNewer(\n epoch: Long,\n timeout: Duration\n ): Option[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"},{"name":"timeout","type":"Duration"}],"returns":"Option[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Waits for a view newer than `epoch`, or empty when `timeout` passed first or this mirror ended; [[isEnded]] and [[cause]] tell those apart."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-awaitnewer"},{"id":"io.github.libtmux.scaladsl.live.LiveView.isEnded","name":"isEnded","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef isEnded: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-isended"},{"id":"io.github.libtmux.scaladsl.live.LiveView.cause","name":"cause","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef cause: Option[Throwable]","params":[],"returns":"Option[Throwable]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Why this mirror ended, when something other than [[java.lang.AutoCloseable#close close]] ended it."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-cause"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshots","name":"snapshots","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshots: Iterator[JavaServerMirror.View]","params":[],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The current view, then every newer one, one per notification, blocking between them: as a `StateFlow` or an fs2 `Signal` does. A change made before this call is in the first view rather than lost between reading [[current]] and starting to iterate. Ends when this view is closed, and throws [[cause]] when its anchor or server has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshots"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshotsAfter","name":"snapshotsAfter","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshotsAfter(epoch: Long): Iterator[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"}],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Every view newer than `epoch`, one per notification, blocking between them. A view already published after `epoch` comes first, so nothing is missed between reading a view and starting to iterate. Ends and throws as [[snapshots]] does."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshotsafter"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.exactlyOne","name":"exactlyOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef exactlyOne: Either[CardinalityError, A]","params":[],"returns":"Either[CardinalityError, A]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match, or a failure naming which way the count was wrong. Single-pass: mirrors `Selections.exactlyOne`'s early exit, stopping at the second match."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-exactlyone"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.atMostOne","name":"atMostOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef atMostOne: Either[CardinalityError, Option[A]]","params":[],"returns":"Either[CardinalityError, Option[A]]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match if there is one, `None` if there is none — still a failure for several."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-atmostone"},{"id":"io.github.libtmux.scaladsl.query.Expr.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef asJava: JavaFilterExpr[T]","params":[],"returns":"JavaFilterExpr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"The underlying Java expression. Opaque wrapping is free, so this never copies anything."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-asjava"},{"id":"io.github.libtmux.scaladsl.query.Expr.&&","name":"&&","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef &&(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-14f0"},{"id":"io.github.libtmux.scaladsl.query.Expr.||","name":"||","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef ||(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-1nzt"},{"id":"io.github.libtmux.scaladsl.query.Expr.unary_!","name":"unary_!","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef unary_! : Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-unary_"},{"id":"io.github.libtmux.scaladsl.query.Expr.and","name":"and","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef and(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`&&`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-and"},{"id":"io.github.libtmux.scaladsl.query.Expr.or","name":"or","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef or(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`||`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-or"},{"id":"io.github.libtmux.scaladsl.query.Expr.not","name":"not","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef not: Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`unary_!`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-not"},{"id":"io.github.libtmux.scaladsl.query.Expr.describe","name":"describe","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef describe: String","params":[],"returns":"String","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Renders this expression as inspectable text."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-describe"},{"id":"io.github.libtmux.scaladsl.query.Expr.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef matches(value: T): Boolean","params":[{"name":"value","type":"T"}],"returns":"Boolean","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Evaluates this expression against one value, with no tmux I/O."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-matches"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-scala_3","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala":"package io.github.libtmux.scaladsl.generated\n\n// Generated from field-catalog.tsv by build-logic/codegen (ScalaFieldGenerator). Not checked in.\n\nimport io.github.libtmux.{\n Pane => JavaPane,\n Session => JavaSession,\n Window => JavaWindow,\n Client => JavaClient\n}\n\n/** Typed fields for filtering captured pane objects. */\nobject PaneFields {\n /** The pane id. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.id())\n\n /** The command tmux reported running in the pane. */\n def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.command())\n\n /** The pane's position in its window. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.index())\n\n /** Whether this was its window's active pane. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.active())\n\n /** The pane's title, which a program running in it can set. */\n def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.title())\n\n /** The pane's working directory, as the text tmux reported. */\n def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.path())\n\n /** The pane's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.width())\n\n /** The pane's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.height())\n\n /** The column of the pane's left edge in its window. */\n def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.left())\n\n /** The row of the pane's top edge in its window. */\n def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.top())\n\n /** Whether the pane touches the top of its window. */\n def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atTop())\n\n /** Whether the pane touches the bottom of its window. */\n def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atBottom())\n\n /** Whether the pane touches the left of its window. */\n def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atLeft())\n\n /** Whether the pane touches the right of its window. */\n def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atRight())\n}\n\n/** Typed fields for filtering captured session objects. */\nobject SessionFields {\n /** The session id, as text, so it can be compared and listed. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.id())\n\n /** The session name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.name())\n\n /** Whether a client was attached when this was captured. */\n def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession](_root_.io.github.libtmux.Session_.attached())\n\n /** How many windows this session holds. */\n def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession](_root_.io.github.libtmux.Session_.windowCount())\n\n /** This session's windows. */\n def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow](_root_.io.github.libtmux.Session_.windows())\n}\n\n/** Typed fields for filtering captured window objects. */\nobject WindowFields {\n /** The underlying window id, shared by every link to it. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.id())\n\n /** The window name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.name())\n\n /** Where this link sits in its session. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.index())\n\n /** Whether this was its session's active window. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.active())\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.linked())\n\n /** The window's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.width())\n\n /** The window's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.height())\n\n /** How many panes this link holds. */\n def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.paneCount())\n\n /** This link's panes. */\n def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane](_root_.io.github.libtmux.Window_.panes())\n\n /** The session this link belongs to. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession](_root_.io.github.libtmux.Window_.session())\n}\n\n/** Typed fields for filtering captured client objects. */\nobject ClientFields {\n /** The client's terminal name, which is how tmux addresses it. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient](_root_.io.github.libtmux.Client_.name())\n\n /** The session this client was attached to, if any. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession](_root_.io.github.libtmux.Client_.session())\n}\n","libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl.cats\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Captures every buffer the server holds, in tmux's order. */\n def list(): F[Vector[io.github.libtmux.BufferInfo]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n\n /** Puts text in a named buffer, replacing whatever was there. */\n def set(name: String, contents: String): F[Unit] =\n self.server.execution(self.underlying.set(name, contents))\n\n /** What a buffer holds, without any line breaks it ends with. */\n def show(name: String): F[String] =\n self.server.execution(self.underlying.show(name))\n\n /** Removes a buffer by its exact name. */\n def delete(name: String): F[Unit] =\n self.server.execution(self.underlying.delete(name))\n\n /** Writes a buffer's contents to a file. */\n def save(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.save(name, file))\n\n /** Reads a file into a named buffer. */\n def load(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.load(name, file))\n }\n\n extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): F[Unit] =\n self.server.execution(self.underlying.asJava.detach())\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachOthers())\n\n /** Moves this client to another session. */\n def switchTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.switchTo(session.underlying.asJava))\n\n /** Asks tmux to redraw this client. */\n def redraw(): F[Unit] =\n self.server.execution(self.underlying.asJava.redraw())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session()).toScala.map(v => self.server.session(io.github.libtmux.scaladsl.Session.wrap(v)))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.fetchAttachment()).toScala)\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): F[Client[F]] =\n self.server.execution(self.server.client(io.github.libtmux.scaladsl.Client.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every command, as tmux prints it. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The value set for this name, or empty when it is removed or absent. */\n def get(name: String): F[Option[String]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.get(name)).toScala)\n\n /** Whether new processes are told not to inherit this name. */\n def isRemoved(name: String): F[Boolean] =\n self.server.execution(self.underlying.isRemoved(name))\n\n /** Every name set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** What a process started from this scope is actually handed, both scopes taken together. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Every name this scope tells a new process not to inherit. */\n def removed(): F[Set[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.SetHasAsScala(self.underlying.removed()).asScala.toSet)\n\n /** Sets a name to a literal value. */\n def set(name: String, value: String): F[Unit] =\n self.server.execution(self.underlying.set(name, value))\n\n /** Sets a name to what a tmux format expands to now. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes the name from this scope, so it is neither set nor marked. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n\n /** Tells processes started after this not to inherit the name. */\n def remove(name: String): F[Unit] =\n self.server.execution(self.underlying.remove(name))\n }\n\n extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Binds a tmux command to an event at this scope, replacing anything already bound to it. */\n def set(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.set(event, command))\n\n /** As {@link #set(String, String)}, with the command as words rather than a line tmux parses. */\n def set(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.set(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** As {@link #append(String, String)}, with the command as words. */\n def append(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.append(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Binds another command to an event, after whatever is already bound to it. */\n def append(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.append(event, command))\n\n /** Removes everything bound to an event at this scope. */\n def unset(event: String): F[Unit] =\n self.server.execution(self.underlying.unset(event))\n\n /** Runs what is bound to an event now, without waiting for the event. */\n def run(event: String): F[Unit] =\n self.server.execution(self.underlying.run(event))\n\n /** Every hook at this scope, keyed by event, each with its commands in the order tmux runs them. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala.map { case (k, v) => k -> _root_.scala.jdk.CollectionConverters.ListHasAsScala(v).asScala.toVector }))\n }\n\n extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The same bindings, in one named table. */\n def in(table: String): Keys[F] =\n new Keys(self.underlying.in(table), self.server)\n\n /** Binds a key to a tmux command, given as its words. */\n def bind(key: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.bind(key, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Removes a key's binding. */\n def unbind(key: String): F[Unit] =\n self.server.execution(self.underlying.unbind(key))\n\n /** The bindings as tmux lists them, one per line. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The log lines. */\n def lines(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.lines()).asScala.toVector)\n }\n\n extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every option set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** Every option tmux lists at this scope, including inherited built-in values. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Sets one option only if this scope does not already set it. */\n def setIfAbsent(name: String, value: String): F[Boolean] =\n self.server.execution(self.underlying.setIfAbsent(name, value))\n\n /** Adds to the end of a string option, rather than replacing it. */\n def append(name: String, suffix: String): F[Unit] =\n self.server.execution(self.underlying.append(name, suffix))\n\n /** Sets one option to what a tmux format comes to, rather than to the format itself. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes one option at this scope, so it falls back to whatever it inherits. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n }\n\n extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.underlying.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.underlying.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.underlying.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.underlying.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.underlying.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.underlying.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.underlying.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.underlying.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.underlying.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): F[Boolean] =\n self.server.execution(self.underlying.asJava.dead())\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.resize(direction, cells))\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.underlying.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.copyMode())\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): F[Option[io.github.libtmux.PaneMode]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.mode()).toScala)\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.exitMode())\n\n /** Makes this the active pane of its window. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.retitle(title))))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** The window link this pane was reached through. */\n def window: Window[F] =\n self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.window()))\n\n /** This pane's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This pane's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This pane's visible content, one element per line. */\n def capture(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture()).asScala.toVector)\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.noteTyped(text))\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector)\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(spec)).asScala.toVector)\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): F[Unit] =\n self.server.execution(self.underlying.asJava.send(keys))\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLine(command))\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut())))\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.asJava.respawnIn(directory))\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn(command*))\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pipeTo(shellCommand))\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopPiping())\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut(windowName))))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pasteBuffer(name))\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text))\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text, (() => beforePaste())))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): F[Unit] =\n self.server.execution(self.underlying.asJava.clearHistory())\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.swapWith(other.underlying.asJava))\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.joinTo(window.underlying.asJava))\n\n /** Closes this pane. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** What has been typed at the prompt, oldest first. */\n def history(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.history()).asScala.toVector)\n\n /** Forgets what has been typed at the prompt. */\n def clear(): F[Unit] =\n self.server.execution(self.underlying.clear())\n }\n\n extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(name))))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(spec))))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): F[Boolean] =\n self.execution(self.underlying.asJava.hasSession(name))\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): F[Unit] =\n self.execution(self.underlying.asJava.killSession(name))\n\n /** Whether the server is running and answering. */\n def isAlive(): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive())\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): F[Unit] =\n self.execution(self.underlying.asJava.requireAlive())\n\n /** Ends the tmux server and every session on it. */\n def killServer(): F[Unit] =\n self.execution(self.underlying.asJava.killServer())\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit] =\n self.execution(self.underlying.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.execution(self.underlying.asJava.expand(format))\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: Shell[F] =\n new Shell(self.underlying.asJava.shell(), self)\n\n /** The commands this tmux knows. */\n def commands: Commands[F] =\n new Commands(self.underlying.asJava.commands(), self)\n\n /** Locks every client attached to this server. */\n def lock(): F[Unit] =\n self.execution(self.underlying.asJava.lock())\n\n /** The server's message log. */\n def messageLog: MessageLog[F] =\n new MessageLog(self.underlying.asJava.messageLog(), self)\n\n /** The command prompt's history. */\n def prompt: Prompt[F] =\n new Prompt(self.underlying.asJava.prompt(), self)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) }))\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: Keys[F] =\n new Keys(self.underlying.asJava.keys(), self)\n\n /** The server's paste buffers, which every session shares. */\n def buffers: Buffers[F] =\n new Buffers(self.underlying.asJava.buffers(), self)\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): F[Unit] =\n self.execution(self.underlying.asJava.sourceFile(file))\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self)\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: Options[F] =\n new Options(self.underlying.asJava.globalOptions(), self)\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self)\n\n /** The global hooks every session inherits. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self)\n\n /** Which tmux this server is running. */\n def version(): F[io.github.libtmux.TmuxVersion] =\n self.execution(self.underlying.asJava.version())\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.underlying.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.underlying.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(argv*))\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot] =\n self.execution(self.underlying.asJava.snapshot())\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions(expression.asJava)).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Every session, captured now. */\n def sessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(expression.asJava)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every pane on the server. */\n def panes(): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes(expression.asJava)).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(expression.asJava)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(expression.asJava)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(expression.asJava)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.underlying.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(name)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(id)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(id)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(context)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(id)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every attached client. */\n def clients(): F[Vector[Client[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.clients()).asScala.iterator.map(v => self.client(io.github.libtmux.scaladsl.Client.wrap(v))).toVector)\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.attachedSessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.underlying.asJava.toBuilder()\n }\n\n extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.underlying.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.underlying.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.underlying.asJava.attached()\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activeWindow()).toScala.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v)))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.selectWindow(window.underlying.asJava))\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextWindow())\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousWindow())\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.lastWindow())\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachClients())\n\n /** This session's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self.server)\n\n /** This session's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.setHistoryLimit(lines))\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(name))))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(spec))))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.rename(name))))\n\n /** Ends this session. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Runs a shell command for its effect. */\n def run(command: String): F[Unit] =\n self.server.execution(self.underlying.run(command))\n\n /** Runs a shell command and answers with what it printed. */\n def capturing(command: String): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.capturing(command)).asScala.toVector)\n\n /** Runs one tmux command when a shell command succeeds. */\n def choose(condition: String, whenTrue: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue))\n\n /** Runs one tmux command or another, according to whether a shell command succeeds. */\n def choose(condition: String, whenTrue: String, whenFalse: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue, whenFalse))\n }\n\n extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.underlying.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.underlying.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.underlying.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.underlying.asJava.context()\n\n /** The window name. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.underlying.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.underlying.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes this the active window of its session. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** The session this link belongs to. */\n def session: Session[F] =\n self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.session()))\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This window's own options, which every link to it shares. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.rename(name))))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.linkTo(session.underlying.asJava))\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): F[Unit] =\n self.server.execution(self.underlying.asJava.unlink())\n\n /** Moves this window into another session. */\n def moveTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava))\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session[F], index: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava, index))\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.synchronizePanes())\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopSynchronizingPanes())\n\n /** Rotates the panes within this window. */\n def rotate(): F[Unit] =\n self.server.execution(self.underlying.asJava.rotate())\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): F[Unit] =\n self.server.execution(self.underlying.asJava.selectLayout(layout))\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextLayout())\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousLayout())\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.displayPopup(shellCommand))\n\n /** Closes this window. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.refresh())))\n }\n","libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension (self: Client) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): Unit =\n self.asJava.detach()\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): Unit =\n self.asJava.detachOthers()\n\n /** Moves this client to another session. */\n def switchTo(session: Session): Unit =\n self.asJava.switchTo(session.asJava)\n\n /** Asks tmux to redraw this client. */\n def redraw(): Unit =\n self.asJava.redraw()\n\n /** The server this client is connected to. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session()).toScala.map(v => Session.wrap(v))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.fetchAttachment()).toScala\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): Client =\n Client.wrap(self.asJava.refresh())\n }\n\n extension (self: Pane) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): Boolean =\n self.asJava.dead()\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): Unit =\n self.asJava.resize(direction, cells)\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): Unit =\n self.asJava.copyMode()\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): Option[io.github.libtmux.PaneMode] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.mode()).toScala\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): Unit =\n self.asJava.exitMode()\n\n /** Makes this the active pane of its window. */\n def select(): Unit =\n self.asJava.select()\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): Pane =\n Pane.wrap(self.asJava.retitle(title))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** The server this pane lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** Collects commands fenced to the server incarnation that produced this pane. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** The window link this pane was reached through. */\n def window: Window =\n Window.wrap(self.asJava.window())\n\n /** This pane's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This pane's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This pane's visible content, one element per line. */\n def capture(): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture()).asScala.toVector\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): Unit =\n self.asJava.noteTyped(text)\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(spec)).asScala.toVector\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): Unit =\n self.asJava.send(keys)\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): Unit =\n self.asJava.sendLine(command)\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): Window =\n Window.wrap(self.asJava.breakOut())\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): Unit =\n self.asJava.respawnIn(directory)\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): Unit =\n self.asJava.respawn(command*)\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): Unit =\n self.asJava.pipeTo(shellCommand)\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): Unit =\n self.asJava.stopPiping()\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): Window =\n Window.wrap(self.asJava.breakOut(windowName))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): Unit =\n self.asJava.pasteBuffer(name)\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): Unit =\n self.asJava.paste(text)\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): Unit =\n self.asJava.paste(text, (() => beforePaste()))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): Unit =\n self.asJava.clearHistory()\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane): Unit =\n self.asJava.swapWith(other.asJava)\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window): Unit =\n self.asJava.joinTo(window.asJava)\n\n /** Closes this pane. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): Pane =\n Pane.wrap(self.asJava.refresh())\n }\n\n extension (self: Server) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): Session =\n Session.wrap(self.asJava.newSession(name))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session =\n Session.wrap(self.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): Session =\n Session.wrap(self.asJava.newSession(spec))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): Boolean =\n self.asJava.hasSession(name)\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): Unit =\n self.asJava.killSession(name)\n\n /** Whether the server is running and answering. */\n def isAlive(): Boolean =\n self.asJava.isAlive()\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean =\n self.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): Unit =\n self.asJava.requireAlive()\n\n /** Ends the tmux server and every session on it. */\n def killServer(): Unit =\n self.asJava.killServer()\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit =\n self.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Collects several commands to run in one tmux invocation. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** Starts a chain of commands where each one acts on what the last one made. */\n def chain: io.github.libtmux.CommandChain =\n self.asJava.chain()\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: io.github.libtmux.Shell =\n self.asJava.shell()\n\n /** The commands this tmux knows. */\n def commands: io.github.libtmux.Commands =\n self.asJava.commands()\n\n /** Locks every client attached to this server. */\n def lock(): Unit =\n self.asJava.lock()\n\n /** The server's message log. */\n def messageLog: io.github.libtmux.MessageLog =\n self.asJava.messageLog()\n\n /** The command prompt's history. */\n def prompt: io.github.libtmux.Prompt =\n self.asJava.prompt()\n\n /** One of this server's wait-for channels, which is where a signal is sent and waited for. */\n def channel(name: String): io.github.libtmux.Channel =\n self.asJava.channel(name)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) })\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: io.github.libtmux.Keys =\n self.asJava.keys()\n\n /** The server's paste buffers, which every session shares. */\n def buffers: io.github.libtmux.Buffers =\n self.asJava.buffers()\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): Unit =\n self.asJava.sourceFile(file)\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: io.github.libtmux.Options =\n self.asJava.globalOptions()\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** The global hooks every session inherits. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Which tmux this server is running. */\n def version(): io.github.libtmux.TmuxVersion =\n self.asJava.version()\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(argv*)\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): io.github.libtmux.snapshot.ServerSnapshot =\n self.asJava.snapshot()\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions(expression.asJava)).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Every session, captured now. */\n def sessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(expression.asJava)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every pane on the server. */\n def panes(): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes(expression.asJava)).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(expression.asJava)).toScala.map(v => Session.wrap(v))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(expression.asJava)).toScala.map(v => Window.wrap(v))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(expression.asJava)).toScala.map(v => Pane.wrap(v))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(name)).toScala.map(v => Session.wrap(v))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(id)).toScala.map(v => Session.wrap(v))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(id)).toScala.map(v => Pane.wrap(v))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(context)).toScala.map(v => Window.wrap(v))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(id)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every attached client. */\n def clients(): Vector[Client] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.clients()).asScala.iterator.map(v => Client.wrap(v)).toVector\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.attachedSessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.asJava.toBuilder()\n }\n\n extension (self: Session) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.asJava.attached()\n\n /** The server this session lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activeWindow()).toScala.map(v => Window.wrap(v))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window): Unit =\n self.asJava.selectWindow(window.asJava)\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): Unit =\n self.asJava.nextWindow()\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): Unit =\n self.asJava.previousWindow()\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): Unit =\n self.asJava.lastWindow()\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): Unit =\n self.asJava.detachClients()\n\n /** This session's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** This session's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): Unit =\n self.asJava.setHistoryLimit(lines)\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): Window =\n Window.wrap(self.asJava.newWindow(name))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window =\n Window.wrap(self.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): Window =\n Window.wrap(self.asJava.newWindow(spec))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): Session =\n Session.wrap(self.asJava.rename(name))\n\n /** Ends this session. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): Session =\n Session.wrap(self.asJava.refresh())\n }\n\n extension (self: Window) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.asJava.context()\n\n /** The window name. */\n def name: String =\n self.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes this the active window of its session. */\n def select(): Unit =\n self.asJava.select()\n\n /** The server this window lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this link belongs to. */\n def session: Session =\n Session.wrap(self.asJava.session())\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This window's own options, which every link to it shares. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): Window =\n Window.wrap(self.asJava.rename(name))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session): Unit =\n self.asJava.linkTo(session.asJava)\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): Unit =\n self.asJava.unlink()\n\n /** Moves this window into another session. */\n def moveTo(session: Session): Unit =\n self.asJava.moveTo(session.asJava)\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session, index: Int): Unit =\n self.asJava.moveTo(session.asJava, index)\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): Unit =\n self.asJava.synchronizePanes()\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): Unit =\n self.asJava.stopSynchronizingPanes()\n\n /** Rotates the panes within this window. */\n def rotate(): Unit =\n self.asJava.rotate()\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): Unit =\n self.asJava.selectLayout(layout)\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): Unit =\n self.asJava.nextLayout()\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): Unit =\n self.asJava.previousLayout()\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): Unit =\n self.asJava.applyLayout(layout)\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): Unit =\n self.asJava.applyLayout(layout)\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): Unit =\n self.asJava.displayPopup(shellCommand)\n\n /** Closes this window. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): Window =\n Window.wrap(self.asJava.refresh())\n }\n"},"repo":"libtmux/libtmux-java"} +{"port":"scala","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (scala syntax)","symbols":[{"id":"io.github.libtmux.scaladsl.cats.Batch","name":"Batch","kind":"class","signatures":[{"raw":"final class Batch[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"An immutable batch plan. Construction does no tmux I/O and never touches a shared Java object: each `add` returns a new value holding one more argument vector. Each `run`/`length` builds a fresh Java `Batch` from `create` and dispatches it through `Execution`, so it is F-suspended, cancellation-safe, and admission-bounded like every other Cats operation — cancelling one run never disturbs a concurrent one, since neither shares Java state."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch"},{"id":"io.github.libtmux.scaladsl.cats.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def add(argv: Seq[String]): Batch[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"Batch[F]"},{"raw":"def add(command: String, arguments: String*): Batch[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"Batch[F]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-add"},{"id":"io.github.libtmux.scaladsl.cats.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def size: Int","params":[],"returns":"Int"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-size"},{"id":"io.github.libtmux.scaladsl.cats.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def length: F[Int]","params":[],"returns":"F[Int]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-length"},{"id":"io.github.libtmux.scaladsl.cats.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-run"},{"id":"io.github.libtmux.scaladsl.cats.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Channel","name":"Channel","kind":"class","signatures":[{"raw":"final class Channel[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels. `signal` is a real dispatch (tmux's own `wait-for -S`), routed through `Execution#apply` like any other mutation; `await` reserves this server's shared-wait capacity the way every other handwritten `WAIT` operation does, since a Cats caller waiting and the caller releasing it usually share this same bounded transport."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel"},{"id":"io.github.libtmux.scaladsl.cats.Channel.signal","name":"signal","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def signal: F[Unit]","params":[],"returns":"F[Unit]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-signal"},{"id":"io.github.libtmux.scaladsl.cats.Channel.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def await(timeout: FiniteDuration): F[WakeReason]","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"F[WakeReason]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-await"},{"id":"io.github.libtmux.scaladsl.cats.Channel.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-tostring"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"final class CommandChain[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"An immutable plan using tmux's evolving current target. Construction does no tmux I/O; each `run` builds a fresh Java chain from `create` and dispatches it through `Execution`, F-suspended and cancellation-safe like every other Cats operation."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def newWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def renameWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-renamewindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitLeftRight(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splitleftright"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitTopBottom(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splittopbottom"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def sendLine(command: String): CommandChain[F]","params":[{"name":"command","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-sendline"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def arrange(layout: String): CommandChain[F]","params":[{"name":"layout","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Layout validation and its possible version query occur during run."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-arrange"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.`then`","name":"`then`","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def `then`(argv: Seq[String]): CommandChain[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"CommandChain[F]"},{"raw":"def `then`(command: String, arguments: String*): CommandChain[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-then"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-run"},{"id":"io.github.libtmux.scaladsl.cats.Control","name":"Control","kind":"class","signatures":[{"raw":"final class Control[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Control","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Owns an attached Java control client. Canceling an active request can end this attachment and its queued requests and observations. Use separate attachments for commands and observations that must survive that failure."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control"},{"id":"io.github.libtmux.scaladsl.cats.Control.acknowledge","name":"acknowledge","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def acknowledge(\n argv: Seq[String],\n timeout: Duration = Duration.ofSeconds(30)\n ): F[Control.Ack]","params":[{"name":"argv","type":"Seq[String]"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Reads one raw reply without claiming deferred command completion. Cancellation does not prove that tmux rolled back a dispatched command. The timeout starts after Scala admission; an effect timeout can bound the whole call."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-acknowledge"},{"id":"io.github.libtmux.scaladsl.cats.Control.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def isAlive: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether this attachment's process is still running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardError","name":"standardError","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardError: F[String]","params":[],"returns":"F[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Error text from this control process, at most 4096 bytes."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderror"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardErrorTruncated: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether `standardError` stopped before the process finished writing."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderrortruncated"},{"id":"io.github.libtmux.scaladsl.cats.Control.watch","name":"watch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def watch(name: String, target: String, format: String): F[Control.Ack]","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Asks tmux to report `format` when it changes. A target that does not name a pane or window watches the attached session."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-watch"},{"id":"io.github.libtmux.scaladsl.cats.Control.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def unwatch(name: String): F[Control.Ack]","params":[{"name":"name","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Removes a watch registered under `name`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-unwatch"},{"id":"io.github.libtmux.scaladsl.cats.Control.output","name":"output","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def output(capacity: Int): Resource[F, Observation[F, PaneOutput]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, PaneOutput]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers decoded text output before the returned resource body runs. Terminal bytes and character boundaries are not preserved by Java."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-output"},{"id":"io.github.libtmux.scaladsl.cats.Control.events","name":"events","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def events(capacity: Int): Resource[F, Observation[F, ControlEvent]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, ControlEvent]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers Java's typed notifications, including unknown event kinds."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-events"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack","name":"Ack","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"final class Ack","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Retains tmux's raw reply framing and line shape."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.unsafeJava","name":"unsafeJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def unsafeJava: ControlReply","params":[],"returns":"ControlReply"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-unsafejava"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.accepted","name":"accepted","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def accepted: Boolean","params":[],"returns":"Boolean"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"True for a %end reply. Deferred tmux work can still be running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-accepted"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.lines","name":"lines","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"val lines: Vector[String]","params":[],"returns":"Vector[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-lines"},{"id":"io.github.libtmux.scaladsl.cats.Control.attachUnfenced","name":"attachUnfenced","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attachUnfenced[F[_]: Async](\n config: ServerConfig,\n session: SessionId,\n timeout: Duration = Duration.ofSeconds(30),\n maxConcurrentCalls: Int = 4\n ): Resource[F, Control[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Attaches lazily to whatever server now answers this endpoint, without an incarnation guard; prefer attaching a captured session. Bounds simultaneous acknowledgement calls. Release stops their owned work before detaching the client and preserves the tmux daemon."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attachunfenced"},{"id":"io.github.libtmux.scaladsl.cats.Control.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attach[F[_]: Async](session: Session[F]): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: Session[F],\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: direct.Session,\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"direct.Session"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":["overload"],"doc":{"summary":"Attaches to the process the captured session named."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attach"},{"id":"io.github.libtmux.scaladsl.cats.Session","name":"Session","kind":"class","signatures":[{"raw":"final class Session[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux session whose operations run in the effect type `F`.","body":"Use [[server]] for the connection that owns this handle and [[asJava]] for\nJava interoperability. Captured properties stay unchanged until an explicit\nrefresh returns a new handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session"},{"id":"io.github.libtmux.scaladsl.cats.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Session","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-server"},{"id":"io.github.libtmux.scaladsl.cats.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-equals"},{"id":"io.github.libtmux.scaladsl.cats.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"def asJava: io.github.libtmux.Session","params":[],"returns":"io.github.libtmux.Session"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Window","name":"Window","kind":"class","signatures":[{"raw":"final class Window[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux window at a specific session position, with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window"},{"id":"io.github.libtmux.scaladsl.cats.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Window","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-server"},{"id":"io.github.libtmux.scaladsl.cats.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-equals"},{"id":"io.github.libtmux.scaladsl.cats.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"def asJava: io.github.libtmux.Window","params":[],"returns":"io.github.libtmux.Window"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Pane","name":"Pane","kind":"class","signatures":[{"raw":"final class Pane[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Pane","params":[]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux pane with input, output, and layout operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane"},{"id":"io.github.libtmux.scaladsl.cats.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Pane","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-server"},{"id":"io.github.libtmux.scaladsl.cats.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-equals"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"def asJava: io.github.libtmux.Pane","params":[],"returns":"io.github.libtmux.Pane"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Client","name":"Client","kind":"class","signatures":[{"raw":"final class Client[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An attached tmux client with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client"},{"id":"io.github.libtmux.scaladsl.cats.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Client","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-server"},{"id":"io.github.libtmux.scaladsl.cats.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-equals"},{"id":"io.github.libtmux.scaladsl.cats.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"def asJava: io.github.libtmux.Client","params":[],"returns":"io.github.libtmux.Client"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":182,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Instances","name":"Instances","kind":"module","signatures":[{"raw":"object Instances","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"Instances derived from Java's `equals`/`hashCode`/`toString`, and from `TmuxVersion`'s own `Comparable` — the one handle-adjacent type that actually has a natural order. None of `Server`, `Session`, `Window`, `Pane` or `Client` implements `Comparable` in Java, and none has a domain-meaningful order (a pane's tmux index is not identity, and two panes can share an index across different windows), so those get `Eq`/`Show`/`Hash` only — never a manufactured `Order` that invites `.sorted`/`SortedSet` producing an ordering nobody asked for."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.serverInstances","name":"serverInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given serverInstances\n : (Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])","params":[],"returns":"(Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-serverinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directSessionInstances","name":"directSessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directSessionInstances\n : (Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])","params":[],"returns":"(Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directsessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directWindowInstances","name":"directWindowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directWindowInstances\n : (Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])","params":[],"returns":"(Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directwindowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directPaneInstances","name":"directPaneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directPaneInstances\n : (Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])","params":[],"returns":"(Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directpaneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directClientInstances","name":"directClientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directClientInstances\n : (Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])","params":[],"returns":"(Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directclientinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneIdInstances","name":"paneIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneIdInstances: (Eq[PaneId] & Hash[PaneId] & Show[PaneId])","params":[],"returns":"(Eq[PaneId] & Hash[PaneId] & Show[PaneId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionIdInstances","name":"sessionIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionIdInstances\n : (Eq[SessionId] & Hash[SessionId] & Show[SessionId])","params":[],"returns":"(Eq[SessionId] & Hash[SessionId] & Show[SessionId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessionidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowIdInstances","name":"windowIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowIdInstances: (Eq[WindowId] & Hash[WindowId] & Show[WindowId])","params":[],"returns":"(Eq[WindowId] & Hash[WindowId] & Show[WindowId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.tmuxVersionInstances","name":"tmuxVersionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given tmuxVersionInstances: (Order[TmuxVersion] & Show[TmuxVersion])","params":[],"returns":"(Order[TmuxVersion] & Show[TmuxVersion])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"`TmuxVersion` already defines a natural order in Java (`implements Comparable`); this is a direct projection of it, not a manufactured one."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-tmuxversioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionInstances","name":"sessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionInstances[F[_]]\n : (Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","params":[],"returns":"(Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowInstances","name":"windowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowInstances[F[_]]\n : (Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","params":[],"returns":"(Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneInstances","name":"paneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneInstances[F[_]]: (Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","params":[],"returns":"(Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.clientInstances","name":"clientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given clientInstances[F[_]]\n : (Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","params":[],"returns":"(Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-clientinstances"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer","name":"LiveServer","kind":"class","signatures":[{"raw":"final class LiveServer[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object LiveServer","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Observe a tmux server through a continuously updated [[signal]].","body":"[[LiveServer.attach]] returns a `Resource` that closes the Java\n[[io.github.libtmux.snapshot.ServerMirror ServerMirror]] when released. Read\n[[failure]] to distinguish a quiet server from a stopped poller."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.signal","name":"signal","kind":"property","parent":"io.github.libtmux.scaladsl.cats.LiveServer","imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"signatures":[{"raw":"val signal: Signal[F, JavaServerMirror.View]","params":[],"returns":"Signal[F, JavaServerMirror.View]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-signal"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.failure","name":"failure","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def failure(implicit F: _root_.cats.Functor[F]): F[Option[Throwable]]","params":[{"name":"F","type":"_root_.cats.Functor[F]"}],"returns":"F[Option[Throwable]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"`None` while still live; `Some(cause)` once the background poller has died. Never blocks."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-failure"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def attach[F[_]](\n anchor: Session[F]\n )(implicit F: Async[F]): Resource[F, LiveServer[F]]","params":[{"name":"anchor","type":"Session[F]"},{"name":"F","type":"Async[F]"}],"returns":"Resource[F, LiveServer[F]]","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement. The session is a required parameter: there is no arbitrary pick left to make, and a session that later disappears is `ServerMirror`'s own reconnect-or-`TargetGoneException` policy, surfaced through [[LiveServer#failure]] like any other cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-attach"},{"id":"io.github.libtmux.scaladsl.cats.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[F[_], A]","params":[],"typeParams":["F","A"],"typeParameters":[{"name":"F"},{"name":"A"}]},{"raw":"object Observation","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Pulls a bounded Java subscription with one active stream consumer. A full buffer yields a `Delivery.Gap` in this stream before the events that remain. FS2 demand does not provide tmux backpressure. A subscription does not reconnect: attach again and read a snapshot.","body":"The stream itself suspends the *fiber*, not a platform thread, while idle:\n[[io.github.libtmux.control.EventSubscription EventSubscription]] is already\nsingle-consumer by construction at the Java layer, with a non-blocking\n[[io.github.libtmux.control.EventSubscription#poll poll]] plus a one-shot\n[[io.github.libtmux.control.EventSubscription#onReady onReady]] wakeup. Each\nwait polls first — if something is already buffered, nothing suspends at all\n— and only then arms `onReady`, disarming it with\n[[io.github.libtmux.control.EventSubscription#clearReady clearReady]] if the\nfiber is cancelled first. No `ExecutionContext` sized for blocking stream\nreads is needed, because no read here ever blocks a thread."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation"},{"id":"io.github.libtmux.scaladsl.cats.Observation.stream","name":"stream","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def stream: Stream[F, Delivery[A]]","params":[],"returns":"Stream[F, Delivery[A]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reads on `F`'s own fiber scheduler. Cancelling the stream releases its consumer slot and disarms any pending wakeup; releasing the observation discards its buffered events. Deliberate closure ends the stream. A client that ended the subscription fails it with that cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-stream"},{"id":"io.github.libtmux.scaladsl.cats.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def droppedCount: F[Long]","params":[],"returns":"F[Long]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A `Delivery.Gap` in [[stream]] says where it sits."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.cats.Observation.isClosed","name":"isClosed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def isClosed: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reports subscription closure, including after resource finalization."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-isclosed"},{"id":"io.github.libtmux.scaladsl.cats.Observation.value","name":"value","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def value[A](delivery: Delivery[A]): Option[A]","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"Option[A]","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The value inside an event delivery, and none for a gap."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-value"},{"id":"io.github.libtmux.scaladsl.cats.Observation.kept","name":"kept","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def kept[A](delivery: Delivery[A]): A","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-kept"},{"id":"io.github.libtmux.scaladsl.cats.Observation.UnknownCause","name":"UnknownCause","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"final class UnknownCause \n extends IllegalStateException(\n \"control observation ended without a deliberate Scala close; Java exposes no cause\"\n )","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Java ended the subscription without exposing the reason."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-unknowncause"},{"id":"io.github.libtmux.scaladsl.cats.Server","name":"Server","kind":"class","signatures":[{"raw":"final class Server[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Server","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"A tmux server whose operations run in the effect type `F`.","body":"Acquire it with [[Server.resource]], or borrow a Java client with\n[[Server.fromJava]]. Releasing the `Resource` cancels this scope's\noperations and closes an owned client. Cancellation does not roll back\ncommands already sent to tmux, and closing the client does not stop the tmux\nserver.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server"},{"id":"io.github.libtmux.scaladsl.cats.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Server.resource","name":"resource","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def resource[F[_]: Async](\n config: ServerConfig,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Owns a Java client, with one to four simultaneous facade calls. Release cancels queued and running operations before closing the client.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-resource"},{"id":"io.github.libtmux.scaladsl.cats.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def fromJava[F[_]: Async](\n java: JavaServer,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"java","type":"JavaServer"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows Java without closing it. The bound covers this facade only; transport capacity and interruption remain the owner's responsibility.","body":"`direct.Server` is opaque, so a borrowed handle and an owned one are the\nsame runtime object. Release here tears down only this scope's own\n`Execution` (its semaphores and supervised fibers); it never calls\n`close()` on the borrowed handle, which is `resource`'s job alone."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-fromjava"},{"id":"io.github.libtmux.scaladsl.cats.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"final class Hooks[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update tmux hooks through the owning [[server]].","body":"Operations run in the effect type `F`. Use [[asJava]] to access the Java\nhook API directly."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Hooks","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-server"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-equals"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"def asJava: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Options","name":"Options","kind":"class","signatures":[{"raw":"final class Options[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Options","params":[]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update options on the server, session, window, or pane that owns this handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options"},{"id":"io.github.libtmux.scaladsl.cats.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Options","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-server"},{"id":"io.github.libtmux.scaladsl.cats.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-equals"},{"id":"io.github.libtmux.scaladsl.cats.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Options.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"def asJava: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Shell","name":"Shell","kind":"class","signatures":[{"raw":"final class Shell[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Run shell commands through tmux in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell"},{"id":"io.github.libtmux.scaladsl.cats.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Shell","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-server"},{"id":"io.github.libtmux.scaladsl.cats.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-equals"},{"id":"io.github.libtmux.scaladsl.cats.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Shell.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"def asJava: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Commands","name":"Commands","kind":"class","signatures":[{"raw":"final class Commands[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Inspect the commands supported by the selected tmux executable."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands"},{"id":"io.github.libtmux.scaladsl.cats.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Commands","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-server"},{"id":"io.github.libtmux.scaladsl.cats.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-equals"},{"id":"io.github.libtmux.scaladsl.cats.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Commands.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"def asJava: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"final class Buffers[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read, create, and remove the server's paste buffers."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Buffers","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-server"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-equals"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"def asJava: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Environment","name":"Environment","kind":"class","signatures":[{"raw":"final class Environment[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update environment variables for processes started by tmux."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment"},{"id":"io.github.libtmux.scaladsl.cats.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Environment","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-server"},{"id":"io.github.libtmux.scaladsl.cats.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-equals"},{"id":"io.github.libtmux.scaladsl.cats.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Environment.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"def asJava: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-asjava"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"final class MessageLog[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read messages recorded by the tmux server."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.MessageLog","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-server"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-equals"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-tostring"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"def asJava: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"final class Prompt[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and clear the server's command-prompt history."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Prompt","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-server"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-equals"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":172,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"def asJava: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Keys","name":"Keys","kind":"class","signatures":[{"raw":"final class Keys[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update bindings in tmux key tables."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys"},{"id":"io.github.libtmux.scaladsl.cats.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Keys","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-server"},{"id":"io.github.libtmux.scaladsl.cats.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-equals"},{"id":"io.github.libtmux.scaladsl.cats.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Keys.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"def asJava: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-asjava"},{"id":"io.github.libtmux.scaladsl.ox.Flows","name":"Flows","kind":"module","signatures":[{"raw":"object Flows","params":[]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"An Ox `Flow` over a subscription or a live view, for a supervised scope. Ox adds no new handle type (`io.github.libtmux.scaladsl`'s opaque handles work unchanged inside a `fork`); what it needs from this project is the same single-owner discipline the direct-style `Observation` and `LiveView` already give a blocking caller, expressed as a cold `Flow` instead of an `Iterator`."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows"},{"id":"io.github.libtmux.scaladsl.ox.Flows.subscription","name":"subscription","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def subscription[T](sub: EventSubscription[T]): Flow[Delivery[T]]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Flow[Delivery[T]]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"One `Flow` element per step: an event this subscription kept, or a gap naming what was lost. Collecting the flow takes the subscription for good, through the Java subscription's own single-reader claim, and closes it when the collection ends. A second collection is refused as it starts, before it can disturb the first. The flow fails with the control client's cause if the client ended the subscription."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-subscription"},{"id":"io.github.libtmux.scaladsl.ox.Flows.liveView","name":"liveView","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def liveView(view: LiveView): Flow[ServerMirror.View]","params":[{"name":"view","type":"LiveView"}],"returns":"Flow[ServerMirror.View]"}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The current view when the flow starts, then every newer one, one per notification. Completes when the view is closed, and fails with its cause when the anchor session or server has gone."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-liveview"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields","name":"PaneFields","kind":"module","signatures":[{"raw":"object PaneFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured pane objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-id"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-command"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-index"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-active"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-title"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-path"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-width"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-height"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-left"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-top"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-attop"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atbottom"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atleft"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atright"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields","name":"SessionFields","kind":"module","signatures":[{"raw":"object SessionFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured session objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-id"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-name"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-attached"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windowcount"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windows"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields","name":"WindowFields","kind":"module","signatures":[{"raw":"object WindowFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured window objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-id"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-name"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-index"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-active"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-linked"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-width"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-height"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panecount"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panes"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-session"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields","name":"ClientFields","kind":"module","signatures":[{"raw":"object ClientFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured client objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-name"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-session"},{"id":"io.github.libtmux.scaladsl.Client","name":"Client","kind":"typealias","signatures":[{"raw":"opaque type Client = JavaClient","params":[]},{"raw":"object Client","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["opaque"],"doc":{"summary":"A captured attached client, opaque over the Java handle. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client"},{"id":"io.github.libtmux.scaladsl.Client.given_CanEqual_Client_Client","name":"given_CanEqual_Client_Client","kind":"constant","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"given CanEqual[Client, Client]","params":[],"returns":"CanEqual[Client, Client]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-given_canequal_client_client"},{"id":"io.github.libtmux.scaladsl.Pane","name":"Pane","kind":"typealias","signatures":[{"raw":"opaque type Pane = JavaPane","params":[]},{"raw":"object Pane","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["opaque"],"doc":{"summary":"A captured pane occurrence, opaque over the Java handle. Java equality identifies the physical pane; every operation beyond that is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane"},{"id":"io.github.libtmux.scaladsl.Pane.given_CanEqual_Pane_Pane","name":"given_CanEqual_Pane_Pane","kind":"constant","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"given CanEqual[Pane, Pane]","params":[],"returns":"CanEqual[Pane, Pane]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-given_canequal_pane_pane"},{"id":"io.github.libtmux.scaladsl.Server","name":"Server","kind":"typealias","signatures":[{"raw":"opaque type Server <: AutoCloseable = JavaServer","params":[]},{"raw":"object Server","params":[]}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["opaque"],"doc":{"summary":"The Java client, opaque: every member beyond [[java.lang.AutoCloseable#close]] is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`. Closing an owned client releases its transport, not tmux; `close()` comes from the `AutoCloseable` bound with no forwarding of its own, so `Using.resource(server) { ... }` works.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-server"},{"id":"io.github.libtmux.scaladsl.Server.open","name":"open","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def open(config: ServerConfig): Server","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Opens an owned client for `config`.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-open"},{"id":"io.github.libtmux.scaladsl.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def fromJava(java: JavaServer): Server","params":[{"name":"java","type":"JavaServer"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows a Java client this facade did not open; closing it closes that client too."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-fromjava"},{"id":"io.github.libtmux.scaladsl.Server.given_CanEqual_Server_Server","name":"given_CanEqual_Server_Server","kind":"constant","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"given CanEqual[Server, Server]","params":[],"returns":"CanEqual[Server, Server]"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-given_canequal_server_server"},{"id":"io.github.libtmux.scaladsl.Session","name":"Session","kind":"typealias","signatures":[{"raw":"opaque type Session = JavaSession","params":[]},{"raw":"object Session","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":["opaque"],"doc":{"summary":"A captured session, opaque over the Java handle; every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session"},{"id":"io.github.libtmux.scaladsl.Session.given_CanEqual_Session_Session","name":"given_CanEqual_Session_Session","kind":"constant","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"given CanEqual[Session, Session]","params":[],"returns":"CanEqual[Session, Session]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-given_canequal_session_session"},{"id":"io.github.libtmux.scaladsl.Window","name":"Window","kind":"typealias","signatures":[{"raw":"opaque type Window = JavaWindow","params":[]},{"raw":"object Window","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":["opaque"],"doc":{"summary":"One captured window placement, opaque over the Java handle. Equality includes its session and index, since a window linked into more than one session has more than one placement. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window"},{"id":"io.github.libtmux.scaladsl.Window.given_CanEqual_Window_Window","name":"given_CanEqual_Window_Window","kind":"constant","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"given CanEqual[Window, Window]","params":[],"returns":"CanEqual[Window, Window]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-given_canequal_window_window"},{"id":"io.github.libtmux.scaladsl.live.LiveView","name":"LiveView","kind":"typealias","signatures":[{"raw":"opaque type LiveView <: AutoCloseable = JavaServerMirror","params":[]},{"raw":"object LiveView","params":[]}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["opaque"],"doc":{"summary":"A live view of one tmux server's sessions, windows, panes and clients, opaque over Java's own [[io.github.libtmux.snapshot.ServerMirror ServerMirror]] — re-snapshotting on notification, on a gap and on reconnect is entirely Java's job; this only wraps it, rather than re-deriving resnapshot-on-notification from a raw control subscription. `close()` comes from the `AutoCloseable` bound with no forwarding of its own."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview"},{"id":"io.github.libtmux.scaladsl.live.LiveView.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"def attach(anchor: Session): LiveView","params":[{"name":"anchor","type":"Session"}],"returns":"LiveView"},{"raw":"def attach(anchor: Session, refreshEvery: Duration): LiveView","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration"}],"returns":"LiveView"}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["overload"],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-attach"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError","name":"CardinalityError","kind":"enum","signatures":[{"raw":"enum CardinalityError derives CanEqual","params":[]},{"raw":"object CardinalityError","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"Mirrors [[io.github.libtmux.exception.CardinalityException CardinalityException]]'s two leaves losslessly, including the match count Java's own `MultipleMatches.atLeast()` carries — dropping it would be exactly the hand-authored lossy projection this facade's opaque handles exist to make impossible everywhere else."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.NoMatch","name":"NoMatch","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"NoMatch","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-nomatch"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.MultipleMatches","name":"MultipleMatches","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"MultipleMatches(atLeast: Int)","params":[{"name":"atLeast","type":"Int"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-multiplematches"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.from","name":"from","kind":"method","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"def from(e: CardinalityException): CardinalityError","params":[{"name":"e","type":"CardinalityException"}],"returns":"CardinalityError"}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-from"},{"id":"io.github.libtmux.scaladsl.query.Expr","name":"Expr","kind":"typealias","signatures":[{"raw":"opaque type Expr[T] = JavaFilterExpr[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Expr","params":[]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":["opaque"],"doc":{"summary":"A filter over `T`, both runnable and readable, opaque over Java's own `FilterExpr[T]` — lossless by construction, the same reasoning [[io.github.libtmux.scaladsl.Pane]] and its siblings rest on. `T` is the raw Java handle type a Java field metamodel (`Pane_`, `Session_`, ...) is built over, not this facade's opaque one: a query is a Java-shaped value that this facade's own `.matching` extensions apply to captured Scala handles."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-zfkn"},{"id":"io.github.libtmux.scaladsl.query.Expr.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"def apply[T](java: JavaFilterExpr[T]): Expr[T]","params":[{"name":"java","type":"JavaFilterExpr[T]"}],"returns":"Expr[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Wraps an existing Java expression, such as one a typed field method already produced."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-apply"},{"id":"io.github.libtmux.scaladsl.query.Fields","name":"Fields","kind":"module","signatures":[{"raw":"object Fields","params":[]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"doc":{"summary":"Typed field handles, wrapping Java's `io.github.libtmux.query.Fields` records so every operator returns this facade's [[Expr]] rather than a raw Java `FilterExpr`. An extension cannot reshape these methods' return type on the Java records directly — same-named would silently lose to the Java member, exactly the trap `-Werror` exists to catch — so each kind gets its own small Scala class instead, one line per operator, forwarding to the Java one underneath."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField","name":"TextField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class TextField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def is(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def isNot(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def contains(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-contains"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def startsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-startswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def endsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-endswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def matches(value: Pattern): Expr[T]","params":[{"name":"value","type":"Pattern"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-matches"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def in(values: Iterable[String]): Expr[T]","params":[{"name":"values","type":"Iterable[String]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-in"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField","name":"NumberField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class NumberField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def is(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def isNot(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def lessThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-lessthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atMost(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atmost"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def greaterThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atLeast(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atleast"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField","name":"FlagField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class FlagField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def is(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isNot(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isTrue: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-istrue"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isFalse: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isfalse"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","name":"ToOneRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToOneRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","signatures":[{"raw":"def is(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","name":"ToManyRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToManyRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.any","name":"any","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def any(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-any"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def all(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-all"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.none","name":"none","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def none(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-none"},{"id":"io.github.libtmux.scaladsl.streaming.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[T] \n extends AutoCloseable","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Observation","params":[]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"A single-consumer guard over one Java subscription, for direct-style reading.","body":"`EventSubscription` is already single-consumer by construction at the Java\nlayer — a second concurrent read is refused — but that guard is scoped to\none call; nothing stopped two direct `Iterator`s built from the same\nsubscription from interleaving reads across calls. This adds the same\nscoped-CAS discipline the Cats module's own `Observation` already had, so a\n`read` call is the unit of exclusive ownership here too, released when it\nreturns so a later sequential `read` stays legal."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.read","name":"read","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def read[A](pollTimeout: Duration)(use: Iterator[Delivery[T]] => A): A","params":[{"name":"pollTimeout","type":"Duration"},{"name":"use","type":"Iterator[Delivery[T]] => A"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}],"raises":[{"type":"java.lang.IllegalStateException","doc":"if another `read` on this observation is already in progress"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Runs `use` over every step waiting or arriving within `pollTimeout` per poll, until the subscription closes. Rejects a second, overlapping `read` on this observation."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-read"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def droppedCount: Long","params":[],"returns":"Long"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A [[io.github.libtmux.control.Delivery$Gap Delivery.Gap]] read by [[read]] says where it sits."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.close","name":"close","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def close(): Unit","params":[],"returns":"Unit"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-close"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def apply[T](sub: EventSubscription[T]): Observation[T]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Observation[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-apply"},{"id":"io.github.libtmux.scaladsl.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"},{"raw":"extension (self: Client)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.name","product":"core","slug":"io-github-libtmux-scaladsl-client-name"},{"id":"io.github.libtmux.scaladsl.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"},{"raw":"extension (self: Client)\ndef session: Option[Session]","params":[],"returns":"Option[Session]","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.session","product":"core","slug":"io-github-libtmux-scaladsl-client-session"},{"id":"io.github.libtmux.scaladsl.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.id","product":"core","slug":"io-github-libtmux-scaladsl-pane-id"},{"id":"io.github.libtmux.scaladsl.Pane.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.command","product":"core","slug":"io-github-libtmux-scaladsl-pane-command"},{"id":"io.github.libtmux.scaladsl.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"},{"raw":"extension (self: Pane)\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.index","product":"core","slug":"io-github-libtmux-scaladsl-pane-index"},{"id":"io.github.libtmux.scaladsl.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"},{"raw":"extension (self: Pane)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.active","product":"core","slug":"io-github-libtmux-scaladsl-pane-active"},{"id":"io.github.libtmux.scaladsl.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.title","product":"core","slug":"io-github-libtmux-scaladsl-pane-title"},{"id":"io.github.libtmux.scaladsl.Pane.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.path","product":"core","slug":"io-github-libtmux-scaladsl-pane-path"},{"id":"io.github.libtmux.scaladsl.Pane.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.width","product":"core","slug":"io-github-libtmux-scaladsl-pane-width"},{"id":"io.github.libtmux.scaladsl.Pane.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.height","product":"core","slug":"io-github-libtmux-scaladsl-pane-height"},{"id":"io.github.libtmux.scaladsl.Pane.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.left","product":"core","slug":"io-github-libtmux-scaladsl-pane-left"},{"id":"io.github.libtmux.scaladsl.Pane.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.top","product":"core","slug":"io-github-libtmux-scaladsl-pane-top"},{"id":"io.github.libtmux.scaladsl.Pane.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","product":"core","slug":"io-github-libtmux-scaladsl-pane-attop"},{"id":"io.github.libtmux.scaladsl.Pane.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","product":"core","slug":"io-github-libtmux-scaladsl-pane-atbottom"},{"id":"io.github.libtmux.scaladsl.Pane.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","product":"core","slug":"io-github-libtmux-scaladsl-pane-atleft"},{"id":"io.github.libtmux.scaladsl.Pane.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","product":"core","slug":"io-github-libtmux-scaladsl-pane-atright"},{"id":"io.github.libtmux.scaladsl.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.id","product":"core","slug":"io-github-libtmux-scaladsl-session-id"},{"id":"io.github.libtmux.scaladsl.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.name","product":"core","slug":"io-github-libtmux-scaladsl-session-name"},{"id":"io.github.libtmux.scaladsl.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"},{"raw":"extension (self: Session)\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.attached","product":"core","slug":"io-github-libtmux-scaladsl-session-attached"},{"id":"io.github.libtmux.scaladsl.Session.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","product":"core","slug":"io-github-libtmux-scaladsl-session-windowcount"},{"id":"io.github.libtmux.scaladsl.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"},{"raw":"extension (self: Session)\ndef windows: Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This session's windows.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windows","product":"core","slug":"io-github-libtmux-scaladsl-session-windows"},{"id":"io.github.libtmux.scaladsl.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.id","product":"core","slug":"io-github-libtmux-scaladsl-window-id"},{"id":"io.github.libtmux.scaladsl.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.name","product":"core","slug":"io-github-libtmux-scaladsl-window-name"},{"id":"io.github.libtmux.scaladsl.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"},{"raw":"extension (self: Window)\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.index","product":"core","slug":"io-github-libtmux-scaladsl-window-index"},{"id":"io.github.libtmux.scaladsl.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.active","product":"core","slug":"io-github-libtmux-scaladsl-window-active"},{"id":"io.github.libtmux.scaladsl.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.linked","product":"core","slug":"io-github-libtmux-scaladsl-window-linked"},{"id":"io.github.libtmux.scaladsl.Window.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.width","product":"core","slug":"io-github-libtmux-scaladsl-window-width"},{"id":"io.github.libtmux.scaladsl.Window.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.height","product":"core","slug":"io-github-libtmux-scaladsl-window-height"},{"id":"io.github.libtmux.scaladsl.Window.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","product":"core","slug":"io-github-libtmux-scaladsl-window-panecount"},{"id":"io.github.libtmux.scaladsl.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"},{"raw":"extension (self: Window)\ndef panes: Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This link's panes.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.panes","product":"core","slug":"io-github-libtmux-scaladsl-window-panes"},{"id":"io.github.libtmux.scaladsl.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"},{"raw":"extension (self: Window)\ndef session: Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.session","product":"core","slug":"io-github-libtmux-scaladsl-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[io.github.libtmux.BufferInfo]]","params":[],"returns":"F[Vector[io.github.libtmux.BufferInfo]]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-list"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, contents: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-set"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef show(name: String): F[String]","params":[{"name":"name","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-show"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef delete(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-delete"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef save(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-save"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef load(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-load"},{"id":"io.github.libtmux.scaladsl.cats.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-name"},{"id":"io.github.libtmux.scaladsl.cats.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detach(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detach"},{"id":"io.github.libtmux.scaladsl.cats.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detachOthers(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detachothers"},{"id":"io.github.libtmux.scaladsl.cats.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef switchTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-switchto"},{"id":"io.github.libtmux.scaladsl.cats.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef redraw(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-redraw"},{"id":"io.github.libtmux.scaladsl.cats.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef session: Option[Session[F]]","params":[],"returns":"Option[Session[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-session"},{"id":"io.github.libtmux.scaladsl.cats.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-attachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]]","params":[],"returns":"F[Option[io.github.libtmux.ClientAttachment]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Client[F]]","params":[],"returns":"F[Client[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Commands[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-list"},{"id":"io.github.libtmux.scaladsl.cats.Environment.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-get"},{"id":"io.github.libtmux.scaladsl.cats.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef isRemoved(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-isremoved"},{"id":"io.github.libtmux.scaladsl.cats.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-all"},{"id":"io.github.libtmux.scaladsl.cats.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-effective"},{"id":"io.github.libtmux.scaladsl.cats.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef removed(): F[Set[String]]","params":[],"returns":"F[Set[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-removed"},{"id":"io.github.libtmux.scaladsl.cats.Environment.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-set"},{"id":"io.github.libtmux.scaladsl.cats.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-unset"},{"id":"io.github.libtmux.scaladsl.cats.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef remove(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-remove"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-set"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-append"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef unset(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-unset"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef run(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-run"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-all"},{"id":"io.github.libtmux.scaladsl.cats.Keys.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef in(table: String): Keys[F]","params":[{"name":"table","type":"String"}],"returns":"Keys[F]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-in"},{"id":"io.github.libtmux.scaladsl.cats.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef bind(key: String, command: Vector[String]): F[Unit]","params":[{"name":"key","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-bind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef unbind(key: String): F[Unit]","params":[{"name":"key","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-unbind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-list"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F])\ndef lines(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"MessageLog[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-lines"},{"id":"io.github.libtmux.scaladsl.cats.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-all"},{"id":"io.github.libtmux.scaladsl.cats.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-effective"},{"id":"io.github.libtmux.scaladsl.cats.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setIfAbsent(name: String, value: String): F[Boolean]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setifabsent"},{"id":"io.github.libtmux.scaladsl.cats.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef append(name: String, suffix: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-append"},{"id":"io.github.libtmux.scaladsl.cats.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-unset"},{"id":"io.github.libtmux.scaladsl.cats.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":204,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-info"},{"id":"io.github.libtmux.scaladsl.cats.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":208,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-id"},{"id":"io.github.libtmux.scaladsl.cats.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-index"},{"id":"io.github.libtmux.scaladsl.cats.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-active"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-floating"},{"id":"io.github.libtmux.scaladsl.cats.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-size"},{"id":"io.github.libtmux.scaladsl.cats.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":232,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-position"},{"id":"io.github.libtmux.scaladsl.cats.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-title"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pid"},{"id":"io.github.libtmux.scaladsl.cats.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef dead(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-dead"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit]","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":257,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resize"},{"id":"io.github.libtmux.scaladsl.cats.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-edges"},{"id":"io.github.libtmux.scaladsl.cats.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef copyMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-copymode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef mode(): F[Option[io.github.libtmux.PaneMode]]","params":[],"returns":"F[Option[io.github.libtmux.PaneMode]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-mode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef exitMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":273,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-select"},{"id":"io.github.libtmux.scaladsl.cats.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef retitle(title: String): F[Pane[F]]","params":[{"name":"title","type":"String"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-retitle"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef window: Window[F]","params":[],"returns":"Window[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":289,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-window"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-options"},{"id":"io.github.libtmux.scaladsl.cats.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-capture"},{"id":"io.github.libtmux.scaladsl.cats.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef noteTyped(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.cats.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef send(keys: String): F[Unit]","params":[{"name":"keys","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":318,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-send"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":330,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLine(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":338,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendline"},{"id":"io.github.libtmux.scaladsl.cats.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(windowName: String): F[Window[F]]","params":[{"name":"windowName","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":342,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-breakout"},{"id":"io.github.libtmux.scaladsl.cats.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-expand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-variables"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(command: String*): F[Unit]","params":[{"name":"command","type":"String*"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":354,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawnIn(directory: java.nio.file.Path): F[Unit]","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pipeTo(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":367,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef stopPiping(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":371,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.cats.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":379,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-split"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pasteBuffer(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":391,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.cats.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String, beforePaste: () => Unit): F[Unit]","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-paste"},{"id":"io.github.libtmux.scaladsl.cats.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef clearHistory(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":403,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.cats.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef swapWith(other: Pane[F]): F[Unit]","params":[{"name":"other","type":"Pane[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":407,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.cats.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef joinTo(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-jointo"},{"id":"io.github.libtmux.scaladsl.cats.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-kill"},{"id":"io.github.libtmux.scaladsl.cats.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef history(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":426,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-history"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef clear(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-clear"},{"id":"io.github.libtmux.scaladsl.cats.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]]","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]]","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewSession.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a session running cat. */\nobject NewSession extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build()\n )\n _ <- IO.println(s\"created=${session.name}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":437,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-newsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hasSession(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":449,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hassession"},{"id":"io.github.libtmux.scaladsl.cats.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killSession(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":453,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef requireAlive(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":465,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-requirealive"},{"id":"io.github.libtmux.scaladsl.cats.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":469,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killserver"},{"id":"io.github.libtmux.scaladsl.cats.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-expand"},{"id":"io.github.libtmux.scaladsl.cats.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef shell: Shell[F]","params":[],"returns":"Shell[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":481,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-shell"},{"id":"io.github.libtmux.scaladsl.cats.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef commands: Commands[F]","params":[],"returns":"Commands[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":485,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-commands"},{"id":"io.github.libtmux.scaladsl.cats.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef lock(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-lock"},{"id":"io.github.libtmux.scaladsl.cats.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef messageLog: MessageLog[F]","params":[],"returns":"MessageLog[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":493,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef prompt: Prompt[F]","params":[],"returns":"Prompt[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":497,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-variables"},{"id":"io.github.libtmux.scaladsl.cats.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":505,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panefields"},{"id":"io.github.libtmux.scaladsl.cats.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef keys: Keys[F]","params":[],"returns":"Keys[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":509,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-keys"},{"id":"io.github.libtmux.scaladsl.cats.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef buffers: Buffers[F]","params":[],"returns":"Buffers[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":513,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sourceFile(file: java.nio.file.Path): F[Unit]","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.cats.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-options"},{"id":"io.github.libtmux.scaladsl.cats.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef globalOptions: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.cats.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-environment"},{"id":"io.github.libtmux.scaladsl.cats.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef version(): F[io.github.libtmux.TmuxVersion]","params":[],"returns":"F[io.github.libtmux.TmuxVersion]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-version"},{"id":"io.github.libtmux.scaladsl.cats.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-identity"},{"id":"io.github.libtmux.scaladsl.cats.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-config"},{"id":"io.github.libtmux.scaladsl.cats.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: String*): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"String*"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-cmd"},{"id":"io.github.libtmux.scaladsl.cats.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot]","params":[],"returns":"F[io.github.libtmux.snapshot.ServerSnapshot]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-snapshot"},{"id":"io.github.libtmux.scaladsl.cats.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListSessions.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List the sessions returned by a server read. */\nobject ListSessions extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n sessions <- server.sessions()\n _ <- IO.println(\n \"sessions=\" + sessions.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Query.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport io.github.libtmux.scaladsl.{Session as SessionFields}\nimport io.github.libtmux.scaladsl.query.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Select sessions with a typed name filter. */\nobject Query extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n matches <- server.sessions(SessionFields.name.is(\"work-one\"))\n _ <- IO.println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(): F[Vector[Window[F]]]","params":[],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":574,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-windows"},{"id":"io.github.libtmux.scaladsl.cats.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(): F[Vector[Pane[F]]]","params":[],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panes"},{"id":"io.github.libtmux.scaladsl.cats.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(name: String): F[Option[Session[F]]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(id: io.github.libtmux.SessionId): F[Option[Session[F]]]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-session"},{"id":"io.github.libtmux.scaladsl.cats.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-window"},{"id":"io.github.libtmux.scaladsl.cats.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":598,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-pane"},{"id":"io.github.libtmux.scaladsl.cats.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":602,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.cats.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef clients(): F[Vector[Client[F]]]","params":[],"returns":"F[Vector[Client[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":626,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-clients"},{"id":"io.github.libtmux.scaladsl.cats.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef attachedSessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":634,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-run"},{"id":"io.github.libtmux.scaladsl.cats.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":638,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.cats.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-info"},{"id":"io.github.libtmux.scaladsl.cats.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-id"},{"id":"io.github.libtmux.scaladsl.cats.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-name"},{"id":"io.github.libtmux.scaladsl.cats.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-attached"},{"id":"io.github.libtmux.scaladsl.cats.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activeWindow: Option[Window[F]]","params":[],"returns":"Option[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":661,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activewindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef selectWindow(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":669,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef nextWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":673,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef previousWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef lastWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef detachClients(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-detachclients"},{"id":"io.github.libtmux.scaladsl.cats.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-options"},{"id":"io.github.libtmux.scaladsl.cats.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":694,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-environment"},{"id":"io.github.libtmux.scaladsl.cats.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":698,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef setHistoryLimit(lines: Int): F[Unit]","params":[{"name":"lines","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":702,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.cats.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef windows: Vector[Window[F]]","params":[],"returns":"Vector[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-windows"},{"id":"io.github.libtmux.scaladsl.cats.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]]","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]]","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewWindow.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a window and read the updated session. */\nobject NewWindow extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n _ <- IO.println(s\"created=${window.name}\")\n updated <- server.session(\"work-one\")\n refreshed <- IO.fromOption(updated)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":710,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":722,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-expand"},{"id":"io.github.libtmux.scaladsl.cats.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":726,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-rename"},{"id":"io.github.libtmux.scaladsl.cats.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":730,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-kill"},{"id":"io.github.libtmux.scaladsl.cats.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Session[F]]","params":[],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":734,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef run(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-run"},{"id":"io.github.libtmux.scaladsl.cats.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef capturing(command: String): F[Vector[String]]","params":[{"name":"command","type":"String"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-capturing"},{"id":"io.github.libtmux.scaladsl.cats.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String, whenFalse: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-choose"},{"id":"io.github.libtmux.scaladsl.cats.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":760,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-info"},{"id":"io.github.libtmux.scaladsl.cats.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-id"},{"id":"io.github.libtmux.scaladsl.cats.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":768,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-index"},{"id":"io.github.libtmux.scaladsl.cats.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":772,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-context"},{"id":"io.github.libtmux.scaladsl.cats.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":776,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-name"},{"id":"io.github.libtmux.scaladsl.cats.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":780,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-active"},{"id":"io.github.libtmux.scaladsl.cats.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":784,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linked"},{"id":"io.github.libtmux.scaladsl.cats.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":788,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-size"},{"id":"io.github.libtmux.scaladsl.cats.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":792,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-layout"},{"id":"io.github.libtmux.scaladsl.cats.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":796,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":800,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-select"},{"id":"io.github.libtmux.scaladsl.cats.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef session: Session[F]","params":[],"returns":"Session[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":808,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":812,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-options"},{"id":"io.github.libtmux.scaladsl.cats.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef panes: Vector[Pane[F]]","params":[],"returns":"Vector[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":816,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-panes"},{"id":"io.github.libtmux.scaladsl.cats.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":820,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-split"},{"id":"io.github.libtmux.scaladsl.cats.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":832,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-expand"},{"id":"io.github.libtmux.scaladsl.cats.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":836,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rename"},{"id":"io.github.libtmux.scaladsl.cats.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linkTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":840,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linkto"},{"id":"io.github.libtmux.scaladsl.cats.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef unlink(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":844,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-unlink"},{"id":"io.github.libtmux.scaladsl.cats.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F], index: Int): F[Unit]","params":[{"name":"session","type":"Session[F]"},{"name":"index","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":848,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-moveto"},{"id":"io.github.libtmux.scaladsl.cats.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":856,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef synchronizePanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":860,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef stopSynchronizingPanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":864,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rotate(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":868,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rotate"},{"id":"io.github.libtmux.scaladsl.cats.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef selectLayout(layout: io.github.libtmux.Layout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":872,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef nextLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":876,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef previousLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":880,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: String): F[Unit]","params":[{"name":"layout","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":884,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-applylayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":892,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef displayPopup(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":896,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.cats.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":900,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-kill"},{"id":"io.github.libtmux.scaladsl.cats.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":904,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this pane's server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-batch"},{"id":"io.github.libtmux.scaladsl.cats.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef run(\n command: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.PaneRun]","params":[{"name":"command","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.PaneRun]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-run"},{"id":"io.github.libtmux.scaladsl.cats.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` runs on the blocking worker with each fresh capture."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-await"},{"id":"io.github.libtmux.scaladsl.cats.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-batch"},{"id":"io.github.libtmux.scaladsl.cats.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef chain: CommandChain[F]","params":[],"returns":"CommandChain[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable chain plan using tmux's evolving current target; each run dispatches a fresh Java `CommandChain` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-chain"},{"id":"io.github.libtmux.scaladsl.cats.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef channel(name: String): Channel[F]","params":[{"name":"name","type":"String"}],"returns":"Channel[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels, named once."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-channel"},{"id":"io.github.libtmux.scaladsl.cats.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get[T](key: io.github.libtmux.OptionKey[T]): F[Option[T]]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"}],"returns":"F[Option[T]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-get"},{"id":"io.github.libtmux.scaladsl.cats.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set[T](key: io.github.libtmux.OptionKey[T], value: T): F[Unit]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"},{"name":"value","type":"T"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-set"},{"id":"io.github.libtmux.scaladsl.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detach"},{"id":"io.github.libtmux.scaladsl.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detachothers"},{"id":"io.github.libtmux.scaladsl.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-switchto"},{"id":"io.github.libtmux.scaladsl.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-redraw"},{"id":"io.github.libtmux.scaladsl.Client.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-server"},{"id":"io.github.libtmux.scaladsl.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-attachment"},{"id":"io.github.libtmux.scaladsl.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef fetchAttachment(): Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef refresh(): Client","params":[],"returns":"Client","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-refresh"},{"id":"io.github.libtmux.scaladsl.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-info"},{"id":"io.github.libtmux.scaladsl.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-floating"},{"id":"io.github.libtmux.scaladsl.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-size"},{"id":"io.github.libtmux.scaladsl.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-position"},{"id":"io.github.libtmux.scaladsl.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pid"},{"id":"io.github.libtmux.scaladsl.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-dead"},{"id":"io.github.libtmux.scaladsl.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resize(direction: io.github.libtmux.Direction, cells: Int): Unit","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resize"},{"id":"io.github.libtmux.scaladsl.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-edges"},{"id":"io.github.libtmux.scaladsl.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-copymode"},{"id":"io.github.libtmux.scaladsl.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef mode(): Option[io.github.libtmux.PaneMode]","params":[],"returns":"Option[io.github.libtmux.PaneMode]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-mode"},{"id":"io.github.libtmux.scaladsl.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-select"},{"id":"io.github.libtmux.scaladsl.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-retitle"},{"id":"io.github.libtmux.scaladsl.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.Pane.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-server"},{"id":"io.github.libtmux.scaladsl.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-batch"},{"id":"io.github.libtmux.scaladsl.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef window: Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-window"},{"id":"io.github.libtmux.scaladsl.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-hooks"},{"id":"io.github.libtmux.scaladsl.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-options"},{"id":"io.github.libtmux.scaladsl.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef capture(): Vector[String]","params":[],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(spec: io.github.libtmux.CaptureSpec): Vector[String]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-capture"},{"id":"io.github.libtmux.scaladsl.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-send"},{"id":"io.github.libtmux.scaladsl.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendline"},{"id":"io.github.libtmux.scaladsl.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-breakout"},{"id":"io.github.libtmux.scaladsl.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-expand"},{"id":"io.github.libtmux.scaladsl.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-variables"},{"id":"io.github.libtmux.scaladsl.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef respawn(command: String*): Unit","params":[{"name":"command","type":"String*"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawn"},{"id":"io.github.libtmux.scaladsl.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawnIn(directory: java.nio.file.Path): Unit","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-split"},{"id":"io.github.libtmux.scaladsl.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef paste(text: String, beforePaste: () => Unit): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-paste"},{"id":"io.github.libtmux.scaladsl.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-jointo"},{"id":"io.github.libtmux.scaladsl.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-kill"},{"id":"io.github.libtmux.scaladsl.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-refresh"},{"id":"io.github.libtmux.scaladsl.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(spec: io.github.libtmux.SessionSpec): Session","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"Session","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewSession.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a session running cat. */\nobject NewSession {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(s\"created=${session.name}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-newsession"},{"id":"io.github.libtmux.scaladsl.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hassession"},{"id":"io.github.libtmux.scaladsl.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killsession"},{"id":"io.github.libtmux.scaladsl.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-isalive"},{"id":"io.github.libtmux.scaladsl.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-requirealive"},{"id":"io.github.libtmux.scaladsl.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":313,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killserver"},{"id":"io.github.libtmux.scaladsl.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":321,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-batch"},{"id":"io.github.libtmux.scaladsl.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef chain: io.github.libtmux.CommandChain","params":[],"returns":"io.github.libtmux.CommandChain","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":325,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-chain"},{"id":"io.github.libtmux.scaladsl.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-expand"},{"id":"io.github.libtmux.scaladsl.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef shell: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-shell"},{"id":"io.github.libtmux.scaladsl.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef commands: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":337,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-commands"},{"id":"io.github.libtmux.scaladsl.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-lock"},{"id":"io.github.libtmux.scaladsl.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef messageLog: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":345,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-messagelog"},{"id":"io.github.libtmux.scaladsl.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef prompt: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":349,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-prompt"},{"id":"io.github.libtmux.scaladsl.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef channel(name: String): io.github.libtmux.Channel","params":[{"name":"name","type":"String"}],"returns":"io.github.libtmux.Channel","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-channel"},{"id":"io.github.libtmux.scaladsl.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":357,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-variables"},{"id":"io.github.libtmux.scaladsl.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":361,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panefields"},{"id":"io.github.libtmux.scaladsl.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef keys: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":365,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-keys"},{"id":"io.github.libtmux.scaladsl.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef buffers: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":369,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-buffers"},{"id":"io.github.libtmux.scaladsl.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sourceFile(file: java.nio.file.Path): Unit","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-options"},{"id":"io.github.libtmux.scaladsl.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef globalOptions: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-environment"},{"id":"io.github.libtmux.scaladsl.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hooks"},{"id":"io.github.libtmux.scaladsl.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef version(): io.github.libtmux.TmuxVersion","params":[],"returns":"io.github.libtmux.TmuxVersion","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-version"},{"id":"io.github.libtmux.scaladsl.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-identity"},{"id":"io.github.libtmux.scaladsl.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-config"},{"id":"io.github.libtmux.scaladsl.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef cmd(argv: String*): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"String*"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":405,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-cmd"},{"id":"io.github.libtmux.scaladsl.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef snapshot(): io.github.libtmux.snapshot.ServerSnapshot","params":[],"returns":"io.github.libtmux.snapshot.ServerSnapshot","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":418,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-snapshot"},{"id":"io.github.libtmux.scaladsl.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef sessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListSessions.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List the sessions returned by a server read. */\nobject ListSessions {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\n \"sessions=\" + server.sessions().map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Query.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport io.github.libtmux.scaladsl.query.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Select sessions with a typed name filter. */\nobject Query {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val matches = server.sessions(Session.name.is(\"work-one\"))\n println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":422,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sessions"},{"id":"io.github.libtmux.scaladsl.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef windows(): Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(id: io.github.libtmux.WindowId): Vector[Window]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-windows"},{"id":"io.github.libtmux.scaladsl.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef panes(): Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":438,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panes"},{"id":"io.github.libtmux.scaladsl.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(name: String): Option[Session]","params":[{"name":"name","type":"String"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(id: io.github.libtmux.SessionId): Option[Session]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":446,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-session"},{"id":"io.github.libtmux.scaladsl.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef window(context: io.github.libtmux.snapshot.WindowContext): Option[Window]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":450,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-window"},{"id":"io.github.libtmux.scaladsl.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef pane(id: io.github.libtmux.PaneId): Option[Pane]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":454,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-pane"},{"id":"io.github.libtmux.scaladsl.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":458,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef clients(): Vector[Client]","params":[],"returns":"Vector[Client]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":482,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-clients"},{"id":"io.github.libtmux.scaladsl.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef attachedSessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":486,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef run(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":490,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-run"},{"id":"io.github.libtmux.scaladsl.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":494,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-info"},{"id":"io.github.libtmux.scaladsl.Session.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-server"},{"id":"io.github.libtmux.scaladsl.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activeWindow: Option[Window]","params":[],"returns":"Option[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activewindow"},{"id":"io.github.libtmux.scaladsl.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activepane"},{"id":"io.github.libtmux.scaladsl.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-detachclients"},{"id":"io.github.libtmux.scaladsl.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-options"},{"id":"io.github.libtmux.scaladsl.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":554,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-environment"},{"id":"io.github.libtmux.scaladsl.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-hooks"},{"id":"io.github.libtmux.scaladsl.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(spec: io.github.libtmux.WindowSpec): Window","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"Window","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewWindow.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a window and read the updated session. */\nobject NewWindow {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(s\"created=${window.name}\")\n val refreshed =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":570,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-newwindow"},{"id":"io.github.libtmux.scaladsl.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-expand"},{"id":"io.github.libtmux.scaladsl.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":586,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-rename"},{"id":"io.github.libtmux.scaladsl.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-kill"},{"id":"io.github.libtmux.scaladsl.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef refresh(): Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-refresh"},{"id":"io.github.libtmux.scaladsl.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":601,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-info"},{"id":"io.github.libtmux.scaladsl.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":613,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-context"},{"id":"io.github.libtmux.scaladsl.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":629,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-size"},{"id":"io.github.libtmux.scaladsl.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":633,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-layout"},{"id":"io.github.libtmux.scaladsl.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":637,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-activepane"},{"id":"io.github.libtmux.scaladsl.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":641,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-select"},{"id":"io.github.libtmux.scaladsl.Window.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-server"},{"id":"io.github.libtmux.scaladsl.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-hooks"},{"id":"io.github.libtmux.scaladsl.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-options"},{"id":"io.github.libtmux.scaladsl.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-split"},{"id":"io.github.libtmux.scaladsl.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-expand"},{"id":"io.github.libtmux.scaladsl.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rename"},{"id":"io.github.libtmux.scaladsl.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-linkto"},{"id":"io.github.libtmux.scaladsl.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-unlink"},{"id":"io.github.libtmux.scaladsl.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":693,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-moveto"},{"id":"io.github.libtmux.scaladsl.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":701,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-resizeto"},{"id":"io.github.libtmux.scaladsl.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":709,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":713,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rotate"},{"id":"io.github.libtmux.scaladsl.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef selectLayout(layout: io.github.libtmux.Layout): Unit","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":717,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":725,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef applyLayout(layout: io.github.libtmux.WindowLayout): Unit","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":729,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-applylayout"},{"id":"io.github.libtmux.scaladsl.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-respawn"},{"id":"io.github.libtmux.scaladsl.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-kill"},{"id":"io.github.libtmux.scaladsl.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef refresh(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-refresh"},{"id":"io.github.libtmux.scaladsl.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef asJava: JavaClient","params":[],"returns":"JavaClient","receiver":{"name":"self","type":"Client"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-asjava"},{"id":"io.github.libtmux.scaladsl.Vector.matching","name":"matching","kind":"function","signatures":[{"raw":"extension (clients: Vector[Client])\ndef matching(expr: Expr[JavaClient]): Vector[Client]","params":[{"name":"expr","type":"Expr[JavaClient]"}],"returns":"Vector[Client]","receiver":{"name":"clients","type":"Vector[Client]"}},{"raw":"extension (panes: Vector[Pane])\ndef matching(expr: Expr[JavaPane]): Vector[Pane]","params":[{"name":"expr","type":"Expr[JavaPane]"}],"returns":"Vector[Pane]","receiver":{"name":"panes","type":"Vector[Pane]"}},{"raw":"extension (sessions: Vector[Session])\ndef matching(expr: Expr[JavaSession]): Vector[Session]","params":[{"name":"expr","type":"Expr[JavaSession]"}],"returns":"Vector[Session]","receiver":{"name":"sessions","type":"Vector[Session]"}},{"raw":"extension (windows: Vector[Window])\ndef matching(expr: Expr[JavaWindow]): Vector[Window]","params":[{"name":"expr","type":"Expr[JavaWindow]"}],"returns":"Vector[Window]","receiver":{"name":"windows","type":"Vector[Window]"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The captured clients `expr` matches: a local filter over what is already held."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-vector-matching"},{"id":"io.github.libtmux.scaladsl.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef asJava: JavaPane","params":[],"returns":"JavaPane","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"The underlying Java pane. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-asjava"},{"id":"io.github.libtmux.scaladsl.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef awaitText(text: String, timeout: FiniteDuration): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef awaitText(\n text: String,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef run(command: String, timeout: FiniteDuration): PaneRun","params":[{"name":"command","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"PaneRun","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-run"},{"id":"io.github.libtmux.scaladsl.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef await(settled: Pane => Boolean, timeout: FiniteDuration): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef await(\n settled: Pane => Boolean,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` receives a fresh capture each look."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-await"},{"id":"io.github.libtmux.scaladsl.Server.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef asJava: JavaServer","params":[],"returns":"JavaServer","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-asjava"},{"id":"io.github.libtmux.scaladsl.Server.within","name":"within","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef within(timeout: FiniteDuration): Server","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"Server","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"This server with every command given `timeout` rather than the default, sharing this one's transport and scope. `LIFECYCLE`, handwritten: not a per-operation forward, a derived scope."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-within"},{"id":"io.github.libtmux.scaladsl.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef control(session: Session): ControlClient","params":[{"name":"session","type":"Session"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef control(session: Session, timeout: FiniteDuration): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"FiniteDuration"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["overload"],"doc":{"summary":"A control-mode client on `session`, refused by a tmux other than the one that captured it. `LIFECYCLE`, handwritten: resource scoping, not a per-operation forward."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-control"},{"id":"io.github.libtmux.scaladsl.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef asJava: JavaSession","params":[],"returns":"JavaSession","receiver":{"name":"self","type":"Session"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The underlying Java session. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-asjava"},{"id":"io.github.libtmux.scaladsl.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef asJava: JavaWindow","params":[],"returns":"JavaWindow","receiver":{"name":"self","type":"Window"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying Java window link. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef asJava: JavaServerMirror","params":[],"returns":"JavaServerMirror","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The underlying Java mirror. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.current","name":"current","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef current: JavaServerMirror.View","params":[],"returns":"JavaServerMirror.View","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The latest published view. Never blocks."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-current"},{"id":"io.github.libtmux.scaladsl.live.LiveView.awaitNewer","name":"awaitNewer","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef awaitNewer(\n epoch: Long,\n timeout: Duration\n ): Option[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"},{"name":"timeout","type":"Duration"}],"returns":"Option[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Waits for a view newer than `epoch`, or empty when `timeout` passed first or this mirror ended; [[isEnded]] and [[cause]] tell those apart."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-awaitnewer"},{"id":"io.github.libtmux.scaladsl.live.LiveView.isEnded","name":"isEnded","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef isEnded: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-isended"},{"id":"io.github.libtmux.scaladsl.live.LiveView.cause","name":"cause","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef cause: Option[Throwable]","params":[],"returns":"Option[Throwable]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Why this mirror ended, when something other than [[java.lang.AutoCloseable#close close]] ended it."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-cause"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshots","name":"snapshots","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshots: Iterator[JavaServerMirror.View]","params":[],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The current view, then every newer one, one per notification, blocking between them: as a `StateFlow` or an fs2 `Signal` does. A change made before this call is in the first view rather than lost between reading [[current]] and starting to iterate. Ends when this view is closed, and throws [[cause]] when its anchor or server has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshots"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshotsAfter","name":"snapshotsAfter","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshotsAfter(epoch: Long): Iterator[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"}],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Every view newer than `epoch`, one per notification, blocking between them. A view already published after `epoch` comes first, so nothing is missed between reading a view and starting to iterate. Ends and throws as [[snapshots]] does."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshotsafter"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.exactlyOne","name":"exactlyOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef exactlyOne: Either[CardinalityError, A]","params":[],"returns":"Either[CardinalityError, A]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match, or a failure naming which way the count was wrong. Single-pass: mirrors `Selections.exactlyOne`'s early exit, stopping at the second match."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-exactlyone"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.atMostOne","name":"atMostOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef atMostOne: Either[CardinalityError, Option[A]]","params":[],"returns":"Either[CardinalityError, Option[A]]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match if there is one, `None` if there is none — still a failure for several."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-atmostone"},{"id":"io.github.libtmux.scaladsl.query.Expr.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef asJava: JavaFilterExpr[T]","params":[],"returns":"JavaFilterExpr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"The underlying Java expression. Opaque wrapping is free, so this never copies anything."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-asjava"},{"id":"io.github.libtmux.scaladsl.query.Expr.&&","name":"&&","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef &&(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-14f0"},{"id":"io.github.libtmux.scaladsl.query.Expr.||","name":"||","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef ||(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-1nzt"},{"id":"io.github.libtmux.scaladsl.query.Expr.unary_!","name":"unary_!","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef unary_! : Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-unary_"},{"id":"io.github.libtmux.scaladsl.query.Expr.and","name":"and","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef and(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`&&`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-and"},{"id":"io.github.libtmux.scaladsl.query.Expr.or","name":"or","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef or(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`||`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-or"},{"id":"io.github.libtmux.scaladsl.query.Expr.not","name":"not","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef not: Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`unary_!`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-not"},{"id":"io.github.libtmux.scaladsl.query.Expr.describe","name":"describe","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef describe: String","params":[],"returns":"String","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Renders this expression as inspectable text."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-describe"},{"id":"io.github.libtmux.scaladsl.query.Expr.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef matches(value: T): Boolean","params":[{"name":"value","type":"T"}],"returns":"Boolean","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Evaluates this expression against one value, with no tmux I/O."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-matches"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-scala_3","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala":"package io.github.libtmux.scaladsl.generated\n\n// Generated from field-catalog.tsv by build-logic/codegen (ScalaFieldGenerator). Not checked in.\n\nimport io.github.libtmux.{\n Pane => JavaPane,\n Session => JavaSession,\n Window => JavaWindow,\n Client => JavaClient\n}\n\n/** Typed fields for filtering captured pane objects. */\nobject PaneFields {\n /** The pane id. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.id())\n\n /** The command tmux reported running in the pane. */\n def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.command())\n\n /** The pane's position in its window. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.index())\n\n /** Whether this was its window's active pane. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.active())\n\n /** The pane's title, which a program running in it can set. */\n def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.title())\n\n /** The pane's working directory, as the text tmux reported. */\n def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.path())\n\n /** The pane's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.width())\n\n /** The pane's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.height())\n\n /** The column of the pane's left edge in its window. */\n def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.left())\n\n /** The row of the pane's top edge in its window. */\n def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.top())\n\n /** Whether the pane touches the top of its window. */\n def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atTop())\n\n /** Whether the pane touches the bottom of its window. */\n def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atBottom())\n\n /** Whether the pane touches the left of its window. */\n def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atLeft())\n\n /** Whether the pane touches the right of its window. */\n def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atRight())\n}\n\n/** Typed fields for filtering captured session objects. */\nobject SessionFields {\n /** The session id, as text, so it can be compared and listed. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.id())\n\n /** The session name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.name())\n\n /** Whether a client was attached when this was captured. */\n def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession](_root_.io.github.libtmux.Session_.attached())\n\n /** How many windows this session holds. */\n def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession](_root_.io.github.libtmux.Session_.windowCount())\n\n /** This session's windows. */\n def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow](_root_.io.github.libtmux.Session_.windows())\n}\n\n/** Typed fields for filtering captured window objects. */\nobject WindowFields {\n /** The underlying window id, shared by every link to it. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.id())\n\n /** The window name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.name())\n\n /** Where this link sits in its session. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.index())\n\n /** Whether this was its session's active window. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.active())\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.linked())\n\n /** The window's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.width())\n\n /** The window's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.height())\n\n /** How many panes this link holds. */\n def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.paneCount())\n\n /** This link's panes. */\n def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane](_root_.io.github.libtmux.Window_.panes())\n\n /** The session this link belongs to. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession](_root_.io.github.libtmux.Window_.session())\n}\n\n/** Typed fields for filtering captured client objects. */\nobject ClientFields {\n /** The client's terminal name, which is how tmux addresses it. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient](_root_.io.github.libtmux.Client_.name())\n\n /** The session this client was attached to, if any. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession](_root_.io.github.libtmux.Client_.session())\n}\n","libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl.cats\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Captures every buffer the server holds, in tmux's order. */\n def list(): F[Vector[io.github.libtmux.BufferInfo]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n\n /** Puts text in a named buffer, replacing whatever was there. */\n def set(name: String, contents: String): F[Unit] =\n self.server.execution(self.underlying.set(name, contents))\n\n /** What a buffer holds, without any line breaks it ends with. */\n def show(name: String): F[String] =\n self.server.execution(self.underlying.show(name))\n\n /** Removes a buffer by its exact name. */\n def delete(name: String): F[Unit] =\n self.server.execution(self.underlying.delete(name))\n\n /** Writes a buffer's contents to a file. */\n def save(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.save(name, file))\n\n /** Reads a file into a named buffer. */\n def load(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.load(name, file))\n }\n\n extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): F[Unit] =\n self.server.execution(self.underlying.asJava.detach())\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachOthers())\n\n /** Moves this client to another session. */\n def switchTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.switchTo(session.underlying.asJava))\n\n /** Asks tmux to redraw this client. */\n def redraw(): F[Unit] =\n self.server.execution(self.underlying.asJava.redraw())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session()).toScala.map(v => self.server.session(io.github.libtmux.scaladsl.Session.wrap(v)))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.fetchAttachment()).toScala)\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): F[Client[F]] =\n self.server.execution(self.server.client(io.github.libtmux.scaladsl.Client.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every command, as tmux prints it. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The value set for this name, or empty when it is removed or absent. */\n def get(name: String): F[Option[String]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.get(name)).toScala)\n\n /** Whether new processes are told not to inherit this name. */\n def isRemoved(name: String): F[Boolean] =\n self.server.execution(self.underlying.isRemoved(name))\n\n /** Every name set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** What a process started from this scope is actually handed, both scopes taken together. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Every name this scope tells a new process not to inherit. */\n def removed(): F[Set[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.SetHasAsScala(self.underlying.removed()).asScala.toSet)\n\n /** Sets a name to a literal value. */\n def set(name: String, value: String): F[Unit] =\n self.server.execution(self.underlying.set(name, value))\n\n /** Sets a name to what a tmux format expands to now. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes the name from this scope, so it is neither set nor marked. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n\n /** Tells processes started after this not to inherit the name. */\n def remove(name: String): F[Unit] =\n self.server.execution(self.underlying.remove(name))\n }\n\n extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Binds a tmux command to an event at this scope, replacing anything already bound to it. */\n def set(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.set(event, command))\n\n /** As {@link #set(String, String)}, with the command as words rather than a line tmux parses. */\n def set(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.set(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** As {@link #append(String, String)}, with the command as words. */\n def append(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.append(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Binds another command to an event, after whatever is already bound to it. */\n def append(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.append(event, command))\n\n /** Removes everything bound to an event at this scope. */\n def unset(event: String): F[Unit] =\n self.server.execution(self.underlying.unset(event))\n\n /** Runs what is bound to an event now, without waiting for the event. */\n def run(event: String): F[Unit] =\n self.server.execution(self.underlying.run(event))\n\n /** Every hook at this scope, keyed by event, each with its commands in the order tmux runs them. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala.map { case (k, v) => k -> _root_.scala.jdk.CollectionConverters.ListHasAsScala(v).asScala.toVector }))\n }\n\n extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The same bindings, in one named table. */\n def in(table: String): Keys[F] =\n new Keys(self.underlying.in(table), self.server)\n\n /** Binds a key to a tmux command, given as its words. */\n def bind(key: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.bind(key, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Removes a key's binding. */\n def unbind(key: String): F[Unit] =\n self.server.execution(self.underlying.unbind(key))\n\n /** The bindings as tmux lists them, one per line. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The log lines. */\n def lines(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.lines()).asScala.toVector)\n }\n\n extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every option set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** Every option tmux lists at this scope, including inherited built-in values. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Sets one option only if this scope does not already set it. */\n def setIfAbsent(name: String, value: String): F[Boolean] =\n self.server.execution(self.underlying.setIfAbsent(name, value))\n\n /** Adds to the end of a string option, rather than replacing it. */\n def append(name: String, suffix: String): F[Unit] =\n self.server.execution(self.underlying.append(name, suffix))\n\n /** Sets one option to what a tmux format comes to, rather than to the format itself. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes one option at this scope, so it falls back to whatever it inherits. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n }\n\n extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.underlying.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.underlying.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.underlying.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.underlying.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.underlying.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.underlying.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.underlying.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.underlying.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.underlying.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): F[Boolean] =\n self.server.execution(self.underlying.asJava.dead())\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.resize(direction, cells))\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.underlying.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.copyMode())\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): F[Option[io.github.libtmux.PaneMode]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.mode()).toScala)\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.exitMode())\n\n /** Makes this the active pane of its window. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.retitle(title))))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** The window link this pane was reached through. */\n def window: Window[F] =\n self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.window()))\n\n /** This pane's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This pane's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This pane's visible content, one element per line. */\n def capture(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture()).asScala.toVector)\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.noteTyped(text))\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector)\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(spec)).asScala.toVector)\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): F[Unit] =\n self.server.execution(self.underlying.asJava.send(keys))\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLine(command))\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut())))\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.asJava.respawnIn(directory))\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn(command*))\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pipeTo(shellCommand))\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopPiping())\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut(windowName))))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pasteBuffer(name))\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text))\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text, (() => beforePaste())))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): F[Unit] =\n self.server.execution(self.underlying.asJava.clearHistory())\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.swapWith(other.underlying.asJava))\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.joinTo(window.underlying.asJava))\n\n /** Closes this pane. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** What has been typed at the prompt, oldest first. */\n def history(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.history()).asScala.toVector)\n\n /** Forgets what has been typed at the prompt. */\n def clear(): F[Unit] =\n self.server.execution(self.underlying.clear())\n }\n\n extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(name))))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(spec))))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): F[Boolean] =\n self.execution(self.underlying.asJava.hasSession(name))\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): F[Unit] =\n self.execution(self.underlying.asJava.killSession(name))\n\n /** Whether the server is running and answering. */\n def isAlive(): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive())\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): F[Unit] =\n self.execution(self.underlying.asJava.requireAlive())\n\n /** Ends the tmux server and every session on it. */\n def killServer(): F[Unit] =\n self.execution(self.underlying.asJava.killServer())\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit] =\n self.execution(self.underlying.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.execution(self.underlying.asJava.expand(format))\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: Shell[F] =\n new Shell(self.underlying.asJava.shell(), self)\n\n /** The commands this tmux knows. */\n def commands: Commands[F] =\n new Commands(self.underlying.asJava.commands(), self)\n\n /** Locks every client attached to this server. */\n def lock(): F[Unit] =\n self.execution(self.underlying.asJava.lock())\n\n /** The server's message log. */\n def messageLog: MessageLog[F] =\n new MessageLog(self.underlying.asJava.messageLog(), self)\n\n /** The command prompt's history. */\n def prompt: Prompt[F] =\n new Prompt(self.underlying.asJava.prompt(), self)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) }))\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: Keys[F] =\n new Keys(self.underlying.asJava.keys(), self)\n\n /** The server's paste buffers, which every session shares. */\n def buffers: Buffers[F] =\n new Buffers(self.underlying.asJava.buffers(), self)\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): F[Unit] =\n self.execution(self.underlying.asJava.sourceFile(file))\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self)\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: Options[F] =\n new Options(self.underlying.asJava.globalOptions(), self)\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self)\n\n /** The global hooks every session inherits. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self)\n\n /** Which tmux this server is running. */\n def version(): F[io.github.libtmux.TmuxVersion] =\n self.execution(self.underlying.asJava.version())\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.underlying.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.underlying.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(argv*))\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot] =\n self.execution(self.underlying.asJava.snapshot())\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions(expression.asJava)).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Every session, captured now. */\n def sessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(expression.asJava)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every pane on the server. */\n def panes(): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes(expression.asJava)).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(expression.asJava)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(expression.asJava)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(expression.asJava)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.underlying.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(name)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(id)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(id)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(context)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(id)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every attached client. */\n def clients(): F[Vector[Client[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.clients()).asScala.iterator.map(v => self.client(io.github.libtmux.scaladsl.Client.wrap(v))).toVector)\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.attachedSessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.underlying.asJava.toBuilder()\n }\n\n extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.underlying.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.underlying.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.underlying.asJava.attached()\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activeWindow()).toScala.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v)))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.selectWindow(window.underlying.asJava))\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextWindow())\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousWindow())\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.lastWindow())\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachClients())\n\n /** This session's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self.server)\n\n /** This session's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.setHistoryLimit(lines))\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(name))))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(spec))))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.rename(name))))\n\n /** Ends this session. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Runs a shell command for its effect. */\n def run(command: String): F[Unit] =\n self.server.execution(self.underlying.run(command))\n\n /** Runs a shell command and answers with what it printed. */\n def capturing(command: String): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.capturing(command)).asScala.toVector)\n\n /** Runs one tmux command when a shell command succeeds. */\n def choose(condition: String, whenTrue: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue))\n\n /** Runs one tmux command or another, according to whether a shell command succeeds. */\n def choose(condition: String, whenTrue: String, whenFalse: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue, whenFalse))\n }\n\n extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.underlying.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.underlying.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.underlying.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.underlying.asJava.context()\n\n /** The window name. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.underlying.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.underlying.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes this the active window of its session. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** The session this link belongs to. */\n def session: Session[F] =\n self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.session()))\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This window's own options, which every link to it shares. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.rename(name))))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.linkTo(session.underlying.asJava))\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): F[Unit] =\n self.server.execution(self.underlying.asJava.unlink())\n\n /** Moves this window into another session. */\n def moveTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava))\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session[F], index: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava, index))\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.synchronizePanes())\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopSynchronizingPanes())\n\n /** Rotates the panes within this window. */\n def rotate(): F[Unit] =\n self.server.execution(self.underlying.asJava.rotate())\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): F[Unit] =\n self.server.execution(self.underlying.asJava.selectLayout(layout))\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextLayout())\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousLayout())\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.displayPopup(shellCommand))\n\n /** Closes this window. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.refresh())))\n }\n","libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension (self: Client) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): Unit =\n self.asJava.detach()\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): Unit =\n self.asJava.detachOthers()\n\n /** Moves this client to another session. */\n def switchTo(session: Session): Unit =\n self.asJava.switchTo(session.asJava)\n\n /** Asks tmux to redraw this client. */\n def redraw(): Unit =\n self.asJava.redraw()\n\n /** The server this client is connected to. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session()).toScala.map(v => Session.wrap(v))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.fetchAttachment()).toScala\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): Client =\n Client.wrap(self.asJava.refresh())\n }\n\n extension (self: Pane) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): Boolean =\n self.asJava.dead()\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): Unit =\n self.asJava.resize(direction, cells)\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): Unit =\n self.asJava.copyMode()\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): Option[io.github.libtmux.PaneMode] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.mode()).toScala\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): Unit =\n self.asJava.exitMode()\n\n /** Makes this the active pane of its window. */\n def select(): Unit =\n self.asJava.select()\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): Pane =\n Pane.wrap(self.asJava.retitle(title))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** The server this pane lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** Collects commands fenced to the server incarnation that produced this pane. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** The window link this pane was reached through. */\n def window: Window =\n Window.wrap(self.asJava.window())\n\n /** This pane's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This pane's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This pane's visible content, one element per line. */\n def capture(): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture()).asScala.toVector\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): Unit =\n self.asJava.noteTyped(text)\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(spec)).asScala.toVector\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): Unit =\n self.asJava.send(keys)\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): Unit =\n self.asJava.sendLine(command)\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): Window =\n Window.wrap(self.asJava.breakOut())\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): Unit =\n self.asJava.respawnIn(directory)\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): Unit =\n self.asJava.respawn(command*)\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): Unit =\n self.asJava.pipeTo(shellCommand)\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): Unit =\n self.asJava.stopPiping()\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): Window =\n Window.wrap(self.asJava.breakOut(windowName))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): Unit =\n self.asJava.pasteBuffer(name)\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): Unit =\n self.asJava.paste(text)\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): Unit =\n self.asJava.paste(text, (() => beforePaste()))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): Unit =\n self.asJava.clearHistory()\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane): Unit =\n self.asJava.swapWith(other.asJava)\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window): Unit =\n self.asJava.joinTo(window.asJava)\n\n /** Closes this pane. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): Pane =\n Pane.wrap(self.asJava.refresh())\n }\n\n extension (self: Server) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): Session =\n Session.wrap(self.asJava.newSession(name))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session =\n Session.wrap(self.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): Session =\n Session.wrap(self.asJava.newSession(spec))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): Boolean =\n self.asJava.hasSession(name)\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): Unit =\n self.asJava.killSession(name)\n\n /** Whether the server is running and answering. */\n def isAlive(): Boolean =\n self.asJava.isAlive()\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean =\n self.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): Unit =\n self.asJava.requireAlive()\n\n /** Ends the tmux server and every session on it. */\n def killServer(): Unit =\n self.asJava.killServer()\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit =\n self.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Collects several commands to run in one tmux invocation. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** Starts a chain of commands where each one acts on what the last one made. */\n def chain: io.github.libtmux.CommandChain =\n self.asJava.chain()\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: io.github.libtmux.Shell =\n self.asJava.shell()\n\n /** The commands this tmux knows. */\n def commands: io.github.libtmux.Commands =\n self.asJava.commands()\n\n /** Locks every client attached to this server. */\n def lock(): Unit =\n self.asJava.lock()\n\n /** The server's message log. */\n def messageLog: io.github.libtmux.MessageLog =\n self.asJava.messageLog()\n\n /** The command prompt's history. */\n def prompt: io.github.libtmux.Prompt =\n self.asJava.prompt()\n\n /** One of this server's wait-for channels, which is where a signal is sent and waited for. */\n def channel(name: String): io.github.libtmux.Channel =\n self.asJava.channel(name)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) })\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: io.github.libtmux.Keys =\n self.asJava.keys()\n\n /** The server's paste buffers, which every session shares. */\n def buffers: io.github.libtmux.Buffers =\n self.asJava.buffers()\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): Unit =\n self.asJava.sourceFile(file)\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: io.github.libtmux.Options =\n self.asJava.globalOptions()\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** The global hooks every session inherits. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Which tmux this server is running. */\n def version(): io.github.libtmux.TmuxVersion =\n self.asJava.version()\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(argv*)\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): io.github.libtmux.snapshot.ServerSnapshot =\n self.asJava.snapshot()\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions(expression.asJava)).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Every session, captured now. */\n def sessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(expression.asJava)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every pane on the server. */\n def panes(): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes(expression.asJava)).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(expression.asJava)).toScala.map(v => Session.wrap(v))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(expression.asJava)).toScala.map(v => Window.wrap(v))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(expression.asJava)).toScala.map(v => Pane.wrap(v))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(name)).toScala.map(v => Session.wrap(v))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(id)).toScala.map(v => Session.wrap(v))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(id)).toScala.map(v => Pane.wrap(v))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(context)).toScala.map(v => Window.wrap(v))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(id)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every attached client. */\n def clients(): Vector[Client] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.clients()).asScala.iterator.map(v => Client.wrap(v)).toVector\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.attachedSessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.asJava.toBuilder()\n }\n\n extension (self: Session) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.asJava.attached()\n\n /** The server this session lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activeWindow()).toScala.map(v => Window.wrap(v))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window): Unit =\n self.asJava.selectWindow(window.asJava)\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): Unit =\n self.asJava.nextWindow()\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): Unit =\n self.asJava.previousWindow()\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): Unit =\n self.asJava.lastWindow()\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): Unit =\n self.asJava.detachClients()\n\n /** This session's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** This session's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): Unit =\n self.asJava.setHistoryLimit(lines)\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): Window =\n Window.wrap(self.asJava.newWindow(name))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window =\n Window.wrap(self.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): Window =\n Window.wrap(self.asJava.newWindow(spec))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): Session =\n Session.wrap(self.asJava.rename(name))\n\n /** Ends this session. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): Session =\n Session.wrap(self.asJava.refresh())\n }\n\n extension (self: Window) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.asJava.context()\n\n /** The window name. */\n def name: String =\n self.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes this the active window of its session. */\n def select(): Unit =\n self.asJava.select()\n\n /** The server this window lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this link belongs to. */\n def session: Session =\n Session.wrap(self.asJava.session())\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This window's own options, which every link to it shares. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): Window =\n Window.wrap(self.asJava.rename(name))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session): Unit =\n self.asJava.linkTo(session.asJava)\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): Unit =\n self.asJava.unlink()\n\n /** Moves this window into another session. */\n def moveTo(session: Session): Unit =\n self.asJava.moveTo(session.asJava)\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session, index: Int): Unit =\n self.asJava.moveTo(session.asJava, index)\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): Unit =\n self.asJava.synchronizePanes()\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): Unit =\n self.asJava.stopSynchronizingPanes()\n\n /** Rotates the panes within this window. */\n def rotate(): Unit =\n self.asJava.rotate()\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): Unit =\n self.asJava.selectLayout(layout)\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): Unit =\n self.asJava.nextLayout()\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): Unit =\n self.asJava.previousLayout()\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): Unit =\n self.asJava.applyLayout(layout)\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): Unit =\n self.asJava.applyLayout(layout)\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): Unit =\n self.asJava.displayPopup(shellCommand)\n\n /** Closes this window. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): Window =\n Window.wrap(self.asJava.refresh())\n }\n"},"repo":"libtmux/libtmux-java"} From 3d51380a88e9e5d1f021babee64f5f17bc55444e Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 09:31:18 -0500 Subject: [PATCH 44/53] fix(just) Keep the build cache and lock through clean why: just clean ran `git clean -fdX`, which removes everything that .gitignore ignores. .build-cache/ and .build.lock are ignored, so one run deleted the content-addressed cache of assembled builds, which holds the builds kept for comparing a regression, and the lock file that scripts/clean-build.sh takes with flock to stop two assemblies running at once. `pnpm run clean` already keeps the cache unless asked with --cache and creates the lock again, so the two cleans disagreed. what: - Exclude .build-cache/ and .build.lock from clean and clean-dry, beside the .env and .env.* files they already keep - Say in the recipe comment that `pnpm run clean` remains the build-aware clean of generated site output - Run the recipes from the justfile in a scratch repository that has this repository's .gitignore, and assert that the dry run lists node_modules/, _site/ and *.log but not .build-cache/, .build.lock, .env files or untracked files, that clean leaves exactly those, and that the same repository without the exclusions would delete them - Before the change the dry run listed .build-cache/ and .build.lock and the test failed; with it, `just clean-dry` in this checkout lists only node_modules/, site/.astro/ and the staged content --- justfile | 8 +-- site/test/just-clean.test.ts | 100 +++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 3 deletions(-) create mode 100644 site/test/just-clean.test.ts diff --git a/justfile b/justfile index a5c2edf2c..1973acbdd 100644 --- a/justfile +++ b/justfile @@ -5,15 +5,17 @@ default: @just --list -# Remove ignored build artifacts and caches. Untracked files and .env stay. +# Remove ignored build artifacts such as node_modules. Untracked files, .env +# files, the .build-cache/ build cache and the .build.lock file stay. +# `pnpm run clean` remains the build-aware clean of generated site output. [group: 'clean'] clean: - git clean -fdX -e '!.env' -e '!.env.*' + git clean -fdX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' # Preview what clean will delete. [group: 'clean'] clean-dry: - git clean -ndX -e '!.env' -e '!.env.*' + git clean -ndX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' # Remove ignored and untracked files. .env and .env.* stay. # git clean -x ignores .gitignore and only preserves -e patterns, so .env is named here rather than negated. diff --git a/site/test/just-clean.test.ts b/site/test/just-clean.test.ts new file mode 100644 index 000000000..48f84ce0b --- /dev/null +++ b/site/test/just-clean.test.ts @@ -0,0 +1,100 @@ +import { execFileSync } from 'node:child_process' +import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { dirname, join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { afterAll, describe, expect, it } from 'vitest' + +/** + * `just clean` removes ignored output and nothing the build depends on. + * + * The recipes run in a scratch repository that has this repository's own + * .gitignore plus the .env rules a developer adds. The build cache and the lock + * file are ignored, so only the recipe's exclusions keep them. `pnpm run clean` + * remains the build-aware clean of generated site output. + */ +const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') +const scratch = mkdtempSync(join(tmpdir(), 'just-clean-')) +afterAll(() => rmSync(scratch, { recursive: true, force: true })) + +/** The command lines of one recipe, read from the justfile the project ships. */ +export function recipe(justfile: string, name: string): string[] { + const lines = justfile.split('\n') + const start = lines.findIndex((line) => line.startsWith(`${name}:`)) + if (start === -1) throw new Error(`no recipe named ${name}`) + const body: string[] = [] + for (const line of lines.slice(start + 1)) { + if (!/^\s+\S/.test(line)) break + body.push(line.trim()) + } + return body +} + +/** A repository with ignored, kept and untracked files, ready to be cleaned. */ +function fixture(): string { + const dir = mkdtempSync(join(scratch, 'repo-')) + const git = (...args: string[]) => execFileSync('git', ['-c', 'user.name=t', '-c', 'user.email=t@t', ...args], { cwd: dir }) + git('init', '-q') + copyFileSync(join(ROOT, '.gitignore'), join(dir, '.gitignore')) + writeFileSync(join(dir, '.gitignore'), `${readFileSync(join(dir, '.gitignore'), 'utf8')}.env\n.env.*\n`) + git('add', '.gitignore') + git('commit', '-q', '-m', 'ignore rules') + for (const path of ['node_modules/pkg/index.js', '.build-cache/shell-1/page.html', '_site/index.html', 'sub/.env']) { + mkdirSync(dirname(join(dir, path)), { recursive: true }) + writeFileSync(join(dir, path), 'x\n') + } + for (const path of ['.build.lock', '.env', '.env.local', 'untracked.txt', 'debug.log']) writeFileSync(join(dir, path), 'x\n') + return dir +} + +function run(dir: string, command: string): string[] { + return execFileSync('sh', ['-c', command], { cwd: dir, encoding: 'utf8' }).split('\n').filter(Boolean) +} + +describe('just clean', () => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + const exclusions = (command: string) => command.match(/-e '[^']+'/g) ?? [] + + it('lists ignored output and keeps the build cache, the lock and .env files', () => { + const [command] = recipe(justfile, 'clean-dry') + const listed = run(fixture(), command) + expect(listed).toContain('Would remove node_modules/') + expect(listed).toContain('Would remove _site/') + expect(listed).toContain('Would remove debug.log') + for (const kept of ['.build-cache', '.build.lock', '.env', '.env.local', 'sub/', 'untracked.txt']) { + expect(listed.filter((line) => line.includes(kept))).toEqual([]) + } + }) + + it('removes what the dry run lists and nothing more', () => { + const dir = fixture() + const [command] = recipe(justfile, 'clean') + run(dir, command) + const left = run(dir, 'find . -path ./.git -prune -o -type f -print').sort() + expect(left).toEqual([ + './.build-cache/shell-1/page.html', + './.build.lock', + './.env', + './.env.local', + './.gitignore', + './sub/.env', + './untracked.txt', + ]) + }) + + it('previews with the exclusions it deletes with', () => { + expect(exclusions(recipe(justfile, 'clean')[0])).toEqual(exclusions(recipe(justfile, 'clean-dry')[0])) + }) + + it('would delete the cache, the lock and .env files without the exclusions', () => { + const listed = run(fixture(), 'git clean -ndX') + for (const removed of ['.build-cache/', '.build.lock', '.env', '.env.local']) { + expect(listed.filter((line) => line.includes(removed))).not.toEqual([]) + } + }) + + it('reads a recipe body and rejects an unknown recipe', () => { + expect(recipe('a:\n one\n two\n\nb:\n three\n', 'a')).toEqual(['one', 'two']) + expect(() => recipe('a:\n one\n', 'missing')).toThrow('no recipe named missing') + }) +}) From b49e7031bc57f4c698f4db13b0219cc736c587fb Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:20:18 -0500 Subject: [PATCH 45/53] fix(site) Say tmuxp inherits its tmux floor from libtmux why: The guide listed tmuxp beside libtmux as if it declared 3.2a. It does not: tmuxp's README says "3.2+", its quickstart says ">= 3.2" and plugin.py sets TMUX_MIN_VERSION "3.2". Only its libtmux~=0.62.0 dependency, whose TMUX_MIN_VERSION is 3.2a, makes 3.2a the effective floor. The test reason also credited libtmux-mcp with a TMUX_MIN_VERSION it does not declare; it documents ">= 3.2a" and depends on libtmux. what: - List tmuxp on its own line in the guide, with 3.2a as the floor of the libtmux release it depends on and a note that its own text says 3.2 - Reword the installation page's tmuxp paragraph from "documented prerequisites" to a requirement reached through the libtmux dependency - Rewrite the PORT_FLOORS and OTHER_FLOORS reasons to name the source of each 3.2a, without changing which statements they exempt The floor stays 3.2a, the one libtmux 0.62 documents and tmuxp installs. --- .../_workspace-shared/workspace/guides/installation.md | 6 +++--- site/src/content/docs/guides/tmux-support.md | 4 +++- site/test/tmux-minimum.test.ts | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/site/src/content/_workspace-shared/workspace/guides/installation.md b/site/src/content/_workspace-shared/workspace/guides/installation.md index 41109c8c4..2d0c0017c 100644 --- a/site/src/content/_workspace-shared/workspace/guides/installation.md +++ b/site/src/content/_workspace-shared/workspace/guides/installation.md @@ -10,9 +10,9 @@ title: Install and load a workspace --- -The runnable terminal loader is the separate Python application tmuxp. Its -documented prerequisites are Python 3.10 or newer and tmux 3.2a or newer. Install -it in an isolated tool environment with uv: +The runnable terminal loader is the separate Python application tmuxp. It +needs Python 3.10 or newer and, through its libtmux dependency, tmux 3.2a or +newer. Install it in an isolated tool environment with uv: ```console $ uv tool install tmuxp ``` diff --git a/site/src/content/docs/guides/tmux-support.md b/site/src/content/docs/guides/tmux-support.md index a7f48ff1f..3bab2ad72 100644 --- a/site/src/content/docs/guides/tmux-support.md +++ b/site/src/content/docs/guides/tmux-support.md @@ -16,7 +16,9 @@ refuses an older daemon before the requested operation has any effect. ## Minimum by port -- Python (`libtmux`), tmuxp and `libtmux-mcp`: tmux 3.2a. +- Python (`libtmux`) and `libtmux-mcp`: tmux 3.2a. +- tmuxp: tmux 3.2a, the floor of the `libtmux` release it depends on. Its own + README and quickstart say 3.2. - Elixir: tmux 3.3. - Every other port, with its MCP server and workspace builder: tmux 3.3a. diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index 283f00e05..7189728ec 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -25,7 +25,7 @@ export const PORT_FLOORS = [ { path: 'site/src/content/docs/ports/py/', version: '3.2a', - why: 'libtmux and libtmux-mcp declare TMUX_MIN_VERSION and a README floor of 3.2a', + why: 'libtmux declares TMUX_MIN_VERSION 3.2a and libtmux-mcp documents >= 3.2a; tmuxp depends on libtmux, so its pages state 3.2a too', }, { path: 'site/src/content/docs/ports/elixir/', @@ -43,7 +43,7 @@ export const OTHER_FLOORS = [ { path: 'site/src/content/_workspace-shared/workspace/guides/installation.md', version: '3.2a', - why: 'the tmuxp paragraph; tmuxp runs on the libtmux floor, 3.2a', + why: 'the tmuxp paragraph; tmuxp depends on libtmux~=0.62.0, whose TMUX_MIN_VERSION is 3.2a, although its own README, quickstart and plugin.py say 3.2', }, { path: 'site/src/data/home-examples.json', From 3aaa0f64085c522417f6a7b1ff68725a57a42a97 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:21:04 -0500 Subject: [PATCH 46/53] test(site) Match every phrasing of a tmux minimum why: The check recognised only "tmux X or newer", "tmux X+" and "tmux X through Y", and exempted any version that followed "on". A page could say "runs on tmux 3.2a or newer", "tmux 3.2a and later", "tmux >= 3.2a" or "at least tmux 3.2a" and the old floor passed. The support guide's own "tmux 3.3a and newer" was never read. what: - Match "or"/"and" followed by newer, later, higher, greater or above, a leading ">=" or "at least", emphasis marks and "version" between the words, beside the existing "+" and "through" forms - Replace the blanket "on" exemption with the words that date a fact about tmux: "added on", "introduced in", "present on", "since" and a snake_case format field followed by "on"; "runs on" and "works on" are promises and are checked - Add an entry for the one fact the narrower rule flags, the history limit behaviour from tmux 3.7 on the Rust MCP tool-selection page - Add a wrong floor and a clean control for each phrasing, a fact that stays exempt, and a check that the support guide is scanned Each pane_dead_signal sentence on the format-token pages stays exempt as a fact about the field. --- site/test/tmux-minimum.test.ts | 127 +++++++++++++++++++++++++++------ 1 file changed, 107 insertions(+), 20 deletions(-) diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index 7189728ec..a72b22d49 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -6,13 +6,14 @@ import { describe, expect, it } from 'vitest' /** * Every statement of a tmux minimum names the floor of the port it is about. * - * A requirement phrased "tmux X or newer", "tmux X+" or "tmux X through Y" - * is a support promise. These pages, example prerequisites and install notes - * must agree with the floor in the core tmux support contract, which is 3.3a - * unless the port declares another. Facts about tmux itself, such as the - * release that added a format field, use other phrasing, or follow "on", and - * are not matched. Staged port guides come from pinned port revisions and - * carry their own floor. + * A requirement phrased "tmux X or newer", "tmux X and later", "tmux >= X", + * "at least tmux X", "tmux X+" or "tmux X through Y" is a support promise. + * These pages, example prerequisites and install notes must agree with the + * floor in the core tmux support contract, which is 3.3a unless the port + * declares another. Facts about tmux itself, such as the release that added a + * format field, are not promises and are not matched when the version follows + * a word that dates the fact. Staged port guides come from pinned port + * revisions and carry their own floor. */ const FLOOR = '3.3a' @@ -65,6 +66,11 @@ export const OTHER_FLOORS = [ version: '3.2a', why: 'documents a prototype pinned at an older libtmux-rs revision whose own README says 3.2a', }, + { + path: 'site/src/content/docs/ports/rs/mcp/topics/tool-selection.md', + version: '3.7', + why: 'a tmux behaviour of the history-limit option from tmux 3.7, not a library minimum', + }, ] const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') @@ -82,16 +88,47 @@ function files(path: string): string[] { return entries.flatMap((entry) => files(join(path, entry.name))) } -/** A minimum promise: the version after "tmux" is followed by a floor phrase. */ -export function minimums(text: string): string[] { - const found: string[] = [] - const pattern = /(?=", "at least"). Emphasis marks may sit + * between the words. + */ +const MINIMUM = new RegExp( + String.raw`(?\bat\s+least\s+)?\btmux\s+[*_\x60]*(?:version\s+)?(?(?:>=|≥)\s*)?` + + String.raw`(?\d+\.\d+[a-z]?)[*_\x60]*` + + String.raw`(?\s+(?:or|and)\s+(?:newer|later|higher|greater|above)\b|\+|\s+through\s+\d)?`, + 'gi', +) + +/** + * The words before a version that make it a fact about tmux: what a release + * added or dated ("added on", "present in", "since"), or a format field + * ("`pane_dead_signal` on"). "runs on" and "works on" are promises. + */ +const FACT_LEAD = /(?:\b(?:added|introduced|present|arrived|appears?|appeared|exists?)\s+(?:on|in|with|since)|\bsince|\x60[a-z]+(?:_[a-z]+)+\x60\s+on)\s+$/i + +function scan(text: string): { version: string, index: number }[] { + const found = [] + for (const match of text.matchAll(MINIMUM)) { + const { least, ge, version, tail } = match.groups! + if (!(least || ge || tail)) continue + if (FACT_LEAD.test(text.slice(Math.max(0, match.index - 40), match.index))) continue + found.push({ version, index: match.index }) + } return found } -interface Statement { path: string, version: string } +/** A minimum promise: the versions that pass the phrasing and fact rules above. */ +export function minimums(text: string): string[] { + return scan(text).map((found) => found.version) +} + interface Floor { path: string, version: string } +interface Statement { path: string, version: string } + +export function statementsIn(path: string, text: string): Statement[] { + return scan(text).map(({ version }) => ({ path, version })) +} /** Statements that disagree with their floor, then entries that excuse or require nothing. */ export function mismatches(statements: Statement[], ports: Floor[], others: Floor[]): string[] { @@ -108,23 +145,47 @@ export function mismatches(statements: Statement[], ports: Floor[], others: Floo return [...wrong, ...unused] } +const statement = (path: string, version: string): Statement => ({ path, version }) + describe('tmux minimum statements', () => { it('recognizes each phrasing of a minimum', () => { expect(minimums('Use tmux 3.2a or newer.')).toEqual(['3.2a']) expect(minimums('Use tmux 3.2\nor newer.')).toEqual(['3.2']) expect(minimums('Use tmux 3.2a through 3.7c.')).toEqual(['3.2a']) expect(minimums('tmux 3.2a+ is a target')).toEqual(['3.2a']) - expect(minimums('A field present on tmux 3.3 or\nnewer is optional.')).toEqual([]) expect(minimums('The example ran on tmux 3.2a and 3.7c.')).toEqual([]) + expect(minimums('Use **tmux 3.2a** or later.')).toEqual(['3.2a']) + expect(minimums('Needs tmux version 3.2a or newer.')).toEqual(['3.2a']) + }) + + it('recognizes a minimum that "on" or a comparison would hide', () => { + expect(minimums('It runs on tmux 3.2a or newer.')).toEqual(['3.2a']) + expect(minimums('It works on tmux 3.2a and later.')).toEqual(['3.2a']) + expect(minimums('It supports tmux 3.2a and newer.')).toEqual(['3.2a']) + expect(minimums('It supports tmux 3.2a or later.')).toEqual(['3.2a']) + expect(minimums('It needs tmux >= 3.2a.')).toEqual(['3.2a']) + expect(minimums('Ensure you have tmux **>= 3.2**.')).toEqual(['3.2']) + expect(minimums('It needs at least tmux 3.2a.')).toEqual(['3.2a']) + expect(minimums('It needs at least tmux 3.2a or newer.')).toEqual(['3.2a']) + }) + + it('leaves facts about tmux alone', () => { + expect(minimums('A field present on tmux 3.3 or\nnewer is optional.')).toEqual([]) + expect(minimums('Hooks were added on tmux 3.4 or newer.')).toEqual([]) + expect(minimums('Available since tmux 3.2a and later, the hook fires.')).toEqual([]) + expect(minimums('Read `pane_dead_signal` on tmux 3.3 or\nnewer.')).toEqual([]) + expect(minimums('The flag appears in tmux 3.2a and newer.')).toEqual([]) + expect(minimums('Use tmux 3.2a for the manual.')).toEqual([]) }) it('names the floor of its port everywhere a minimum is stated', () => { const statements: Statement[] = [] for (const path of RANGES.flatMap(files)) { if (!/\.(md|mdx|json|ts)$/.test(path) || path.includes('/_staged/')) continue - for (const version of minimums(readFileSync(join(ROOT, path), 'utf8'))) statements.push({ path, version }) + statements.push(...statementsIn(path, readFileSync(join(ROOT, path), 'utf8'))) } expect(statements.length).toBeGreaterThan(50) + expect(statements.some((found) => found.path.endsWith('guides/tmux-support.md'))).toBe(true) expect(mismatches(statements, PORT_FLOORS, OTHER_FLOORS)).toEqual([]) }) @@ -141,15 +202,15 @@ describe('tmux minimum statements', () => { const ports = [{ path: 'a/', version: '3.2a' }] const others = [{ path: 'm.md', version: '3.3' }] const clean = [ - { path: 'a/b.md', version: '3.2a' }, - { path: 'c.md', version: FLOOR }, - { path: 'm.md', version: '3.3' }, + statement('a/b.md', '3.2a'), + statement('c.md', FLOOR), + statement('m.md', '3.3'), ] expect(mismatches(clean, ports, others)).toEqual([]) - expect(mismatches([...clean, { path: 'c.md', version: '3.2a' }], ports, others)).toEqual([ + expect(mismatches([...clean, statement('c.md', '3.2a')], ports, others)).toEqual([ 'c.md: tmux 3.2a, expected 3.3a', ]) - expect(mismatches([...clean, { path: 'a/d.md', version: FLOOR }], ports, others)).toEqual([ + expect(mismatches([...clean, statement('a/d.md', FLOOR)], ports, others)).toEqual([ 'a/d.md: tmux 3.3a, expected 3.2a', ]) expect(mismatches(clean.slice(1), ports, others)).toEqual([ @@ -159,4 +220,30 @@ describe('tmux minimum statements', () => { 'stale entry: m.md names tmux 3.3, which no statement there states', ]) }) + + it.each([ + 'tmux {v} or newer', + 'tmux {v} or later', + 'tmux {v} and newer', + 'tmux {v} and later', + 'tmux {v}+', + 'tmux {v} through 3.7c', + 'tmux >= {v}', + 'at least tmux {v}', + 'runs on tmux {v} or newer', + 'works on tmux {v} and later', + ])('fails a wrong floor phrased "%s" beside a clean control', (phrase) => { + const page = (version: string) => statementsIn('c.md', `Note: ${phrase.replace('{v}', version)}.`) + expect(mismatches(page(FLOOR), [], [])).toEqual([]) + expect(mismatches(page('3.2a'), [], [])).toEqual(['c.md: tmux 3.2a, expected 3.3a']) + }) + + it('passes a version in a fact about tmux whatever its value', () => { + const facts = [ + 'A field present on tmux 3.2a or newer is optional.', + 'Hooks were added on tmux 3.2a or newer.', + 'Since tmux 3.2a and later, the hook fires.', + ] + for (const fact of facts) expect(mismatches(statementsIn('c.md', fact), [], [])).toEqual([]) + }) }) From 0ea044e5dfb314745e38606a42da53556de4d192 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:21:13 -0500 Subject: [PATCH 47/53] test(site) Scope tmux floor exemptions to their statement why: The OTHER_FLOORS entries for home-examples.json, installation.md and ports.ts excused a version for the whole file. A Ruby prerequisites line of "tmux 3.2a or newer" in home-examples.json passed the check, because the entry for the Python quickstart already excused 3.2a there. what: - Give each statement its context: the paragraph in Markdown, the line in JSON and TypeScript - Let an OTHER_FLOORS entry carry a `near` pattern that the statement's context must match, and name it in a stale-entry message - Narrow the entries to the tmuxp paragraph, the Python and Elixir quickstart prerequisites, the Elixir install notes and the history limit sentence; the whole-page entry for the Rust prototype page stays as it is, because every statement there is about that prototype - Add a case where one file holds an exempt statement and a wrong one, in JSON and Markdown, and a case where the exempt one is gone --- site/test/tmux-minimum.test.ts | 50 ++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/site/test/tmux-minimum.test.ts b/site/test/tmux-minimum.test.ts index a72b22d49..85b77f9a7 100644 --- a/site/test/tmux-minimum.test.ts +++ b/site/test/tmux-minimum.test.ts @@ -37,28 +37,34 @@ export const PORT_FLOORS = [ /** * Single statements elsewhere that name another floor on purpose, usually in - * a file that speaks for several ports. An entry that matches no statement - * fails, so an exemption cannot outlive the text it covers. + * a file that speaks for several ports. `near` selects the statement by its + * paragraph (its line, outside Markdown), so a wrong floor elsewhere in the + * same file still fails. An entry that matches no statement fails, so an + * exemption cannot outlive the text it covers. */ export const OTHER_FLOORS = [ { path: 'site/src/content/_workspace-shared/workspace/guides/installation.md', version: '3.2a', + near: /tmuxp/, why: 'the tmuxp paragraph; tmuxp depends on libtmux~=0.62.0, whose TMUX_MIN_VERSION is 3.2a, although its own README, quickstart and plugin.py say 3.2', }, { path: 'site/src/data/home-examples.json', version: '3.2a', + near: /Python \d/, why: 'the Python quickstart prerequisites', }, { path: 'site/src/data/home-examples.json', version: '3.3', + near: /Elixir \d/, why: 'the Elixir quickstart prerequisites; priv/tmux/support.json declares tmux_minimum 3.3', }, { path: 'site/src/lib/ports.ts', version: '3.3', + near: /Elixir \d/, why: 'the Elixir install notes; priv/tmux/support.json declares tmux_minimum 3.3', }, { @@ -69,6 +75,7 @@ export const OTHER_FLOORS = [ { path: 'site/src/content/docs/ports/rs/mcp/topics/tool-selection.md', version: '3.7', + near: /history limit/, why: 'a tmux behaviour of the history-limit option from tmux 3.7, not a library minimum', }, ] @@ -123,17 +130,26 @@ export function minimums(text: string): string[] { return scan(text).map((found) => found.version) } -interface Floor { path: string, version: string } -interface Statement { path: string, version: string } +interface Floor { path: string, version: string, near?: RegExp } +interface Statement { path: string, version: string, context: string } + +/** The paragraph around an index in Markdown, otherwise its line. */ +function around(path: string, text: string, index: number): string { + const separator = /\.mdx?$/.test(path) ? '\n\n' : '\n' + const before = text.lastIndexOf(separator, index) + const after = text.indexOf(separator, index) + return text.slice(before < 0 ? 0 : before + separator.length, after < 0 ? text.length : after) +} export function statementsIn(path: string, text: string): Statement[] { - return scan(text).map(({ version }) => ({ path, version })) + return scan(text).map(({ version, index }) => ({ path, version, context: around(path, text, index) })) } /** Statements that disagree with their floor, then entries that excuse or require nothing. */ export function mismatches(statements: Statement[], ports: Floor[], others: Floor[]): string[] { const covers = (entry: Floor, statement: Statement) => - statement.version === entry.version && statement.path.startsWith(entry.path) + statement.version === entry.version && statement.path.startsWith(entry.path) && + (entry.near?.test(statement.context) ?? true) const expected = (statement: Statement) => ports.find((port) => statement.path.startsWith(port.path))?.version ?? FLOOR const wrong = statements @@ -141,11 +157,11 @@ export function mismatches(statements: Statement[], ports: Floor[], others: Floo .map((statement) => `${statement.path}: tmux ${statement.version}, expected ${expected(statement)}`) const unused = [...ports, ...others] .filter((entry) => !statements.some((statement) => covers(entry, statement))) - .map((entry) => `stale entry: ${entry.path} names tmux ${entry.version}, which no statement there states`) + .map((entry) => `stale entry: ${entry.path} names tmux ${entry.version}${entry.near ? ` near ${entry.near}` : ''}, which no statement there states`) return [...wrong, ...unused] } -const statement = (path: string, version: string): Statement => ({ path, version }) +const statement = (path: string, version: string, context = ''): Statement => ({ path, version, context }) describe('tmux minimum statements', () => { it('recognizes each phrasing of a minimum', () => { @@ -246,4 +262,22 @@ describe('tmux minimum statements', () => { ] for (const fact of facts) expect(mismatches(statementsIn('c.md', fact), [], [])).toEqual([]) }) + + it('limits an exemption to the statement it names', () => { + const others = [{ path: 'm.json', version: '3.3', near: /Elixir/ }] + const elixir = '{ "elixir": "Elixir 1.20 and tmux 3.3 or newer" }' + const go = '{ "go": "Go 1.26 and tmux 3.3 or newer" }' + expect(mismatches(statementsIn('m.json', elixir), [], others)).toEqual([]) + expect(mismatches(statementsIn('m.json', `${elixir}\n${go}`), [], others)).toEqual([ + 'm.json: tmux 3.3, expected 3.3a', + ]) + expect(mismatches(statementsIn('m.json', go), [], others)).toEqual([ + 'm.json: tmux 3.3, expected 3.3a', + 'stale entry: m.json names tmux 3.3 near /Elixir/, which no statement there states', + ]) + const paragraphs = 'The Elixir port needs tmux 3.3 or newer.\n\nThe Go port needs tmux 3.3 or newer.' + expect(mismatches(statementsIn('m.md', paragraphs), [], [{ path: 'm.md', version: '3.3', near: /Elixir/ }])).toEqual([ + 'm.md: tmux 3.3, expected 3.3a', + ]) + }) }) From fe34ab60d9d6de86dd305fa1cd8cf73d701bee68 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:21:37 -0500 Subject: [PATCH 48/53] fix(just) Refuse clean and nuke while an assembly holds the lock why: `pnpm run clean` (scripts/clean-build.sh) opens .build.lock on descriptor 9 and refuses with `flock --nonblock` while an assembly holds it, because a clean that deletes _site and site/.astro under a running build leaves a tree whose pages and bundled scripts come from different builds. `just clean` and `just nuke` ran `git clean` without taking the lock, so they could delete the same directories in the middle of an assembly, and the three cleans disagreed. what: - Make clean and nuke shebang recipes that take the lock exactly as clean-build.sh does and exit 1 with a message naming .build.lock; clean-dry only previews, so it still runs while a build does - Leave descriptor 9 open for git clean rather than closing it with `flock -o`: git clean writes the tree, and a child that still holds the descriptor keeps the lock if the recipe is killed, which is the behaviour build-site.sh relies on. No tmux server starts under it - Hold .build.lock from a child `flock` in the test and assert that each recipe exits 1, prints the message and deletes nothing, then runs and removes files once the holder releases; clean-dry still lists node_modules/ while the lock is held - Run a recipe body as a script when it starts with a shebang, so the existing clean and clean-dry assertions still read the justfile that ships - Before the change both lock assertions failed, because the recipes exited 0 and deleted files with the lock held; the other six assertions passed on the old and the new justfile --- justfile | 23 ++++++-- site/test/just-clean.test.ts | 103 ++++++++++++++++++++++++++++++----- 2 files changed, 108 insertions(+), 18 deletions(-) diff --git a/justfile b/justfile index 1973acbdd..466b4afbc 100644 --- a/justfile +++ b/justfile @@ -5,21 +5,34 @@ default: @just --list -# Remove ignored build artifacts such as node_modules. Untracked files, .env -# files, the .build-cache/ build cache and the .build.lock file stay. -# `pnpm run clean` remains the build-aware clean of generated site output. +# Remove ignored build output such as node_modules; .env, cache and lock stay. [group: 'clean'] clean: + #!/usr/bin/env bash + # Untracked files, .env and .env.* files, the .build-cache/ build cache and + # the .build.lock file stay. `pnpm run clean` remains the build-aware clean + # of generated site output, and takes the lock the same way: it refuses + # while an assembly holds it. git clean inherits the descriptor, so killing + # this script does not free the lock while files are still going. + set -euo pipefail + exec 9>>.build.lock + flock --nonblock 9 || { printf 'just clean: an assembly holds .build.lock; wait for it to finish.\n' >&2; exit 1; } git clean -fdX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' -# Preview what clean will delete. +# Preview what clean will delete. It deletes nothing, so it ignores the lock. [group: 'clean'] clean-dry: git clean -ndX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' # Remove ignored and untracked files. .env and .env.* stay. -# git clean -x ignores .gitignore and only preserves -e patterns, so .env is named here rather than negated. [group: 'clean'] [confirm("This will delete all untracked and ignored files. Continue?")] nuke: + #!/usr/bin/env bash + # Refuses while an assembly holds .build.lock, as clean does, once the + # prompt is answered. git clean -x ignores .gitignore and only preserves -e + # patterns, so .env is named here rather than negated. + set -euo pipefail + exec 9>>.build.lock + flock --nonblock 9 || { printf 'just nuke: an assembly holds .build.lock; wait for it to finish.\n' >&2; exit 1; } git clean -fdx -e '.env' -e '.env.*' diff --git a/site/test/just-clean.test.ts b/site/test/just-clean.test.ts index 48f84ce0b..931c4ba78 100644 --- a/site/test/just-clean.test.ts +++ b/site/test/just-clean.test.ts @@ -1,4 +1,4 @@ -import { execFileSync } from 'node:child_process' +import { execFileSync, spawn, spawnSync, type SpawnSyncReturns } from 'node:child_process' import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' import { tmpdir } from 'node:os' import { dirname, join } from 'node:path' @@ -10,8 +10,8 @@ import { afterAll, describe, expect, it } from 'vitest' * * The recipes run in a scratch repository that has this repository's own * .gitignore plus the .env rules a developer adds. The build cache and the lock - * file are ignored, so only the recipe's exclusions keep them. `pnpm run clean` - * remains the build-aware clean of generated site output. + * file are ignored, so only the recipe's exclusions keep them. Both deleting + * recipes refuse while an assembly holds .build.lock, as `pnpm run clean` does. */ const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') const scratch = mkdtempSync(join(tmpdir(), 'just-clean-')) @@ -30,6 +30,13 @@ export function recipe(justfile: string, name: string): string[] { return body } +/** The `git clean` line of a recipe body. */ +function gitClean(body: string[]): string { + const line = body.find((candidate) => candidate.startsWith('git clean')) + if (line === undefined) throw new Error('recipe has no git clean line') + return line +} + /** A repository with ignored, kept and untracked files, ready to be cleaned. */ function fixture(): string { const dir = mkdtempSync(join(scratch, 'repo-')) @@ -47,8 +54,44 @@ function fixture(): string { return dir } -function run(dir: string, command: string): string[] { - return execFileSync('sh', ['-c', command], { cwd: dir, encoding: 'utf8' }).split('\n').filter(Boolean) +let scripts = 0 + +/** Runs a recipe body the way `just` does: a shebang body as a script, else one shell line. */ +function attempt(dir: string, body: string[]): SpawnSyncReturns { + if (body[0]?.startsWith('#!')) { + const script = join(scratch, `recipe-${scripts++}.sh`) + writeFileSync(script, `${body.join('\n')}\n`) + return spawnSync('bash', [script], { cwd: dir, encoding: 'utf8' }) + } + return spawnSync('sh', ['-c', body.join('\n')], { cwd: dir, encoding: 'utf8' }) +} + +function run(dir: string, body: string[]): string[] { + const result = attempt(dir, body) + if (result.status !== 0) throw new Error(`recipe exited ${result.status}: ${result.stderr}`) + return result.stdout.split('\n').filter(Boolean) +} + +/** Every file in the repository outside .git, as the recipes leave it. */ +function files(dir: string): string[] { + return execFileSync('find', ['.', '-path', './.git', '-prune', '-o', '-type', 'f', '-print'], { cwd: dir, encoding: 'utf8' }) + .split('\n') + .filter(Boolean) + .sort() +} + +/** Holds `.build.lock` as an assembly does, until the returned function releases it. */ +async function holdLock(dir: string): Promise<() => Promise> { + const holder = spawn('flock', [join(dir, '.build.lock'), 'sh', '-c', 'echo held; read release'], { stdio: ['pipe', 'pipe', 'inherit'] }) + await new Promise((resolve, reject) => { + holder.once('error', reject) + holder.stdout.once('data', () => resolve()) + }) + return () => + new Promise((resolve) => { + holder.once('exit', () => resolve()) + holder.stdin.end('\n') + }) } describe('just clean', () => { @@ -56,8 +99,7 @@ describe('just clean', () => { const exclusions = (command: string) => command.match(/-e '[^']+'/g) ?? [] it('lists ignored output and keeps the build cache, the lock and .env files', () => { - const [command] = recipe(justfile, 'clean-dry') - const listed = run(fixture(), command) + const listed = run(fixture(), recipe(justfile, 'clean-dry')) expect(listed).toContain('Would remove node_modules/') expect(listed).toContain('Would remove _site/') expect(listed).toContain('Would remove debug.log') @@ -68,10 +110,8 @@ describe('just clean', () => { it('removes what the dry run lists and nothing more', () => { const dir = fixture() - const [command] = recipe(justfile, 'clean') - run(dir, command) - const left = run(dir, 'find . -path ./.git -prune -o -type f -print').sort() - expect(left).toEqual([ + run(dir, recipe(justfile, 'clean')) + expect(files(dir)).toEqual([ './.build-cache/shell-1/page.html', './.build.lock', './.env', @@ -83,11 +123,11 @@ describe('just clean', () => { }) it('previews with the exclusions it deletes with', () => { - expect(exclusions(recipe(justfile, 'clean')[0])).toEqual(exclusions(recipe(justfile, 'clean-dry')[0])) + expect(exclusions(gitClean(recipe(justfile, 'clean')))).toEqual(exclusions(gitClean(recipe(justfile, 'clean-dry')))) }) it('would delete the cache, the lock and .env files without the exclusions', () => { - const listed = run(fixture(), 'git clean -ndX') + const listed = run(fixture(), ['git clean -ndX']) for (const removed of ['.build-cache/', '.build.lock', '.env', '.env.local']) { expect(listed.filter((line) => line.includes(removed))).not.toEqual([]) } @@ -98,3 +138,40 @@ describe('just clean', () => { expect(() => recipe('a:\n one\n', 'missing')).toThrow('no recipe named missing') }) }) + +describe.each(['clean', 'nuke'])('just %s while an assembly runs', (name) => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + + it('refuses while .build.lock is held, deletes nothing, and runs once it is released', async () => { + const dir = fixture() + const before = files(dir) + const release = await holdLock(dir) + try { + const refused = attempt(dir, recipe(justfile, name)) + expect(refused.status).toBe(1) + expect(refused.stderr).toContain('an assembly holds .build.lock') + expect(files(dir)).toEqual(before) + } finally { + await release() + } + const ran = attempt(dir, recipe(justfile, name)) + expect(ran.status).toBe(0) + expect(files(dir)).not.toContain('./debug.log') + expect(files(dir)).not.toEqual(before) + }) +}) + +describe('just clean-dry while an assembly runs', () => { + it('previews anyway, since it deletes nothing', async () => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + const dir = fixture() + const release = await holdLock(dir) + try { + const preview = attempt(dir, recipe(justfile, 'clean-dry')) + expect(preview.status).toBe(0) + expect(preview.stdout).toContain('Would remove node_modules/') + } finally { + await release() + } + }) +}) From 2e88cf8272ccc12ea0fdae47aa2a577a2ce58097 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:21:51 -0500 Subject: [PATCH 49/53] fix(just) Say what nuke removes and keeps, and test it why: The nuke prompt read "This will delete all untracked and ignored files." That is wrong both ways. `.env` and `.env.*` stay, at any depth, and the prompt did not say that the build cache and the lock file go, which `just clean` goes out of its way to keep. Someone answering y could not tell what survives. The recipe also had no test at all, so neither the removal nor the confirmation was checked. what: - Reword the prompt to name node_modules/, the .build-cache/ build cache and the .build.lock file as removed, and .env and .env.* as kept, and drop "all"; reword the --list summary to match - Test that the prompt contains each -e pattern nuke passes to git clean and each path clean un-ignores beyond the .env files, so the prompt follows the recipes when either list changes - Run the nuke body in the scratch repository and assert it removes the untracked file, the cache, _site/ and the lock, and leaves only the tracked .gitignore, .env, .env.local and sub/.env; the same repository under bare `git clean -fdx` loses the .env files - With `just` on PATH, run the shipped justfile: `just --yes nuke` leaves the same files, and `just nuke` with stdin closed exits non-zero with "was not confirmed", prints the prompt and deletes nothing. These two skip where `just` is not installed, which is the case in the test workflow - Before the change only the prompt assertion failed. The removal and confirmation assertions describe behaviour the recipe already had; dropping `-e '.env.*'` fails three of them, and dropping the [confirm] attribute fails the non-interactive one and the prompt one --- justfile | 4 +- site/test/just-clean.test.ts | 75 +++++++++++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 466b4afbc..89dc9061c 100644 --- a/justfile +++ b/justfile @@ -24,9 +24,9 @@ clean: clean-dry: git clean -ndX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' -# Remove ignored and untracked files. .env and .env.* stay. +# Remove untracked and ignored files, even the cache and lock; .env files stay. [group: 'clean'] -[confirm("This will delete all untracked and ignored files. Continue?")] +[confirm("Remove untracked and ignored files, including node_modules/, the .build-cache/ build cache and the .build.lock file. Files named .env and .env.* stay. Continue?")] nuke: #!/usr/bin/env bash # Refuses while an assembly holds .build.lock, as clean does, once the diff --git a/site/test/just-clean.test.ts b/site/test/just-clean.test.ts index 931c4ba78..fc1714844 100644 --- a/site/test/just-clean.test.ts +++ b/site/test/just-clean.test.ts @@ -6,12 +6,14 @@ import { fileURLToPath } from 'node:url' import { afterAll, describe, expect, it } from 'vitest' /** - * `just clean` removes ignored output and nothing the build depends on. + * `just clean` removes ignored output and nothing the build depends on, and + * `just nuke` removes everything it says it removes. * * The recipes run in a scratch repository that has this repository's own * .gitignore plus the .env rules a developer adds. The build cache and the lock * file are ignored, so only the recipe's exclusions keep them. Both deleting * recipes refuse while an assembly holds .build.lock, as `pnpm run clean` does. + * The `just` runs need the binary on PATH and skip without it. */ const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') const scratch = mkdtempSync(join(tmpdir(), 'just-clean-')) @@ -30,6 +32,18 @@ export function recipe(justfile: string, name: string): string[] { return body } +/** The prompt of a recipe's `[confirm("...")]` attribute, if it has one. */ +export function confirmPrompt(justfile: string, name: string): string | undefined { + const lines = justfile.split('\n') + const start = lines.findIndex((line) => line.startsWith(`${name}:`)) + if (start === -1) throw new Error(`no recipe named ${name}`) + for (let index = start - 1; index >= 0 && lines[index].startsWith('['); index--) { + const prompt = lines[index].match(/^\[confirm\("(.*)"\)\]$/) + if (prompt) return prompt[1] + } + return undefined +} + /** The `git clean` line of a recipe body. */ function gitClean(body: string[]): string { const line = body.find((candidate) => candidate.startsWith('git clean')) @@ -94,6 +108,9 @@ async function holdLock(dir: string): Promise<() => Promise> { }) } +/** What `just nuke` leaves: the tracked .gitignore and the .env files, at any depth. */ +const LEFT_BY_NUKE = ['./.env', './.env.local', './.gitignore', './sub/.env'] + describe('just clean', () => { const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') const exclusions = (command: string) => command.match(/-e '[^']+'/g) ?? [] @@ -137,6 +154,11 @@ describe('just clean', () => { expect(recipe('a:\n one\n two\n\nb:\n three\n', 'a')).toEqual(['one', 'two']) expect(() => recipe('a:\n one\n', 'missing')).toThrow('no recipe named missing') }) + + it('reads a confirm prompt and tells a recipe without one', () => { + expect(confirmPrompt('[group: \'x\']\n[confirm("Sure?")]\na:\n one\n', 'a')).toBe('Sure?') + expect(confirmPrompt('a:\n one\n', 'a')).toBeUndefined() + }) }) describe.each(['clean', 'nuke'])('just %s while an assembly runs', (name) => { @@ -175,3 +197,54 @@ describe('just clean-dry while an assembly runs', () => { } }) }) + +describe('just nuke', () => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + const hasJust = spawnSync('just', ['--version']).status === 0 + const withJust = (dir: string, ...args: string[]) => + spawnSync('just', ['--justfile', join(ROOT, 'justfile'), '--working-directory', dir, ...args], { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'pipe'], + }) + + it('removes untracked files, the build cache and the lock, and keeps the .env files', () => { + const dir = fixture() + run(dir, recipe(justfile, 'nuke')) + expect(files(dir)).toEqual(LEFT_BY_NUKE) + }) + + it('would delete the .env files without the exclusions', () => { + const dir = fixture() + run(dir, ['git clean -fdx']) + expect(files(dir)).toEqual(['./.gitignore']) + }) + + it('names in its prompt what it removes and what it keeps', () => { + const prompt = confirmPrompt(justfile, 'nuke') ?? '' + const kept = (gitClean(recipe(justfile, 'nuke')).match(/-e '([^']+)'/g) ?? []).map((flag) => flag.slice(4, -1)) + const alsoRemoved = (gitClean(recipe(justfile, 'clean')).match(/-e '!([^']+)'/g) ?? []) + .map((flag) => flag.slice(5, -1)) + .filter((path) => !path.startsWith('.env')) + expect(kept).toEqual(['.env', '.env.*']) + expect(alsoRemoved).toEqual(['.build-cache/', '.build.lock']) + for (const named of [...kept, ...alsoRemoved]) expect(prompt).toContain(named) + expect(prompt).not.toMatch(/\ball\b/i) + }) + + it.skipIf(!hasJust)('runs without a prompt under --yes and leaves the same files', () => { + const dir = fixture() + const result = withJust(dir, '--yes', 'nuke') + expect(result.status).toBe(0) + expect(files(dir)).toEqual(LEFT_BY_NUKE) + }) + + it.skipIf(!hasJust)('exits non-zero without a terminal and --yes, shows the prompt, and deletes nothing', () => { + const dir = fixture() + const before = files(dir) + const result = withJust(dir, 'nuke') + expect(result.status).not.toBe(0) + expect(result.stderr).toContain(confirmPrompt(justfile, 'nuke')) + expect(result.stderr).toContain('was not confirmed') + expect(files(dir)).toEqual(before) + }) +}) From c646475a554a1c86e04d97d816322670f7d1b170 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:28:19 -0500 Subject: [PATCH 50/53] fix(site[link-preview]) Write a card for reference-section prose pages why: The preview policy marks a link to //reference// for a card whatever the page is. A workspace's compatibility, exit-codes and output pages are prose in a reference section, and the guides link to them, so those links were marked and asked for .preview.json, which no build wrote: the link opened nothing. The assembled payload check is the first to list every tree, and in run 40096117796 it named those three pages of each of eight ports. Cached builds of main's go and swift shells lack the same payloads, so the gap predates this branch. what: - Add pagePreview, the card of a prose page (its title and summary, opening "Open page"), and proseReferencePreviews, which keeps only the pages the policy marks, so a guide gets no payload nothing asks for. - Have the generic preview route write them: a port build writes every prose page of its port, a root build those of a product, at the address the policy computes. The route reads the docs collection, so getStaticPaths is async and the three tests that import the route mock astro:content and await it. - Test the writer on a mocked collection: a root build and a port build (modules loaded after the port's root is set, as the assembly does) each write the marked pages at the right slug and href and none of the guides, the section's index, another port's pages or tmux prose. --- site/src/lib/link-preview.ts | 19 +++++ site/src/pages/[...slug].preview.json.ts | 18 +++- site/test/link-preview.test.ts | 1 + site/test/prose-reference-previews.test.ts | 98 ++++++++++++++++++++++ site/test/tmux-mentions.test.ts | 3 +- site/test/tmux-reference.test.ts | 7 +- 6 files changed, 139 insertions(+), 7 deletions(-) create mode 100644 site/test/prose-reference-previews.test.ts diff --git a/site/src/lib/link-preview.ts b/site/src/lib/link-preview.ts index 19286a888..044664d6a 100644 --- a/site/src/lib/link-preview.ts +++ b/site/src/lib/link-preview.ts @@ -2,6 +2,7 @@ import { docSummaryText, qualifiedNameOf, sourceUrl, type ApiModel, type ApiSymb import { productApiHref } from './product-api' import { apiGlossary } from './api-glossary' import { codeLang, highlightTokens, type CodeHighlight } from './highlight' +import { linkPreviewTarget } from './link-preview-paint' import { tmuxEntityHref } from './tmux-links' import { tmuxManual, tmuxManualEntities, tmuxManualEntityHref, tmuxManualUrl, type TmuxManualEntity } from './tmux-manual-data' @@ -41,6 +42,24 @@ export async function highlightedPreview(preview: LinkPreview): Promise/reference//` for a + * card whatever the page is, so a prose page in a reference section needs a payload as much as a declaration does. A page + * the policy does not mark, such as a guide, is left out: nothing asks for its card. + */ +export function proseReferencePreviews(pages: { title: string; description?: string; href: string }[]): { href: string; preview: LinkPreview }[] { + return pages.filter((page) => linkPreviewTarget(page.href, 'https://libtmux.org')) + .map((page) => ({ href: page.href, preview: pagePreview(page, page.href) })) +} + export function glossaryPreview(href: string): LinkPreview { const glossary = apiGlossary(href) return { schema: 1, title: glossary.title, description: glossary.description, href: glossary.path, diff --git a/site/src/pages/[...slug].preview.json.ts b/site/src/pages/[...slug].preview.json.ts index f91458480..46f0b58c6 100644 --- a/site/src/pages/[...slug].preview.json.ts +++ b/site/src/pages/[...slug].preview.json.ts @@ -1,8 +1,12 @@ import type { APIRoute } from 'astro' +import { getCollection } from 'astro:content' import { API_MODELS } from '../lib/api-models' import { productApiHref } from '../lib/product-api' -import { symbolPreview, glossaryPreview, highlightedPreview, tmuxManualPreview, type LinkPreview } from '../lib/link-preview' -import { PORT_BY_SLUG, referenceUrl } from '../lib/ports' +import { symbolPreview, glossaryPreview, highlightedPreview, proseReferencePreviews, tmuxManualPreview, type LinkPreview } from '../lib/link-preview' +import { PORT_BY_SLUG, portPageUrl, referenceUrl } from '../lib/ports' +import { docsPath } from '../lib/docs-paths' +import { docsEntriesAvailable } from '../lib/page-port-links' +import { localeOf } from '../i18n/resolve' import { symbolsForProduct } from '@libtmux/api-model' import { buildTarget } from '../lib/versions' import { buildLocale, DEFAULT_LOCALE } from '../i18n/locales' @@ -11,7 +15,7 @@ import { mcpObjects } from '../lib/mcp-catalog' import { mcpObjectPreview } from '../lib/mcp-preview' import { tmuxManualRoutes, tmuxManualUrl } from '../lib/tmux-manual-data' -export function getStaticPaths() { +export async function getStaticPaths() { if (buildLocale() !== DEFAULT_LOCALE) return [] const buildPort = process.env.LIBTMUX_DOCS_PORT const buildBase = process.env.LIBTMUX_DOCS_BASE ?? '/' @@ -42,6 +46,14 @@ export function getStaticPaths() { paths.push(route(preview.href, preview)) } } + // Prose pages beside the declarations, such as a workspace's exit codes: the policy marks a link to one for a card too. + // A root build writes a product's pages, as it does a product's declarations; a port build writes all of the port's. + const entries = docsEntriesAvailable(await getCollection('docs', (entry) => localeOf(entry.id) === DEFAULT_LOCALE), buildPort) + .filter((entry) => entry.data.port && PORT_BY_SLUG[entry.data.port] && (buildPort || entry.data.product)) + for (const { href, preview } of proseReferencePreviews(entries.map((entry) => ({ + title: entry.data.title, description: entry.data.description, + href: portPageUrl(PORT_BY_SLUG[entry.data.port!], buildPort ? buildVersion : defaults[entry.data.port!] ?? 'latest', docsPath(entry)), + })))) paths.push(route(href, preview)) return paths } export const GET: APIRoute = async ({ props }) => new Response(JSON.stringify(await highlightedPreview(props.preview)), { diff --git a/site/test/link-preview.test.ts b/site/test/link-preview.test.ts index 1dc8188bd..d3240baf5 100644 --- a/site/test/link-preview.test.ts +++ b/site/test/link-preview.test.ts @@ -9,6 +9,7 @@ import { select } from 'astro-expressive-code/hast' import { fromHtml } from 'hast-util-from-html' import { visit } from 'unist-util-visit' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +vi.mock('astro:content', () => ({ getCollection: async () => [] })) import { symbolPreview, glossaryPreview, tmuxManualPreview } from '../src/lib/link-preview' import { API_MODELS } from '../src/lib/api-models' import { productApiIndex } from '../src/lib/product-api' diff --git a/site/test/prose-reference-previews.test.ts b/site/test/prose-reference-previews.test.ts new file mode 100644 index 000000000..ee1c551a0 --- /dev/null +++ b/site/test/prose-reference-previews.test.ts @@ -0,0 +1,98 @@ +import { afterEach, describe, expect, it, vi } from 'vitest' +import { createLinkPreviewPolicy } from '../src/lib/link-preview-paint' +import { pagePreview, proseReferencePreviews } from '../src/lib/link-preview' + +const docs = vi.hoisted(() => { + const page = (id: string, data: Record) => ({ id, data: { title: id, description: `About ${id}.`, ...data } }) + return { + entries: [ + // Product pages below a port's reference section, one authored for the port and one shared by every port. + page('ports/go/workspace/reference/compatibility', { port: 'go', product: 'workspace', title: 'Runtime and configuration support' }), + page('ports/go/workspace/reference/exit-codes', { port: 'go', product: 'workspace', title: 'Exit codes and errors', description: 'Use process status to handle failures.' }), + page('ports/rs/workspace/reference/exit-codes', { port: 'rs', product: 'workspace', title: 'Exit codes and errors' }), + // Pages a link is not marked for: a guide, the section's own index, and tmux prose that no port owns. + page('ports/go/workspace/guides/automation', { port: 'go', product: 'workspace' }), + page('ports/go/workspace/reference', { port: 'go', product: 'workspace' }), + page('guides/first-steps', {}), + // A port's page that is no product's: a port build writes it, a root build leaves it to the port's own. + page('ports/go/reference/migrating', { port: 'go', route: 'reference/migrating' }), + ], + } +}) +vi.mock('astro:content', () => ({ + getCollection: async (_name: string, filter?: (entry: (typeof docs.entries)[number]) => boolean) => docs.entries.filter(filter ?? (() => true)), +})) +import { getStaticPaths, GET } from '../src/pages/[...slug].preview.json' + +afterEach(() => vi.unstubAllEnvs()) + +const slugs = async () => (await getStaticPaths()).map((path) => path.params.slug) + +describe('the card of a prose page in a reference section', () => { + it('is the page\'s own title and summary, with the link to the page', () => { + expect(pagePreview({ title: 'Exit codes and errors', description: 'Use process status.' }, '/en/go/latest/workspace/reference/exit-codes/')) + .toEqual({ schema: 1, title: 'Exit codes and errors', description: 'Use process status.', href: '/en/go/latest/workspace/reference/exit-codes/', actionLabel: 'Open page' }) + expect(pagePreview({ title: 'No summary' }, '/en/go/latest/workspace/reference/x/').description).toBe('') + }) + + it('is written for the pages the preview policy marks and for no other', () => { + const pages = [ + { title: 'Exit codes', href: '/en/go/latest/workspace/reference/exit-codes/' }, + { title: 'Automation', href: '/en/go/latest/workspace/guides/automation/' }, + { title: 'Reference', href: '/en/go/latest/workspace/reference/' }, + ] + const policy = createLinkPreviewPolicy() + expect(proseReferencePreviews(pages).map(({ href }) => href)).toEqual(['/en/go/latest/workspace/reference/exit-codes/']) + // The payload is where the policy looks for the card of the page it describes. + expect(policy.target(pages[0]!.href, 'https://libtmux.org')?.endpoint).toBe('/en/go/latest/workspace/reference/exit-codes.preview.json') + expect(pages.filter((page) => policy.target(page.href, 'https://libtmux.org')).map((page) => page.title)).toEqual(['Exit codes']) + }) +}) + +describe('the payloads a root build writes', () => { + it('include the prose reference pages of a product, at each port\'s version, and no page the policy leaves alone', async () => { + vi.stubEnv('LIBTMUX_DOCS_PORT', '') + const written = await slugs() + expect(written).toEqual(expect.arrayContaining([ + 'go/latest/workspace/reference/compatibility', 'go/latest/workspace/reference/exit-codes', 'rs/latest/workspace/reference/exit-codes', + ])) + expect(written).not.toContain('go/latest/workspace/guides/automation') + expect(written).not.toContain('go/latest/workspace/reference') + expect(written).not.toContain('go/latest/reference/migrating') + expect(written.filter((slug) => slug.startsWith('guides'))).toEqual([]) + }) + + it('answer with the card, and the versions a port is built at', async () => { + vi.stubEnv('LIBTMUX_DOCS_PORT', '') + vi.stubEnv('LIBTMUX_DOCS_PORT_DEFAULTS', JSON.stringify({ go: 'stable' })) + const path = (await getStaticPaths()).find(({ params }) => params.slug === 'go/stable/workspace/reference/exit-codes')! + expect(path).toBeDefined() + const card = await (await GET({ props: path.props } as unknown as Parameters[0])).json() + expect(card).toMatchObject({ schema: 1, title: 'Exit codes and errors', description: 'Use process status to handle failures.', actionLabel: 'Open page' }) + expect(card.href).toMatch(/\/go\/stable\/workspace\/reference\/exit-codes\/$/) + }) +}) + +describe('the payloads a port build writes', () => { + // A port build reads its root and base when its modules load, as the assembly sets them. + async function portBuild() { + vi.stubEnv('LIBTMUX_DOCS_PORT', 'go') + vi.stubEnv('LIBTMUX_DOCS_VERSION', 'stable') + vi.stubEnv('LIBTMUX_DOCS_BASE', '/en/go/stable/') + vi.stubEnv('LIBTMUX_DOCS_PORT_ROOT', '/en') + vi.resetModules() + return import('../src/pages/[...slug].preview.json') + } + + it('include every prose page of the port the policy marks, beside the page, and none of another port\'s', async () => { + const route = await portBuild() + const paths = await route.getStaticPaths() + const written = paths.map((path) => path.params.slug) + expect(written).toEqual(expect.arrayContaining(['workspace/reference/compatibility', 'workspace/reference/exit-codes', 'reference/migrating'])) + expect(written).not.toContain('workspace/guides/automation') + expect(written).not.toContain('workspace/reference') + expect(written.filter((slug) => slug.startsWith('rs/') || slug.includes('/rs/'))).toEqual([]) + const path = paths.find(({ params }) => params.slug === 'reference/migrating')! + expect((await (await route.GET({ props: path.props } as unknown as Parameters[0])).json()).href).toBe('/en/go/stable/reference/migrating/') + }) +}) diff --git a/site/test/tmux-mentions.test.ts b/site/test/tmux-mentions.test.ts index a060bdc26..8b4b9099e 100644 --- a/site/test/tmux-mentions.test.ts +++ b/site/test/tmux-mentions.test.ts @@ -6,6 +6,7 @@ import { Window } from 'happy-dom' import { fromMarkdown } from 'mdast-util-from-markdown' import { visit } from 'unist-util-visit' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +vi.mock('astro:content', () => ({ getCollection: async () => [] })) import { kindMark, markClass, markHeight } from '../src/lib/api-labels' import { tmuxManualPreview } from '../src/lib/link-preview' import { createLinkPreviewPolicy } from '../src/lib/link-preview-paint' @@ -221,7 +222,7 @@ describe('tmux hover cards', () => { expect(payload.signatureHighlight.language).toBe('tmux-usage') expect(payload.signatureHighlight.lines.map((line: { content: string }[]) => line.map((token) => token.content).join('')).join('\n')) .toBe(preview.signature) - const slugs = getStaticPaths().map((path) => path.params.slug) + const slugs = (await getStaticPaths()).map((path) => path.params.slug) expect(slugs).toEqual(expect.arrayContaining(['tmux/latest/manual/list-clients', 'tmux/latest/manual/full', 'tmux/3.2a/manual/list-clients'])) }) diff --git a/site/test/tmux-reference.test.ts b/site/test/tmux-reference.test.ts index facb2dda2..dd81172b9 100644 --- a/site/test/tmux-reference.test.ts +++ b/site/test/tmux-reference.test.ts @@ -1,4 +1,5 @@ -import { describe, expect, it } from 'vitest' +import { describe, expect, it, vi } from 'vitest' +vi.mock('astro:content', () => ({ getCollection: async () => [] })) import { readInventory, sourceUrl, writeInventory } from '@libtmux/api-model' import { tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferencePaths, tmuxReferencePreview, tmuxReferenceTree, tmuxReferenceUrl, tmuxReferenceVersionUrl, tmuxSourceCommands, tmuxSourceModel } from '../src/lib/tmux-reference' import { tmuxManual, tmuxManualUrl } from '../src/lib/tmux-manual-data' @@ -198,14 +199,14 @@ describe('the card a link to a C declaration opens', () => { } }) - it('catches a link with no card behind it, and the preview route that the generic one never covered', () => { + it('catches a link with no card behind it, and the preview route that the generic one never covered', async () => { const real = tmuxReferenceUrl('latest', tmuxSourceModel('latest').symbols.find((entry) => entry.name === 'cmd_list_panes_server')!) const invented = '/tmux/latest/reference/c-function-no-such-declaration/' // The control: the policy marks the invented address for a card, and nothing answers there. expect(linkPreviewTarget(invented, origin)).toBeDefined() expect(unanswered([real, invented], answered)).toEqual([invented]) // Before this route, the generic one was all there was, and it answers at no declaration's address. - const generic = new Set(genericPreviewPaths().map((path) => `/${path.params.slug}.preview.json`)) + const generic = new Set((await genericPreviewPaths()).map((path) => `/${path.params.slug}.preview.json`)) expect(generic.size).toBeGreaterThan(100) expect(unanswered([real], generic)).toEqual([real]) }) From 4d996dd4187cf33678e53f25bce2d2e16cb6aed1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:28:19 -0500 Subject: [PATCH 51/53] fix(site[tmux-reference]) Set redirect pages apart in the payload check why: The assembled payload check named 273 pages in run 40096117796 that are only redirects, and a redirect opens no card. They are the legacy pages of tmux's commands at /tmux//reference//, kept when commands moved to the Manual, and the retired Swift operator workspacebuildererror-(_-_-), which leads to its type. Nothing under site/src links to them, and the page each leads to has its own card. Listing them as missing payloads would have the check ask for cards for pages nobody reads, and excluding them by name would let a real page that turns into a redirect lose its card unnoticed. what: - redirectDestination reads the stub RedirectPage writes (noindex and a refresh to the destination); only a marked page with no payload is read, so the walk does not open every declaration page of a tree. - The walk returns the stubs it set apart and names any that does not lead to a page of the tree on this origin. - The assembled test bounds the stubs by what the site says it retired, the manual's routes (the full manual's old address is `manual`) and productApiRedirects, so a page that is a redirect for another reason fails. It loads those models only in the assembled run, and has a deadline that fits listing every tree: the walk took 10.8 s in the hosted run, and was not cut off only because it never yielded. - Test the walk on the real RedirectPage markup: a stub that leads to a page is set apart; one that leads nowhere, off this origin or outside the tree's base is named; a page that is merely noindex, or has only a refresh, is a page and is named when it has no payload; a tree of only the good stub is clean. - Run against a tree of the 272 tmux pages from the failed run plus the Swift stub, the assembled test passes; with a real page without a payload added it fails naming it, and with a stub the site did not retire it fails naming that. --- site/test/reference-previews.test.ts | 105 +++++++++++++++++++++++---- 1 file changed, 91 insertions(+), 14 deletions(-) diff --git a/site/test/reference-previews.test.ts b/site/test/reference-previews.test.ts index eb859e6cb..bd49a41fc 100644 --- a/site/test/reference-previews.test.ts +++ b/site/test/reference-previews.test.ts @@ -3,7 +3,8 @@ import { tmpdir } from 'node:os' import { join } from 'node:path' import { afterEach, describe, expect, it } from 'vitest' import { createLinkPreviewPolicy } from '../src/lib/link-preview-paint' -import { SITE_BUILT, SITE_ROOT } from './site-root' +import { loadAstroTemplate, renderAstroTemplate } from './astro-templates' +import { SITE_BUILT, SITE_PREFIX, SITE_ROOT } from './site-root' /** * Every reference page a link can lead to has a preview payload beside it. @@ -13,6 +14,9 @@ import { SITE_BUILT, SITE_ROOT } from './site-root' * versions the assembly builds, such as the Python reference that the other ports link to at `stable`. Those trees are the * shell's own: each port's shell build renders `///reference/` (the native Sphinx output of a port is `api/`), * and `publishesOwnTree` says the port's publisher owns the subtree, not that it is made another way. This reads the assembly. + * + * A page that is only a redirect (`RedirectPage`) is not read by anyone, so no link opens a card for it: the page it names has + * the card. The walk sets those apart as `stubs`, and asks only that each leads to a page of the tree. */ const ORIGIN = 'https://libtmux.org' const policy = createLinkPreviewPolicy() @@ -24,37 +28,80 @@ function referenceRoots(root: string): string[] { .map((section) => `${tree}/${version}/${section}`))).filter((path) => existsSync(join(root, path))) } -/** The reference pages the policy marks for a card, and what is wrong with each one's payload. */ -export function referencePayloadProblems(root: string) { +/** + * Where a redirect page sends, when that is what the page is: the stub `RedirectPage` writes carries `noindex` and, for a + * reader without scripts, a refresh to its destination. Only a page that has both is a stub, so a page that is merely + * unlisted, or one that mentions a refresh, is not set apart. + */ +export function redirectDestination(html: string): string | undefined { + if (!//.test(html)) return undefined + return //.exec(html)?.[1] +} + +/** + * The reference pages the policy marks for a card, what is wrong with each one's payload, and the marked pages that are only + * redirects (`stubs`). `base` is where the tree is served, so that a stub's destination is found in it. + */ +export function referencePayloadProblems(root: string, base = '/en/') { const pages: string[] = [] + const stubs: string[] = [] const problems: string[] = [] - for (const base of referenceRoots(root)) { - for (const entry of readdirSync(join(root, base), { withFileTypes: true })) { - const url = `/${base}/${entry.name}/` - if (!entry.isDirectory() || !existsSync(join(root, base, entry.name, 'index.html'))) continue + for (const section of referenceRoots(root)) { + for (const entry of readdirSync(join(root, section), { withFileTypes: true })) { + const url = `/${section}/${entry.name}/` + const index = join(root, section, entry.name, 'index.html') + if (!entry.isDirectory() || !existsSync(index)) continue const target = policy.target(url, ORIGIN) if (!target || !/\/reference\/[^/]+\/$/.test(url)) continue - pages.push(url) const file = join(root, target.endpoint) - if (!existsSync(file)) { problems.push(`${url} has no payload at ${target.endpoint}`); continue } + if (!existsSync(file)) { + // Only a page with no payload is read, so the walk does not open every declaration page of every tree. + const destination = redirectDestination(readFileSync(index, 'utf8')) + if (destination === undefined) { pages.push(url); problems.push(`${url} has no payload at ${target.endpoint}`); continue } + stubs.push(url) + const to = new URL(destination, ORIGIN) + if (to.origin !== ORIGIN || !to.pathname.startsWith(base) || !existsSync(join(root, to.pathname.slice(base.length), 'index.html'))) problems.push(`${url} redirects to ${destination}, which is not a page of the tree`) + continue + } + pages.push(url) let card: { schema?: unknown; title?: unknown; description?: unknown; href?: unknown } try { card = JSON.parse(readFileSync(file, 'utf8')) } catch { problems.push(`${target.endpoint} is not JSON`); continue } if (card.schema !== 1 || typeof card.title !== 'string' || typeof card.description !== 'string') problems.push(`${target.endpoint} is not a card`) else if (typeof card.href !== 'string' || !new URL(card.href, ORIGIN).pathname.endsWith(url)) problems.push(`${target.endpoint} leads to ${String(card.href)}, not to ${url}`) } } - return { pages, problems } + return { pages, stubs, problems } +} + +/** + * Whether the site itself says it retired this address, so that a page that has become a redirect for any other reason does not + * lose its card unnoticed: a tmux command's page before commands moved to the manual (the manual's routes are the commands, and + * the full manual's old address is `manual`), and the operators that Swift's workspace reference dropped. + */ +async function retiredAddress(): Promise<(url: string) => boolean> { + // Loaded here and not at the top: the models are large, and only the assembled run needs them. + const [{ API_MODELS }, { productApiRedirects }, { tmuxManualRoutes }] = await Promise.all([ + import('../src/lib/api-models'), import('../src/lib/product-api'), import('../src/lib/tmux-manual-data'), + ]) + const commands = new Set(tmuxManualRoutes().filter(({ slug }) => slug) + .map(({ version, slug }) => `/tmux/${version}/reference/${slug === 'full' ? 'manual' : slug}/`)) + const operators = productApiRedirects(API_MODELS, 'swift', {}, 'latest').map(({ path }) => path) + return (url) => commands.has(url) || operators.some((path) => new RegExp(`^/swift/[^/]+/${path.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}/$`).test(url)) } /** A bare shell build has no port trees to read; an assembly has them, and then there must be pages in them. */ const assembledTrees = SITE_BUILT && referenceRoots(SITE_ROOT).length > 0 describe('the reference trees of the assembly', () => { - it.runIf(assembledTrees)('has a payload beside every reference page the preview policy marks, in every port version and in tmux', () => { - const { pages, problems } = referencePayloadProblems(SITE_ROOT) + // The walk lists every tree of the assembly, which takes longer than the default deadline allows. + it.runIf(assembledTrees)('has a payload beside every reference page the preview policy marks, in every port version and in tmux', async () => { + const { pages, stubs, problems } = referencePayloadProblems(SITE_ROOT, `/${SITE_PREFIX}`) expect(pages.length).toBeGreaterThan(0) expect(problems).toEqual([]) - }) + // What the walk set apart is bounded by what the site says it retired, and not by what is convenient to leave out. + const retired = await retiredAddress() + expect(stubs.filter((url) => !retired(url))).toEqual([]) + }, 120_000) }) describe('the walk over a tree', () => { @@ -78,11 +125,41 @@ describe('the walk over a tree', () => { // Not pages a link is marked for: the index of the tree, and a page two segments down. 'py/stable/reference/index.html': '', 'py/stable/reference/symbols/a/index.html': '', }) - expect(referencePayloadProblems(root)).toEqual({ pages: ['/py/stable/reference/a/', '/ruby/latest/mcp/reference/b/'], problems: [] }) + expect(referencePayloadProblems(root)).toEqual({ pages: ['/py/stable/reference/a/', '/ruby/latest/mcp/reference/b/'], stubs: [], problems: [] }) const missing = tree({ 'py/stable/reference/a/index.html': '', 'py/stable/reference/b/index.html': '', 'py/stable/reference/a.preview.json': card('/en/py/stable/reference/a/') }) expect(referencePayloadProblems(missing).problems).toEqual(['/py/stable/reference/b/ has no payload at /py/stable/reference/b.preview.json']) }) + it('sets apart a page that is only a redirect, and still names a page with no payload beside it', async () => { + // The stub is what the site writes, so the walk is tested against the real markup and follows it if that changes. + const page = await loadAstroTemplate('components/docs/RedirectPage.astro') + const stub = (destination: string) => renderAstroTemplate(page, { props: { destination, title: 'tmux manual' } }) + expect(redirectDestination(await stub('/en/tmux/latest/manual/set-buffer/'))).toBe('/en/tmux/latest/manual/set-buffer/') + // Unlisted is not a redirect, and neither is a page that says nothing of where it goes. + expect(redirectDestination('')).toBeUndefined() + expect(redirectDestination('')).toBeUndefined() + const root = tree({ + 'tmux/latest/reference/set-buffer/index.html': await stub('/en/tmux/latest/manual/set-buffer/'), 'tmux/latest/manual/set-buffer/index.html': '', + 'tmux/latest/reference/real/index.html': 'real', + 'tmux/latest/reference/unlisted/index.html': '', + 'tmux/latest/reference/dangling/index.html': await stub('/en/tmux/latest/manual/dangling/'), + 'tmux/latest/reference/abroad/index.html': await stub('https://elsewhere.test/en/tmux/latest/manual/set-buffer/'), + }) + const walked = referencePayloadProblems(root) + expect(walked.stubs.sort()).toEqual(['/tmux/latest/reference/abroad/', '/tmux/latest/reference/dangling/', '/tmux/latest/reference/set-buffer/']) + expect(walked.problems.sort()).toEqual([ + '/tmux/latest/reference/abroad/ redirects to https://elsewhere.test/en/tmux/latest/manual/set-buffer/, which is not a page of the tree', + '/tmux/latest/reference/dangling/ redirects to /en/tmux/latest/manual/dangling/, which is not a page of the tree', + '/tmux/latest/reference/real/ has no payload at /tmux/latest/reference/real.preview.json', + '/tmux/latest/reference/unlisted/ has no payload at /tmux/latest/reference/unlisted.preview.json', + ]) + // The control: the same tree with only the stub that leads to a page is clean, and its page is not one that needs a payload. + const clean = tree({ 'tmux/latest/reference/set-buffer/index.html': await stub('/en/tmux/latest/manual/set-buffer/'), 'tmux/latest/manual/set-buffer/index.html': '' }) + expect(referencePayloadProblems(clean)).toEqual({ pages: [], stubs: ['/tmux/latest/reference/set-buffer/'], problems: [] }) + // A tree served below a preview's prefix finds its destination there. + expect(referencePayloadProblems(clean, '/pr-9/en/').problems).toEqual(['/tmux/latest/reference/set-buffer/ redirects to /en/tmux/latest/manual/set-buffer/, which is not a page of the tree']) + }) + it('names a payload that is not a card or leads to another page', () => { const root = tree({ 'go/latest/reference/a/index.html': '', 'go/latest/reference/a.preview.json': JSON.stringify({ schema: 2, title: 'x', description: '' }), From d2ea598c4fd323955bfc0dfe1e163ff33e53680a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 10:28:19 -0500 Subject: [PATCH 52/53] test(site[product-docs]) Give the MCP reference test a longer deadline why: "py uses the shared reference browser for all advertised protocol objects" timed out at 5000 ms in run 40096117796 and in the merge-train run 40097952662, both containing this branch, and passed on main's push run 40079200902 at 3199 ms. Each port's case parses every page of its MCP reference, so on main the largest port already used about two thirds of the default deadline. The branch does not change what it does: - product-docs.test.ts has the same import closure on main and here, and the pages come from ProtocolReference.astro, which uses none of the functions the branch changed (they are called from ApiEntry, the tmux pages and the Markdown export). - Alternating runs over go and swift MCP pages cached from main, once in a copy of main and once here, took 2.9 to 4.7 s and 2.7 to 4.5 s per port; one run here crossed 5 s while the machine's load average was 20 to 44 on 12 cores. - The slower hosted runs are slower everywhere. Packages this branch does not test differently ran the same tests in more time: api-model (1116 tests) took 11.80 s on main, 16.01 s and 15.85 s in the two failed runs, and theme (36 tests) 0.91 s, 1.15 s and 1.26 s. The 258 assembled tests that took 200 ms or more on main took a median 1.27 times as long in each failed run, and the ten ports of this test 1.15 to 1.98 times (py 1.57). what: - Pass a 30 s deadline to the per-port cases, with a comment saying the work grows with the reference. --- site/test/product-docs.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/test/product-docs.test.ts b/site/test/product-docs.test.ts index 2c34b0a51..e43f3b9d6 100644 --- a/site/test/product-docs.test.ts +++ b/site/test/product-docs.test.ts @@ -652,6 +652,8 @@ describe.skipIf(!SITE_BUILT)('assembled MCP and Workspace Manager docs', () => { } }) + // A port reads every page of its MCP reference in one test, so the work grows with the reference and the largest port + // leaves little of the default deadline on a slower runner. The deadline is not what the test is about; the assertions are. it.each(Object.keys(MCP_REFERENCE))('%s uses the shared reference browser for all advertised protocol objects', async (port) => { const version = manifest().defaultVersion[port] expect(version, `${port} default version`).toBeDefined() @@ -679,7 +681,7 @@ describe.skipIf(!SITE_BUILT)('assembled MCP and Workspace Manager docs', () => { expect(JSON.parse(contract.querySelector('code')!.textContent)).toEqual(object.tool?.inputSchema ?? object.item) }) } - }) + }, 30_000) it.each(primaryPorts.map((port) => port.slug))('switches to equivalent sections and the tmux documentation for %s', async (slug) => { const defaults = manifest().defaultVersion From 803a4a075b5753d0fe2c9f6e2eae7483b1ceb33e Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 24 Oct 2026 13:24:28 -0500 Subject: [PATCH 53/53] test(site[just-clean]) Fail a recipe that blocks instead of hanging why: The recipe runner used spawnSync with no timeout. A regression from `flock --nonblock` to a blocking `flock` would wait for the child holding the lock, which cannot release it while spawnSync blocks the event loop, so the test would hang until the CI job limit instead of failing. what: - Give every recipe and `just` spawn a 10 s timeout, so a blocked recipe returns no exit status and its test fails. --- site/test/just-clean.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/site/test/just-clean.test.ts b/site/test/just-clean.test.ts index fc1714844..9aafce945 100644 --- a/site/test/just-clean.test.ts +++ b/site/test/just-clean.test.ts @@ -70,14 +70,17 @@ function fixture(): string { let scripts = 0 +/** A recipe that blocks, such as a `flock` that waits, fails the test instead of hanging it. */ +const RECIPE_TIMEOUT_MS = 10_000 + /** Runs a recipe body the way `just` does: a shebang body as a script, else one shell line. */ function attempt(dir: string, body: string[]): SpawnSyncReturns { if (body[0]?.startsWith('#!')) { const script = join(scratch, `recipe-${scripts++}.sh`) writeFileSync(script, `${body.join('\n')}\n`) - return spawnSync('bash', [script], { cwd: dir, encoding: 'utf8' }) + return spawnSync('bash', [script], { cwd: dir, encoding: 'utf8', timeout: RECIPE_TIMEOUT_MS }) } - return spawnSync('sh', ['-c', body.join('\n')], { cwd: dir, encoding: 'utf8' }) + return spawnSync('sh', ['-c', body.join('\n')], { cwd: dir, encoding: 'utf8', timeout: RECIPE_TIMEOUT_MS }) } function run(dir: string, body: string[]): string[] { @@ -205,6 +208,7 @@ describe('just nuke', () => { spawnSync('just', ['--justfile', join(ROOT, 'justfile'), '--working-directory', dir, ...args], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], + timeout: RECIPE_TIMEOUT_MS, }) it('removes untracked files, the build cache and the lock, and keeps the .env files', () => {